Mixpanel Community Icon

Mixpanel Event Data Discrepancy with Internal Database Explained

·
·

Subject: Discrepancy Between Mixpanel Event Data and Internal Database I am writing to seek assistance regarding a significant discrepancy we have observed between the event data reported in Mixpanel and our internal database. For example, our database indicates that the number of registration events is approximately five times higher than the corresponding figures in Mixpanel. We have thoroughly reviewed our implementation to ensure that the event tracking code is correctly integrated across all relevant parts of our application. Despite this, the data mismatch persists, which leads us to suspect that some events may not be reaching Mixpanel or could be filtered out by default settings. Could you please advise on the following points to help us diagnose the issue?

  • Avatar of kapa.ai
    kapa.ai
    APP
    ·
    ·

    Hi Islam U., Please stand by as I search the Mixpanel knowledge base for an AI-powered answer. I normally take about 15 seconds or so. In case AI cannot answer your question, feel free to reach out to Mixpanel support at mixpanel.com/get-support. If you have follow-up questions for this thread, please tag me again with your question: @kapa.ai <follow-up question> đź‘‹

    Feel free to ask a follow-up question once I've answered by mentioning me with @kapa.ai

  • Avatar of kapa.ai
    kapa.ai
    APP
    ·
    ·

    I understand your concern about the discrepancy between event data in Mixpanel and your internal database. This is a common issue that can have several causes. Let me help you diagnose the problem. ## Common Causes of Data Discrepancies ### Client-Side Tracking Issues If you're using client-side tracking, you may be losing 30-50% of your events due to ad blockers and Do Not Track settings. This is one of the most common causes of significant discrepancies like the one you're experiencing. [Mixpanel Debugging Documentation](https://docs.mixpanel.com/docs/tracking-best-practices/debugging#data-discrepancies) notes that client-side tracking can be unreliable, and recommends server-side tracking as it's more reliable and easier to maintain. ### Event Skipping Events might be skipped in non-obvious circumstances due to implementation logic. For example, certain conditions might need to be met for an event to be tracked, causing some legitimate events to be missed. [Mixpanel Blog](https://mixpanel.com/blog/common-technical-hiccups-in-your-product-analytics-that-are-easy-to-spot/) explains how events can be skipped in specific circumstances that might not be immediately obvious during testing. ### Hidden or Inactive Events Events might be hidden in Lexicon or considered inactive if they haven't been fired within the last 30 days, making them invisible in the UI (though they're still in the raw data). [Mixpanel Documentation](https://docs.mixpanel.com/docs/tracking-best-practices/debugging#check-for-hidden-events-and-properties) explains how to check for hidden events and properties. ### API Host Configuration If your project has specific data residency requirements (EU or India), you must configure the SDK to use the correct API host. Events sent to the wrong host will be rejected. [Mixpanel Documentation](https://docs.mixpanel.com/docs/tracking-best-practices/debugging#missing-or-incomplete-events) emphasizes that projects with India Data Residency must configure SDKs with the api-in.mixpanel.com host or events will be rejected. ## Debugging Steps 1. **Enable Debug Mode**: Enable debug mode in your SDK to confirm requests are being sent to Mixpanel correctly. 2. **Check Browser Console (for web)**: For web applications, use your browser's developer console to view Mixpanel API calls and check for errors. 3. **Verify Project Token**: Ensure the token in your data payload matches the token in your Project Settings. 4. **Compare Tracking Triggers**: Verify that both systems are using the same triggers to track events. Different definitions of when to track an event can cause discrepancies. 5. **Check for Implementation Bugs**: Review your implementation for potential bugs that might cause events to be missed or duplicated.

  • Avatar of kapa.ai
    kapa.ai
    APP
    ·
    ·

    Mixpanel Blog mentions that implementation bugs can distort analytics data significantly, with events potentially being off by as much as 70% or more.For a systematic approach to debugging discrepancies, I recommend following the process outlined in the Debugging Discrepancies section of Mixpanel's documentation, which includes comparing data triggered at the same point in the user journey, with the same time frame, filtering, and measurement units.If you continue to experience issues, implementing your own server-side tracking as a source of truth might help identify where the discrepancy is occurring.

    kapa.ai is still learning and improving, please let me know how I did by reacting below.

    ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.

  • Avatar of Islam U.
    Islam U.
    ·
    ·
  • Avatar of kapa.ai
    kapa.ai
    APP
    ·
    ·

    Sorry Islam U., I'm not sure what you mean. Please try again. đź‘‹