Analytics
Analytics allow you to track actions performed by the user that will be then grouped and presented to the event organizers as Moment-specific reports
track(): void
track(): void
Used to track activities.
Params:
action
: any string that describes the action (no spaces)options
category
: the event categoryvalue
: a numeric value representing the eventlabel
: a string describing the actionbundleId
: the name of you Moment code
document.querySelector("#testButton").onclick = function(event) {
const action = 'test_button_click';
let options = {
category: 'generic_click_event',
value: 1,
label: 'Test Button clicked',
bundleId: 'com.stagecast.demo_example'
};
SDK.analytics.track(action, options);
}
Last updated
Was this helpful?