- TLC Home Home
- Discussions & Ideas Discussions & Ideas
- Product Guides Product Guides
- Knowledge Base Knowledge Base
- Developer Docs Developer Docs
- Education Education
- Blog TLC Blog
- Support Desk Support Desk
When adding a tag to your profile, it's helpful to know how to check what events that tag is enabled for. In some cases you may need to edit that setting to fit your particular use case. Out of the box, tags can be enabled for 'view' events (e.g. a page loading) and also 'link' events (e.g. someone clicking on a link).
Understanding the basic building blocks of Tealium's tracking functions will help provide context for the following article. In a nutshell, Tealium handles calls in two main ways - 'view' and 'link' events. For JavaScript implementations, utag.js will by default will fire a 'view' event when a pages is loaded. Any event beyond that will need to be called using the functions utag.view() or utag.link().
You will edit the tag template to add the cability to process link events using the following steps:
In the Tag Configuration dialog, scroll down and click Advanced Settings:
Then click Edit Template:
Amend as necessary
In the tag template dialog, search for ut.ev. If your template contains only
ut.ev = { 'view' : 1 } ;then the tag is only configured to fire on 'view' calls:
You can easily update this to fire on 'link' events by expanding the JavaScript code as follows:
Save and Publish.
Your tag is now capable of firing on 'link' as well as 'view' calls.
Copyright All Rights Reserved © 2008-2021