SDK

Analytics

In this page we will show you how you can quickly track events in your app. This can be extremely useful if you want to measure certain views, usage of certain features or pretty much anything in your app.

If you wish to visualize the data generated by these events, you can subscribe the Reports add-on feature of Notificare. This feature will allow you to create time series charts where we break down these metrics for you.

In your app you simply need to invoke the following method, whenever you want to measure something:

1
2
3
4
5
6
try {
  await notificare.logCustomEvent("LOGINVIEW", null);
  //Handle Success
} catch(e){
  //Handle Error
}

This would created an event of type re.notifica.event.custom.LOGINVIEW.

Additionally, you can also store more data with your events by simply include it whenever you register the event:

1
2
3
4
5
6
try {
  await notificare.logCustomEvent("LOGINVIEW", {myKey1: "My Value 1", myKey2: "My Value 2"});
  //Handle Success
} catch(e){
  //Handle Error
}