Track
Learn about the methods for tracking user activity.
Track Views
To track a screen view, pass a view Dispatch
object to the track()
method:
var Dispatch = tealium.utils.Dispatch;
var view = Dispatch.view('VIEW_NAME', {"KEY": "VALUE"});
tealium.track(view);
let view = new TealiumView("VIEW_NAME", new Map<string, any>([
["KEY", "VALUE"]
]));
Tealium.track(view);
Track Events
To track a non-view event, pass an event Dispatch
object to the track()
method:
var Dispatch = tealium.utils.Dispatch;
var event = Dispatch.event('EVENT_NAME', {"KEY": "VALUE"});
tealium.track(event);
let event = new TealiumEvent("EVENT_NAME", new Map<string, any>([
["KEY", "VALUE"]
]));
Tealium.track(event);
This page was last updated: August 22, 2023