Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Help with Product String Launch Extension

Julio_Baixauli
Level 4
Level 4

Hi Masters!

I'm trying to figure out how the Product String Launch Extension works.

I'm tagging a checkout page, and I would like to set the product ids (array) using this extension. The documentation is not very clear (Use bracket notation to denote any object in the variable that is an array ( i.e. myDataLayer.thisIsAnArray[n].productID))

To store the product ids, I tried with a Data Element and with a custom JS with _satellite.setVar(). But it doesn't work. Is there any example out there?

For example, my specific questions about the documentation example (myDataLayer.thisIsAnArray[n].productID😞

  • Is myDataLayer a Launch Data Element?
  • Should I include the '%' symbols in the configuration field, inside the Product String Launch Extension, like any other field in Launch?
  • If I set a Data Element, let's say 'CheckoutPage_SKUs' with an array of product ids, should it work if I set '%CheckoutPage_SKUs%'? Or '%CheckoutPage_SKUs[]%'? Or '%CheckoutPage_SKUs%[]'. (These doesn't work for me)

Any help would be appreciated!

Kind regards,

1 Accepted Solution
StewSchilling
Correct answer by
Community Advisor
Community Advisor

The best advice that I can give is to use the AA Product String Builder extension from Search Discovery instead. 

It has inline documentation and can build any product string from simple to complex.

Screen Shot 2018-11-29 at 8.01.07 AM.png

View solution in original post

2 Replies
StewSchilling
Correct answer by
Community Advisor
Community Advisor

The best advice that I can give is to use the AA Product String Builder extension from Search Discovery instead. 

It has inline documentation and can build any product string from simple to complex.

Screen Shot 2018-11-29 at 8.01.07 AM.png

View solution in original post

Julio_Baixauli
Level 4
Level 4

Thank you very much stewarts16448458!

At first sight, it has a lot more documentation than the original extension (which it's not difficult). It seems a good piece of code. I'll give it a try.

Kind regards,