Track
Learn about the methods for tracking user activity.
Track Events / Views
The track()
method tracks all events and page views, as shown in the following example:
tealium.track("EVENT_NAME", {"KEY": "VALUE"});
Track Visitors
If your application tracks user activity and you want to associate events with a visitor, include the tealium_visitor_id
attribute in the data object as shown in the following example:
var myVisitorId = myVisitorIdFunction();
tealium.track("page_view", {
"tealium_visitor_id" : myVisitorId,
"some_key" : "KEY"
});
This event attribute uniquely identifies the current user, either anonymously or with a personal identifier such as an email address.
This page was last updated: January 7, 2023