why did server-side events show in Mixpanel often appear later than when the action actually happened.
Hi Vincent L., 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
Server-side events in Mixpanel can often appear later than when the action actually happened due to several factors: 1. Event Ingestion Delays: Mixpanel accepts data that may have been triggered some time ago, especially via mobile SDKs or event imports. The actual ingestion time can differ from the event's original timestamp. You can check the $import
property and mp_processing_time_ms
to see when the data was ingested. If events are sent to the /track
endpoint with timestamps older than 5 days, they will not be ingested at all, but if they are within the window, there may still be a lag between the event occurrence and its appearance in Mixpanel reports Debugging: Delayed Ingestion.2. Buffering and Batching: Server-side or mobile SDKs may buffer or batch events before sending them to Mixpanel, causing a delay between the action and when the event is actually received and processed by Mixpanel Track Events FAQ.3. Network and Processing Latency: Network issues or processing delays on the server can also contribute to events being sent to Mixpanel later than when the action occurred.4. Data Sync and Late Arriving Data: If you are using data pipelines or importing events, late-arriving data (such as from offline mobile clients or backfilled imports) can be ingested and processed after the fact. Mixpanel has mechanisms to sync and update data, but this can introduce additional delays before events appear in reports Data Sync.In summary, the delay is typically due to ingestion timing, buffering, network latency, and the way Mixpanel processes and syncs data from various sources.
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.
kapa.ai This can lead to inaccurate funnel analysis, how I can solve it
Let me check the knowledge base for you again. One moment! 📚
You're correct—delays in server-side event ingestion can impact the accuracy of funnel analysis, especially if events arrive late or out of order. Here are steps and best practices from the knowledge sources to help mitigate this issue: 1. Use the Correct API Endpoint for Historical Events:
Mixpanel’s /track
endpoint only accepts events with timestamps within the last 5 days. For events older than 5 days, use the /import
endpoint. This ensures that late events are still ingested and attributed correctly in your funnels Go SDK: Sending Events.2. Monitor Ingestion Timing:
You can check the $import
property and mp_processing_time_ms
to see when data was ingested. This helps you identify if delays are affecting your funnel analysis Debugging: Delayed Ingestion.3. Understand Conversion Windows:
The funnel conversion window in Mixpanel determines how much time a user has to complete all steps. If events arrive after the conversion window, they won’t be counted as conversions. Adjust the conversion window as needed to accommodate expected delays, but be mindful of the maximum allowed (up to 366 days) Funnels Advanced Concepts.4. Check for Data Discrepancies:
If you notice discrepancies, review your funnel and event filters, and compare unique user counts versus total event counts. Removing filters can help isolate the source of discrepancies Debugging: Data Discrepancies.5. Reduce Delays at the Source:
Where possible, minimize batching and buffering on your server to send events to Mixpanel as close to real-time as possible.6. Be Aware of ID Merge Delays:
If you rely on merging anonymous and identified user activity, note that Mixpanel can take up to 24 hours to link these events, which may temporarily affect funnel accuracy Funnels FAQ.By following these practices, you can reduce the impact of delayed server-side events on your funnel analysis and improve data accuracy.
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.
kapa.ai Can I provide the action occurring time as $time property to solved the issue due to using processed time
Let me check the knowledge base for you again. One moment! 📚
Yes, you can provide the action's actual occurrence time using the $time
property when sending events to Mixpanel. The $time
property is a reserved event property that allows you to specify a Unix time epoch (in milliseconds) representing when the event actually happened. If you do not provide a $time
property, Mixpanel will use the time when the event arrives at their servers (the processed time)Â Reserved Event Properties.By setting the $time
property to the true action time, you ensure that Mixpanel attributes the event to the correct point in time, which helps maintain accurate funnel analysis even if there are ingestion or processing delays. However, keep in mind that events sent to the /track
endpoint must have a $time
value within the last 5 days to be ingested; for older events, use the /import
endpoint Managing Project Timezones.In summary:
Yes, providing the action time as the $time property is the recommended way to ensure events are analyzed according to when they actually occurred, not when they were processed by Mixpanel.
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.
kapa.ai We did in this way, but it did not work, the event time still showed the processed time. We found that there are two "Time" properties show in the sever side event, and I also fount that it has "Time Processed (UTC)" property. So what's the problem?
Let me check the knowledge base for you again. One moment! 📚
Based on the knowledge sources, here’s what’s happening: When you send server-side events to Mixpanel and include a $time
property, Mixpanel should use this value as the event’s occurrence time. However, in the Mixpanel UI and exports, you may see two different time-related properties: 1. Time (or $time):
This is the event’s actual timestamp, which should reflect the value you provided in the $time
property. This is what Mixpanel uses for analysis, funnels, and reporting if you set it correctly.2. Time Processed (UTC) (mp_processing_time_ms):
This property shows when Mixpanel’s servers actually processed (ingested) the event. It is not used for funnel or event analysis, but is available for debugging and understanding ingestion delays Default Properties.Why might you see the processed time instead of your provided time?
- If you are looking at the “Time Processed (UTC)” property, this will always show when Mixpanel ingested the event, not when it occurred.
- The “Time” property (or $time
) should show your provided timestamp. If it does not, possible reasons include:
- The $time
property was not set correctly in your payload (e.g., wrong format or key name).
- The event was sent via the /track
endpoint with a $time
value older than 5 days, in which case Mixpanel ignores your $time
and uses the processed time instead PHP SDK: Sending Events.
- There may be confusion in the UI between the two properties—ensure you are looking at the correct “Time” column.Summary:
- The “Time” property should reflect your provided $time
value if set correctly and within the allowed window.
- The “Time Processed (UTC)” property is for debugging and always shows when Mixpanel ingested the event.
- If you still see the processed time as the event time, double-check your payload and the endpoint used, and ensure your $time
value is within the last 5 days for /track
or use /import
for older events.For more details, see Default Properties and Managing Project Timezones.
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.