Does Mixpanel’s browser SDK support automatic events for sessions, specifically $ae_session? does it automatically track and maintain session lengths and total session length in the user profile?
Hi Rahul T., 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
Mixpanel’s browser (JavaScript) SDK does not automatically track the legacy mobile event $ae_session or maintain session length properties like $ae_session_length or $ae_total_app_session_length on the user profile. The $ae_session event and related automatic session properties are specific to Mixpanel’s legacy mobile SDKs (iOS and Android), and are not part of the browser SDK’s automatic event tracking capabilities Mixpanel SDKs: iOS (Objective-C) Mixpanel SDKs: iOS (Swift).For web, Mixpanel computes sessions automatically from the events you send, but these are handled as virtual events (“Session Start” and “Session End”) generated at query time within the UI and reports. These virtual session events are not sent from your application, do not appear in your raw events, and are not stored as actual events or user profile properties. Instead, session metrics like session duration are available for analysis in Mixpanel reports, but are not automatically written to user profiles Sessions: Compute sessions based on existing event data FAQ.In summary:
- The browser SDK does not auto-track $ae_session or session length properties on the user profile.
- Session analytics are available in Mixpanel reports via virtual events, not as tracked events or user profile properties.
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.
