Skip to content

Instantly share code, notes, and snippets.

@elephantsneverforget
Last active September 11, 2023 17:08
Show Gist options
  • Save elephantsneverforget/6c2e27e34fe2b09e0af687eb9c4b035d to your computer and use it in GitHub Desktop.
Save elephantsneverforget/6c2e27e34fe2b09e0af687eb9c4b035d to your computer and use it in GitHub Desktop.
window.ElevarTransformFn = item => {
if (item.event === "dl_add_to_cart") {
return {
...item, // This is the original event
// Example of how to add properties Zulily is requesting. These properties do not need to be added for every event
// Tasks in Asana contain the values that should be added for each event.
collectionId: "value",
IsCartAddFromProdDetail: "value",
IsCartAddFromSmartCart: "value",
PageEventId: "value
// END additional Zulily properties
};
}
else { return item; }
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment