how to setup bounce rate in dashboard (customers who land on the page but do not click anything)
To set up bounce rate tracking in your Mixpanel dashboard, you'll need to track page views and sessions. Here's how to do it:
1. Set up automatic page view tracking
First, make sure you're tracking page views automatically with Mixpanel's JavaScript SDK: LBKSmixpanel.init('YOUR_PROJECT_TOKEN', {track_pageview: true});LBKS
This one-line code snippet will automatically track page views when added to your website's header Instant Tracking.
2. Create a Web Analytics Dashboard
After installing the SDK, you can create a dashboard with essential metrics including bounce rate: - Use the Web Analytics Template which includes bounce rate metrics out of the box - This template can be set up in just two clicks after installing the SDK
3. Analyze Session Data
Bounce rate is calculated based on sessions where users view only one page and don't interact further: - In the Insights report, you can analyze session metrics including bounce rate - You can filter for sessions longer than a specific duration (e.g., 10 seconds) to exclude very short bounces - For more detailed analysis, you can break down by properties like "Current URL" to see which pages have the highest bounce rates
4. Customize Your Dashboard
You can customize your dashboard to focus specifically on bounce rate: - Add Insights reports that show bounce rate over time - Break down bounce rate by traffic source using the Channel Classifier (which automatically buckets UTMs and referrers) - Compare bounce rates across different pages or user segmentsFor a quick start, check out Mixpanel's website analytics demo board to see how bounce rate can be visualized alongside other web metrics.The entire setup process should take about five minutes from installation to having a functional dashboard with bounce rate metrics.
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.
Let me check the knowledge base for you again. One moment! 📚
Yes, it's possible to calculate bounce rate without using the automatic track_pageview
event in Mixpanel, though you'll need to implement an alternative approach to track sessions and user interactions.Here are some methods to calculate bounce rate without using the automatic page view tracking:
Using Autocapture
Mixpanel's Autocapture feature can automatically track user interactions without requiring explicit page view tracking: LBKSmixpanel.init('YOUR_PROJECT_TOKEN', { autocapture: true });LBKS
With Autocapture enabled, Mixpanel will automatically track:
- Page views (as $mp_web_page_view
events)
- Clicks
- Form submissions
- Input interactions
- ScrollingThis gives you the data needed to identify bounced sessions Autocapture.
Custom Event Implementation
If you prefer not to use Autocapture or track_pageview, you can: 1. Track a custom "Session Start" event when users land on your page 2. Track interaction events (clicks, form submissions, etc.) manually 3. Calculate bounce rate as the percentage of sessions with only the "Session Start" event and no subsequent interaction events
Using Formulas in Insights
In Mixpanel's Insights report, you can create a formula to calculate bounce rate: 1. Define a metric for total sessions (using your session start event) 2. Define a metric for sessions with only one event 3. Create a formula dividing single-event sessions by total sessions to get bounce rateMixpanel's Formulas feature allows you to make these calculations using simple arithmetic operators.
Session Definition Customization
Mixpanel allows you to customize how sessions are defined, which can help with bounce rate calculation: - Define what constitutes a session start - Set timeout parameters - Determine which properties should be associated with a sessionThis flexibility lets you calculate bounce rate according to your specific definition of what constitutes a "bounce" for your website.Remember that while it's possible to calculate bounce rate without automatic page view tracking, having some form of page/session tracking is necessary to establish the denominator in your bounce rate calculation.
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.
Let me check the knowledge base for you again. One moment! 📚
Yes, events with a $
prefix are generally counted in your paid package's event volume, with some specific exceptions.According to the documentation, only certain events are excluded from your monthly event calculations: - Identify ($identify
)
- Create Alias ($create_alias
)
- Merge ($merge
)
- Opt In ($opt_in
)
- Session Recording Checkpoint ($mp_session_record
)
- Message Sent ($campaign_delivery
)
- Message Received ($campaign_received
)
- Message Bounced ($campaign_bounced
)
- Message Marked Spam ($campaign_marked_spam
)
- Message Suppressed ($message_suppressed
)
- Message Unsubscribed ($unsubscribe
)
- Campaign Entered ($journey_entered
)
- User profile creation/updatesMixpanel's pricing documentation specifically mentions that these system events are "non-qualifying and excluded from the Monthly Events calculation."However, other events with a $
prefix, such as $mp_web_page_view
(the default page view event), will count toward your monthly event volume and therefore affect your billing.Mixpanel recommends avoiding using names containing $
or mp
for your custom events as these prefixes are used for their reserved event properties which receive special treatment in the UI or are used for special processing.If you're concerned about your event volume, you can check your usage in the Organization Settings under "Plan Details & Billing" and then "Data Usage" to monitor which events are contributing most to your billing.
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.
Let me check the knowledge base for you again. One moment! 📚
Bounce rate in Mixpanel should be calculated using unique users rather than total events, as it represents the percentage of visitors who navigate away from your site after viewing only one page.According to Mixpanel's documentation, when calculating metrics like bounce rate, you need to be careful about which measurement type you use. The documentation specifically mentions that different reports calculate data in different ways: > "While the Insights report may be counting the total event count ('Total Events'), the funnel report may be counting based on unique user count ('Uniques'). So if you are seeing discrepancies between a Funnel and an Insights report, take a step back and look at the filtering for the events." Debugging: Validate your data and troubleshoot your implementationFor bounce rate specifically, you would typically: 1. Count the number of unique users who entered your site (first page view) 2. Count the number of unique users who only viewed one page and didn't interact further 3. Divide the second number by the first to get your bounce rateIn Mixpanel's Insights report, you can create this calculation using the Formulas feature:
"Use Formulas to make calculations using simple arithmetic operators." Insights: Visualize trends and compositions within your dataWhen setting up your formula, you would: - Use the "Unique Users" measurement for both metrics - Create a formula dividing the number of users with only one page view by the total number of users who visitedThis approach aligns with the standard definition of bounce rate as a user-based metric rather than an event-based one.If you're on an Enterprise or Growth plan, you can save this formula for reuse across your organization: "Users on an Enterprise or Growth plan can save Formulas for reuse. Free users can create Formulas locally within a report but cannot save them." Insights: Visualize trends and compositions within your data
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.
Let me check the knowledge base for you again. One moment! 📚
In Mixpanel, "Session Start" is a virtual event that marks the beginning of a user session. Let me explain how it's defined and how you can check when it's triggered.
Session Start Definition
"Session Start" is automatically computed by Mixpanel based on your session configuration. There are three ways sessions can be configured: 1. Timeout-Based (Default): A session starts when a user performs any non-excluded event after a period of inactivity. The default timeout is 30 minutes.2. Event-Based: A session starts when a user performs a specific event that you've designated as the session start event (such as "Login").3. Property-Based: A session starts when a user performs an event with a specific session ID property value that differs from their previous event.Sessions: Compute sessions based on existing event data
How to Check When Session Start is Triggered
You can check when Session Start events are triggered in several ways: 1. Using Insights Report: - Go to the Insights report - Select "Session Start" as your event - This will show you when and how often Session Start events are being triggered2. Using Funnels: - In Funnels, you can include "Session Start" as a step to see when users begin sessions - The "Session Start Event Name" property will show you which original event triggered the session start3. Using Flows: - In Flows, you can use "Session Start" to view the top events that occur within a session - This helps visualize what users typically do after starting a sessionSession Controls in Reports
Session Start Properties
When a Session Start event is triggered, it includes these properties: - Session Start Event Name: Shows the original event that triggered the session start - Session Event Count: The number of events during the session - Session Duration (Seconds): The duration between Session Start and Session EndAdditionally, Session Start events inherit properties from the first event in the session, including: - Browser, device, OS information - Location data (city, country, region) - UTM parameters - Current URLSession PropertiesYou can customize your session settings in Project Settings to better align with your specific use case and to ensure Session Start events are triggered appropriately for your application.
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.
Let me check the knowledge base for you again. One moment! 📚
Yes, it's possible for a session_start event to be triggered when a user lands on your page even without explicitly tracking page views. This depends on your session configuration and what other events you're tracking.
How Sessions Start Without Page View Events
In Mixpanel, sessions are computed based on the events you send, and there are multiple ways to configure how sessions are defined: 1. Timeout-Based Sessions (Default): A session starts when a user performs any event after a period of inactivity. If you're tracking other events when a user lands on your page (like autocaptured events), these will trigger a session start.2. Event-Based Sessions: If you've configured a specific event as your "Session Start" event, then sessions will only start when that event occurs.3. Property-Based Sessions: If you're using a session_id property to define sessions, a new session starts whenever the session_id value changes.Sessions: Compute sessions based on existing event data
Alternatives to Page View Events
Without explicit page view tracking, you can still trigger session_start events using:
Autocapture
If you enable Autocapture, Mixpanel will automatically track various user interactions including page views (as $mp_web_page_view
), clicks, form submissions, etc.: LBKSmixpanel.init('YOUR_PROJECT_TOKEN', { autocapture: true });LBKS
These autocaptured events will trigger session_start events based on your session configuration.Autocapture
Custom Events on Page Load
You can track a custom event when a user lands on your page: LBKSmixpanel.track("Page Landed");LBKS
This custom event will trigger a session_start event (in the default timeout-based configuration).
Verifying Session Start Events
To check if session_start events are being triggered when users land on your page: 1. Use the Insights report to analyze "Session Start" events 2. Look at the "Session Start Event Name" property to see which event triggered the session 3. Check the timestamp to confirm it corresponds to when users land on your pageRemember that sessions in Mixpanel are computed automatically from the events you send, so as long as you're tracking some event when a user lands on your page, a session_start event will be generated according to your session configuration.
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.
Let me check the knowledge base for you again. One moment! 📚
You're correct in your understanding, but let me clarify the complete picture about how session_start events are triggered in Mixpanel.A session_start event is triggered when Mixpanel detects user activity after a period of inactivity, but this activity doesn't necessarily have to be a page view event specifically. It can be any event that you track.
How Session Start Events Are Triggered
In the default timeout-based session configuration: 1. A session starts when a user performs any event after a period of inactivity (default: 30 minutes) 2. This first event could be a page view, but it could also be any other event you're trackingSessions: Compute sessions based on existing event data
Events That Can Trigger Sessions
Any of these events can trigger a session_start: 1. Explicit page view tracking: Using track_pageview: true
in your initialization
2. Autocaptured page views: If you've enabled Autocapture, which tracks $mp_web_page_view
events
3. Custom events: Any event you manually track when a user lands on your page
4. Other autocaptured events: Clicks, form submissions, scrolls, etc. (if Autocapture is enabled)For example, if you don't track page views but track a "Button Click" event when a user clicks a button, and this is the first event after a period of inactivity, it will trigger a session_start.
Key Point
The important thing to understand is that some event needs to be tracked for a session_start to be triggered. If you're not tracking any events when a user lands on your page (neither page views nor any other events), then Mixpanel won't know the user is active and won't trigger a session_start.So while page view events are commonly used to trigger sessions (and are the most logical event to use for this purpose in most web applications), they aren't strictly required as long as you're tracking some other event when the user begins interacting with your site.
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.
Let me check the knowledge base for you again. One moment! 📚
Based on the knowledge sources provided, there is no explicit mention of a "session_expire" event in Mixpanel. The documentation only refers to "Session End" events. Let me explain how session endings work in Mixpanel:
Session End in Mixpanel
In Mixpanel, sessions consist of two virtual events: - Session Start - Session EndThe "Session End" event is triggered in different ways depending on your session configuration:
For Timeout-Based Sessions (Default)
- A session ends when a user is inactive for the configured timeout period (default: 30 minutes) - The "Session End" time is recorded as the time of the last event performed before the timeout - For example, if a user performs their last event at 1:10pm and doesn't perform any more events for 30 minutes, the "Session End" event is triggered with a timestamp of 1::10pmLBKS[Sessions:: Compute sessions based on existing event data](https://docs.mixpanel.com/docs/features/sessions)
For Event-Based Sessions
- A session ends when the user performs the designated "Session End" event (such as "Logout") - The "Session End" time is the time that the ending event was performedEvent-Based Sessions
For Property-Based Sessions
- A session ends when the session ID property value changes - The "Session End" time is the time of the last event with the previous session ID valueProperty-Based SessionsAdditionally, all sessions are reset at midnight (according to your project timezone), so the maximum session length is 24 hours.The documentation doesn't mention a separate "session_expire" concept or event. It's possible you might be referring to the timeout mechanism in timeout-based sessions, but officially Mixpanel only uses the term "Session End" for the event that marks the end of a session.If you're looking for more specific information about session expiration concepts, I'd need additional context about what you're trying to accomplish.
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.