Creating variables

  1. Once logged in to Google Tag Manager (GTM), clickVariables from the menu on the left side of the page.

    Google Tag Manager menu.

  2. In the User-Defined Variables section, click New.

    User_Defined Variables.

  3. Replace Untitled Variable with 'NebulaCX_gaEventAction'.

    Untitled Variable.

    The page will now appear as follows:

    Variable 'Nebula CX_gaEventAction'.

  4. Click the center brick icon and select variable type Data Layer Variable.

    Data Layer Variable.

  5. In the Variable Configuration section, enter 'gaEventAction' in the Data Layer Variable Name field. Then click Save.

    Data Layer Variable Name.

  6. Confirm that the new variable appears in the list in the User-Defined Variable section of the page.

    New variable.

  7. Repeat steps 2-6 using the following information:

    Table 1. Data Layer variables
    User-defined variableData Layer variable name
    NebulaCX_gaEventCategorygaEventCategory
    NebulaCX_gaEventValuegaEventValue
    NebulaCX_gaEventLabel gaEventLabel