Developer Documentation
This page covers advanced topics for both site developers and Adobe Tags extension developers.
Site Developers
There are numerous settings that can be overwritten dynamically via data elements or have callbacks. This section covers these various scenarios and how your code should behave.
Dynamic Checkboxes
Acronym has made every effort to provide as much flexibility for developers to dynamically change things. Almost every setting allows for you to use a data element to set the value, or in the case of checkboxes, dynamically check or uncheck them. You may want to do this because you need to enable a certain feature or account based on the page's data layer, user's account type, etc.
Use Case
We want to prevent an event from firing if the visitor has been identified as an internal employee. This information is passed in the data layer, as follows:
We could then setup a few data elements within Adobe Tags to grab the account type, and if they are internal or not:
Data Element Name
Data Element Type
Data Element Value
account_type
Core / JavaScript Variable
dataLayer.account.type
account_type_internal
Core / Custom Code
return _satellite.getVar("account_type") === "internal";
Then, within the rule, we'd set the enabled checkbox for the account(s) to use the account_type_internal
data element:
Custom Code
Your code will be wrapped in a function() { }
already, so no need to add this like you would with other tag managers, like Google Tag Manager. Additionally, the extension will wrap your code in a try { } catch() { }
to ensure no errors stop the code execution on the page.
Adobe Tags Extension Developers
Warning: This is currently considered an experimental feature within the gtag extension. If you plan on creating an extension that utilizes the shared extension, please reach out to launchsupport@acronym.com so Acronym can work with you to ensure success.
You can then call the gtag
function like you would normally:
Last updated
Was this helpful?