What kind of user-defined variable should you use to track the URL of a webpage in Tag Manager?
Choose an answer
Tap an option to check your answer.
Correct answer: URL variable.
Why this is the answer
The URL variable in Google Tag Manager is specifically designed to extract components of the current page's URL, including the full URL, hostname, path, fragment, or query. This makes it the most direct and appropriate choice for tracking the URL of a webpage. A Page Path variable only captures the path component of the URL (e.g., /products/item1), not the full URL. Click Classes is a built-in variable that captures the CSS classes of a clicked element, which is irrelevant for tracking the page URL. A DOM element variable extracts text or an attribute from a specific HTML element on the page, which is not the standard or most efficient way to retrieve the page's URL.
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