Scenario

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).

Background Reading

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(). 

Solution

You will edit the tag template to add the cability to process link events using the following steps:

  1. Be sure the tag you want to check is added to your profile and saved:
    The tag template is not viewable until the profile has been saved.
  2. Open the tag template
    To access the tag template, first click Edit in the Tag Configuration section:
    Screen Shot 2020-10-22 at 10.24.07 PM.png










    In the Tag Configuration dialog, scroll down and click Advanced Settings:Screen Shot 2020-10-22 at 10.19.02 PM.png

     














    Then click Edit Template:Edit Template.png

     














  3. 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:Screen Shot 2020-10-22 at 10.25.47 PM.png

    You can easily update this to fire on 'link' events by expanding the JavaScript code as follows:Screen Shot 2020-10-22 at 10.27.19 PM.png

  4. Save and Publish.
    Your tag is now capable of firing on 'link' as well as 'view' calls.

Version history
Revision #:
7 of 7
Last update:
‎10-23-2020 02:07 PM
Updated by: