How to create a data element for page name and other attributes and How to map it by using the Adobe Client Data Layer? | Community
Skip to main content
New Participant
June 8, 2021
Question

How to create a data element for page name and other attributes and How to map it by using the Adobe Client Data Layer?

  • June 8, 2021
  • 1 reply
  • 2465 views

Hi Guys,

 

I've used Json data layer and have to switch to Adobe Client Data Layer but got stuck.

 

How to create a data element for page name and other attributes?

How to map the created data element by using the Adobe Client Data Layer?

 

Since, I'm a beginner in Adobe Client Data layer, I don't know how/where to start this ACDL Data layer.

 

I've tried searching on google but couldn't got a solution.

 

Any suggestions appreciate.

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

1 reply

yuhuisg
New Participant
June 9, 2021

Let's say you have the following code in your web page:

 
var adobeDataLayer = adobeDataLayer || []; adobeDataLayer.push({ pageInfo: { pageName: 'About us' }, });

Then, you can create a data element like so:

Adobe Client Data Layer > Data Layer Computed State

Path: pageInfo.pageName

When the above code runs in your web page, your Launch data element will return "About us".

You can then use that data element in your Launch components. E.g. in the Adobe Analytics extension's configuration, you could set the Page Name field to use your data element.

Hope that helps you get started!

New Participant
June 10, 2021

Thanks for the suggestion yuhuisg.

 

But I'm a beginner on the Adobe Client Data Layer. So I don't know where to start this ACDL.

 

On the website the ACDL code has implemented and I suppose to create the data element and to map it. Is there something like any tutorials or step by step guide for ACDL beginners?