Events in web apps
Events help you to track all the user actions within your app. For example, sign up, purchase made, feedback given and so on. Events analytics and the associated data helps you understand your users.
- Use the below method to capture specific events within your application, such as clicks, submissions, or any user interactions.
Copiedapptics.trackEvent(eventName, groupName, jsonObj);
- eventName (string) - Mandatory: The name of the event you want to track (e.g., "ButtonClicked").
- groupName (string) - Optional: A category or group name for the event (e.g., "UIInteraction").
- jsonObj (object) - Optional: Additional data related to the event in JSON format (e.g., {buttonID:'submitBtn'})
Example
The below example, logs a button click event, categorizing it under "UIInteraction" and including additional details about the specific button clicked.
Copiedapptics.trackEvent('ButtonClicked', 'UIInteraction', { buttonID: 'submitBtn' });