Merge pull request #2018 from Safelite/feature/Digital/CSR-1629
CSR-1629
This commit is contained in:
commit
ffac9db4ee
1 changed files with 7 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue