CDPGuidesSupport

How the Tag Manager Works

How tags, triggers, variables, and publishing fit together in the Ours Privacy Tag Manager.

Use this page for a one-screen mental model of the Tag Manager. If you have used Google Tag Manager, skip it: the concepts are the same.


The four pieces

  • Variables read a value from the page: the URL, the clicked element, a cookie, or a key in the data layer.
  • Triggers decide when something happens: a page view, a click, a form submit, a custom event.
  • Tags are what happens: send an event to Ours Privacy, identify the visitor, or run custom HTML.
  • Publishing makes your draft changes live. Until you publish, visitors see the last published version.

A tag fires when one of its triggers fires. Triggers can use variables in their conditions, and tags can use variables in their event properties. One trigger can fire many tags.

The Tag Manager container navigation with Tags, Triggers, Variables, and Folders, next to a Workspace Changes table of draft tags, triggers, and variables that are not yet published.

Example

To track newsletter signups:

  1. Create a Form Submit trigger with a condition on the form ID.
  2. Create a Track tag named Newsletter Signup and attach that trigger.
  3. Add the visitor's email as an event property using a DOM Element variable.
  4. Publish.

Next steps

How is this guide?

On this page