appActionMetricsHandler()

    appActionMetricsHandler()


    Article summary

    appActionMetricsHandler()

    Logs an arbitrary metric to indicate something happening in the X1 Application.

    Signature:

    $badger.appActionMetricsHandler(action, args)

    Parameters:

    parameterdescriptiondata typerequired?
    actionThe name of the action which was successfully completedStringYes
    argsOptional arguments to include. The individual properties in args must be primitives (string, numeric or boolean). Nesting of properties is not supported.ObjectNo

    Return Values:

    None.

    Usage Example:

    $badger.appActionMetricsHandler('Email login prompt displayed to the user.', {
        userChoice: 'ok', 
        emailIdChoice: 'first_email'
    });
    

    Mandatory integration:

    Must be called whenever a user is interacting with content (playing a game, listening to music, watching a video). See the App Requirements for more detail.


    Was this article helpful?