Event Callbacks

In order to track when the Checkin.com sign-up flow has been opened or closed, there is a callback called regilyEventCallback.

The callbacks have two data fields:

  • data.action indicates that the module was opened (open-module) or closed (close-module)
  • data.flowStatus indicates if the user has gone through the full flow

If you want to track the regilyEventCallback, you should set up a listener and capture the data just like you have already done with the regilyDoneCallback.

// Listen for regilyEventCallbacks
Object.defineProperty(window, "regilyEventCallback", {
  value: function(data) {
    console.log(data)
		 if (data.action === 'close-module' && data.flowStatus === 'complete') {}
      // A close event has been triggered and "flowStatus" indicates the user
      // has gone through the full registration. Time to re-direct. 
    }
  }
})