5/3/2019 - 4:32 PM

Google Tag Manager

Google Tag Manager

Preview Mode

Turn this on to enable a GTM console debugging tool which will be available on any site that has the GTM code installed.


This is a GTM object. You can add data here which will the be available to GTM.

 foo: true,

Google Tag Manager dashboard

To add the data you pushed to the dataLayer you first need to assign it to a variable.

  1. Select Variables from the sidebar.
  2. Select Data Layer Variable.
  3. Enter the key from the data you pushed to dataLayer in the Data Layer Variable Name field. In the code example above that would be foo.
  4. That data is now available to use in triggers etc.