Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards

How do you correctly map an Adobe Analytics event to a XDM schema field?

Avatar

Level 1

I have an Adobe Analytics Web SDK implementation using the data object and we are working on migrating to CJA. This implementation is accurately sending data to AA but in CJA, my event counts show as 0. My mapped eVars and props work fine but I'm probably just missing something simple with the events. I have tried for example, data.__adobe.analytics.events.event1 mapped to a custom schema field web.webInteraction._test.clicks where that field is set to integer. I have also tried changing web.webInteraction._test.clicks to a "measure" and instead mapping to web.webInteraction._test.clicks.value to mimic the AA ExperienceEvent template but both scenarios result in counts of 0 in CJA. What am I missing?

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

9 Replies

Avatar

Level 5
You're likely seeing 0 event counts in CJA because CJA requires events to have numeric values,   To fix this i will suggest you to :

 Set events like event1: 1
→Map to a measure field in your XDM schema, e.g., web.webInteraction.clicks.value.
 Ensure the field is defined as a measure in CJA
 Use tools like Adobe Debugger to confirm the XDM payload format.
→Reprocess your CJA data view if you recently updated mappings.

Reference Url: https://experienceleague.adobe.com/en/docs/analytics/implementation/aep-edge/xdm-var-mapping

I hope the reference above helps resolve your issue. If you’ve found another solution, feel free to share it—your insights could be valuable to others in the community.

Avatar

Level 1

Thank you, for your input Kumar. I have tried changing my schema so that web.webInteraction._test.clicks is set as a "measure" which auto creates web.webInteraction._test.clicks.id as a string and web.webInteraction._test.clicks.value as a double within that measure object but when I map my datastream from data.__adobe.analytics.events.event1 to web.webInteraction._test.clicks.value I get errors in my dataset such as "Error transforming data for required destination path web.webInteraction._bcbsma.clicks.value. Details: Source data does not contain field events" -- I don't know what I'm missing. 

 

In my payload in Developer Tools, I can see that data.__adobe.analytics.events is equal to "event1" and this sends data to Adobe Analytics accurately. Obviously "event1" is a string but web.webInteraction._test.clicks.value is expecting a number. Is this my issue? I shouldn't have to change my Web SDK implementation of AA. There must be a way to correctly map the Adobe Analytics event numbers to a count based XCDM schema field. I feel like I'm missing something simple.

Avatar

Community Advisor

Hi @Disco_Cowboy 

 

No event sent to CJA so far or just the mapping to custom schema field not working?

 

If no event was sent, would suggest to start simple on just a page view to make sure the end to end flow is working. Check below to make sure the required fields are populated in the Datastream/Data Prep. Apart from XDM id and timestamp, may also need the ECID as the person ID in CJA.

 

https://experienceleague.adobe.com/en/docs/experience-platform/xdm/classes/experienceevent

 

Thanks,

John

 

Avatar

Level 1

Pageviews work fine. I can use a CJA Workspace template to see the standard Pages Report for example, and the "Page Views" metric (adobe_reserved_label.web_pageviews) shows up with data as expected. It's mainly just AA custom events that are my issue. Perhaps I am forced to use the XDM Schema format _experience.analytics.event1to100.event1.value if I am already sending data.__adobe.analytics.events equals "event1" etc.?? I would definitely prefer to use a custom schema but I must be missing a step in either case.

Avatar

Community Advisor

Hi @Disco_Cowboy 

 

Would you mind showing your Data Stream mapping of the concerned field?

 

Thanks,

John

 

Avatar

Level 1

Disco_Cowboy_0-1754421416190.png

 

The parts I blurred out are because it's a custom object of a company abbreviation. event4 is an example where the .clicks is a measure with an id (string) and value (double) within. event7 and event1 are mapped to fields set as integer.

 

Thank you!

Avatar

Community Advisor

HI @Disco_Cowboy 

 

Is the claim.claimDetailViews an integer/double field itself? As in the other field you followed the convention to add a ".value" for storing numbers.

 

I have not tried adding new fields to a standard field group, maybe you want to add one mapping line at a time until you hit the error.

 

Thanks,

John

 

Avatar

Level 1

My current theory/assumption is that since I'm using a custom schema I may have to do mapping within Adobe Data Collection tags instead and that mapping within the datastream won't work because I'm not using the _experience.analytics.event1to100.event... schema format. But idk.

Avatar

Community Advisor

Mapping the Adobe Data Object to XDM in Data Stream is a standard way and should work. But you can also try to populate the XDM object together with the Data Object in Adobe Launch/Tags to see if helps.