ctm.customStats

The method of JS Bridge functionality is intended to collect slide statistics after actions in native windows on a slide on various devices and CLM presentation components.

Query Format

ctm.customStats(slideName)

The slideName line should be Latin, 40 characters max, and without blank spaces.

  • Requesting this method, CT Mobile creates an Application Stats record with the Slide Stats record type where it keeps records of view time, likes, displays, etc. until ctm.customStats with a different slideName is requested or the CLM presentation display mode is closed.

  • The slideName value will be stored in the File Name field.

  • If the method with the same slideName is called again, CT Mobile must append the previously created Application Stats record.

Handler

Use a handler function to describe the output format of the query results, e.g., to display the results of operations or method errors for debugging purposes.

ctm.customStats(‘main_page’)
ctm.customStats('my_welcome_screen', function(response){
    console.log('Result', response);
})

The results:

{
    "success": true,
}
``