PRODUCT

Amazon Ad Server will be sunset in Q4 2024, please visit this page (AAS offboarding information) for offboarding support resources and sunset FAQs. Details shared on that page represent the most up to date information in the Help Center, if you find disparate information in other resources please default to the information in the AAS offboarding information page accordingly.

Please note that on October 1, 2024, the ability to create new campaigns, placements and tag managers was disabled.

Follow

Note

Note: Access to this article does not require a login on Amazon Ad Server (AAS).

The article can be shared with webmasters and other users who do not have a login for AAS.

Configure and implement Tag Manager with DTM

Tag Manager can be integrated with Adobe Dynamic Tag Manager (DTM).

Procedure
  1. A Customer Success Manager configures the Tag Manager in AAS.

  2. A 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. A Customer Success Manager sends the edited Tag Manager code to the DTM administrator.

  4. In DTM, the administrator does the following:

    1. Open the account.

    2. Select Open Rules > Page Load rules > Create New Rule.

    3. Enter a name for the rule.

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

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

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

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

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

      1. Name the tag AAS_AAS_Tag_Manager.

      2. Select Type > Non-sequential Javascript.

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

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

  6. 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 AAS 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