How to set up event properties on Mixpanel
Setting up event properties in Mixpanel involves defining custom properties that track specific user actions and behaviors. You'll need to configure these properties in your code implementation and then manage them through the Mixpanel dashboard for analysis.
Prerequisites
- Active Mixpanel account
- Admin or Owner permissions
- Basic understanding of event tracking
- Access to your application's codebase
Step-by-Step Instructions
Access Your Mixpanel Project
Define Your Event Properties Schema
Implement Event Properties in Your Code
mixpanel.track('Button Clicked', {'button_name': 'signup', 'page': 'homepage', 'user_type': 'premium'});For Python:
mp.track(user_id, 'Button Clicked', {'button_name': 'signup', 'page': 'homepage'})Set Up Super Properties
mixpanel.register({'app_version': '2.1.0', 'platform': 'web'}) to automatically include these properties with all future events for that user session.Configure Property Data Types
Test Your Event Properties
Create Property Descriptions and Tags
Verify Data in Reports
Common Issues & Troubleshooting
Properties not appearing in Mixpanel dashboard
Check that events are being sent correctly using Live View. Verify your project token is correct and that property names match exactly between your code and Lexicon (case-sensitive).
Property values showing as wrong data type
Ensure you're sending the correct data type from your code. Go to Lexicon and update the property's data type setting. Note that changing data types only affects new incoming data.
Super properties not being included with events
Verify that mixpanel.register() is called before tracking events. Check that you're not accidentally clearing super properties with mixpanel.unregister() or mixpanel.clear_super_properties().
Events sending but properties missing values
Add null/undefined checks in your code before tracking events. Ensure all required properties have fallback values and that property names don't contain special characters or spaces.