PRODUCT
Follow

The following article details the Tag Manager integration with Google Tag Manager (GTM).

Sizmek is currently testing Tag Manager with other tag management systems and will release those integration instructions when testing is complete.

Google Tag Manager (GTM)

Configure and Implement Tag Manager with GTM

Tag Manager can be integrated with GTM.

Procedure
  1. Sizmek Sizmek customer success manager configures and generates the Tag Manager code in Sizmek Ad Suite.

  2. Sizmek Sizmek customer success manager sends the Tag Manager code to the GTM administrator.

  3. In the GTM, the administrator opens the account and creates a new tag.

  4. The administrator names the tag Tag Manager and selects Custom HTML for the tag type.

  5. The administrator pastes the Tag Manager code, provided by Sizmek, into the HTML box.

  6. The administrator selects the Support document.write check box.

  7. The administrator selects the default All Pages trigger in the Triggering section.

Advanced Scenarios

You can pass variables to Tag Manager to use for sales conversion activities and dynamic retargeting activities.

Procedure
  1. Administrator creates a new User-Defined Variable for each parameter to be collected.

    1. Give the variable a name.

    2. Select a variable type (either Data Layer Variable, JavaScript Variable or URL Query String Param) and set the Data Layer or global variable name.

  2. Reference this user-defined variable by name in the appropriate parameter portion of the Tag Manager code using the following syntax:

    "parameterName":"{{variableName}}"

  3. Follow the steps under Configure and Implement Tag Manager with GTM.

Fire Tag Manager onClicks and Buttons within GTM

Procedure
  1. In GTM, the administrator creates a User-Defined Variable.

    1. Give the variable a name.

    2. Select the Auto-Event Variable as the variable type.

    3. Select Element ID from the Variable Type list, and click SAVE.

  2. In GTM, administrator creates a new tag.

    1. Name the Tag TM_generateRequest and choose Custom HTML as tag type.

    2. Paste the following into the HTML box:

      <script> versaTagObj.onready(function() { versaTagObj.generateRequest("http://www.{{Page Hostname}}/{{VariableName}}");     }); </script>

      Note

      Notes:

      • GTM automatically replaces {{Page Hostname}} with the site’s domain (and subdomain, if applicable).

      • The reference {{VariableName}} is used to illustrate the example. The actual value within the brackets {{}} should be replaced by the name given to the variable in step 1. For example, If the variable was named SubmitButtonClick, then the reference to it in the generateRequest method would be:versaTagObj.generateRequest("http://www.{{Page Hostname}}/{{SubmitButtonClick}}");.

  3. Under Advanced Settings > Tag Sequencing do the following actions:

    1. Select Fire a tag before TM_generateRequest fires and select Tag Manager as the setup tag.

    2. Select Don’t fire TM_generateRequest() if Tag Manager fails.

      This will ensure that TM_generateRequest() only fires after Tag Manager has successfully fired.

  4. Add a trigger to initiate the firing of the TM_generateRequest tag, commonly on user clicks:

    1. Add a new trigger using All Elements type.

    2. Select Some Clicks.

    3. Define firing conditions based on the elementID (taken from the Page source/HTML tag properties) that is stored by the variable created in step 1.

    4. Select Save.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments