Track

Once the Tealium object has been defined you can begin tracking events with the methodtrack(), which takes the following parameters:

event (required) - a name to identify the event, sent as the attribute tealium_event

data - object with event data as key/value pairs

Example tracking call:

tealium.track("my_event", {"mydata":"hello world"});

Visitor ID

If your application tracks user activity and you want to associate events with a visitor, set the tealium_visitor_id attribute in the data object. The value should uniquely identify the current user, either anonymously or with a personal identifier such as an email address.