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.
Tag Manager can be integrated with Adobe Dynamic Tag Manager (DTM).
-
A Customer Success Manager configures the Tag Manager in AAS.
-
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" });
-
A Customer Success Manager sends the edited Tag Manager code to the DTM administrator.
-
In DTM, the administrator does the following:
-
Open the account.
-
Select Open Rules > Page Load rules > Create New Rule.
-
Enter a name for the rule.
-
If Tag Manager requires activity parameters, use the metadata setting to map these parameters.
-
Under Conditions, set the Tag Manager rule to trigger at Bottom of Page.
-
Leave Rule Conditions empty so Tag Manager always fires without a condition.
-
In the Javascript/Third Party Tags section, select Non-sequential.
-
Click Add new script and perform the following actions:
-
Name the tag AAS_AAS_Tag_Manager.
-
Select Type > Non-sequential Javascript.
-
Paste the code from step 2, and click Save.
-
-
-
If your DTM has any approvals, make sure the rule is fully approved, set to active, and published to live status.
-
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.
In DTM, the administrator creates a new event-based rule.
-
Open Rules > Event Based Rules > Create New Rule.
-
Name the new rule.
-
Under Conditions, do the following actions:
-
In the Event section, for Event Type, select click.
-
In the Tag section, for Element Tag or Selector, set the relevant CSS selector for the target element.
-
-
Leave Rule Conditions empty to that the rule always fires without a condition.
-
In the Javascript/Third Party Tags section, select Non-sequential .
-
Click Add new script and enter a name for the tag.
-
Select Type > Non-sequential Javascript.
-
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.
-
Click Save Code.
-
If your DTM has any approvals, make sure the rule is fully approved, set to active, and published to live status.
-
Make sure Tag Manager is not included in any DTM rule groups that are scheduled for only specific times/dates.
Comments