This sample website explains how you can use mixpanel to track user activities on your website
These will be the steps
- Create an account on mixpanel.
- You will get an installation script for every language, I am using JavaScript here.
- Add that script just above your closing head code.
Now its installed, for documentations, visit: Official Docs
Adding a few in my code
- Track website loading
function onload(){ mixpanel.track("Website Loaded") }