Expand my Community achievements bar.

SOLVED

Subject: While Designing DataLayer, do we need to include PageURL under page info ?

Avatar

Level 2

I'm in the process of designing a Technical Specification Document (TSD) and when i checked couple of websites as a reference

I don't see "Page URL" in their data layer, how ever on network calls I'm able to see, the URL is getting passed and mapped to a defined, dedicated variable

how it is possible?

 

meanwhile 

can i include pageURL in my data layer structure ?

digitalData.page.pageInfo.pageURL

is this fine?

 

Please help to let me know

 

Thanks & Regards,

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Remember that if you are using a tag management system, you can for instance easily use the document.URL from the browser, using JavaScript.

 

So, even without having it explicitly set in the data layer it will still be a simple task to map it in the Tag Manager to the tracking call

Cheers from Switzerland!


View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Remember that if you are using a tag management system, you can for instance easily use the document.URL from the browser, using JavaScript.

 

So, even without having it explicitly set in the data layer it will still be a simple task to map it in the Tag Manager to the tracking call

Cheers from Switzerland!