How are variables structured in the data layer?
Choose an answer
Tap an option to check your answer.
Correct answer: As key-value pairs.
Why this is the answer
The data layer is structured as key-value pairs, which is a fundamental concept in JavaScript object notation (JSON). This allows for organized storage and retrieval of data. For example, {'event': 'purchase', 'value': 100} shows 'event' and 'value' as keys, and 'purchase' and '100' as their respective values. This structure makes it easy for Google Tag Manager to read and use the data. JavaScript cookies are used for storing small pieces of data in the user's browser, not for structuring the data layer itself. Variable types refer to the different kinds of variables available in GTM (e.g., Data Layer Variable, URL Variable), not the data layer's structure. Containers are the top-level organizational units in GTM that hold tags, triggers, and variables.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed