Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- window.dataLayer = window.dataLayer || [];
- dataLayer.push({
- 'event': 'ProductImpressions',
- 'ecommerce': {
- 'impressions': [{ //first product
- 'name': 'iPhone XS', //product name
- 'id': '007154', //product article
- 'price': '999.00', //unit price
- 'category': 'Shop/Buy iPhone', //product category
- 'brand': 'Apple', //product brand, constant value
- 'list': 'iPhones', //list name
- 'position': 1 //position of a product in the list
- }, { //second product
- 'name': 'iPhone XS Max',
- 'id': ' 133801 ',
- 'price': '1099',
- 'category': 'Shop/Buy iPhone',
- 'brand': 'Apple',
- 'list': 'iPhones',
- 'position': 2
- }
- //more details about the product
- ]
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement