Track
Learn about the methods for tracking user activity.
Track Views
The trackView()
method tracks screen views, as shown in the following example:
Tealium.trackView("VIEW_NAME", {"KEY": "VALUE"});
If multiple instances of Tealium are running, use the trackViewForInstanceName()
method, as shown in the following example:
Tealium.trackViewForInstanceName("INSTANCE", "SCREEN_NAME", {"KEY": "VALUE"});
Track Events
The trackEvent()
method tracks non-view events, as shown in the following example:
Tealium.trackEvent("EVENT_NAME", {"KEY": "VALUE"});
If multiple instances of Tealium are running, use the trackEventForInstanceName()
method, as shown in the following example:
Tealium.trackEventForInstanceName("INSTANCE", "EVENT_NAME", {"KEY": "VALUE"});
This page was last updated: January 7, 2023