Lesson 6 of 6
Variables: Recap And Verify
Recap every variable, then check your whole container in one pass.
Five variable types, one idea: give your tags a value to read. Built-ins and Auto-Event Variables read the page and the click, Constants hold a fixed value, and URL and JavaScript variables reach into the address bar and the window object.
Export your container and verify the whole module below.
What you covered
- Built-In Page Variables: Turn on Page URL, Path, Hostname and Referrer.
- Constant Variables: Store the GA4 Measurement ID once and reference it as {{...}}.
- Auto-Event Variables: Read the data-action attribute off the clicked element.
- URL & Query Variables: Return utm_source from the query string.
- JavaScript Variable: Read window.siteData.userType directly, no dataLayer.
Verify your whole container
Built everything in this module? Export your container (Admin → Export Container, choose your workspace) and drop the JSON here. We run every lesson's check against your single export, so you can confirm the whole module in one pass. It's checked in your browser, nothing is uploaded.
Drop your container .json here
or browse · checked in your browser, nothing is uploaded