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

Used to track activities.

Params:

  • action: any string that describes the action (no spaces)

  • options

    • category: the event category

    • value: a numeric value representing the event

    • label: a string describing the action

    • bundleId: 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