Loading
The Trailblazer Community is now read-only Read More
Create Data Layer Variables in Google Tag Manager (Managed Package)

Create Data Layer Variables in Google Tag Manager (Managed Package)

For the managed package runtime, creating data layer variables lets you create fewer and more versatile event tags.

Managed Package app icon This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.

For additional information, see The data layer.

  1. From the Google Tag Manager account page, click Variables.
  2. Under User-Defined Variables, click New.
  3. Change the variable name at the top of the page from Untitled Variable to Event Category Variable.
  4. Click Variable Configuration and choose Data Layer Variable as the type.
  5. In the Data Layer Variable Name field, type category.
  6. Click Save.
  7. Repeat these steps to create more variables of type Data Layer Variable with the following settings:

    Variable Name

    Data Layer Variable Name

    Event Action Variable

    action

    Event Label Variable

    label

    Event Value Variable

    value

 
Loading
Salesforce Help | Article