Lesson 15 of 15
Variables That Shape Data: Recap And Verify
Recap every variable, then check your whole container in one pass.
Every lesson here was a different way to get a clean value into a tag: read it (dataLayer, DOM, cookie, storage), or transform it (Custom JS, Lookup, RegEx). That's most of the variable work you'll ever do.
Export your container and verify the whole module below. The variable lessons check that the right variable type exists; the dataLayer and order-reshape lessons also check their trigger.
What you covered
- Data Layer Variables: Dot-notation Data Layer Variables read nested keys (user.plan, cta.id).
- Scrape Data From The DOM: DOM Element variables read values that live only in the markup.
- Normalize DOM Data: A Custom JS variable turns a messy price string into a clean number.
- Lookup Table Variable: A Lookup Table maps an input (Page Path) to an output (category).
- RegEx Table Variable: A RegEx Table buckets values by pattern, with a catch-all last.
- 1St-Party Cookie Variable: A 1st-Party Cookie variable reads a cookie (ht_demo).
- LocalStorage & SessionStorage: Custom JS variables read localStorage and sessionStorage.
- Reshape Data For GA4 (Custom JS): A Custom JS variable maps a raw order into GA4's items array.
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