Expand my Community achievements bar.

Join us for the next Community Q&A Coffee Break on Tuesday April 23, 2024 with Eric Matisoff, Principal Evangelist, Analytics & Data Science, who will join us to discuss all the big news and announcements from Summit 2024!
SOLVED

s.products is not populating

Avatar

Level 4

Hi Team,

we are simply trying to get the prod details through s.products variable. We are passing the below mentioned line of code on cart add. However, it is not firing as expected. I understand this is pretty straight forward method than getting the value from extension and through data layer. We have setting up this code in custom code editor under set variable. It is not firing as expected, please help me to find the issue and let me know if any.

-----------------------
s.events = "scAdd";
s.products = "loantype;loanname;1;2000";
----------------------


Thank you,
Jay.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi @Jayakrish ,

If it's a custom link call, please try adding the below line of code as well (before the product string):

s.linkTrackVars="products";

View solution in original post

2 Replies

Avatar

Correct answer by
Employee Advisor

Hi @Jayakrish ,

If it's a custom link call, please try adding the below line of code as well (before the product string):

s.linkTrackVars="products";

Avatar

Level 10
if the issue is really because of the s.tl() call, then setting s.linkTrackEvents is also necessary.