Skip to main content

Tracking Events

Track events and event properties in your web application

Nudge provides a track method to track user interactions in your application. You can also send event properties with the track method.

note

To see the name, email, and phone number of the user in Nudge's dashboard, make sure to pass these properties outside the props object.

await nudge.track({ event: "event_name" });

You can also add event properties for analytics and make segments of users based on their properties and actions for personalized experiences.

await nudge.track({
event: "event_name",
properties: {
product: "Fortune Cookies",
quantity: 5,
countryOfExport: "US",
},
});