Skip to content

Instantly share code, notes, and snippets.

@elephantsneverforget
Last active September 21, 2023 20:20
Show Gist options
  • Save elephantsneverforget/467ba8f9873c445dc741104b32ebf44d to your computer and use it in GitHub Desktop.
Save elephantsneverforget/467ba8f9873c445dc741104b32ebf44d to your computer and use it in GitHub Desktop.
// These events are cusom Zulily events outside the scope of what Elevar tracks
// Please ask Zulily for details
dataLayer.push({
event: "collection_list_view",
collectionIdList: val,
pagetype: // ItemDetail page or Cart View page,
eventId: val // UUID v4
items: [123, 456, ...], // array of variant ids
});
dataLayer.push({
event: "you_may_also_like",
collectionIdList: val,
pagetype: // ItemDetail page or Cart View page,
eventId: val // UUID v4
items: [123, 456, ...], // array of variant ids
});
dataLayer.push({
event: "recently_viewed_listing_view",
collectionIdList: val,
variationIdList: val,
pagetype: // ItemDetail page or Cart View page,
eventId: val // UUID v4
items: [123, 456, ...], // array of variant ids
});
dataLayer.push({
event: "overlay_view",
pageVieweventId, val,
pagetype: // ItemDetail page or Cart View page,
eventId: val // UUID v4
items: [123, 456, ...], // array of variant ids
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment