Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. Tag to pass parameters:
  2. <script type="text/javascript">
  3. if ('yaCounter18831583' in window) {
  4. yaCounter18831583.params({
  5. custom: {
  6. checkin: {{checkInISODate}},
  7. checkout: {{checkOutISODate}},
  8. destinationId: {{pathId}},
  9. destinationName: {{pathName}},
  10. standardDateRange: {{isStandardDateRange}},
  11. guestCount: {{guestCount}},
  12. stars: {{starCategory}},
  13. daysToDeparture: {{daysToCheckIn}},
  14. stayLength: {{lengthOfStay}},
  15. rating: {{ratingCategory}},
  16. roomType: {{roomTypeName}},
  17. iGeoDistanceItem: {{itemId}},
  18. destinationConcept: {{destinationConcept}},
  19. }
  20. });
  21. }
  22. window.dataLayer.push({ "ecommerce": {
  23. "detail": {
  24. "products": [
  25. {
  26. "id": {{itemId}}
  27. },
  28. ]
  29. }
  30. }
  31. });
  32. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement