Track Events
Overview
This step introduces the track
method, which allows you to see how your users are using your product.
Use the track method to track events on behalf of your users. Add this code snippet to basic events like "Sign Up" and any additional events that may track the core features of your product.
Code
Replace Sign Up
with a unique identifier for the event. Passing additional information is possible using the properties object.
mixpanel.track('Sign Up', {
'Signup Type': 'Referral'
})
🎉 Congratulations, you've tracked your first event! You can see it in Mixpanel via the Events page (opens in a new tab).
More resources:
Was this page useful?