Does Mixpanel web sdk accept $time parameter?
Hi Eliott C., 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
Based on the provided knowledge sources, there is no explicit mention that the Mixpanel JavaScript (web) SDK accepts a $time parameter when sending events. The documentation for sending events with the JavaScript SDK shows usage like: LBKSmixpanel.track("Played song", { "genre": "hip-hop" });LBKS
It does not mention the ability to set a $time property directly in the event payload via the SDK. However, it does note that the /track API endpoint (which the SDK uses) will only validate events with timestamps within the last 5 days, and refers to best practices for historical imports, but does not provide an example of setting $time via the SDK itself. Therefore, based on the available documentation, it is unclear or not documented that the Mixpanel web SDK accepts a $time parameter directly in the event properties when tracking events. For sending events with custom timestamps (e.g., for historical data), the documentation recommends using the /import API instead of the standard SDK methods Mixpanel SDKs: Javascript.
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.