We are trying to generate “s.products” Adobe Analytics variable using AA Product String Builder via Launch. Unfortunately I am getting below errors on console.
I am quoting necessary information below:
1. Rule structure on launch
2. Action configuration for AA Product String Builder.
3. DataLayer structure
4. ‘Product collection path’ value passed by “eComm - productString” data elememt.
Could you please help me on this?
Unfortunately, your setup isn't going to work.
AA Product String Builder expects your Root Data Object to look like this:
In that case, the Product Collection Path would be set to the static string "products".
One quick solution is to use a Custom Code data element to nest your products array inside a key-value object, e.g.
products: _satellite.getVar("eComm - productString");
Then use that Custom Code data element as your Root Data Object in the AA Product String Builder, and "products" as your Product Collection Path.