How do I track custom events in my app Analytics? | Aquro Help Center

Once analytics have been activated in your app, tracking custom events is easy. You can either use Visual Coding or JavaScript to accomplish this. This article will cover both.

When tracking an event you first need to specify the name of the even and then you may also specify a tag.

If your event could happen in different parts of your app you may want to use tags to identify where this event was tracked.

E.g. If you want to track when someone clicks on a button in your app and to see which button is clicked the most you may choose to set the name of the event to ButtonClick and then specify the tag to be the name of the button. Then you will easily be able to follow which button was pressed the most frequently in your app.

Tracking an event with Visual Coding
Inside your Visual Coding Script add the Cloud.Analytics.Track manager to your script. Set the Event property to the name of the event and set the Tag property to the tag.

Tracking an event with JavaScript
To track an event with JavaScript simply use the Page.Analytics.Track() method as shown below.

Page.Analytics.Store("EventName","TagName");