ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 39 - AD0-E207 discussion

Report
Export

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
Answers
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
Answers
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
Answers
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
Answers
D.
Via DOM scraping initialized by a custom external JavaScript file
Suggested answer: B

Explanation:

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.

asked 02/10/2024
Maher Khamessi
30 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first