- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
Extensions provide a user-friendly interface to add customizations to your data layer and tags without the need for coding. Extensions are used for a variety of purposes, such as modifying data layer values, setting cookies, and even setting up click tracking.
In this article:
The effects of extensions and when they run are based on the scope they’re assigned to.
For example, the default scope After Load Rules will run the extension after the load rules are evaluated. This occurs before the browser signals that the page is DOM Ready and before tags run.
Additional information about available scopes can be found in this guide.
To get familiar with extensions, it is important to understand the order of operations of the main components of iQ Tag Management and when the "All Tags" scope occurs. The following is a simplified order of the operations that shows when the data layer is processed by each component.
utag_data
utag.js
utag.js
) runs the following:
There are additional scopes (for example, Pre Loader, DOM Ready) that are used for more advanced scenarios.
Additional details about these settings can be found at the end of this guide.
Now that you know a little about extensions, you can set up your first extension and see it in action.
A common use for extensions is to set a default value for a data layer variable. This requires setting the value of a variable – but only if it does not already have a value. In this step you will use the Set Data Values extension to set page_name
to the value of a built-in variable named document title
– but only if page_name
does not have a value.
Use the following steps to add this extension:
Default Page Name
to identify your extension.Page Name
variable.document title
.Page Name
variable.That's it! Your extension is configured. This extension ensures that if your data layer does not contain a value for the page_name
variable, then the value of document title
will be used instead. This is just one example of an extension. Be sure to explore the other extensions.
The next step is to learn about of saving and publishing your work.
Copyright All Rights Reserved © 2008-2023