Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- 'event': 'eec.productDetail',
- 'ecommerce': {
- 'detail': { // name of an action. In this case, always stays as detail
- 'actionField': {'list': 'main'}, // optional but great to include. Search; Map; Cruise Itinerary; Port List; Destinations
- 'products': [{
- 'name': 'HELICOPTER ICEFIELD EXCURSION', // name of tour that is currently viewed. Always include it.
- 'id': '001392', // id of tour. Always include it.
- 'price': '363.00', // tour price; feel free to use $0, but include the key
- 'brand': 'ShoreTrips', // brand/vendor of a product
- 'category': 'JUNEAU ALASKA', // tour category
- 'variant': 'Silver' // product variant. If there are no variants, exclude this key from the dataLayer.push
- }]
- }
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement