How to set up your first project on Mixpanel
Setting up your first Mixpanel project involves creating an account, configuring your project settings, and implementing the tracking code. The process typically takes 10-15 minutes and requires basic technical knowledge.
Prerequisites
- A Mixpanel account
- Basic understanding of web analytics
- Access to your website or application code
- Admin permissions for your organization
Step-by-Step Instructions
Create your Mixpanel account and organization
Set up your first project
Choose your implementation method
Install the Mixpanel tracking code
<head> section of every page you want to track. The code looks like:<script type="text/javascript">
(function(c,a){if(!a.__SV){var b,d,h,e;window.mixpanel=a;a._i=[];a.init=function...
</script>Save and deploy your changes.Verify tracking installation
Configure your first events
mixpanel.track('Button Clicked', {'button_name': 'Sign Up'}); Set up key events such as sign-ups, purchases, or feature usage based on your business goals.Set up user profiles and properties
mixpanel.identify('user_id'); and set user properties using mixpanel.people.set({'$email': 'user@example.com', '$name': 'John Doe'}); This enables cohort analysis and user journey tracking.Create your first report
Common Issues & Troubleshooting
Events not appearing in Live View
Check your browser's developer console for JavaScript errors. Ensure the tracking code is placed in the <head> section and your project token is correct. Try disabling ad blockers which may block analytics scripts.
Duplicate events being tracked
Verify the Mixpanel code is only included once per page. Check for multiple implementations (direct code + Google Tag Manager). Use mixpanel.track() calls sparingly and avoid placing them in loops.
User properties not updating
Ensure you're calling mixpanel.identify() before mixpanel.people.set(). Check that your project has People Analytics enabled in project settings. Verify the user ID is consistent across sessions.
Data appears in wrong timezone
Project timezone is set during initial setup and cannot be changed. Create a new project with the correct timezone if needed. For temporary fixes, adjust report date ranges manually to account for timezone differences.