A company is beginning a full re-architecture of their website. They will use Adobe Launch as the tag management system. How should an Architect recommend that the data layer object be generated each time a page is requested?
A.
Via logic in the tag management system, executed on DOMReady
B.
Via server-side code and included in a <script> block in the page HTMLs <head> section
C.
Via server-side code and included in a <meta> tag in the page HTMLs <head> section
D.
Via DOM scraping initialized by a custom external JavaScript file
The best practice for generating the data layer object each time a page is requested is to use server-side code to include the data layer in a<script>block in the page HTML’s<head>section. This ensures that the data layer is available as soon as the page starts loading and can be used by Adobe Launch and other scripts. By having the data layer generated server-side, it reduces reliance on the client-side code and ensures the data is consistent and accurate for each page load.
[Reference:Adobe Launch Data Layer Guide, ]
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit