Merge pull request #2018 from Safelite/feature/Digital/CSR-1629

CSR-1629
This commit is contained in:
hiteshkumar87 2024-10-09 14:17:33 +05:30 committed by GitHub
commit ffac9db4ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -446,6 +446,7 @@ export default {
}
}
pushToDataLayerIfDefined({
event: "productArray",
productArray: {
coupon: coupon,
discount: discount.toFixed(2),
@ -544,7 +545,11 @@ export default {
);
}
pushToDataLayerIfDefined({
eCommerceCart: { products: combinedLineItems, subTotal: parseInt(subtotal) },
event: "eCommerceCart",
eCommerceCart: {
products: combinedLineItems,
subTotal: parseInt(subtotal),
},
});
}
},
@ -632,6 +637,7 @@ export default {
}
}
pushToDataLayerIfDefined({
event: "commissionJunctionGtmData",
commissionJunctionGtmData: {
cj_commission_junction_event: cjEvent,
cj_referral_sequence_number: refSequenceNum,