SDK

Analytics

In this page we will show you how you can quickly track events in your web app. This can be extremely useful if you want to measure visits to any page, usage of certain features or pretty much anything in your web 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 web app you simply need to invoke the following method, whenever you want to track anything:

1
2
3
4
5
notificare.logCustomEvent("LOGINVIEW").then((response) => {
	//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
7
8
notificare.logCustomEvent("LOGINVIEW", {
	myValue: "SOME_DATA",
	myOtherValue: "SOME_OTHER_DATA",
}).then((response) => {
	//Handle success
}).catch((e) => {
	//Handle error
});