Data Elements are your friend. People often forget that the can return ANY javaScript object (not just strings). I often use DTM data elements to provide functions or function libraries. For example, in a DTM (custom code) data element named "func_addTwoNumbers", I might have this:return function(a...
Link to DTM Docs under Adobe Marketing Cloud HelpAlso, here's a starting point in Video... DTM - Overview and Set Up Basics - YouTubeHere's the whole playlist: Dynamic Tag Manager (DTM) - YouTubeThis is the object reference: Dynamic Tag Management Object Reference BTW, If you are just starting ou...
Hi Justin. I'm just seeing this thread and thought that I'd add my two cents if it's not too late. 1) Debugging mobile AA calls is certainly a pain-point. It always seems to end up getting solved with some network proxy tool, be it Charles, Fiddler, Cloud Middleman, or other 3rd party solution. Ad...
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.