Skip to main content
Version: 1.0.0

Events

Overview

Events in Nudge represent interactions between the end-users and your application. By tracking events, such as sign_up or add_to_cart, you gain insights into user behaviors and preferences. Nudge's API and SDK facilitate the tracking of these interactions across various platforms.

Tracking an event

await nudge.track({ type: "EVENT_TYPE" });

To track an event, you can use Nudge's API or SDK. Here are examples of how to track an event across different programming environments:

Event Properties

Each event can carry additional details about the interaction through event properties. These properties enrich the event data, allowing for a more nuanced targeting and analysis.

Examples include product_category, price, and other relevant information about the interaction.

You can send event properties along with your tracking call. Here's how to include event properties in different programming environments:

await nudge.track({type:'EVENT_TYPE',
properties: <String, dynamic>{
"product": "Fortune Cookies",
"quantity": 5,
"countryOfExport":"US",
}});

Find your events in the dashboard

All the events that you send to Nudge will be visible in the events section on the side bar of your dashboard