It should only take a few minutes to get started tracking events with these three steps:
To install the library, paste the following code into the
<head> section of your website's HTML page:
Track an event
Each event you want to track is just a single line of code. Or alternatively, if you want to track user actions on your website by creating events in a visual Point & Click Editor without the help of a developer, you can use Autotrack.
Here we'll track the "Video played" event; in practice, you should figure out an event that is relevant to your business. We're also including two properties, "length" and "id". Properties describe the event you are tracking or the user who triggered the event. You can include your own properties by passing them in an object as the second argument to mixpanel.track:
Add your event tracking code to the page and refresh.
Look at your report
At this point, there should be data visible on your report. The report should look something like this:
Next Step: Create your first profile