Events
Last updated
Was this helpful?
Last updated
Was this helpful?
Netmera offers a complete set of trackable events, giving you valuable insights into user behavior and app performance. These events fall into two main categories: Standard Events, which include Automated and Pre-defined Events and Custom Events.
Detailed Event Definitions:
For detailed information on event definitions, please consult our User Guide.
Netmera's Automated Events begin tracking automatically upon SDK integration—no further setup is required. These tracked events include:
App Installs
App Opens
Push Receipts (requires dashboard configuration)
Push Opens
Log Events
Time in App
Geofence Enter/Exit (requires geofence setup)
Web View Actions
Pre-defined Events are built-in, ready-to-use events that you can easily integrate into your application. These events come with pre-written code examples to simplify implementation. You can trigger these events using the provided sample code patterns:
Custom Events provide flexibility beyond the standard and pre-defined options to allow you to track specific user interactions and behaviors within your application.
Step 1: Define the Event in the Netmera Panel
Go to the Netmera Panel and navigate to Developers > Events > Create New Event section.
Create a new event and specify the event parameters.
Set parameter types, define mandatory fields, and configure arrays if required.
Refer to the Creating Custom Events guide for detailed instructions.
Step 2: Import the Generated Code
After creating the event, Netmera generates a code snippet.
Import this generated code into your project to integrate the custom event.
Step 3: Extend the Event Class in Your Code
Choose a built-in event subclass or extend from NetmeraEvent
.
Define event parameters and ensure they match the panel setup.
Step 4: Fire the Event
Make sure the event is correctly set up in the Netmera Panel before triggering it.
Implement the event call in your application code.
Ensure Mandatory Parameters Are Included
If a required parameter is missing, the request will fail with a bad request error. Always send mandatory parameters to avoid rejection.
When you create an event on the panel, you will receive a code. You are supposed to import the code the panel created for you in your project. Below you will see examples.
Revenue tracking records and reports user purchase transactions. For example, if a user clicks a push notification, opens your app, and makes a purchase during that session, you can log this as revenue data. This helps measure how effective the push notification was in driving revenue.
Use event.setRevenue()
to assign a revenue value to any event (custom or standard).
Revenue data appears in push reports only if the user opens the app after clicking the push notification.
Any events (like purchases) that happen during the session triggered by the push click are linked to that notification in your reports.
If a user makes a purchase after clicking a push notification and opening your app, send the revenue data to Netmera like this:
If you have multiple apps in the Netmera Panel, you can import events from one app to another. This lets you reuse events across apps efficiently.
Go to the Developers section and select Events.
Click Import Event Definition.
Choose the Application Name from which you want to import events.
Select the specific custom event(s) you want to import.
Click the Import button in the Action section.