Calculated Metric for Data Layer | Community
Skip to main content
December 3, 2024
Solved

Calculated Metric for Data Layer

  • December 3, 2024
  • 3 replies
  • 762 views

In Customer Journey Analytics, is there the option to create a calculated metric that shows if there are pages that do not have the adobe data layer? We are specifically wondering for page view events that show if there are pages on our website that do not have the data layer spec.

Best answer by Jennifer_Dungan

I think something like that would have to be custom coded... a data layer is just one way of passing information between the site and the analytics... it's not even the only way....

 

Data can come from different sources (data layers, cookies, session variables, custom event details, in-line attributes, etc)

 

So if you have an issue with missing data layers, I think your best bet is to code a solution that flags pages without data layers.... that is of course assuming that you aren't using the data layer itself as the trigger for your rules... then you potentially have a bigger problem of tracking to overcome.... 

 

Can you share more details about your implementation?

3 replies

Jennifer_Dungan
Community Advisor and Adobe Champion
Jennifer_DunganCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
December 3, 2024

I think something like that would have to be custom coded... a data layer is just one way of passing information between the site and the analytics... it's not even the only way....

 

Data can come from different sources (data layers, cookies, session variables, custom event details, in-line attributes, etc)

 

So if you have an issue with missing data layers, I think your best bet is to code a solution that flags pages without data layers.... that is of course assuming that you aren't using the data layer itself as the trigger for your rules... then you potentially have a bigger problem of tracking to overcome.... 

 

Can you share more details about your implementation?

bjoern__koth
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
December 4, 2024

As @jennifer_dungan mentions, this will have to be custom coded.

The ACDL is just a means of exposing data from the website to your tag management system (presumably Adobe Launch).

Hence, you could maybe add a field in your data schema that can contain contextual information about how data was ingested into the platform.

 

How you implement it in the XDM is completely up to you but should be fairly straight forward for the ACDL, simply by executing a custom code that checks whether window.adobeDataLayer is set.

Cheers from Switzerland!
Damonwhall
Adobe Employee
Adobe Employee
December 10, 2024

I agree with @jennifer_dungan , 

 

Our team has put into place similar things like the current Launch build name, etc.  But to see something like the absence of a data-layer or if you have multiple, the name of the data layer applied you will have to implement an event that will fire for when the data-layer is detected and then find pages that do not have that event fire.