We are currently passing total value of the order with numeric event. Below is an example of the same-
s.events = "purchase,event5="+ digitalData.order.orderGrandtotal;
Is it possible to add more numeric events in above mentioned code?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
I assume you mean that you want something like:
so you need to increment 3 separate numeric events?
You can just do this:
s.events = "purchase,event5=" + digitalData.order.orderGrandtotal + ",event6=" + digitalData.order.itemsInOrder + ",event7=" + digitalData.order.totalSearches;
So long as the resulting events string has the comma delimiter between your events ("purchase,event5=9.99,event6=2,event7=4") then this is fine.
Hi,
I assume you mean that you want something like:
so you need to increment 3 separate numeric events?
You can just do this:
s.events = "purchase,event5=" + digitalData.order.orderGrandtotal + ",event6=" + digitalData.order.itemsInOrder + ",event7=" + digitalData.order.totalSearches;
So long as the resulting events string has the comma delimiter between your events ("purchase,event5=9.99,event6=2,event7=4") then this is fine.
Hi Jennifer,
It Works. Thanks for the help
You're welcome!
I too have a complex event implementation, so I do stuff like that a lot. So I'm happy to pass on any advice that will help other people out.
Views
Replies
Total Likes