From c70865718d4c23b83ff45c65d2eebb9d645eeef2 Mon Sep 17 00:00:00 2001 From: julianajlk Date: Tue, 12 Nov 2024 11:43:54 -0500 Subject: [PATCH] feat: Add courseKey to ConversionTracked RV event --- src/payment/checkout/Checkout.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/payment/checkout/Checkout.jsx b/src/payment/checkout/Checkout.jsx index fab65f253..bd8836605 100644 --- a/src/payment/checkout/Checkout.jsx +++ b/src/payment/checkout/Checkout.jsx @@ -161,9 +161,10 @@ class Checkout extends React.Component { if (products || products.length !== 0) { products.forEach(product => { productList.push({ + externalId: typeof product.courseKey === 'string' ? product.courseKey : '', variant: BaseTagularVariant.Courses, // TODO: all are 'courses' now, use translateVariant() in the future brand: this.getPartnerName(product), // School or Partner name - name: product.title, // Course(s) title + name: typeof product.title === 'string' ? product.title : '', // Course(s) title }); }); }