Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- 'event': 'cjPageVisit',
- 'pageType': '{{page type}}', //See the referring doc for a list of accepted values.
- 'cartSubtotal': '{{cart subtotal}}', // Subtotal of the shopping cart, e.g. 550.00 - This should only be populated when the user is on a shopping cart page. This should not include taxes or shipping costs. Special characters such as '$' cannot be included.
- 'items':[{ // List of all the products for the order.
- 'unitPrice': '{{Product Price 1}}', // price of the product, e.g. 330.00 - This should not include taxes or shipping costs. Special characters such as '$' cannot be included. Does not include discount. (Price before discount.)
- 'itemId': '{{Product ID 1}}', // ID of the product.
- 'quantity': '{{Product Quantity 1}}', // product quantity, e.g. 1 - The quantity field does not recognize decimal amounts.
- 'discount': '{{discount for product 1}}'
- }]
- });
- </script>
Add Comment
Please, Sign In to add comment