Hi @ajaxdinesh
I assume you have set up dedicated events and custom Dimensions (prop/eVar) in Adobe Analytics for the above mentioned?
This would already not work on the classic AppMeasurement library without assigning the correct buckets to them e.g.
s.prop99 = "Social Media Organic";
s.events = "event11"; // assuming that e.g., the successfulSeachEvent is set up to be event11
// etc.
There are a couple of different approaches to handle this as explained here
- as part of the XDM schema, using the dedicated field group for adobe analytics
- using the data object (which will be the closest to what you see in above code snippet) e.g. data.__adobe.analytics.prop99 = "Social Media Organic".
You may want to look at this video for a good step by step explanation - as context data which will require manual mapping of data in Adobe Analytics processing rules (just don't do this!)
Given the way you phrase your question, I presume you are still quite new to Analytics, correct?
In that case, 1. and 2. are the recommended approaches, 3. is out of question the most cumbersome, error prone and 0-debuggable approach.
If you ask me, 2. is the most intuitive way (see video linked above) and creates less overhead through a crazy bloated XDM schema.
Hope that helps
Cheers from Switzerland!