Tracking

Status events are triggered throughout the registration and can be captured for tracking purposes

In this section, you will learn how you can use the Checkin.com callbacks to track the user journey for internal purposes.

After each completed step of the registration process, the module emits a callback with the updated data. These callbacks can be used to track the progress and behavior of registrations.

📘

Don't have an internal tracking system?

No worries - the Checkin.com Framework has automated tracking built-in! Reports with key metrics will be shared with you on a monthly basis.

If you can't access a method, make sure you have loaded the SDK correctly.

Event Methods

setOnAny

Allows setting a handler method that will capture Events triggered during the registration.

The method can be called with a set of params depending on the use case.

window.checkin.events.setOnAny(({action, flowStatus, type, content, ...rest}) => {
      console.log('Event', flowStatus)
    })

setOnOpenModule

Allows setting a handler method that is triggered when the module is opened.

In this example, the method is called with boolean flowCompleted as an argument.

window.checkin.events.setOnOpenModule(({ flowCompleted }) => {
  console.log('Module open', flowCompleted)
})

setOnCloseModule

Allows setting a handler method that is triggered when the module is closed.

In this example, the method is called with boolean flowCompleted as an argument.

window.checkin.events.setOnCloseModule(({ flowCompleted }) => {
  console.log('Module closed', flowCompleted)
})

setOnScreenStart

Allows setting a handler method that is triggered when a user has proceeded to a new screen during the registration.

window.checkin.events.setOnScreenStart(({ screen, ...rest }) => {
  console.log('Screen Start', screen)
})