Don't have one? Create one ↗
← All courses
Lessons in this module

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

Check your knowledge

A quick quiz on what this module taught. Pass it and it counts toward your course certificate; you can retake it any time.

5 questions. Answer all of them, then submit; you need 4 of 5 to pass.

  1. 1. The site pushes { user: { plan: "pro" } }. How does a Data Layer Variable read the plan?
  2. 2. A DOM scrape returns the price as the string "$1,299.00", but your tag needs the number 1299. What do you reach for?
  3. 3. You want to bucket any path under /blog/ as "content" and any path under /docs/ as "support", with everything else labelled "other". Which variable fits?
  4. 4. A product's SKU appears only in the page markup, in an element with a stable id, and nothing pushes it to the dataLayer. How do you get it into a tag?
  5. 5. The site exposes a raw order object whose line items do not match GA4's shape. Your GA4 tag needs a proper items array. What is the pattern?

Answer every question to submit.

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

Stuck? Download the reference container for this module and import it in GTM (Admin → Import Container) to compare.

0 of 15 lessons complete
Was this lesson helpful?