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({
|
pushToDataLayerIfDefined({
|
||||||
|
event: "productArray",
|
||||||
productArray: {
|
productArray: {
|
||||||
coupon: coupon,
|
coupon: coupon,
|
||||||
discount: discount.toFixed(2),
|
discount: discount.toFixed(2),
|
||||||
|
|
@ -544,7 +545,11 @@ export default {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
pushToDataLayerIfDefined({
|
pushToDataLayerIfDefined({
|
||||||
eCommerceCart: { products: combinedLineItems, subTotal: parseInt(subtotal) },
|
event: "eCommerceCart",
|
||||||
|
eCommerceCart: {
|
||||||
|
products: combinedLineItems,
|
||||||
|
subTotal: parseInt(subtotal),
|
||||||
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -632,6 +637,7 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pushToDataLayerIfDefined({
|
pushToDataLayerIfDefined({
|
||||||
|
event: "commissionJunctionGtmData",
|
||||||
commissionJunctionGtmData: {
|
commissionJunctionGtmData: {
|
||||||
cj_commission_junction_event: cjEvent,
|
cj_commission_junction_event: cjEvent,
|
||||||
cj_referral_sequence_number: refSequenceNum,
|
cj_referral_sequence_number: refSequenceNum,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue