Has anyone used the app measurement variables to go into websdk as a websdk variable for AEP ? | Adobe Higher Education
Skip to main content
gautham_madala
Level 5
October 1, 2024
Répondu

Has anyone used the app measurement variables to go into websdk as a websdk variable for AEP ?

Hello everyone, 
Has anyone used adobe's app measurement "s" variable and mapped it to the "_data" variable in WebSDK ? 
I have successfully done the above part using the method Rajdeepsingh posted https://medium.com/@rajd33p/web-sdk-for-adobe-analytics-the-best-possible-way-to-collect-data-6a54a965fe54

 



, however now I would like to send this to to AEP through a datastream so that I can eventually use it in CJA. 
I do not want to use the Adobe analytics experience event template schema, rather want to use something custom schema but wasnt sure how the product string and other variables would be designed. Has anyone successfully implemented anything of this sort ? 
Any suggestions will be appreciated.

Thanks

Ce sujet a été fermé aux réponses.
Meilleure réponse par bjoern__koth

@bjoern__koth , 
I did look into this. I created my own product list but wasnt that successful when it comes to mapping multiple products. 
Assuming I have 30 products and each product is split by "," like regular s.products. 
Do you say that if I initialize as productlistitem =s.products
It gets automapped? 

 


No, this fieldgroup is the official, tool-agnostic way to get product data into AEP through XDM

 

data.__adobe.analytics.products is an alternative that makes many things easier when you are only using Analytics, but this data will not end up in AEP automatically. 
hence the namespace data.__adobe.analytics


essentially, if your data layer does not yet provide exactly the format that the XDM expects, you will have to do some coding I presume to bring your products into the desired format. At least I have not seen a simpler approach for an easy mapping to the XDM fieldgroup as an array of objects.


Bottom line: if you have more Adobe tools attached to AEP, or other 3rd party connectors that use product information, set the productListItems. If you only have AA, I would go with data.__adobe.analytics

1 commentaire

bjoern__koth
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
October 1, 2024

Hi @gautham_madala 

let aside CJA for a moment: how does your current setup look like?

 

Meaning

  • do you have a datastream set up yet with Adobe Analytics connected to it?
  • do you have Web SDK in place, sending information to this datastream? Is your custom code part of an update variable Web SDK action?

The data.__adobe.analytics in your screenshot should - when send in a Web SDK request - automatically get mapped to the corresponding Adobe Analytics props/eVars/events/list1/products (you may want to append an "s" to your "s.product")

 

 

Cheers from Switzerland!
gautham_madala
Level 5
October 1, 2024

Hello @bjoern__koth , 
I dint make any changes for my adobe analytics data collection method, rather added an additional action to update the websdk variable and send the event to AEP datastream. 
I do not have a adobe analytics datastream and do not intend to have one according to my strategy. 
I just have the websdk variable data._adobe.analytics that has the custom code of s.product or s.evar etc. 
I now need to understand what schema would work better because I do not want to use the adobe analytics experience schema

gautham_madala
Level 5
October 1, 2024

Hi @gautham_madala 

 

Adobe is actually also discouraging you from using their _experience.analytics fieldgroup if you intend to use CJA in the near future.

What exactly are you trying to to with your data.__adobe.analytics data then, since it is mostly useful if you want to automatically map this data to AA through a datastream.

 

 

Maybe this is helpful

https://medium.com/@rajd33p/adobe-analytics-to-adobe-experience-platform-your-guide-to-the-next-best-steps-05a5fe5b7e75

it contains a pretty cool flowchart that maybe lays out some more options

 

 


You are absolutely right. I do not have a AA datastream for now. 
My current efforts are to make sure the data lands into AEP through websdk but instead of the XDM{} data variable I thought ill use the data{} because its easier to send it with existing appmeasurement custom code. 
Though the data{} will not automatically land into the AEP but is there a possibility I could use dataprep to do it.