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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

How implement commerce events in Mobile Apps

Avatar

Level 1

I am trying to set up product tracking on a mobile app but unsure what the correct way to add these are. 

 

Can these be added to the product string for each item e.g.  ;name;quantity;price;scView|event1;eVar1=product|eVar2=detail

 

If not what is the correct way to add the events related to products?

1 Accepted Solution

Avatar

Correct answer by
Employee

@joshuaf75378438 

Events syntax is available in that document:

cdata.put("&&events", "scView");

 

You can also create Processing rules to increment these standard events.  

View solution in original post

5 Replies

Avatar

Employee

@joshuaf75378438 ,

Here is the correct syntax:

cdata.put("&&products", ";Running Shoes;1;69.95;event1=5.5;eVar1=Merchandising,;Running Socks;10;29.99");
 
 

Avatar

Level 1

Hi @vibhatna 

 

my query was more related to the product events, e.g scView, prodView, scAdd etc

Avatar

Correct answer by
Employee

@joshuaf75378438 

Events syntax is available in that document:

cdata.put("&&events", "scView");

 

You can also create Processing rules to increment these standard events.  

Avatar

Level 1

Just an additional question.

 

Do we put the event inside the product string string as well as the "&&events" context data? for example if I want to attach different events to items within the same product string?