Tracking Functions
Reference guide for tracking functions provided by Tealium for JavaScript.
The following tracking functions are available:
Function | Description |
---|---|
utag.link() |
Tracks non-page views, page interactions, and other dynamic page events |
utag.track() |
Tracks either page views or events, based on the first parameter value |
utag.view() |
Tracks page views, virtual page views, and Ajax page flows |
utag.link()
Tracks non-page views, page interactions, and other dynamic page events. Calling this function triggers the corresponding vendor tracking functionality within your configured tags.
utag.link(data_object, callback, [uid_array]);
Parameter | Description |
---|---|
data_object |
A data object containing the data layer variables associated with the event. |
callback |
A function to be executed after the tracking call has completed. |
uid_array |
An array of tag UID’s to trigger. |
Using the uid_array
parameter bypasses load rules.
utag.track()
Tracks either page views or events, based on the first parameter value. Both utag.link()
and utag.view()
wrap around this function.
utag.track(event_type, data_object, callback, [uid_array]);
Parameter | Description |
---|---|
event_type |
The type of event. Set to view for page views, or link for events |
data_object |
A data object containing the data layer variables associated with the event. |
callback |
A function to be executed after the tracking call has completed. |
uid_array |
An array of tag UID’s to trigger. |
Using the uid_array
parameter bypasses load rules.
utag.view()
Tracks page views, virtual page views, and Ajax page flows. Calling this function triggers the corresponding page tracking functionality within your configured vendor tags. utag.js
automatically triggers this function on every page load.
utag.view(data_object, callback, [uid_array]);
Parameter | Type | Description |
---|---|---|
data_object |
Object | (Optional) A data object containing the attributes associated with this specific tracking call. Uses the same format and variable names as the Universal Data Object. |
callback |
Function | (Optional) A function to be executed after the tracking call has completed. |
uid_array |
Array | (Optional) An array of tag IDs. Limits the tracking call for the vendor tags specified by the UID’s in this array. |
Using the uid_array
parameter bypasses load rules.
This page was last updated: January 7, 2023