- TLC Home Home
- Discussions & Ideas Discussions & Ideas
- Product Guides Product Guides
- Knowledge Base Knowledge Base
- Developer Docs Developer Docs
- 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 are either global or local, meaning they are applied to all tags globally or to individual tags. In iQ Tag Management, this setting is called Scope.
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
There are two other global scopes called "Pre Loader" and "DOM Ready" that are used for more advanced scenarios. Also, within the "All Tags" scope there is an execution setting that provides more granular control for running tags before load rules or after all tags are loaded.
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-2022