Mixpanel Events is an analytics system that captures and analyzes user behaviors across websites and applications through comprehensive event tracking. It enables businesses to measure specific actions with detailed context, offering real-time processing and advanced segmentation to help teams understand user behavior and optimize conversion funnels through data-driven decisions.
The Mixpanel integration enables you to filter session data by Mixpanel Events, giving you more precise ways to segment users and trigger surveys based on user actions.
Some key use cases include:
- Segmenting users in Contentsquare using Mixpanel event names.
- Targeting surveys based on user-triggered Mixpanel events.
- Analyzing the behavior of users who triggered specific Mixpanel events.
Before you begin
- The Mixpanel object must be globally exposed in your environment.
- This integration relies on client-side Mixpanel events, not server-side events.
- Only the Mixpanel event name is used for filtering. Event properties are ignored.
Installing the Mixpanel SDK via npm
When installing Mixpanel SDK via npm, the Mixpanel object is not available globally by default. You must manually expose it to the global window project.
We collect the following data:
| Key | Value | Type |
| MP_{event-name— | event-name | Text |
How to connect
-
Click on the 'puzzle' icon to access the integrations page.
- Type 'Mixpanel' into the search bar and click on the Mixpanel card.
- Click 'Install integration' and follow any further instructions shown on your screen.
How to use
Using Mixpanel events in Segmentation
- Open a capability, such as Session Replay.
- Click on Analysis Context and go to the Segments tab.
- Click the Segment dropdown and select 'Mixpanel Events'.
- Click the Select an attribute dropdown and select your Mixpanel events.
Triggering a survey based on a Mixpanel event
- In the survey setup, navigate to the Targeting section.
- Under Pages, select Specific pages.
- In the dropdown menu, choose Event.
- Enter the event value using the
MP_ prefix.
To target a survey using a Mixpanel event, you'll need to know the name of the specific event. If an event name contains spaces, the spaces need to be replaced with dashes in the survey targeting. For example, the Mixpanel event name "My survey event" would become "MP_My-survey-event".
5. Click 'Save' changes and ensure the status of your survey is Active.
Your survey will appear when the event you've specified is triggered on a page. When using events for surveys, your behavior rules will still be followed. For example, you can set a survey to open after 10 seconds and use an event for targeting. In this case, the survey will appear 10 seconds after the event has been triggered, not 10 seconds after the page has loaded.