Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- 'event': 'eec.productImpression', // name of an event. In this case, always stays as eec.productImpression
- 'ecommerce': { // ecommerce object. This is the essential part of tracking. New EE data must always be pushed to this object
- 'impressions': [ // type of an ecommerce action. In this case, always stays as impressions
- {
- 'name': 'Villa Catarina', // name of a property that is displayed. Always include it.
- 'id': 'ET-0023', // id of a property. Always include it.
- 'category': 'Villa with pool', // category of a property (e.g. villa or apartment)
- 'list': 'Search Results', // name of a list with properties displayed. See all the possible list names in the specification
- 'position': '1' // number of a position (in which a property was visible at that time)
- },
- {
- 'name': 'Villa Sana',
- 'id': 'ET-0028',
- 'category': 'Villa with Pool',
- 'list': 'Search Results',
- 'position': '2' }]
- }
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment