PRODUCT
Follow

Configure and Implement Tag Manager with DTM

Tag Manager can be integrated with Adobe DTM.

Procedure
  1. The Sizmek customer success manager configures the Tag Manager in Sizmek Advertising Suite.

  2. The Sizmek customer success manager takes the the following code and replaces 123456789 with the relevant Tag Manager ID.

    (function(e, s, t) {
      t = t || {}, t.id = e, versaTagObj = {
        $: [],
        onready: function(e) {
          this.$.push(e)
        }
      };
      var n = s.getElementsByTagName('body')[0],
      ebprotocol = window.location.protocol=="https:"?"https://secure-":"http://",
      r = s.createElement("script");
      r.options = t, r.async = !0, r.src = ebprotocol + "ds.serving-sys.com/SemiCachedScripts/ebOneTag.js?id=" + e, r.options = t, n.appendChild(r, n)
    })("123456789", document, {
      dataLayer: "SizmekDataLayer"
    });
    
    
  3. The Sizmek customer success manager sends the edited tag manager code to the DTM administrator.

  4. In DTM, the administrator opens the account, and selects Open Rules > Page Load rules > Create New Rule.

  5. Enter a name for the rule.

  6. If Tag Manager requires activity parameters, use the metadata setting to map these parameters.

  7. Under Conditions, set the Tag Manager rule to trigger at Bottom of Page.

  8. Leave Rule Conditions empty so Tag Manager always fires without a condition.

  9. In the Javascript/Third Party Tags section, select Non-sequential.

  10. Click Add new script and perform the following actions:

    1. Name the tag Sizmek_SAS_Tag_Manager.

    2. Select Type > Non-sequential Javascript.

    3. Paste the code from step 2, and click Save.

  11. If your DTM has any approvals, make sure the rule is fully approved, set to active, and published to live status.

  12. Make sure that the rule that fires Tag Manager is not included in any DTM rule groups that are scheduled for only specific times/dates.

Fire Tag Manager on Clicks and Buttons within DTM

In DTM, the administrator creates a new event based rule.

Procedure
  1. Open Rules > Event Based Rules > Create New Rule.

  2. Name the new rule.

  3. Under Conditions, do the following actions:

    1. In the Event section, for Event Type, select click.

    2. In the Tag section, for Element Tag or Selector, set the relevant CSS selector for the target element.

  4. Leave Rule Conditions empty to that the rule always fires without a condition.

  5. In the Javascript/Third Party Tags section, select Non-sequential .

  6. Click Add new script and enter a name for the tag.

  7. Select Type > Non-sequential Javascript.

  8. Paste the following code below and replace DummyURL with any string that references the element being clicked.

    versaTagObj.onready(function(){
      versaTagObj.generateRequest("http://www.DummyURL.com");
    });
    

    Note

    Note: Make sure that you communicate the selected string to the Sizmek team, so that they can set up the Tag Manager rule that fires the relevant conversion tag when the element is clicked.

  9. Click Save Code.

  10. If your DTM has any approvals, make sure the rule is fully approved, set to active, and published to live status.

  11. Make sure Tag Manager is not included in any DTM rule groups that are scheduled for only specific times/dates.

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

Comments