Hello All,
I'm trying to set s.products with events through the data layer (example below) but it's not working at all. Can someone please help here.
s.products = ";" + digitalData.#.#.# +";",";";event210=digitalData.#.#.#;
in the above string, I fetching values from the data layer where the color part working correctly but event value is not set. Are there any issues or any different way?
If any example that will help.
Thanks
Solved! Go to Solution.
Views
Replies
Total Likes
It is not an automatic pick from the s.products variable. You will need to add the event to the s.event variable through the code.
Also, you just need to pass the event without the numeric value in the event list if you are using s.product variable to send the value.
I can see there is a comma where the quantity should be present
The quotes are not around the string "event210="
Can you try the following:
s.products = ";" + digitalData.#.#.# + ";;;event210=" + digitalData.#.#.#;
The correct syntax for product variable should be
s.products="category;product;quantity;price;event_incrementer;
Hi hyderziaee
Thanks for the reply.
It works for me but I'm not able to see events210 in Omnibug Events section. Please see below
But in Events its not appearing
Is there something I need to do ? how can I make it available in events210 in both the places ?
Thanks
Views
Replies
Total Likes
It is not an automatic pick from the s.products variable. You will need to add the event to the s.event variable through the code.
Also, you just need to pass the event without the numeric value in the event list if you are using s.product variable to send the value.
Thank you.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies