Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- 'event': 'eec.removeFromCart', // name of an event. In this case, always stays as eec.removeFromCart
- 'ecommerce': { // ecommerce object. This is the essential part of tracking. New EE data must always be pushed to this object
- 'currencyCode': 'GBP', // the currency which is currently used by a visitor
- 'remove': { // name of an action. In this case, always stays as remove
- 'products': [ // list of products a user has removed from cart
- {
- 'name': 'TBD (restaurant - meal name ex DUCK & WAFFLE - CORN RIBS)', // name of a product that is currently viewed
- 'id': 'TBD (ex 123456)', // id (SKU) of a product (unique for each product for each of the restaurants)
- 'price': '7.00', // price of a product (The price of one item. The value must not include anything else except number separated by a decimal point. Don't use a comma as the separator, and don't include any currency symbols.)
- 'brand': 'DUCK & WAFFLE', // brand/vendor of a product
- 'category': 'DUCK & WAFFLE/DUCK & WAFFLE', // Product category of the item. Can have maximum five levels of hierarchy. restaurant/sub-menu-category (ex. clothes/shirts/t-shirts)
- 'variant': 'TBD', // product variant. If there are no variants, exclude this key from the dataLayer.push
- 'quantity' : 1 // product quantity
- }]
- }
- }
- });
- </script>
Add Comment
Please, Sign In to add comment