Adobe ACP Mobile SDK - "&&& product" context data implementation | Community
Skip to main content
Level 4
October 29, 2024
Solved

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

  • October 29, 2024
  • 1 reply
  • 4040 views

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 

Best answer by Jennifer_Dungan

ohh thank you so much for the information. But why are "Quantity" and "Price" is coming as  metric and not dimensions? I am just trying to understand the reasoning behind it. it is kind of difficult to create a view where we want to see cost and quantity of a particular product at the purchase

 


In the Products List notation, those are standard metrics. Even in your screen shot above from January, that was in the Success Events configuration. Revenue and number of items being sold are traditionally stored as a metric, so that you can have a total number of "product X" sold in whatever period, and a total revenue from those sales... metrics are numbers, so they will add up across the orders and you can also run calculated metrics on them... 

 

https://experienceleague.adobe.com/en/docs/analytics/implementation/vars/page-vars/products 

 

If you want to be able to see these values as actual text dimension data (as in, you want to see a specific, locked in, textual value for each order), then you will need to create some Merchandising eVars to store the values as a dimension.

 

For example:

 

You might want to keep the default "visit" expiry, or you may want it to only be part of the Sale hit, or maybe have a custom expiry.. it depends on your needs.

 

But you will definitely need to make it "Merchandising" and in Product Syntax.

 

 

Now, in your products string, you will need to add the new eVars:

 

";CCMM42255:5G Infinite Premium;250;118.75;;eVar97=250|eVar98=118.75"

 

Notice I have a double ;; in the string, this is intentional... this is the spot where custom events would be placed, if you had any... since you don't, we need to leave that there and empty.

1 reply

FarazHusain
Adobe Employee
Adobe Employee
October 29, 2024

Not sure what AEC mobile SDK is, as we only have AEP and ACP SDK for Adobe Analytics. In case you're using native Android/iOS SDK you can follow this document - https://developer.adobe.com/client-sdks/solution/adobe-analytics/product-variable/

products is set directly on the image request and auto-mapped as far as I know in the above approach, and the other variables are set as context data.

jaishalAuthor
Level 4
October 29, 2024

i am not the receiving the data that the devs are passing:

 

Value passed:

 

 "&&products": ";Category: infinite;Product: 160GB, Talk & Text - Plus;Quantity: 1;Price: 75.0"

 

Value received for Android: 160 GB

No value received for iOS

jaishalAuthor
Level 4
October 31, 2024

No, this won't work... every time you use a ; it goes to the next specific slot in the Products notation.... you now have your

 

Category = wireless

Product ID = XXNM012TN

Quantity = 160GB, Talk & Text - Plus (which is completely invalid and Adobe will throw this out)

Price = 1

Custom Events = 75 (which isn't in a proper event syntax, so it will break again)

 

 

Can you go to your website, using the Adobe Platform Debugger, or Omnibug, or your Network panel, whatever you feel comfortable testing with, and copy exactly what you are sending in Products?

 

 

The second one looks more correct... assuming you want "wireless" in your actual Category field...  at least that string won't break.... but I want to confirm that it matches your website.


On the website it looks like this:

 

;XXNM012TN:160GB Talk & Text - Plus;;;;eVar31=PPCExpress|eVar32=wireless|eVar33=plan|eVar145=0.00|eVar146=0.00|eVar147=0.00|eVar148=0.00