Data Elements and Events in an EDDL

May 28, 2024

I ran into a scenario that I hadn’t seen in some time, where two simultaneous events are pushed into the event driven data layer (EDDL), but Adobe Launch was populating both Custom Link events ‘ variables with only the data from the second event.

Looking into the instrumentation, we can see that the system is using the Adobe Consulting – Adobe Client Data Layer extension to trigger the event and to populate the data element.

Having seen this type of issue in the past, immediately we look at how and when the data element is defined. We see that the configuration is using the Adobe Client Data Layer extension:

adobe launch data element configuration

This is another example of why I don’t like to use third party extensions, there’s always a chance that they aren’t exactly what you need. When I saw this format for the data element, I decided to rewrite it using the native Custom Code data element:

adobe launch data element conditional

What we do here is make sure that when the rule is triggered, using this format we can guarantee that the data element will use the values from the relative event. While the extension might intend to do this, it falls a little short.

if(event.message?.linkDetails?.linkName) { 
  return event.message.linkDetails.linkName
}

It’s easy to want shortcuts, but there’s always a catch, and while you can root through the extension code…sometimes it’s worth it to just create your own solution.


Welcome!

To learn something new, I've put together this site using Gatsby with WordPress and GraphQL, along with a server-side GTM configuration for a first party analytics ecosystem.

Aris

Explore when and wherever you can!

Find me on LinkedIn