Adobe Analytics configuration for Adobe Client Data Layer | Community
Skip to main content
Level 2
April 17, 2022
Solved

Adobe Analytics configuration for Adobe Client Data Layer

  • April 17, 2022
  • 2 replies
  • 5501 views

Hi, I am currently using the Adobe Client Data Layer to collect my page data, and I followed the setup for Analytics: Add Adobe Analytics. However, I am not able to see my data through the Adobe Experience Platform Debugger, the column "Page Name" is disappeared. My Data Element setup is like this: 

 

 

 

The JavaScript Variable works in my Browser Console, it always shows me the correct Page Name in the Console.

 

So how and what should I do to show the Page Name in the Debugger?

 

Any insights would be greatly appreciated!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by yuhuisg

You should use "pageView.pageTitle" as your Path.

I suggest that you read up on how ACDL works: https://github.com/adobe/adobe-client-data-layer/wiki

2 replies

Level 5
April 18, 2022

Hi @yz_j 

 

Simply create data element using custom code - return document.URL;

 

 

It is a simple way to capture the page URL. Let me know if this helps.

 

Thanks

YZ_JAuthor
Level 2
April 19, 2022

Hi Pankaj,

 

Thank you for helping!

 

Yes, that way works for page URL, but I want to get data from the 'adobeDataLayer' instead of the HTML file. For example, I have sent the following information to adobeDataLayer:

 

 

How can I get the pageName from the adobeDataLayer?

 

Thank you!

yuhuisg
Community Advisor
Community Advisor
April 19, 2022

Install the Adobe Client Data Layer extension in your property, then use that extension's Computed State data element to get your variable.

The JavaScript variable data element doesn't work because ACDL actually uses its own computed, internal data layer for determining values.

YZ_JAuthor
Level 2
April 20, 2022

Hi Yuhui, 

 

Thank you for the answer!

 

I have installed the Adobe Client Data Layer extension and configured the data element as followed:

 

 

However, I am still not able to see the data from the debugger, any suggestions for that?

 

Thank you!

YZ_JAuthor
Level 2
April 29, 2022

You can utilize the built-in data elements that are generated off the event message if you're setting in the UI for the Adobe Client Data Layer extension.  There is a "fullState" & "message" that capture the values passed in the actual data layer event trigger, with the fullState being the equivalent for the computed data layer data element.

 

So for your above example, setting %event.fullState.pageView.pageTitle% on a rule that has the event trigger being set from the Adobe Client Data Layer push event will also return the value without needing to create a data element.  The only limitation is it only applies to the ACDL extension event triggering the rule.  I wrote a little write-up guide that goes through some examples as well and includes a cheatsheet that might be helpful: https://www.andylunsford.com/blog/tips-tricks-for-using-the-adobe-client-data-layer-extension/


Thanks Andy!