Sending events from web
Last updated
Was this helpful?
Last updated
Was this helpful?
From your web app, you can collect information to build out a user profile, as well as send custom events to your mixpanel project. This can be done by using mixpanel's SDK.
npm install mixpanel-browser
Once installed, configure the SDK to start tracking events by initialising:
Once this is initialized, you can identify and define attributes for users of your platform. This will populate their user profile in mixpanel, allowing you to track and gather insights on their user journeys through the platform:
You are also able to track events from your web app. An example is shown below:
To start sending data, into your project:
An example of how you might want to sync user profile data to mixpanel can be found in our . You can also follow mixpanel's documentation on .
You can follow to learn more about how to send web events from your web application.