Expand my Community achievements bar.

Join us January 15th for an AMA with Champion Achaia Walton, who will be talking about her article on Event-Based Reporting and Measuring Content Groups!
SOLVED

Adobe ACP Mobile SDK - "&&& product" context data implementation

Avatar

Level 3

I have a ACP mobile sdk implementation using trackState and trackAction calls. Now the devs are sending data using "&&products": ";Category: infinite;Product: 160GB, Talk & Text - Plus;Quantity: 1;Price: 75.0". How do i populate it up in Adobe analytics? I tried mapping it to an eVar using processing rules but when in context data variable i typed : &&products it turned the value into products and it is not working. 

 

Please Suggest me the best solution as it is urgent 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor and Adobe Champion

Yes, if the event is a purchase, pass &&events=purchase, if it's an "add to cart" pass &&events=scAdd

 

If you have custom events (ones that aren't merchandising, but are sent on the same action, then you will want your devs to add those:

 

&&events=purchase,event1

 

For example.

 

 

Other events, that you can determine with processing rules can stay in your processing rules.... so I have our devs code the specific events for s.products, and use Processing Rules for the other events... they will work together. 

 

But since you cannot see or read what is happening in s.products in processing rules, your developers should implement it, to make sure everything is clean.

View solution in original post

22 Replies

Avatar

Level 3

What about orderReview page, we have events.orderreview on the website. How do we pass this along scCheckout

contextData["&&events"] = "scCheckout",events.orderReview

Is the above correct format?

 

 

Avatar

Community Advisor and Adobe Champion

I am not a mobile developer... I am a web developer... if this works like other languages, I would say no....

 

Normally, adding values together would use "+"

 

I assume that event.orderReview is a variable that holds a value like "event1" or "event2" etc.... 

 

I am not sure what language your app is using so I can't say for sure the full and proper syntax... but assuming that the value of the variable is "event1", I would expect to see something like:

 

contextData["&&events"] = "scCheckout," + events.orderReview 

 

But, if I were developing this... I wouldn't bother with a variable for each event use... I would create a generic variable like "myEvents"

 

and use:

contextData["&&events"] = myEvents;

 

For each usage, I would then populate my events with the list of events I need:

 

  • ""
  • "scCheckout"
  • "scCheckout,event1"
  • "scCheckout,event1,event2"
  • etc

Building out the list of events to pass based on the page or action and what is required.