Then in the AA custom code of your cart view rule, you'd set s.products as such:s.products = _satellite.getVar("_your data element here_");It's worth noting that since you presently cannot set s.products from anywhere except in AA custom code, you _could_ just use the code above and set s.products d...
Much of the code is just for exposition (to explain what I'm doing). For your data element, you'd paste just this much and add a return line as such: var cartItemCount = window.digitalData.cart.item.length||0;var productStanzas=[];for (var i=0; i<cartItemCount; i++) { var cartItem = window.digitalD...
This is the general idea based on the requirements for an Adobe product string: A couple notes. 1) I was not sure whether you wanted to use productName or productID in stanza[1]. I chose productID as it's typically a better identifier than product name (which might change over time or due to local...
Would you mind providing an example of the data layer JSON object? Would you mind providing the AA requirements? events, and evarsWith this, I can get you pointed in the right direction.
Yes. I have done this too many times to count.Custom JS is probably required.To be more helpful, can you answer a couple questions?1) Do you know where the cart item data exists on the page?2) Are you lucky enough to have this data in a data layer that can be easily accessed from JavaScript?3) What ...
Thanks, Aaron. I think that's enough reason for me to stick with custom events over direct call rules. Unless there is some other benefit to DCR's that I'm missing. It kind of makes me want to add an emitter action to the SDI Toolkit extension so that you could use Launch rules to send signals to o...
Sounds like _satellite.track is just a special kind of customEvent.Could you listen for _satellite.track events from outside of Launch? If so, on what element are they emitted?
Stefan, Thanks for sharing that repo. Awesome work. I'm 100% in agreement with your thoughts on a movement away from page-based analytics and toward event-based analytics. The event-based approach is much more flexible and can be used everywhere. I think that it will fit especially well as a fee...
Hi Stefan! I'm interested in seeing that repo, but the link you gave is giving me an error. -StewAlso, if you'd like to connect on LinkedIn, here's my profile: https://www.linkedin.com/in/stewartschilling/