Last active
September 11, 2023 17:08
-
-
Save elephantsneverforget/6c2e27e34fe2b09e0af687eb9c4b035d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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