Query Regarding multiple schemas for AEP and Adobe Analytics | Community
Skip to main content
Level 2
February 3, 2025
Solved

Query Regarding multiple schemas for AEP and Adobe Analytics

  • February 3, 2025
  • 1 reply
  • 1054 views

Hi there,

 

I have configured a schema using Adobe Analytics Experience Event Field Group (Schema 1)

I have another schema with a set of Custom Fields (Schema 2)

Primary reason for using AA Experience Event Field group is to send data to AA through Launch Web SDK. I do not want all fields on Schema 1 to be passed into AEP. Hence, schema 2 is created with only required fields to be sent to AEP.

 

I have Adobe Launch implementation to send data to edge network on various interactions (page view, page scroll, link click, product view etc.) . However, I want to send data to AEP only on page view event.

Using data object (data.__adobe{}) is one of the method of achieving this.

But, Is there any other way to achieve this using Data Prep mapping with Schema 1 and Schema 2? 

If I use data prep to map the fields, say xdm._experience.analytics.customDimensions.eVars.eVar1 (Schema 1)  ---> schema2.pageName (Schema 2), it will map and send data on all interactions rather than just page views.

 

Thanks in advance 🙂 

 

Best answer by Harveer_SinghGi1

Hi @abhilashsharman ,

I'd recommend using data.__adobe{} for AA payload on all interactions and add xdm{} for AEP payload on page views events. This will eliminate the need of maintaining two schemas as you'll only need to create schema for the AEP xdm{} payloads.

Incase you want to achieve this through xdm{} payloads only, you should explore DataStream Override option in data AEP SDK's sendEvent() method.

Here's how it'll work for your use case of sending only page views to AEP,

  • Create two schemas,
    • Schema 1: configure using Adobe Analytics Experience Event Field Group only
    • Schema 2: configure using Custom Fields only
  • Create AEP Dataset 2 only for Schema 2
  • Create two DataStream,
    • DataStream 1:
      • Configure it with Schema 1
      • Add only AA service and don't add AEP service
    • DataStream 2:
      • Configure it with Schema 2
      • Add both AEP service and AA service
      • Add data prep mapping from AA fields to AEP fields like xdm._experience.analytics.customDimensions.eVars.eVar1  ---> xdm._tenantID.pageName
  • In data collection use DataStream 1 as default DataStream for AEP SDK configuration
  • Use AEP SDK sendEvent() method to track all interactions except page view events with AA formatted xdm{} payloads (This sends data to AA using DataStream 1) 
  • On page view event's sendEvent() action pass AA formatted xdm{} payload and use the datastream override option to select DataStream 2 and AEP Dataset 2,
  • In above action both AA and AEP xdm{} fields (AEP fields will be populated through data prep mappings) will be sent to AA and AEP both the tools will keep their respective fields and discard remaining ones.

Cheers!

 

1 reply

Harveer_SinghGi1
Community Advisor and Adobe Champion
Harveer_SinghGi1Community Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
February 3, 2025

Hi @abhilashsharman ,

I'd recommend using data.__adobe{} for AA payload on all interactions and add xdm{} for AEP payload on page views events. This will eliminate the need of maintaining two schemas as you'll only need to create schema for the AEP xdm{} payloads.

Incase you want to achieve this through xdm{} payloads only, you should explore DataStream Override option in data AEP SDK's sendEvent() method.

Here's how it'll work for your use case of sending only page views to AEP,

  • Create two schemas,
    • Schema 1: configure using Adobe Analytics Experience Event Field Group only
    • Schema 2: configure using Custom Fields only
  • Create AEP Dataset 2 only for Schema 2
  • Create two DataStream,
    • DataStream 1:
      • Configure it with Schema 1
      • Add only AA service and don't add AEP service
    • DataStream 2:
      • Configure it with Schema 2
      • Add both AEP service and AA service
      • Add data prep mapping from AA fields to AEP fields like xdm._experience.analytics.customDimensions.eVars.eVar1  ---> xdm._tenantID.pageName
  • In data collection use DataStream 1 as default DataStream for AEP SDK configuration
  • Use AEP SDK sendEvent() method to track all interactions except page view events with AA formatted xdm{} payloads (This sends data to AA using DataStream 1) 
  • On page view event's sendEvent() action pass AA formatted xdm{} payload and use the datastream override option to select DataStream 2 and AEP Dataset 2,
  • In above action both AA and AEP xdm{} fields (AEP fields will be populated through data prep mappings) will be sent to AA and AEP both the tools will keep their respective fields and discard remaining ones.

Cheers!

 

Level 2
February 3, 2025

@harveer_singhgi1 , Thank you so much for the detailed explanation!! Its crystal clear for me now.

I will give this a shot.

 

Cheers,

Abhi.