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:

Notificare.logCustomEvent("LOGINVIEW", null).then((result) => {
    //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:

Notificare.logCustomEvent("LOGINVIEW", {
    myKey1: "My Value 1",
    myKey2: "My Value 2"
}).then((result) => {
    //Handle success
}).catch((e) => {
    //Handle error
});