Once your application is loaded (and utag.jsis loaded), trigger utag.view() tracking calls in your page code. These calls are typically triggered at the DOM-ready event or any event that causes a content view refresh. Learn more about the available settings to adjust the behavior of utag.js.
The utag_data object declared on initial page landing is not re-purposed with these calls. To use data from the initial page landing, it needs to be re-declared and passed again in the function call.
Global and Tag-scoped Extensions are executed during these calls. Pre-loader and DOM Ready extensions are not executed during these calls.
Track views in single-page applications with the utag.view() function.
The following utag.view() function call demonstrates how to pass data using key-value pairs:
Track links and events in single-page applications with the utag.link() function.
If jQuery is installed you have the option to use the jQuery onHandler extension. This extension is configurable for specific event bindings to trigger the utag.link() and utag.view() functions. This allows you to avoid hard-coding the tracking logic in your side code.
The following utag.link() function call demonstrates how to pass data using key-value pairs: