Documentation Index
Fetch the complete documentation index at: https://mintlify.com/mixpanel/docs/llms.txt
Use this file to discover all available pages before exploring further.
Ensuring Data Quality
Poor data quality leads to misleading insights and wasted effort. The fastest way to prevent this is to treat QA and auditing as a required step in your Mixpanel implementation, not an optional one. The steps below are the must-do practices for every team to keep insights accurate and trustworthy.Always Use Separate Projects
From day one, set up two projects in Mixpanel:- Development Project → used for testing event tracking, identity management, and property values
- Production Project → where only clean, validated data is ingested
- Developers can experiment safely without polluting your production dataset
- Data teams have confidence that every event in production has been tested
QA Before You Launch
QA is not optional. Every implementation should pass through two levels of QA before production:- Code-Level QA (developer focus)
- User Flows QA (product & data team focus)
Code-Level QA (Developer Focus)
This QA allows developers to verify that individual events are firing correctly.Enable Debug Mode
Developers should enable debug mode to review requests and confirm the payloads sent to Mixpanel.- Web: view logs in the browser console
- Mobile: view logs in Xcode (iOS) or Android Studio (Android)
- Client-side errors
- API ingestion errors
- Successful ingestion
- Payloads in the ingestion requests
User Flows QA (Product and Data Team Focus)
This QA ensures that end-to-end journeys are tracked correctly.QA Tools in Mixpanel
Mixpanel provides several tools that enable you to conduct thorough QA:1. Debug Mode
Mixpanel Client-Side SDKs can be configured to Enable Debug Mode which logs any Mixpanel client-side calls to the browser console or development platforms (e.g. Xcode, Android Studio). Outside of the Client-Side SDKs, development teams should consider including code to handle error responses thrown by Server-Side SDKs, APIs, or by other tools you use to send data to Mixpanel (e.g. CDP, Reverse ETL or Cloud Ingestion scripts).2. Events Report
The Events report enables reviewing of events and their properties as they flow into your Mixpanel project. There is also a JSON mode feature which can come in handy if you are checking for data type inconsistencies.3. User Profile Activity Feed
The User Profile Activity Feed report contains all the information about a specific user that you are tracking. Using this report you can:- Examine the Identity Cluster to see all the Distinct IDs linked to a user
- Search and validate all User Profile Properties and their values
- Use the Activity Feed section to search through all events with the most recent one listed on top
- For customers using Group Analytics, this same report can also be used to view group profile properties and events underneath a Group ID
4. Lexicon
Mixpanel’s Lexicon contains all the metadata about your events and properties. It also contains other metadata about Custom Events, Custom Properties, Lookup Tables, and Formulas that you would eventually create in the Mixpanel UI. Lexicon can be used to check naming consistencies across your events and properties and also ensure that you are not sending any event or property that you should not be tracking.Audit Regularly
Even if you QA perfectly before launch, things break. Code changes, new features, and third-party integrations can all introduce silent data errors.Make Auditing Recurring
Schedule audits quarterly or alongside product releases to check for:- Missing or duplicate events
- Unexpected property values
- Identity stitching anomalies (e.g. multiple profiles for the same user)
- Events that are no longer being sent
- Properties with inconsistent data types
Tools to Help
- Lexicon: to validate event/property naming
- Events report: to spot-test events in real time
Mixpanel Monitoring Dashboard
Besides conducting Quality Assurance tests, it’s good to keep track of your overall implementation progress by monitoring all the data that is coming into Mixpanel in a dashboard. This is to help provide a higher level data audit that serves as another layer of quality check. The Mixpanel Customer Success Team has created a Mixpanel Monitoring Dashboard that you can copy into your own project to help you track key high-level statistics around your events, properties, and identity management.What to Monitor
Your monitoring dashboard should track: Event Volume- Total events per day/week
- Events per event type
- Sudden spikes or drops in volume
- Percentage of events with required properties
- Property value distributions
- Data type consistency
- Anonymous vs identified users
- Identity merges per day
- Users with multiple profiles
- Time lag between event occurrence and ingestion
- Missing data windows
Common Data Quality Issues
Issue 1: Inconsistent Property Data Types
Problem: The same property sometimes sends as a string (“123”) and sometimes as a number (123). Impact: Charts break, filters don’t work correctly, and aggregations fail. Solution: Enforce data types in your code. Use type checking before sending data to Mixpanel.Issue 2: Missing Required Properties
Problem: Events are sent without critical context properties. Impact: You can’t segment or filter the data effectively. Solution: Define required properties in your tracking plan and validate them before sending events.Issue 3: Duplicate Events
Problem: The same event fires multiple times for a single user action. Impact: Inflated metrics and misleading analysis. Solution: Implement deduplication logic in your code or use Mixpanel’s distinct_id + $insert_id deduplication.Issue 4: Identity Management Errors
Problem: Users have multiple separate profiles instead of one unified profile. Impact: User counts are inflated, and user journeys are fragmented. Solution: Properly implement identity management with the correct sequence of identify calls.Issue 5: Test Data in Production
Problem: Development or test events end up in your production project. Impact: Polluted data that skews analysis. Solution: Always use separate projects for development and production. Never send test data to production.Data Quality Checklist
Use this checklist for every new tracking implementation:- Tracking plan documented and reviewed
- Separate dev and prod projects set up
- Debug mode enabled in development
- Code-level QA completed
- User flows QA completed
- Events appear correctly in Events report
- User profiles created/updated correctly
- Identity management tested (anonymous → identified)
- Property data types are consistent
- Required properties present on all events
- Event names match tracking plan
- Lexicon updated with descriptions and owners
- Monitoring dashboard set up
- Alerts configured for key metrics
Preventing Future Issues
Automated Testing
Include Mixpanel tracking in your automated test suite:- Write tests that verify events fire on key user actions
- Mock Mixpanel API calls and assert correct payloads
- Test identity management flows
Code Reviews
Require code review for all tracking changes:- Verify event names match tracking plan
- Check property data types
- Ensure required properties are included
- Validate identity management logic
Documentation
Maintain up-to-date documentation:- Keep tracking plan current
- Document all tracking changes
- Update Lexicon immediately when changes deploy
- Maintain changelog of tracking updates
Training
Ensure all team members understand:- Your tracking strategy and standards
- How to use debug mode and QA tools
- When and how to update the tracking plan
- Data quality best practices
Key Takeaways
- Two projects, always: Development + Production
- QA before production: Run both code-level and user flow QA
- Use Debug Mode: Catch ingestion issues instantly
- Audit often: Data quality is not set-and-forget
- Monitor continuously: Set up dashboards and alerts
- Automate testing: Include tracking in your test suite
- Document everything: Keep tracking plan and Lexicon current
Next Steps
- Set up separate development and production projects
- Enable debug mode in all non-production environments
- Create a data quality checklist for your team
- Build a monitoring dashboard for your key metrics
- Set up alerts for data quality issues
- Schedule quarterly data audits
- Review the Tracking Plan guide for implementation best practices