# Query Organization Audit Logs Source: https://docs.mixpanel.com/api-reference/organizations/query-organization-audit-logs /openapi/platform.openapi.json post /v1/organizations/{organization_id}/audit-logs/query Query an organization's audit logs. #### Permissions The permissions required to access this endpoint. See [Permissions Reference](https://docs.mixpanel.com/reference/permissions) for what each role grants.**Required Permissions: **view\_audit\_logs**Granted By Role: **Owner Admin # Changelogs Source: https://docs.mixpanel.com/changelogs Latest updates, improvements, and fixes to Mixpanel Get all the latest updates in your inbox. Subscribe Subscribe to product updates Sign up to stay up-to-date on our newest releases. Company Email I agree to receive product update emails about Mixpanel products pursuant to the [Privacy Statement](https://www.mixpanel.com/legal/privacy-policy) . I understand that I can opt-out at any time. Subscribe **2026-11-03** ## MCP Server: Auto-connect Claude.ai users with managed authorization (Beta) Admins can now connect Claude to the [Mixpanel MCP Server](/docs/mcp) for every member at once. When members open Claude, Mixpanel is already connected, with no sign-in or consent screen. With this update: * **One-time setup:** A Claude admin and a Mixpanel organization admin connect the two. In Claude, use the connector's **Managed authorization** settings. In Mixpanel, go to **Organization Settings** → **Access Security** → **Claude Access**. * **Choose the identity provider:** Use Claude as the issuer for the fastest setup, or use Okta so its sign-in and MFA policies apply and you control who gets access. * **Your permissions stay the same:** Claude acts as each member, and Mixpanel checks their project and data access on every request. Managed authorization grants no extra access. * **Every connection is audited:** Each connection appears in the [audit log](/docs/access-security/audit-log-reference#mcp) as an `mcp_client.authorized` entry, and changes to the issuer setup are logged as `trusted_identity_issuer.*` entries. Managed authorization (also called Enterprise Managed Auth) is in Beta on all Mixpanel plans, including Free. It requires a Claude Team or Enterprise plan. Your Mixpanel organization also needs MCP enabled and a claimed email domain that matches the emails members use in Claude. [Learn more →](/docs/mcp/claude-enterprise-managed-auth) **2026-10-28** ## Query API: Custom Insights Query (Beta) Getting Insights results through the Query API meant building and saving a report in Mixpanel first, then querying it by ID. Any change to the metrics, filters, or time range meant editing the saved report. The new Custom Insights Query endpoint lets you describe an Insights query in the request body and get the results back, with no saved report needed. With this update, you can: * **Build queries in code:** Choose multiple event, funnel, retention, cohort, or formula metrics, plus a time range and an optional time series unit. * **Slice your results:** Add up to 10 filters and up to three breakdowns by property value or cohort membership. * **Compare results:** Run the same query over an earlier period, or report each result as a change against a baseline. * **Pick a format:** Get results as JSON or CSV. The endpoint authenticates with a [service account](/reference/service-accounts) and is versioned with the `Mixpanel-Version` header. [Learn more →](/reference/insights-run-query) **2026-10-21** ## Experiments: Add Experiments to Boards Experiment results lived only on the experiment page, so sharing progress meant sending a separate link or pasting screenshots next to the reports on your boards. You can now add experiments to [Boards](/docs/boards) and track their results alongside your other reports. With this update, you can: * **Add from either place:** Select **Add to board** from the experiment's header menu, or add an **Experiment** card from the board itself. An experiment can be added to multiple boards. * **Choose what each card shows:** Display the primary metrics with lift per variant, exposures over time by variant, the variants with their descriptions and screenshots, or the experiment's hypothesis. Experiment cards are view-only. Click **View experiment** on a card to open the experiment and make changes. [Learn more →](/docs/experiments#experiments-on-boards) **2026-10-15** ## Experiments: Built-in Sample Size Calculator Working out how many exposures or how much time an experiment needed used to mean leaving Mixpanel. You'd look up your metric's historical baseline and traffic, then type them by hand into the calculator on our website. The sample size calculator is now built into experiment setup. Choose your primary metric and Mixpanel fills in its baseline conversion rate and daily traffic from your own data, measured over the window you pick. With this update, you can: * **Tune your inputs:** Set your minimum detectable lift, confidence level, power, rollout %, and a one- or two-sided hypothesis. * **Get a complete estimate:** See the total exposures needed, the count per variant, and an estimated duration. The estimate accounts for your number of variants and primary metrics. * **Know if it's realistic:** A summary tells you whether the duration is reachable and suggests an experiment type. * **Apply it in one click:** Click **Apply to Experiment** to set the experiment's duration. [Learn more →](/docs/experiments#step-4-select-the-test-duration) **2026-10-14** ## Session Replay: Flutter Autocapture (Taps and Frustration Signals) Flutter apps had autocaptured screen views, but nothing about what users tapped. Native Android and iOS autocapture can't see Flutter elements because Flutter draws its own UI, so Flutter teams still had to add a track call to every element by hand. Rage taps and dead taps went unnoticed. Tap autocapture is now built into the Flutter SDK (v2.15.0), with rage taps and dead taps captured alongside tap events. With this update, you can: * **Cover every platform with one integration:** Because autocapture lives in the Flutter SDK, it works for Flutter apps on Android, iOS, web, and macOS. * **Surface broken interactions automatically:** Rage taps and dead taps are captured without any per-element code. * **Jump to the right sessions:** Every autocaptured event can be used to filter Session Replay playlists. With this release, Android, iOS, React Native, and Flutter all support tap and frustration-signal autocapture. Available in open beta on all plans. [Learn more →](/docs/tracking-methods/sdks/flutter#autocapture) **2026-10-01** ## MCP Audit Log: see what AI assistants changed, and ask about it As more of your team connects AI assistants to Mixpanel, more changes arrive through the [MCP server](/docs/mcp) instead of the UI. Those changes are now recorded in the same audit log as everything else, and organization admins can ask about them in plain language. With this update, you can: * **Review AI changes alongside the rest:** Every MCP tool that changes something records an entry — boards, cohorts, experiments, feature flags, metrics, lookup tables, custom properties, Lexicon metadata, tags, and business context — attributed to the account the assistant is connected as. * **Tell AI changes apart from the rest:** MCP entries carry an **Origin** of MCP in the audit log UI, and a `service` value of `mcp` in exports and the API. Filter by Origin to see a single source. Read-only and failed tool calls are not recorded. * **Ask the audit log a question:** The [`Get-Audit-Log`](/docs/mcp#querying-the-audit-log) tool answers questions like "what changed in this project last week?" or "who deleted a board yesterday?" without filtering the audit log page by hand. A single MCP action usually produces more than one entry: one tool call entry recording the tool and its arguments, plus one detailed entry per object that changed. MCP tool call entries are retained for 90 days on all plans, while the detailed entries follow your plan's standard retention. The MCP Audit Log is in Beta for a limited set of customers, and `Get-Audit-Log` requires organization admin or owner access. [Request access here](https://mxpnl.notion.site/52931ceda0e94fa2bda6cb18420b5113?pvs=105). [Learn more →](/docs/access-security/audit-log#mcp-activity) **2026-10-01** ## MCP Connections: let Mixpanel Agent read your GitHub, Jira, Linear, and Notion Your data lives in Mixpanel, but the context around it lives somewhere else — the strategy doc in Notion, the Jira ticket describing what a feature was supposed to do, the pull request that shipped it. MCP Connections let Mixpanel Agent read those tools directly, so it can answer with your team's context instead of only what the events say. With this update, you can: * **Connect the tools you already use:** Notion, Linear, and Jira connect through OAuth. GitHub connects with a personal access token. Each tool connects once, to your own account. * **Bring your own context into an answer:** Mixpanel Agent can read the spec behind a feature, the ticket that defines what counts as success, or the pull requests that changed a flow, and use them while it analyzes your data. * **Read-only and private to you:** Mixpanel Agent only exposes read tools, so it cannot create, edit, or delete anything in a connected tool. Teammates cannot see or use your connections, and the Agent sees only what your account on that tool can see. MCP Connections are off by default. An organization admin or owner turns on **Connect Your Tools via MCP** under **Settings → Org → AI Settings**, and each member then adds their own connections from **Settings → Personal Settings**. MCP Connections are in Beta for a limited set of customers and require Mixpanel AI. [Request access here](https://mxpnl.notion.site/5dc6d468f8aa48eebac5146fc9bd3759). [Learn more →](/docs/mcp-connections) **2026-10-01** ## Agent Intelligence is now in Beta Agent Intelligence brings your AI agent data into Mixpanel, right next to the product data you already track. You can now see how your agent is used, fix issues faster, and measure whether it's driving the outcomes you care about. **What's included** * **Agent overview:** Conversations, turns, cost, latency, errors, models and tool calls are rolled up automatically, with no dashboard to build. * **Conversation view:** Open any conversation to see every turn and span in order. Slow, expensive or failing steps stand out right away. * **Outcome analysis:** Agent conversations are tied to the same users as your other events, so Funnels, Retention and Cohorts work on agent data out of the box. See whether agent users convert or retain better, or whether a pricier model paid for itself. * **Experiments and Session Replay:** Test prompts, models and tools with Experiments, using cost and error rate as metrics. Use Session Replay to see what a slow turn felt like to the user. **Setup** There's no new SDK. Point your existing OpenTelemetry exporter at Mixpanel and include a user ID, and every span lands in your project as an event. Ingested spans count toward your normal event volume. **Availability** Agent Intelligence is in early access. Request access [here](https://mxpnl.notion.site/93631162c3994cd1b274f0a6b439add4). **Learn more** * [Docs](https://docs.mixpanel.com/docs/agent-intelligence) * [Blog: Is your agent worth it? We built Agent Intelligence to find out](https://mixpanel.com/blog/mixpanel-agent-intelligence/) **2026-09-28** ## Audit Log Streaming: send your audit log to your own cloud storage automatically Getting Mixpanel's [Audit Log](/docs/access-security/audit-log) into your security tooling used to mean exporting it by hand or building your own integration. Audit Log Streaming now delivers every audit log entry for your organization to a bucket you own, usually within minutes of the action. With this update, you can: * **Stream to AWS S3 or Google Cloud Storage:** Set up a stream once and new audit log entries flow to your bucket continuously, with no manual exports. * **See everything in one place:** A single stream covers your whole organization, from logins and role changes to report, board, and data governance changes across every project. * **Feed your existing tools:** Send audit activity into your SIEM, log pipeline, or compliance archive and monitor Mixpanel alongside the rest of your stack. Audit Log Streaming is available to organizations on an **Enterprise** plan. Organization Owners and Admins can set it up from **Organization Settings → Audit Log**. [Learn more →](/docs/access-security/audit-log-streaming) **2026-09-28** ## Experiments: One-Sided Tests Mixpanel analyzed every metric with a two-sided test, which checks for an effect in either direction. When you only care about one direction, a two-sided test needs more exposures and takes longer to reach significance. A non-inferiority test is one example: you only need to confirm a change doesn't make a metric worse. You can now set each metric to a one-sided or two-sided test, and its results are calculated to match. One-sided metrics reach significance with fewer exposures when you only need to detect movement in one direction. [Learn more →](/docs/experiments#how-mixpanel-calculates-results) **2026-09-28** ## Experiments: Computation Tab It wasn't always clear how Mixpanel arrived at an experiment's results. The new **Computation** tab in the metric hover card shows you, step by step, how each result is calculated. Copy the output as Markdown and paste it into an LLM to independently verify the calculation. [Learn more →](/docs/experiments#how-mixpanel-calculates-results) **2026-09-28** ## Experiments: Discard Novelty Effects When you test something like a UX layout change, users often behave differently at first just because it's new. Their behavior only stabilizes after some time, which can skew early results. You can now exclude data from the first days after a user's initial exposure, so novelty effects don't distort your experiment results. Choose how many days to discard and Mixpanel analyzes only the behavior that follows. [Learn more →](/docs/experiments) **2026-09-21** ## Feature Flags: Semantic Version Targeting for Runtime Properties Targeting a rollout by app version was hard to get right, especially for non-engineers. Version strings were compared as text, so `2.10.0` sorted below `2.9.0`. Runtime properties now support semantic versions, so you can target rollouts based on app version and have versions compared correctly. This builds on [typed runtime property values](#2026-08-20) released in August. [Learn more →](/docs/featureflags#data-types-for-runtime-values) **2026-09-18** ## Session Replay: Mobile Wireframes for Mixpanel Agent Web replays record page structure, so Mixpanel Agent can read them, summarize them, and answer questions about them. Mobile replays are a series of image snapshots with no structure underneath, so Agent couldn't do any of that for mobile. To learn what happened in a mobile session, you had to watch it. Turn on wireframes in your mobile Session Replay SDK and, alongside the snapshots, the SDK sends a text-based layout of each screen: every element's role and position, plus its text. (On iOS, pure-SwiftUI views need `.mpWireframeText(_:)` to supply text.) With this update, you can: * **Summarize mobile replays:** [Mixpanel Agent](/docs/mixpanel-agent) can describe what happened in a mobile session in plain language. * **Ask questions across sessions:** Query one replay or many, like "Did users run into friction on the checkout screen?" * **Keep sensitive data protected:** Wireframes follow your existing replay masking, and typed input is never sent. Extra controls let you redact specific text. Wireframes are off by default and available in open beta. Set them up for your SDK: * [Android](/docs/tracking-methods/sdks/android/android-replay#wireframes-beta) * [iOS](/docs/tracking-methods/sdks/swift/swift-replay#wireframes-beta) * [Flutter](/docs/tracking-methods/sdks/flutter/flutter-replay#wireframes-beta) * [React Native](/docs/tracking-methods/sdks/react-native/react-native-replay#wireframes-beta) **2026-09-16** ## Web Experiments (Private Beta) Running a simple website A/B test used to mean filing an engineering ticket and waiting for a release. Testing a headline or a button color was blocked on a sprint. Web Experiments let you build and launch website A/B tests without writing code. Open your live site in the visual editor, click the element you want to change, and configure each variant on the page. With this update, you can: * **Edit your page directly:** Change text, adjust styling, and hide or show existing elements. * **Describe changes in plain language:** Tell Mixpanel Agent what to change instead of using the control panel. * **Review every change:** See each variant's edits in the Changes panel, with variant screenshots on the experiment page. * **Control who can launch:** A new permission lets admins restrict who can launch web experiments through a custom project role. Results, metrics, and statistical models work the same as they do for code-based experiments. Setup is a one-time JavaScript snippet on your site plus the Mixpanel Chrome extension. Web Experiments are in private beta. Request access [here](https://mxpnl.notion.site/e2e0eaa760de4546a73fc3c6418acbd3). [Learn more →](/docs/experiments/no-code-experiments) **2026-09-10** ## Session Replay: Mobile Autocapture (Taps and Frustration Signals) [Mobile autocapture](#2026-08-07-2) only covered screen views, so teams could see which screens people visited but not what they tapped. Answering "did anyone tap this button?" meant adding a track call to every element by hand, then waiting for an app store release. Taps that did nothing, or repeated taps out of frustration, went unnoticed unless someone happened to watch the right session replay. Upgrade your SDK and turn on tap autocapture. With this update, you can: * **Capture taps with no code per element:** Tap events fire automatically. * **Surface broken interactions:** Rage taps and dead taps are captured alongside tap events, so problems show up without anyone hunting for them. * **Jump to the right sessions:** Every autocaptured event can be used to filter Session Replay playlists, taking you straight to the sessions where users got stuck. Available in open beta on all plans: * [Android](/docs/tracking-methods/sdks/android#autocapture) v8.10.0 * [iOS](/docs/tracking-methods/sdks/swift#autocapture) v6.6.0 * [React Native](/docs/tracking-methods/sdks/react-native#autocapture) v3.7.0 **2026-09-09** ## Mixpanel Agent Board Editing: change every report on a board at once Changing one filter across ten reports used to mean opening all ten and making the same edit ten times. Mixpanel Agent can now edit the reports already on a board, so a board-wide change takes a single request. With this update, you can: * **Change many reports in one pass:** Ask Mixpanel Agent for an edit — a new filter, a different breakdown, an updated date range — and the agent applies it to every report on the board it affects, instead of you clicking into each one. * **Approve before anything changes:** Mixpanel Agent always presents a plan of the exact edits it intends to make. Nothing is touched until you approve it. * **Leave it running:** Once approved, you'll see a queue of the changes as the agent works through them. Close the agent or navigate away and it keeps going. **2026-09-09** ## Report Version History: preview and restore earlier versions of a report Every save to a report now creates a version you can review and return to. Click the clock icon in the top-right of a report to access history. With this update, you can: * **See what changed and who changed it:** Each version shows the save date and time in your project timezone, the user who saved it, and key details of what changed from the previous version — metrics added, removed, or updated, or a renamed report. * **Restore, duplicate, or link to any version:** Restore makes an earlier version current, Duplicate creates a separate copy without affecting the current report, and Copy link shares that exact version. * **Track agent-made changes too:** Edits made through Mixpanel Agent or the MCP server are also shown in history, credited to the user. Version history is available on Insights, Funnels, Flows, and Retention reports. [Learn more →](/docs/reports#version-history) **2026-08-27** ## First-Party Domains: Route tracking through a subdomain you control Ad blockers, content blockers, and browser tracking protection may sometimes block requests to known analytics endpoints like `api.mixpanel.com`. When that happens, events never reach Mixpanel and the data is lost. First-Party Domains allow Enterprise organizations to route Mixpanel traffic through a subdomain they own instead, like `track.yourcompany.com`. Requests look like traffic to your own infrastructure, so they're far less likely to be blocked. Add a subdomain from **Organization Settings → First-Party Domains**, point two CNAME records at it, and Mixpanel automatically issues and renews the TLS certificate — no manual setup required. First-Party Domains require a subdomain (not an apex domain), Organization Owner or Admin permissions, and DNS access. Up to 3 domains per organization. Available to organizations on an **Enterprise** plan. [Learn more →](/docs/tracking-methods/first-party-domains) **2026-08-24** ## Mixpanel plugin for Claude Code: analytics skills in one install Claude Code users can now install the Mixpanel plugin — 12 skills that guide tracking implementation, metric investigation, dashboard creation, experiments, feature flags, and Lexicon management. The skills work through the [Mixpanel MCP server](/docs/mcp) (any region) or the [mixpanel-headless](/docs/mixpanel-headless) Python SDK. ```bash theme={"system"} claude plugin marketplace add mixpanel/ai-plugins claude plugin install mixpanel ``` Then run `/mixpanel:install` once per project to set up an engine and region. The skills are open source at [github.com/mixpanel/ai-plugins](https://github.com/mixpanel/ai-plugins). [Learn more →](/docs/mcp#claude-code-plugin) **2026-08-24** ## Experiments and Feature Flags: Now on Free and Growth plans Run experiments and manage rollouts from the same place you do your analytics. Identify opportunities, spin up tests, interpret results, and ship the winner, all driven by AI that fits your workflow. With this update, you can: * **Move at the speed of AI:** Full MCP and Mixpanel Agent support means your AI assistant can propose tests from live metrics, launch them, and interpret the results — no context switching, no advanced stats knowledge required. * **Trust every result:** Pre-Experiment Bias and SRM checks run automatically, and advanced methodologies like CUPED, Winsorization, Bonferroni, Benjamini-Hochberg are available to keep every experiment statistically sound * **Target by behavior, not just identity:** Roll out to the cohorts and events you already use in Mixpanel. * **Ship with control:** Audit trails, multi-environment support, and dynamic config are all included. **What's included:** * **Free plan:** Unlimited experiments, 1k Monthly Experiment Users (MEU), up to 10 active feature flags. * **Growth plan:** 5k MEU/month, up to 50 active feature flags. Add up to 100k MEU/month and up to 500 active feature flags with additional MEUs. MEU = number of users exposed to an experiment. Get started: [Experiment & Optimize tour](/guides/self-guided-tours#experiment-&-optimize) | [Experiments docs](/docs/experiments) | [Feature Flags docs](/docs/featureflags) **2026-08-20** ## Feature Flags: Typed Runtime Property Values Feature Flags can now target Runtime Properties by their actual data type — string, number, list, or fuzzy — instead of treating every value as a string. Targeting rules match correctly on numbers and lists, not just text. Previously, Runtime Property filters compared everything as a string. That meant no real numeric or boolean comparisons, making flag targeting less predictable and reliable. With this update, each targeting condition has a Data Type that controls how it's parsed and compared: * **String:** case-insensitive match, ordered comparisons in lexicographical order * **Number:** true numeric comparison (Is, Greater than, Less than, etc.) * **List:** match any/all elements, each evaluated by its own type * **Fuzzy:** loose, cross-type match (e.g. `"5"` matches `5`, `"1"` matches `true`) [Learn more →](/docs/featureflags#data-types-for-runtime-values) **2026-08-07** ## Automated Metadata Enrichment Raw event names rarely explain themselves. `btn_clk_add_crt` means something to the engineer who instrumented it and little to anyone else, including Mixpanel Agent and MCP, which rely on Lexicon to understand your data. Writing a display name and description for every event takes time, so most projects have gaps. Mixpanel can now fill them for you. With this update, you can: * **Fill every gap in one action**: From Lexicon → Tidy Up → Fill in the blanks, Mixpanel generates a display name and description for each event missing one and applies them across your project. * **Get names that fit your data**: Suggestions draw on the event name, sample property values, and your project's Business Context, and follow your naming convention when Data Standards is enabled. * **Keep what you wrote**: Enrichment only fills gaps. Events with an existing display name or description keep what you gave them. * **See what changed**: Every enriched field is recorded in the event's history, attributed to the user who ran the fill, marked as AI-applied, and written to your audit log like any other Lexicon edit. The same fill is available to agents over MCP via the Fill-Event-Metadata tool and inside Mixpanel Agent. This release covers events. Property enrichment is next. [Learn more →](/docs/data-governance/ai-powered-data-governance#automated-metadata-enrichment) **2026-08-07** ## Session Replay: Mobile Autocapture (Screen Views) Mobile teams can now autocapture screen view and screen leave events across our React Native, Swift, Android, and Flutter SDKs, with a one-time setup instead of per-screen instrumentation. Previously, autocapture was only available in our JS SDK. Mobile teams had no low-lift way to start capturing behavior, so getting basic screen-level data meant hand-instrumenting a track call on every screen, in every SDK, before they could answer even simple "which screens do people visit" questions. Autocapture hooks into your routing library, so screen view and screen leave events fire automatically after a one-time setup, with no per-screen tracking code. Teams get screen-level navigation data on mobile from a single integration with their router, with no ongoing per-screen tracking to write or maintain. Live across all four mobile SDKs: * [React Native](/docs/tracking-methods/sdks/react-native#autocapture) * [Swift](/docs/tracking-methods/sdks/swift#autocapture) * [Android](/docs/tracking-methods/sdks/android#autocapture) * [Flutter](/docs/tracking-methods/sdks/flutter#autocapture) **2026-07-28** ## AI-Powered Data Governance: merge suggestions for duplicate events and properties Over time, the same concept often ends up tracked under several names — `Add to Cart`, `add_to_cart`, and `addToCart`, or `from_date` and `from-date`. These duplicates clutter Lexicon, split your data across reports, and make analysis harder. Mixpanel can now automatically discover these potential duplicates for you, so you no longer have to hunt for them by hand. With this update, you can: * **Automatically discover duplicates:** From **Lexicon → Tidy Up**, Mixpanel surfaces groups of near-duplicate events and event properties in your project — no manual searching required. * **Clean up in bulk:** Every suggested group comes with a canonical name and is selected by default, so you can review the list and merge them all in one submission instead of pair by pair. * **Stay in control:** Merges behave exactly like a manual Lexicon merge — the raw data is unaffected and the action can be undone. Unselected groups are dismissed on submit so they won't be suggested again. Merge suggestions cover events and event properties (not user/profile properties) and are available to organizations on an Enterprise plan with AI features enabled. [Learn more →](/docs/data-governance/ai-powered-data-governance#merge-suggestions) **2026-07-26** ## Mixpanel Agent updates A roundup of more recent updates to Mixpanel Agent based on what you've been telling us. **Retention curves:** Mixpanel Agent now builds retention curves by default for retention analysis. **Cohorts saved automatically:** Cohorts the Agent creates are now saved to Lexicon, making it easy to use Agent cohorts. **Board date ranges:** When you ask the Agent to create a report from a Board, it uses the date range you're already viewing. Data stays consistent when you add the report to the board. **Artifacts:** Everything the Agent generates now appears in an Artifacts section at the bottom of the response. Reports, cohorts, custom properties, all in one place. **Lookup table properties:** The Agent can now find and use lookup table properties in analysis. **Answers grounded in Mixpanel Docs:** When you ask the Agent how Mixpanel works, it pulls from the actual documentation. **More types of page context:** The Agent now knows what you're looking at on Users and Events pages, so you can use it in more places. **2026-07-23** ## Mixpanel Agent now works in the background Close the tab. Lose your connection. Start a new conversation. The Agent keeps going. Now you can send off a question to the Agent, go about your day, and the answer will be waiting whenever you're ready. **2026-07-20** ## MCP: New Tools added Several new tools are now generally available on MCP Server. Note that to access the new tools you need to disconnect and reconnect Mixpanel MCP to authorize the new scopes. **Cohorts**: * `Create-Cohort` * `Get-Cohort` * `Update-Cohort` * `Delete-Cohort` * `List-Cohorts` * `Describe-Cohort-Schema` **Lookup Tables**: * `Create-Lookup-Table` * `Get-Lookup-Table` * `Update-Lookup-Table` **Custom Properties**: * `Create-Custom-Property` * `Get-Custom-Property` * `Update-Custom-Property` **Duplicate/entity merging**: * `Find-Duplicate-Groups` * `Dismiss-Duplicate-Group` * `Merge-Group` **Experiments additions**: * `Explain-Experiment-Health-Check` * `Run-Experiment-Pre-Launch-Checks` * `Search-Prior-Experiments` See the full list of tools in the [MCP Server documentation](/docs/mcp#available-tools). **2026-07-17** ## Destinations: a simpler way to send data out of Mixpanel We've reworked the Integrations page to make it easier to create and manage Destinations, Cohort Syncs, and Data Pipelines. With this update: * **"Integrations" is now "Destinations":** The new name makes the page's purpose clearer — it's for connecting data flowing out of Mixpanel — and reduces confusion for users who came looking for ways to bring data in. * **Destinations lives in the Data menu:** Find it under **Data → Destinations** in the main nav. It's still available in the settings menu for now, but that entry point will be removed eventually. * **Onboard cohort syncs directly from Destinations:** No more bouncing between the Integrations page and Lexicon. Open a connected destination, go to the **Syncs** tab, and click **Add Cohort Sync**. Onboarding from Lexicon still works. * **Separate views for connected and available destinations:** Your connected destinations and the full library are now split, making it easier to see what's already connected and to add something new. [Learn more →](/docs/cohort-sync) **2026-07-14** ## Passkeys You can now sign in to Mixpanel with a passkey - no password and no one-time code. Register a passkey once and authenticate with the same Touch ID, Face ID, Windows Hello, or hardware security key you already use to unlock your device. Passkeys are built on the WebAuthn/FIDO2 standard. The credential never leaves your device and is cryptographically bound to Mixpanel's domain, so it can't be phished, replayed, or used on a fake login page. With this update, you can: * **Sign in without a password:** Enable "skip password" for a fully passwordless login (org-mandated SSO still applies) * **Manage your passkeys:** Register, name, and remove passkeys from Personal Settings, one per device * **Stay covered if you lose a device:** Generate single-use recovery codes to sign in when you can't present a passkey [Learn more →](/docs/access-security/login-methods#passkey-login) **2026-07-10** ## Feature Flags: React Native SDK Feature flagging is now generally available in the main React Native SDK (v3.5.0), with full parity to native iOS and Android. Previously, React Native customers had no supported native way to use feature flags — flags were beta-only and limited to JavaScript mode (Expo and RN Web), so teams on the main SDK couldn't gate features or run flag-based experiments. With this update, you can: * **Use flags across all RN modes:** Feature flagging works whether you're on the main React Native SDK, Expo, or RN Web. * **Get full native parity:** Evaluation, variant assignment, and automatic exposure tracking all work the same as they do on native iOS and Android. * **Gate features and run experiments:** Ship rollouts and flag-based experiments in React Native apps using the same workflow as the rest of your stack. Available in React Native SDK v3.5.0. [Learn more →](/docs/tracking-methods/sdks/react-native/react-native-flags) **2026-06-26** ## **Share Mixpanel Agent chats** Now you can send a link to any Agent chat and let your team read exactly what you asked and what it found. Chats are private by default. When you're ready to share, click the chat name and select "Share link." [Learn more →](/docs/mixpanel-agent#sharing) **2026-06-25** ## Introducing Mixpanel Agent: your always-on product analyst ![Introducing Mixpanel Agent: your always-on product analyst](https://mintcdn.com/mixpanel-edb78807/9CVHiraYq-X1FM8p/images/changelog/mp_agent_changelog_header.png?fit=max\&auto=format\&n=9CVHiraYq-X1FM8p\&q=85\&s=ddcc901eecd4fcfd2c45e417e5ca6534) Mixpanel Agent is now available for your team. It's an always-on product analyst that answers questions about your data in plain language, automatically investigates metric changes, and keeps you informed on the numbers you own. **Three ways to start using it today:** * **Self-serve answers:** Ask anything about your product and get an answer in seconds. No query builder, no data team required. *Try asking:* * *"How many users signed up for a trial last month"* * *"Summarize the insights from this analysis and give me top 3 takeaways."* * *"Build a dashboard for this new feature launch"* * **Root cause analysis:** When a metric moves unexpectedly, Mixpanel Agent automatically investigates the likely drivers and helps you get to the bottom of it.  * *Try asking: "Why did my activation rate drop last week?"* * **KPI monitoring:** Set up a monitor for any metric you own and Mixpanel Agent will surface what moved on your schedule, whether that’s daily, weekly, or monthly.  * *Try it: Open Automations and set up a monitor for a key metric you own today.* [Get started →](https://mixpanel.com/agent) |[Learn more from our docs →](/docs/mixpanel-agent) **2026-06-23** ## Session Replay: Flutter SDK for Android, iOS, and macOS Session Replay now supports Flutter. By many estimates, Flutter accounts for around 20% of all mobile apps being built — surpassing React Native and trailing only native — and until now, Flutter teams didn't have a way to capture replays from their apps. With this update, you can: * **Record replays across Flutter targets:** Capture sessions from Flutter apps running on Android, iOS, and macOS. * **Get parity with other mobile SDKs:** Flutter Session Replay matches the capabilities available on our other supported mobile platforms. * **Move seamlessly between reports and replays:** Filter Flutter replays with the same Mixpanel events, properties, and cohorts you already use. [Learn more →](/docs/tracking-methods/sdks/flutter/flutter-replay) **2026-06-18** ## Experiments: Breakdowns in Experiment Results You can now break experiment results down by a property — like country or platform — to spot per-segment effects that would otherwise be hidden in the aggregate. Previously, experiment results only showed the aggregate effect, hiding heterogeneous impact. A treatment could help mobile while hurting desktop, and you'd never see it. This was one of our most requested experiment enhancements. With this update, you can: * **Segment results by any property:** Break down experiment results by country, platform, plan, or any other property to see how the treatment lands across your user base. * **Get guardrails on post-hoc segmentation:** A built-in warning surfaces the risk of false positives when you segment after the fact. * **Trust the numbers:** Benjamini-Hochberg correction is applied automatically to control false discovery rate as the number of segment-level tests grows. [Learn more →](/docs/experiments#advanced-statistical-methods) **2026-06-18** ## Experiments: Benjamini-Hochberg Correction Segmented experiment results now use Benjamini-Hochberg correction to preserve statistical power while still guarding against false positives. When you break experiment results into segments, the number of statistical tests explodes. Bonferroni correction becomes far too strict once multiplied by segment counts, killing statistical power and hiding real effects. With this update, you can: * **Preserve power in segmented analysis:** Benjamini-Hochberg controls the false discovery rate instead of family-wise error, so real segment-level effects still show up as significant. * **Stay protected from false positives:** BH still applies a principled correction — it just does so without over-penalizing the way Bonferroni does at scale. * **Get it automatically:** BH correction is auto-enabled the moment you segment experiment results, with an undo toast if you want to revert. [Learn more →](/docs/experiments#advanced-statistical-methods) **2026-06-02** ## Experiments and Feature Flags: Multi-Environment Support You can now copy experiments and feature flags between Mixpanel projects, so promoting work from dev → staging → production no longer means recreating everything from scratch. Some teams run separate Mixpanel projects per environment, but Experiments and Feature Flags had no way to move work between them. Customers had to manually rebuild every flag and experiment in production, leading to typos, drift, and long debugging sessions when something didn't match. With this update, you can: * **Copy flags and experiments between projects:** Promote work from dev to staging to production without manual recreation. * **See which projects an item is linked to:** A new **Environments** dropdown in the Experiments and Feature Flags side panel shows the projects a given flag or experiment is linked to. * **Manage connections over time:** Remove inter-project connections when you no longer need them. * **Works with third-party flags too:** Multi-environment support applies to experiments backed by Mixpanel flags or third-party flags. Faster, safer promotion from dev to prod, fewer manual recreation errors, and a clear path to the multi-environment best practice you already follow elsewhere in your stack. Learn more: [Experiments](/docs/experiments#multiple-environments) | [Feature Flags](/docs/featureflags#multiple-environments) **2026-05-20** ## Feature Flags: Flag Persistence for Mobile and Web SDKs Client-side flags now resolve instantly on launch instead of blocking on a network round-trip. For mobile-first customers, every app launch meant the SDK had to wait for a network response before flag variants resolved. On slow or flaky connections, users would see the fallback experience before their assigned variant kicked in. Customers running large rollouts had been asking us: how do we serve the right experience during a slow or offline network connection, or a Mixpanel feature flag service outage? Client-side SDKs can now persist flag assignments locally and return them instantly on next launch. With this update, you can: * **Resolve flags instantly on launch:** Cached assignments are returned immediately, with no network round-trip required before variants are available. * **Stay resilient to network conditions:** Users see their assigned variant even on slow, flaky, or offline connections — and continue to during any service disruption. * **Ship consistent experiences:** Eliminate the fallback flash that occurs when a variant resolves after initial render. Learn more per SDK: [JavaScript](/docs/tracking-methods/sdks/javascript/javascript-flags#flag-persistence) | [Swift](/docs/tracking-methods/sdks/swift/swift-flags) | [Android](/docs/tracking-methods/sdks/android/android-flags#flag-persistence) | [Flutter](/docs/tracking-methods/sdks/flutter/flutter-flags#flag-persistence) **2026-05-19** ## Audit Log: 60+ New Log Types Self-serve audit logs [launched last month](/changelogs), and we've been expanding what's captured so customers can investigate activity without filing support tickets. With this update, the self-serve Audit Log now captures entries for: * **Access changes:** User, Team, Organization, and Project access changes * **Data exports:** Raw Export API requests * **Feature flags and experiments:** Configuration and lifecycle changes * **And much more:** Dozens of additional event types across the platform See the full list of captured events in the [Audit Log documentation](/docs/access-security/audit-log). **2026-05-15** ## Databricks Pipeline Integration is now Generally Available The **Databricks export destination** for Data Pipelines is now **Generally Available**. Since launching in Private Beta, we've worked with early customers to harden reliability and polish the setup experience. It's ready for production workloads. ### What you can do with it Export your Mixpanel event data directly to your Databricks workspace via Unity Catalog Managed Volumes — no third-party ETL tools or custom infrastructure required. Mixpanel loads raw events into a single-column table and automatically creates a typed view on top, so your data team can start querying with standard SQL immediately. A few things that make this integration particularly useful: * **Works across all Databricks clouds** — AWS, GCP, and Azure are all supported * **Date-clustered tables** — raw tables use liquid clustering on `event_date`, so date-range queries are fast without manual optimization * **Static IP support** — works with IP allowlisting if your Databricks workspace has network restrictions * **Serverless-friendly** — pairs well with Serverless SQL Warehouses for fast startup and pay-per-use pricing If your analytics and data science teams are already working in Databricks, this is the simplest way to get your Mixpanel data into that environment without stitching together intermediate storage or custom export scripts. The Databricks destination is available to any Mixpanel customer with the Data Pipelines add-on package. Get started with the [Databricks integration](/docs/data-pipelines/integrations/databricks). **2026-05-12** ## MCP Server: Support for Experiments and Feature Flags (Beta) You can now manage experiments and feature flags directly from the Mixpanel MCP Server. Ask your AI assistant to list, inspect, create, or update experiments and flags in natural language — no context switching required. **Experiments (Beta):** * **List Experiments:** List and search experiments in a project * **Get Experiment:** Retrieve experiment details, configuration, and results * **Create Experiment:** Create a new experiment * **Update Experiment:** Modify an experiment's configuration or manage its lifecycle * **Get Experiment Setup Guidance:** Best-practice guidance for designing an experiment * **Get Experiment Results Interpretation Guidance:** Best-practice guidance for interpreting experiment results **Feature Flags (Beta):** * **List Feature Flags:** List and search feature flags in a project * **Get Feature Flag:** Retrieve feature flag details and targeting rules * **Create Feature Flag:** Create a new feature flag * **Update Feature Flag:** Modify a feature flag's configuration or targeting * **Get Feature Flag Setup Guidance:** Best-practice guidance for creating and configuring a feature flag * **Get Feature Flag Lifecycle Guidance:** Best-practice guidance for rollout, kill-switch, and cleanup [Learn more →](/docs/mcp) **2026-05-11** ## Drop Filters Keep unwanted events out of your project — before they're stored. You can now define filters in Lexicon using event names and properties to drop events at ingestion, so they never hit storage or count toward your volume. With this update, you can: * **Define drop rules in Lexicon:** Filter by event name, properties, and values to catch the events you don't want. * **Drop at ingestion:** Matching events are discarded before storage — they don't consume volume and don't show up in reports. * **Improve data quality:** Keep noisy, irrelevant, or misfired events out of your project automatically. * **Control cost:** Reduce event volume by filtering junk at the source instead of paying to store it. * **Enable self-serve governance:** Give data teams a way to keep projects clean and the ratio of used-to-tracked events high, without engineering involvement. [Learn more →](/docs/data-governance/data-clean-up#3-drop-filters) **2026-05-11** ## Session Replay: Mobile Session Replay is now open source Session Replay for iOS and Android is now open source. The full source is public on GitHub alongside the rest of our SDK lineup. Android is now a single multi-module repo ([mixpanel-android](https://github.com/mixpanel/mixpanel-android)) covering analytics, session-replay, common, and openfeature-provider — one repo, one release flow, consistent versioning. With this update, you can: * **Debug Session Replay issues yourself:** Read the actual SDK source instead of filing a support ticket to understand behavior. * **Get better results from AI tooling:** Claude Code, Cursor, Copilot, and similar tools work dramatically better when they can read the SDK source directly. * **Contribute and inspect changes:** Follow development, open issues, and review changes in the open. On Android, cross-module changes are now a single PR instead of coordinated releases across multiple repos. Explore the repos: [iOS Session Replay](https://github.com/mixpanel/mixpanel-ios-session-replay-package) | [Android SDK](https://github.com/mixpanel/mixpanel-android) **2026-05-11** ## Verified Cohorts in Lexicon Cohorts can now be verified in Lexicon, giving your team a clear signal for which cohorts are trusted for analysis. Until now, users could verify events and behaviors but had no way to do the same for cohorts. With this update, you can: * **Verify cohorts in Lexicon:** Bulk-verify up to 100 cohorts at a time from the cohorts table, or verify individual cohorts via the overflow menu or edit modal. * **See verification status at a glance:** Verified cohorts display a verified icon — just like events. Hovering over the icon shows who verified it and when. * **Filter by verification status:** Quickly find verified cohorts using the verification filter in the Lexicon cohorts table, or filter by verification status in the query builder. [Learn more →](/docs/users/cohorts#verifying-cohorts) **2026-05-08** ## Experiments: Variant Screenshots, Configuration Tab, and Diagnostics Tab Reviewing and debugging experiments just got significantly easier. Previously, experiment variants were identified only by key name — reviewers couldn't see what was visually different between them. Health check alerts (SRM, Pre-Experiment Bias) were also unactionable, with no per-metric detail, no drill-through, and no way to inspect the underlying user population. This release brings visual context to variants, a redesigned configuration surface, and a new diagnostics workflow for investigating experiment health. With this update, you can: * **Attach screenshots to variants:** Give reviewers a visual reference for what each variant looks like, so approvals and QA don't rely on variant keys alone. * **Configure experiments in a full-width tab:** The new Configuration Tab replaces the sidebar, with room for cohort targeting and rollout group management alongside the rest of your setup. * **Investigate experiment health:** The new Diagnostics tab includes Health Checks (SRM and Pre-Experiment Bias) with per-metric breakdowns, actionable next steps, and drill-throughs into the underlying data. * **Inspect exposed users:** A new Exposed Users table surfaces the user population behind each experiment so you can validate assignments and troubleshoot unexpected results. [Learn more →](/docs/experiments#advanced-statistical-methods) **2026-05-07** ## Feature Flags: OpenFeature Providers Across Mixpanel SDKs Adopt Mixpanel Feature Flags without rewriting your flag-evaluation layer. Teams that have standardized on [OpenFeature](https://openfeature.dev/) — the vendor-agnostic feature flag API — can now plug Mixpanel in directly through official providers. With this update, you can: * **Keep your existing OpenFeature integration:** Swap Mixpanel in behind the standard OpenFeature interface with no application code changes. * **Standardize across languages:** Official providers are available for 8 languages — Web JS, Node.js, Go, Java, Python, Ruby, Kotlin, and Swift. * **Discover through the ecosystem:** All Mixpanel providers are listed on the [OpenFeature ecosystem page](https://openfeature.dev/ecosystem/?instant_search%5BrefinementList%5D%5Bvendor%5D%5B0%5D=Mixpanel). **2026-05-05** ## Session Replay: UI Controls for Sampling Change sampling rates without shipping code. Previously, adjusting sampling required a code change and engineering effort — and on mobile, teams could be stuck with the wrong rate for months while waiting on app store review. Paid Session Replay customers can now manage sampling directly from the Mixpanel UI, with changes taking effect within the hour. With this update, you can: * **Set sampling rates from the UI:** Adjust replay sampling without touching code or waiting on a release. * **Add conditional rules:** Sample based on event, property, or URL to focus capture on the sessions that matter most. * **Iterate quickly on mobile:** Skip the app store review cycle when tuning replay volume on Android and iOS. **Availability:** Generally available on Web, Android, and iOS. Exclusive to paid Session Replay Add-On customers. [Learn more →](/docs/session-replay#ui-controls) **2026-04-29** ## Stripe Projects: set up Mixpanel without leaving your CLI ![Stripe Projects: set up Mixpanel without leaving your CLI](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/stripe_project.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=8de9d47240237904acce82f3612ae5d0) When you're building with Stripe, adding analytics shouldn't mean stopping to create a separate account. Mixpanel is now available in Stripe Projects — developers and AI agents can provision and configure Mixpanel directly from the Stripe Projects CLI, with account creation, authentication, and plan selection all handled in one place. With this integration, you can: * **Provision without context-switching:** Set up a Mixpanel account and project from the Stripe CLI. There's no separate signup flow and no manual implementation. * **Let your agent handle it:** AI agents assembling a project stack can now add Mixpanel automatically. Credentials flow directly to wherever they're needed, with no human intervention required. * **Go from zero to tracking fast:** Once provisioned, you get a fully configured Mixpanel project ready to receive events — skip the setup and start shipping. Search for Mixpanel in the [Stripe App Marketplace](https://marketplace.stripe.com/apps/mixpanel-provider-integration) or run the Stripe Projects CLI to discover and provision Mixpanel directly. See the [Stripe Projects documentation](https://docs.stripe.com/projects) for setup instructions. **Note:** Available for Free and Growth plans. Enterprise provisioning via Stripe Projects is not currently supported. **2026-04-20** ## Session Replay: Console Logs & Network Calls Debug faster with full visibility into what your app was doing during a replay. Previously, troubleshooting from a replay meant guessing at what went wrong under the hood — no console errors, no failed requests, no way to see why something broke. It was the single biggest gap our customers cited compared to competing tools. Session Replay now captures console output and network activity, synced to playback so you can see exactly what happened at the moment of an issue. With this update, you can: * **See console errors and warnings:** Console messages are captured alongside the replay and synced to the timeline, so you can jump straight to the error and see the surrounding context. * **Inspect network calls:** `fetch`, `XHR`, and resource loads are captured with full request and response detail — status codes, headers, payloads — available in dedicated drawers as the replay plays. * **Debug without leaving Mixpanel:** No more toggling between replay and browser devtools or piecing together logs from your monitoring stack. Learn more about [console logs](/docs/session-replay#console-logs) and [network calls](/docs/session-replay#network-calls). **2026-04-20** ## OpenAPI Specs for Feature Flags & Experiments APIs Feature Flags and Experiments management APIs are now fully documented with public OpenAPI specs at [developer.mixpanel.com](https://developer.mixpanel.com/reference). Previously, teams building automations against Flags and Experiments had to reverse-engineer network requests from the Mixpanel app or file support tickets to get endpoint details. Now, the full API surface is documented and ready to build against. With this update, you can: * **Automate flag and experiment management:** Programmatically create, update, and archive flags and experiments as part of your release workflows. * **Generate client code:** Use the OpenAPI specs to generate typed clients in your language of choice. * **Integrate with your stack:** Wire flag and experiment lifecycle into CI/CD, internal tools, or approval workflows without guesswork. Browse the specs at [developer.mixpanel.com](https://developer.mixpanel.com/reference). **2026-04-20** ## Experiments: Dynamic Config Support Ship variant changes without shipping code. Previously, running an experiment meant hardcoding the logic for each variation in your app — any tweak to copy, layout, or a threshold required a code change and a release. There was no way to remotely control experiment parameters from Mixpanel the way you already could with a Dynamic Config feature flag. Now, experiment variants can carry a JSON parameter, matching the Dynamic Config behavior already available on flags. With this update, you can: * **Attach JSON to any variant:** Define an arbitrary JSON object per variant directly in the experiment setup UI. * **Read parameters from your SDK:** Access the structured parameter from your SDK the same way you read a Dynamic Config flag — no new integration required. * **Drive multiple changes from one experiment:** Control copy, layout, pricing tiers, thresholds, and more from a single experiment, all remotely from the Mixpanel app. Available in all SDKs today. [Learn more →](/docs/experiments#experiment-json-parameters) **2026-04-14** ## Session Replay: Bookmarked Replays Save the replays that matter. Until now, Session Replay playlists only saved filters, not individual sessions — so there was no way to hold onto a specific replay inside Mixpanel. With Bookmarked Replays, you can save individual replays directly to a playlist for easy access later. With this update, you can: * **Bookmark individual replays:** Save any replay to a playlist so you can return to it without rebuilding filters or hunting through sessions. * **Keep expired replays visible:** Bookmarked replays that fall outside your retention window stay accessible in a separate "Expired" section, so you can see what you've lost and evaluate whether a longer retention window is worth it. [Learn more about bookmarking replays →](/docs/session-replay#bookmarking-replays) **2026-04-14** ## Custom Roles: Granular project-level permissions Custom Roles let you create specialized access profiles beyond the four default project roles (Owner, Admin, Analyst, Consumer). Define granular permissions tailored to specific job functions or workflows — each project supports up to 5 Custom Roles. With Custom Roles, you can: * **Define precise access:** Configure permissions across six categories — Analysis, Feature Flags and Experimentation, Data Management, Data Access/Exports/Alerts, Data Sources and Definitions, and Settings and Notifications. * **Start from templates:** Use an existing role as a starting point and adjust permissions as needed. * **Copy roles across projects:** Clone a Custom Role to another project in the same organization. * **Assign to project members, service accounts and teams:** Custom Roles work with service accounts and organization-level teams for bulk role assignment. **Classified Data Access changes:** Previously managed via a separate per-user toggle, classified data access is now a permission within roles. No default role — including Owner and Admin — has classified data viewing access by default. This ensures access is always an explicit decision. Custom Roles is available to organizations on **Enterprise** plans. See our [pricing page](https://mixpanel.com/pricing/) for more details. For full documentation, see [Roles & Permissions → Custom Roles](/docs/orgs-and-projects/roles-and-permissions#custom-roles). **2026-04-13** ## Glean integration: Mixpanel insights inside your enterprise AI ![Glean integration: Mixpanel insights inside your enterprise AI](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/gleanIntegration.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=c08d2d2a4a6d8f1921c2948462eb68a9) Mixpanel is now live as an MCP app in [Glean Assistant](https://www.glean.com/blog/mcp-apps-assistant-apr-drop-2026). You can ask Glean about conversion rates, retention trends, and feature adoption and get live Mixpanel data back — in the same conversation as your Slack threads, Jira tickets, and Google Docs. No separate tab. No query builder. With this integration, you can: * **Root-cause incidents faster:** Ask "conversion dropped last Thursday — what happened?" and get Mixpanel's event-level breakdown alongside the deploy log and the Slack thread about the bug, all in one answer. * **Analyze launches in context:** Ask how a new flow is performing and Glean auto-brackets the right date range based on when it shipped — no manual date-picking required. * **Put data in reach of everyone:** Non-analysts — CS leads, marketing, execs — can get product metrics in the tools they already live in, without learning the query builder. Mixpanel is available in Glean's out-of-the-box MCP Apps template library today. Search for Mixpanel in the [Glean connectors directory](https://www.glean.com/connectors) and follow the setup instructions to connect your workspace. **Note:** This integration is available to all Mixpanel plans at no additional cost. **2026-04-10** ## Postgres Connector is now Generally Available The **Postgres Connector** is now **Generally Available**. Since launching in Public Beta earlier this year, we've worked closely with early users to refine reliability, performance, and setup experience. It's ready for production. ### What you can do with it Connect your Postgres database directly to Mixpanel and start analyzing your transactional data alongside your product usage — no ETL pipelines, no CDPs, no custom scripts required. This is especially useful if your most important data (user records, subscription state, AI model logs) lives in a transactional database and hasn't been making it into your analytics. The Postgres Connector closes that gap with minimal setup. Works with all major managed Postgres providers, including Amazon RDS, Google Cloud SQL, Supabase, Neon, and DigitalOcean Managed PostgreSQL. Get started with the [Postgres Connector](/docs/tracking-methods/warehouse-connectors). **2026-04-09** ## Alerts: Take control with scheduling, history, and webhooks ![Alerts: Take control with scheduling, history, and webhooks](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/alertsImprovements.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=9d68e28a6e7230992cd0ba6c408b6e3f) A well-configured alert can be the difference between catching a problem before it becomes a crisis and spotting an opportunity before it passes. That's why we've enhanced Mixpanel Alerts to give you more precision over when alerts fire, more visibility into how they're working, and more flexibility in where notifications go. With these improvements, you can: * **Schedule when alerts evaluate:** Notification windows let you define specific days, time ranges, or multiple schedules with different thresholds, so alerts fire when something is genuinely unexpected — not when your data follows its normal pattern * **Test before you enable:** Run a retroactive simulation over any time window to see how often an alert would have fired and at what values, before it reaches anyone's inbox * **See the full trigger history:** Every alert trigger is now logged with the exact metric value at that moment, so you can spot patterns without digging through email or Slack * **Manage everything in one place:** The enhanced alerts management hub shows status, last triggered time, trigger count, and sync health for every alert in your project * **Know when alerts break:** When a report change breaks an alert, Mixpanel notifies the owner immediately rather than going dark * **Route notifications via webhook:** Send alerts to any HTTP endpoint in your stack: incident management platforms, workflow tools like Zapier or Make, and custom dashboards * **More context in every notification:** Alert emails and Slack messages now include a trend chart at trigger time Less noise, more signal. [Learn more](/docs/features/alerts) **Note:** Alerts improvements are available on all plans. Growth plan customers are limited to 5 alerts per project. Enterprise customers have unlimited alerts. **2026-04-06** ## Audit Log: Track activity across your organization and projects We've introduced Audit log to help you maintain visibility, security, and compliance across your Mixpanel organization and projects. Audit log provides a record of activity — who made changes, when they occurred, and what was modified. Whether you're investigating an issue, ensuring compliance, or monitoring security, audit log gives you the transparency you need. **What's tracked:** * **Alerts, Boards, Cohorts, & Reports:** Creation, updates, and deletions * **Data management:** Event deletions, data exports, and user data requests * **Access & security:** User authentication, service account management, and role changes * **Integrations:** Data pipeline and warehouse source configuration changes Audit log is available at both the organization and project level. Organization audit logging includes organization-wide events like user logins and service account creation in addition to project level logging. Audit log is available to organization owners and admins only. **Key features:** * **CSV export:** Download audit logs for analysis * **Event filtering:** Quickly find specific actions or changes by event type or user * **Retention:** 90 days for Free and Growth plans, 2 years for Enterprise plans Access audit log from Organization Settings or Project Settings. [Learn more about audit log →](/docs/access-security/audit-log) **2026-04-05** ## Experiments: CUPED Reach significance faster on high-variance metrics. Engagement, revenue, and retention often take a long time to reach statistical significance because of natural user-to-user variance — slowing down decisions on real effects. CUPED (Controlled-experiment Using Pre-Experiment Data) uses each user's pre-experiment behavior to strip out that baseline variance from the analysis. With this update, you can: * **Tighten confidence intervals without shifting means:** CUPED removes variance driven by pre-existing user differences, so treatment effects surface more clearly. * **Ship decisions sooner:** With less noise, experiments cross the significance threshold with fewer users and less time. * **Apply it broadly:** CUPED is available for primary, secondary, and guardrail metrics. [Learn more →](/docs/experiments#advanced-statistical-methods) **2026-04-05** ## Experiments: Winsorization Stop outliers from dominating your experiment results. A single extreme value — one \$100k order, one user who binged 10,000 events — can swamp revenue and value metrics and mask the real treatment effect. Winsorization caps values beyond a chosen percentile so results reflect the typical user, not rare extremes. With this update, you can: * **Cap extreme values:** Set a percentile threshold and let Winsorization clip outliers on either tail before computing the metric. * **See the typical user's experience:** Results reflect what most users saw, not what a handful of extreme cases pulled the average toward. * **Diagnose outlier-driven conclusions:** If your significance or direction flips materially after applying Winsorization, that's itself a signal your original result was outlier-driven. [Learn more →](/docs/experiments#advanced-statistical-methods) **2026-04-05** ## Experiments: Pre-Experiment Bias Health Check Catch bad randomization before you act on it. Lift observed during an experiment might be a pre-existing difference between the assigned groups — bad randomization or biased assignment logic — rather than a true treatment effect. Until now, there was no built-in way to spot this. Pre-Experiment Bias runs a "Retro A/A" on a pre-experiment window you choose (1, 2, or 4 weeks) before exposure and re-applies the same analysis. With this update, you can: * **Detect non-equivalent groups:** Significant "lift" in the pre-experiment period is a red flag that your variant groups weren't actually equivalent going in. * **Choose the right window:** Configure a 1, 2, or 4 week pre-experiment window based on how much stable history you have. * **Fix it with confidence:** When bias is detected, the check prompts you to apply a CUPED correction or review your assignment logic before trusting the primary results. [Learn more →](/docs/experiments#advanced-statistical-methods) **2026-04-05** ## Experiments: Sample Ratio Mismatch (SRM) Health Check Detect bucketing bugs before they invalidate your results. A bug in bucketing, tracking, or assignment can skew the observed variant split — you configured 50/50 but got 60/40 — silently invalidating everything downstream. SRM is an opt-in health check that flags when the observed allocation drifts from the configured split beyond what chance would explain. With this update, you can: * **Catch skewed splits early:** A Chi-squared test compares observed vs. configured allocation and warns when the deviation is beyond chance. * **Opt in per experiment:** SRM isn't always-on — you enable it (and can disable it) so it doesn't fire on experiments where a mismatch is expected. * **Take corrective action:** When SRM triggers, pause the experiment, fix the root cause, and restart with confidence. [Learn more →](/docs/experiments#advanced-statistical-methods) **2026-04-05** ## Experiments: Bonferroni Correction Guard against false positives when testing multiple metrics or variants. Testing many metrics at 95% confidence inflates the odds that at least one "win" is a false positive — the classic many-dice problem. Bonferroni correction tightens the significance threshold based on the number of comparisons you're running. With this update, you can: * **Control family-wise error:** Bonferroni divides your confidence threshold by the number of comparisons (metrics × non-control variants), reducing false positives across the whole experiment. * **Trust multi-metric readouts:** When you track many metrics at once, Bonferroni makes sure a single flashy result isn't just noise. * **Pair with the right method:** For segmented results, Mixpanel automatically switches to Benjamini-Hochberg, which preserves more power at scale. [Learn more →](/docs/experiments#advanced-statistical-methods) **2026-03-24** ## Mixpanel MCP: Talk to Your Data ![Mixpanel MCP: Talk to Your Data](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/changelog-mcp-launch.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=97e07e271bdd625517420121fcbb0fb7) Mixpanel MCP brings your product data into the AI tools you already use - Claude, ChatGPT, Gemini, Cursor, Notion, and more. Ask questions in natural language, get answers backed by real data, and take action without switching context. [Connect your first AI tool →](/docs/mcp) ## What you can do * Build boards and reports in natural language. Ask a question, get an answer — and a Mixpanel report to go with it. * Combine behavioral data with qualitative context in a single conversation. Pull up a specific user's replays alongside their event history to understand not just *what* they did, but *how* they experienced it. * Project Owners and Admins can manage event and property metadata directly through MCP — generating descriptions, verifying data, tagging events, and hiding or dropping properties at scale. ## Try these prompts * *"In the last three months, which channels have driven the most new users?"* * *"User X submitted negative feedback on \[date]. Analyze their session replays to understand what happened."* * *"Show me signup conversion rates by acquisition source for the last 30 days."* * *"Generate event descriptions for all of my events in Lexicon."* [Learn more about Mixpanel MCP →](https://mixpanel.com/blog/mixpanel-mcp/) **2026-03-13** ## Feature Flags + Experiments: Now on Go and Flutter Feature Flags and Experiments are now supported in Go (server-side) and Flutter (client-side) SDKs. Mixpanel Feature Flags help you control rollouts, deliver variants for A/B tests, and change application behavior without redeploying code. Experiments build on those variants with measurement and analysis. Now, Feature Flags and Experiments are available in the Go and Flutter SDKs: * **Go (server-side):** Use the Mixpanel Go SDK to evaluate flags on the backend. Choose local evaluation for low-latency use cases, or remote evaluation when you want server-side evaluation with Mixpanel cohort targeting and sticky variants. * **Flutter (client-side):** Use the Mixpanel Flutter SDK across iOS, Android, and Web to fetch flag variants, evaluate gates, and automatically track exposure events for experiment analysis. Learn more → * [Go SDK](/docs/tracking-methods/sdks/go/go-flags) | [Github](https://github.com/mixpanel/mixpanel-go) * [Flutter SDK](/docs/tracking-methods/sdks/flutter/flutter-flags) | [Github](https://github.com/mixpanel/mixpanel-flutter) **2026-03-12** ## Metric Trees: Build your first draft instantly with AI ![Metric Trees: Build your first draft instantly with AI](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/ai-for-metric-trees-v2.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=aef7859e721e573e3f0443d6dc8d014a) Metric Trees are a structured way to map how your business actually grows, connecting your north star metric to the bets, drivers, and inputs that move it. [Learn more about Metric Trees →](https://mixpanel.com/blog/mixpanel-metric-trees/) AI Metric Trees gets you to a strong, structured first draft fast, so you can spend less time on setup and more time turning strategy into action. Just provide your company website and a bit of context, and AI handles the rest. ## With AI Metric Trees, you can: * **Discover metrics you might miss:** Surface drivers, bets, and input metrics you may not have considered, organized around your growth model * **Start in seconds:** Just enter your company website and an optional description of your business or growth focus * **Get a thoughtful structure:** Receive a first draft with your north star, outputs, strategic bets, and input metrics * **Make it yours:** Edit the structure and connect nodes to your real Mixpanel metrics Generate your first AI Metric Tree and turn a blank canvas into a working foundation. [Learn more →](/docs/metric_tree#option-build-with-ai) **Note:** Metric Trees are available as an add-on for Enterprise customers. AI Metric Trees does not use your Mixpanel data. Generation is powered by OpenAI and based on industry best practices, common growth models, and the context you provide. **2026-03-03** ## Feature Flags: Target users using real-time behavior with Runtime Events Target feature variants based on what users do, not just who they are. Mixpanel Feature Flags supports several targeting options, including cohorts (audiences based on behavior or attributes) and runtime properties (conditions like OS, app version, or browser). With Runtime Events, you can **target users based on specific Mixpanel events in real time**. When a user triggers a designated event, they receive the active variant on the next flag evaluation, without waiting for a cohort refresh. This unlocks serving features based on time-sensitive, behavior-driven patterns such as: * **Onboarding flows:** Show tutorial content after a user completes their first action * **Progressive feature unlocking:** Unlock advanced features after users complete key milestones * **Conditional promotions:** Display special offers after a user makes their first purchase * **Behavior-gated experiments:** Run experiments only on users who have demonstrated engagement You can also fine-tune Runtime Events with optional settings like First Time triggers (with session vs. indefinite duration) and event property filters (for example, triggering only on purchases over a certain amount or specific page paths). **Availability:** Runtime Events are designed for client-side SDKs that can monitor events in real time. Server-side implementations are not supported. * **Web SDK:** available now * **Mobile SDKs:** coming soon [Learn more →](/docs/featureflags/runtime-events) **2026-02-27** ## Feature Flags: Exposures on User Profiles See which feature flags a user was exposed to — and which variant they saw — directly on their profile. With Mixpanel Feature Flags, you can target users [via](/docs/featureflags#types-of-feature-flags) Dynamic Configs, Experiments, and Feature Gates. When something looks off, the fastest way to debug is knowing exactly which flags a user saw and which variant they were served. Until now, validating targeting or troubleshooting support issues often meant digging through reports and stitching together the answer manually. Now, User Profiles include a new **Feature Flags** section that shows the enabled flags a user was most recently exposed to, including: * Variant assignment * Flag type (Experiment, Feature Gate, Dynamic Config) * A searchable table that loads progressively as you scroll This makes it much easier to confirm rollout behavior, validate experiment enrollment, and triage unexpected end-user experiences. [Learn more →](/docs/featureflags#identifying-user-exposures) **2026-02-26** ## Security Protocol Update: Phasing Out TLS 1.0 and 1.1 To ensure we provide the most robust protection against evolving threats, we are upgrading our network security configuration. **Starting April 2026, we will be deprecating support for legacy TLS 1.0 and 1.1 protocols and configuring TLS in accordance with NIST SP 800-52 Rev 2 across our APIs and web app.** After this date, all API requests must use at least TLS 1.2. Using at least TLS 1.2 is a recommended security best practice to improve data integrity and maintain compliance with industry standards. ### Updated TLS Protocols Support | TLS Protocol Version | Support Status | Notes | | :- | :- | :- | | **TLS 1.0** | ❌ Disabled | No longer supported | | **TLS 1.1** | ❌ Disabled | No longer supported | | **TLS 1.2** | ✅ Enabled | Minimum supported version | | **TLS 1.3** | ✅ Enabled | Preferred where available | ### Updated Mixpanel Cipher Suite Support by TLS version Mixpanel will also mirror the commonly accepted standards for TLS 1.2 and TLS 1.3 Cipher Suite compatibility, as listed in this [external resource](https://wiki.mozilla.org/Security/Server_Side_TLS#Intermediate_compatibility_\(recommended\)). | TLS Version | ✅ Supported Cipher Suite | | :- | :- | | **v1.2** | TLS\_ECDHE\_ECDSA\_WITH\_CHACHA20\_POLY1305\_SHA256 | | | TLS\_ECDHE\_ECDSA\_WITH\_AES\_256\_GCM\_SHA384 | | | TLS\_ECDHE\_ECDSA\_WITH\_AES\_128\_GCM\_SHA256 | | | TLS\_ECDHE\_RSA\_WITH\_CHACHA20\_POLY1305\_SHA256 | | | TLS\_ECDHE\_RSA\_WITH\_AES\_256\_GCM\_SHA384 | | | TLS\_ECDHE\_RSA\_WITH\_AES\_128\_GCM\_SHA256 | | | TLS\_DHE\_RSA\_WITH\_CHACHA20\_POLY1305\_SHA256 | | | TLS\_DHE\_RSA\_WITH\_AES\_256\_GCM\_SHA384 | | | TLS\_DHE\_RSA\_WITH\_AES\_128\_GCM\_SHA256 | | **v1.3** | TLS\_AES128\_GCM\_SHA256 | | | TLS\_AES256\_GCM\_SHA384 | | | TLS\_CHACHA20\_POLY1305\_SHA256 | ## What’s the impact of this change? Any data sent to Mixpanel’s Ingestion API endpoints after **April 1, 2026** via TLS 1.0 and 1.1 will not be accepted, meaning you will not receive analytics information from users who engage with your applications using the 1.0 and 1.1 versions of TLS. While the vast majority of modern traffic uses TLS 1.2 or 1.3, data can be sent to Mixpanel via TLS 1.0 and 1.1 when end-users access your application from older browsers or devices with operating systems that don’t support or enforce modern TLS versions. ### Commonly Affected Examples The following browsers and OS may still use TLS 1.0 or 1.1: | Category | Impacted Versions / Environments | Examples & Notes | | :- | :- | :- | | **Mobile** | Android \< 5.0 (pre-Lollipop) | 2012 Samsung Galaxy S4 | | | iOS \< 9 | 2010 iPhone 4 | | **Desktop OS** | Windows XP, Vista, early Windows 7 | Without critical security updates | | | macOS \< 10.9 | Legacy Apple systems | | **Browsers / Runtimes** | Internet Explorer ≤ 10 | | | | Firefox \< 78 | | | | Chrome \< 84 | | | | Java 6 / early Java 7 | | | | Python \< 2.7.9 | OpenSSL without TLS 1.2 support | | | Old OpenSSL versions (\< 1.0.1) | | | **Embedded / IoT** | Legacy firmware | Hardcoded TLS stacks / Non-upgradable | | **Protocol Specific** | Devices supporting only SSLv3 / TLS 1.0 | | Please Note: While we’ve listed some common versions above, compatibility can vary. For example, Chrome 30-32 started supporting TLS 1.2. For a comprehensive list of environments that may still use TLS 1.0/1.1, we recommend visiting the Browser/OS Official Documentation or referring to the [TLS Support Version History](https://en.wikipedia.org/wiki/Version_history_for_TLS/SSL_support_in_web_browsers) (External Resource). ## How to identify affected users More than 99% of Mixpanel Web and API Traffic use TLS 1.2+; however, to assess how many users are potentially affected by this change in your projects: 1. In an Insights report, select `All Events` as the primary metric 2. Break down by the [following properties](/docs/data-structure/property-reference/default-properties), depending on your tracking SDK(s) * JavaScript (Web): Browser (`$browser`) and Browser Version (`$browser_version`) * Mobile: Operating System (`$os`), OS Version (`$os_version`) Tip: You can create a [Custom Property](/docs/features/custom-properties) to quickly bucket users. For example, the following Custom Property can help check against Chrome and Firefox. ![Custom Prop Example](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/tls-dep-custom-prop-example.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=cbd0369c9b6f8ccfb9038d9eaf822264) ## Recommended Actions * **Client-Side Tracking:** Where possible, we recommend encouraging users to update their browsers or OS to a version that communicates using TLS 1.2+. * **Server-Side Tracking:** Verify your server environments are configured to use TLS 1.2+. * **Protocol Migration:** If your application currently utilizes legacy TLS versions, we recommend deprecating them in favor of TLS 1.2+ to ensure long-term security and compatibility. * **Proxying:** We understand that some devices have hardware/software limitations that may not be able to use TLS 1.2+. In these cases, if you would like to maintain tracking for these devices, you could consider implementing a proxy server that accepts TLS 1.0/1.1 from end users and forwards the tracking data to Mixpanel Ingestion APIs via TLS 1.2+. ## Support & Inquiries We have notified users whose projects were detected receiving legacy TLS 1.0/1.1 Ingestion traffic. If you have questions about your project’s compatibility or need general assistance, please reach out to [Mixpanel Support](/docs/response-times#contacting-mixpanel-support). For technical questions about TLS protocols or broader security questions, please contact our GRC Team at [grc@mixpanel.com](mailto:grc@mixpanel.com). **2026-02-24** ## Postgres Connectors now in Public Beta ![Postgres Connectors now in Public Beta](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/postgres-connector-changelog.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=9087f7b1d6e212ac40ab05cf2699d3c4) ## New: Postgres Connector (Public Beta) We’re pleased to announce the **Postgres Connector**, now available in **Public Beta** — a simpler way to bring your transactional data into Mixpanel. ### What it does The Postgres Connector enables you to connect your Postgres database directly to Mixpanel and begin analyzing your data without needing intermediate tools or custom pipelines. This means you can get your most important user and product data into Mixpanel much faster and with less engineering effort. Unlike traditional ingestion approaches that require CDPs, ETL tools, or custom scripts, the Postgres Connector is built to work right from your database to Mixpanel. Early-stage teams, especially those without a data warehouse, can now include more complete data in their analytics workflows with minimal setup. ### Why this matters Many small and growing customers have told us it’s hard to get **complete user context** into Mixpanel because: * Existing options often require costly third-party tools. * Building custom sync scripts takes significant engineering time. * Important data lives only in transactional databases. That’s especially true for AI-centric products where app and model usage logs are often stored in Postgres and aren’t feeding into analytics today. The Postgres Connector helps close that gap. ### How it works * Connect your Postgres database directly from the Mixpanel UI. * Sync tables from Postgres into Mixpanel without intermediate services. * Compatible with all Postgres versions and major managed providers including: * DigitalOcean Managed PostgreSQL * Google Cloud SQL * Supabase * Neon * Amazon RDS * and more! This connector builds on Mixpanel’s Warehouse Connectors framework, which already supports popular data warehouses like Snowflake, BigQuery, Redshift, and Databricks. With this beta, we’re extending those same sync capabilities to transactional databases and bringing more of your source-of-truth data into Mixpanel for analysis. Learn more and get started [here](/docs/tracking-methods/warehouse-connectors). ### Try it today The Postgres Connector is now available in Public Beta. We encourage you to give it a try. It’s designed to make your data ingestion smoother and your analytics richer, with less friction. **2026-02-24** ## SSO, Data Views, and Sensitive Data Classification now available on Growth Plans ![SSO, Data Views, and Sensitive Data Classification Are Now Available on All Growth Plans](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/growth-security-features.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=5d5b806eb19201d5f1106a02db4ffab0) Growth customers now have access to powerful security and governance capabilities that give teams more control, protection, and flexibility as they scale. ### What’s now included in Growth? #### Secure access with SSO Strengthen authentication and simplify user management with Single Sign-On across your organization. Learn more [here](/docs/access-security/single-sign-on). #### Control visibility with Data Views Create tailored views of your data so teams see exactly what they need — while maintaining appropriate boundaries. Learn more [here](/docs/data-governance/data-views-and-classification#data-views-overview). #### Protect data with Sensitive Data Classification Identify and manage sensitive data with greater precision to support compliance and responsible data practices. Learn more [here](/docs/data-governance/data-views-and-classification#data-classification). ### Raising the standard for self-serve analytics Security and governance shouldn’t be an afterthought — or an obstacle to growth. By bringing these capabilities to all Growth plans, we’re raising the bar for what teams should expect from a self-serve analytics platform. Organizations no longer have to choose between ease of use and robust data controls. At the same time, our Enterprise plans continue to provide even deeper levels of governance, customization, support, and scale for organizations with the most advanced requirements. This update ensures that as our customers grow, Mixpanel grows with them, delivering strong security foundations at every stage. If you’re on Growth, these features are available now. You can find more details on our growth plans [here](https://mixpanel.com/pricing/). **2026-02-24** ## AI-Powered Event Suggestions for Templates Setting up a new board just got a little easier. We’ve introduced **AI-Powered Event Suggestions for Templates** to help streamline the process of mapping your events to templates, reducing guesswork and saving time during setup. ### Smarter event recommendations When selecting a template, it’s not always obvious which events in your project correspond to each slot. Now, Mixpanel automatically suggests the best-fit events based on your existing data. You can accept the recommendations as-is or swap in different events at any time, you’re always in control. This update is designed to smooth out one of the more common onboarding friction points: figuring out what events you have and how to use them. With AI-powered suggestions, getting from setup to insight takes less manual effort, and less second-guessing. You can give it a try the next time you create a board from a template. **2026-02-20** ## Deprecation Notice: Legacy US-to-EU Data Forwarding ends July 2026 for EU Projects > [!WARNING] > > **⏳ Extended timeline to February 2027 (notified projects only)** > > **Only projects we notified directly have an extended timeline.** If you did not receive an email from Mixpanel about an extension, your project is not extended. US-to-EU forwarding ended on July 1, 2026, and events your EU projects send to US endpoints are no longer accepted as of August 1, 2026. See the July 1 update below. > > If we notified you that your project has an extended timeline: > > * **Now:** Review and update your implementations. Some updates take longer than others, so we recommend that you start before January. > * **January 2027:** A temporary reporting preview begins. Once the preview begins, events ingested through US Ingestion API Endpoints for your extended projects will be hidden from the Mixpanel UI and Query API results to help you identify affected reporting. These events will not be deleted and will remain available through the Event Export API. > * **February 2027:** Your extension ends. Complete your implementation updates by then to prevent data loss. After your extension ends, events sent to US endpoints will not be accepted. Previously hidden events will become visible again, which may change your report counts. > > To update your implementation, point it to Mixpanel's EU servers (`api-eu.mixpanel.com`). See **Required Action** below for SDK-specific steps. > > Not sure whether your project is extended? [Contact support](https://mixpanel.com/get-support) before planning around the February 2027 date. > > **Update:** We have pushed out the extended timeline from January 2027 to February 2027 to give customers additional time. > [accordion] 🚨 July 1, 2026 update: US-to-EU Data Forwarding has officially ended (standard timeline) > > As scheduled, we have sunset US-to-EU data forwarding. \ > **For EU Projects that still send data to the US, to help you assess the impact, events sent to US endpoints will be temporarily hidden from your UI and Query API endpoints until August 1, 2026.**\ > \\ > > **How events are being filtered**\\ > > \[July 1, 2026 - August 1, 2026]: New US->EU Forwarded events have not been deleted. However, they are temporarily hidden from the UI and Query API endpoints if they match all of the following criteria: > > * The event was processed after July 1st (UTC) (`mp_processing_time_ms` > ``). > * The event was forwarded from the US (`$mp_is_forwarded` is defined). > > These events are not deleted — they remain accessible via the Raw Export API during this period, and will be un-hidden on August 1, 2026, so your reporting counts may change at that time. \ > \ > **Events that are still being sent to the US after August 1, 2026 for EU Projects will not be accepted.** \ > \ > **If you are affected, please ensure your implementation is updated to point to Mixpanel's EU Servers `api-eu.mixpanel.com` immediately to prevent permanent data loss after August 1, 2026.**\ > \\ > > *Need help or want to opt out? If you wish to opt out of this UI preview and un-hide your forwarded events early, please [contact support](https://mixpanel.com/get-support).* > > ⏳ **Note:** Some projects have an extended timeline to **February 2027**. These projects are not affected by the temporary event-hiding described above. If this applies to your project, we've already reached out with a notification. If you did not receive a notification, your deadline is **August 1, 2026**. Starting July 2026, we will be sunsetting the legacy automated US-to-EU Data Forwarding process for [EU Data Residency projects](/docs/privacy/eu-residency) to align with data residency best practices and improve ingestion performance. After this date, data sent to our US Ingestion Servers for EU Data Residency projects will no longer be forwarded, which can result in data loss. ## Is my project affected? * **EU Projects created before August 18, 2025: If your implementation sends data to Mixpanel's US Ingestion Servers (`api.mixpanel.com`), you may be affected by this change. Please review the action required below.** * EU Projects created on or after August 18, 2025: These projects already require direct ingestion to our EU Servers. No action is needed. ## Required Action for EU Projects sending data to US Servers To avoid any disruption to data ingestion for your EU Projects, **please review and update your implementations to use the dedicated Ingestion API EU Subdomain (`api-eu.mixpanel.com`).** This ensures your data is routed directly to its intended destination. **Guidance** 1. **Verify which projects have EU Data Residency:** Navigate to [Organization Settings](/docs/orgs-and-projects/managing-projects#viewing-project-information) > Projects and click into each Project to confirm whether Data Residency is set to EU. 2. **Identify Traffic:** In your EU Project(s), create an Insights Report and break down “All Events” by the API Endpoint (`$mp_api_endpoint` ) event property to determine which Ingestion Servers your events came from. `$mp_api_endpoint=api-eu.mixpanel.com` is EU and `$mp_api_endpoint=api.mixpanel.com` or `api-js.mixpanel.com` is US. Add breakdowns for Mixpanel Library (mp\_lib) and Event Name (\$event\_name) to pinpoint the affected SDKs and events. 3. **Update and Review Implementation:** If your project has EU Data Residency, please follow the guides below that apply to your setup to ensure your data routes to our EU Servers. If you are using Mixpanel’s SDKs, the documentation linked below has instructions on updating your implementation code to EU: * [Javascript](/docs/tracking-methods/sdks/javascript#eu-data-residency) * [React Native](/docs/tracking-methods/sdks/react-native#eu-data-residency) * [Android](/docs/tracking-methods/sdks/android#eu-data-residency) * [iOS (Objective-C)](/docs/tracking-methods/sdks/ios#eu-data-residency) * [iOS (Swift)](/docs/tracking-methods/sdks/swift#eu-data-residency) * [Flutter](/docs/tracking-methods/sdks/flutter#eu-data-residency) * [Unity](/docs/tracking-methods/sdks/unity#eu-data-residency) * [Python](/docs/tracking-methods/sdks/python#eu-data-residency) * [Node.js](/docs/tracking-methods/sdks/nodejs#eu-data-residency) * [Ruby](/docs/tracking-methods/sdks/ruby#eu-data-residency) * [PHP](/docs/tracking-methods/sdks/php#eu-data-residency) * [Go](/docs/tracking-methods/sdks/go#eu-data-residency) * [Java](/docs/tracking-methods/sdks/java#eu-data-residency) If you are using Mixpanel’s Ingestion API Endpoints, Proxy Server, or an Implementation not listed above: * Please update your Ingestion API Base URL to the [EU Residency Server](/reference/overview): `api-eu.mixpanel.com` If you are using Partner Integrations that send data into Mixpanel (e.g., CDPs, Messaging, AB Testing): * Please contact the Partner’s Support Team for instructions on how to set the integration to point to Mixpanel’s EU Server URL. If you have questions about which specific projects we have observed US Traffic on or need further assistance, please don’t hesitate to reach out to [Mixpanel’s Support Team](/docs/response-times#contacting-mixpanel-support). **2026-02-17** ## Feature Flags — Group Cohort Targeting ![Feature Flags — Group Cohort Targeting](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/data-group-cohort-targeting.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=83098bf15f8aa0fa0ae99e5e3359afea) Feature flag rollout groups can now target **group cohorts** — cohorts built on a group key dimension such as Company, Organization, or any custom group entity. **What's new:** * **Target groups, not just users:** When a flag's Variant Assignment Key is set to a group key (e.g., `company_id`), the cohort builder automatically shifts its identity-dimension to that group (instead of users). * **B2B-ready rollouts:** Build cohorts like "Enterprise companies with >50 seats" or "Organizations on the Pro plan" and target them directly for rollouts. * **Same cohort builder:** Group cohorts are created in the existing cohort builder, scoped to the relevant group key — no new tools to learn. * **Combine with [runtime targeting](/docs/featureflags#runtime-targeting):** Layer runtime properties (e.g., platform, region) on top of group cohort targeting with AND conditions for precise control. Group cohorts follow the same \~2-hour refresh cadence as user cohorts. [Learn more about Group Cohort Targeting →](/docs/featureflags#targeting-&-identity-management) **2026-01-30** ## Custom Alerts via webhook Custom Alerts can now send notifications via webhooks, enabling you to integrate Mixpanel alerts with any third-party platform or custom system in your stack. Previously, alerts were limited to Email and Slack notifications. With webhook support, you can now route alert notifications to incident management tools, custom dashboards, monitoring systems, or any HTTP endpoint you configure. What's new: * Project-level webhook configuration: Add and manage webhook endpoints in Settings > Integrations > Webhooks * HTTP Basic Authentication: Secure your webhooks with username and password authentication * Test connection: Verify webhook connectivity before saving your configuration * Easy alert integration: Select your configured webhook from the "via Webhook" dropdown when creating or editing alerts When an alert triggers, Mixpanel automatically sends a JSON payload containing alert details to your specified endpoint. More details on how to get started in our [docs](/docs/features/alerts#webhook-alerts). **2026-01-28** ## Annotations Timeline: Visualize Your Business Context Annotations enable you to add time-stamped notes, allowing you to view metrics with the context that matters to you. We've seen teams add valuable context about everything from product launches, marketing campaigns, outages, and holidays. Now, you can visualize all your annotations in a dedicated timeline view that shows how different types of events align across your data. ## Timeline Visualization A new chart view displays annotations grouped by tag in separate rows, making it easy to see patterns and relationships across different event types. See at a glance when your Marketing campaigns overlapped with Product releases, or how Outages coincided with traffic spikes. ## Automatic Alignment The timeline automatically syncs with your main chart, working seamlessly with both line and column visualizations to show annotations exactly where events occurred. No manual configuration needed - the timeline stays perfectly aligned as you zoom, change date ranges, or switch chart types. ## Interactive Exploration * **Hover** over any annotation to preview its details * **Click** to view the full annotation list, edit existing notes, or create new ones right from the timeline * **Filter by tag** to focus on specific event types and hide the rest ## Tag-Based Organization Use the tag filter to quickly analyze how particular categories of events impact your metrics. Focus on just Marketing campaigns, just Product releases, or any combination of tags that helps you tell your story. [Learn more →](/docs/features/annotations) If you have any questions or need assistance, please reach out to our [Support Team](https://mixpanel.com/get-support). **2026-01-27** ## Data Volume Monitoring Default On for New Enterprise Customers ![Data Volume Monitoring Default On for New Enterprise Customers](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/dvm-default-on.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=bc594dd188adf63a326ebfaf42d9d1a3) New Enterprise accounts now have Data Volume Monitoring (DMV) enabled by default. Enterprise projects automatically monitor event volume, detect sudden or significant spikes, and notify admins so they can take corrective action quickly. No manual setup is required during project. You can enable or disable DMV at any time from Lexicon > Data Volume Monitoring. Learn more about DMV and configuration options in our [documentation](/docs/data-governance/data-volume-monitoring). **2026-01-26** ## Retiring /decide Endpoint Used in Older Mixpanel SDK Versions > [!WARNING] > > The infrastructure for the `/decide` endpoint (officially deprecated in April 2026) was fully decommissioned in August 2026. Starting April 2026, we will be fully retiring the `/decide` endpoint, which was used in older versions of Mixpanel SDKs. We began deprecating this in 2022; newer SDK versions no longer rely on it. **If you’re running an SDK version from 2022 or earlier, please review the details below.** ## How to check your project's current SDK Version: 1. In an Insights Report, select "All Events" as your primary metric 2. Break down by ["Mixpanel Library" and "Library Version"](/docs/data-structure/property-reference/default-properties) event properties Tip: You can find a list of all Projects in your Organization in [Organization Settings > Projects](/docs/orgs-and-projects/managing-projects#viewing-project-information), and use the above check to confirm which SDK and versions are in use. ## Mobile SDKs The `/decide` endpoint controlled whether [Legacy Automatically Tracked Mobile Events](/docs/tracking-methods/sdks/ios#legacy-automatically-tracked-events) `$ae_first_open`, `$ae_updated`, `$ae_crashed`, `$ae_session`, and `$ae_iap` were enabled or disabled for a Mixpanel Project. If you currently collect these events and your Mobile SDK version does not meet the minimum versions listed below, your application will stop tracking the Automatic Mobile events after April 2026. To keep collecting the Automatic Mobile events, please complete the following: 1. **Update to at least the minimum SDK** **versions listed below** and 2. **Explicitly enable this tracking in your initialization code via `trackAutomaticEvents`** Minimum Version and Guides: * **Android:** [v7.0.0+](https://github.com/mixpanel/mixpanel-android/releases/tag/v7.0.0) | [Initialization Guide](/docs/tracking-methods/sdks/android#library-configuration) * **React Native:** [v.2.0.0+](https://github.com/mixpanel/mixpanel-react-native/releases/tag/v2.0.0) | [Initialization Guide](/docs/tracking-methods/sdks/react-native#library-configuration) * **iOS (Objective-C):** [v.5.0.0+](https://github.com/mixpanel/mixpanel-iphone/releases/tag/v5.0.0) | [Initialization Guide](/docs/tracking-methods/sdks/ios#library-configuration) * **iOS (Swift):** [v.4.0.0+](https://github.com/mixpanel/mixpanel-swift/releases/tag/v4.0.0) | [Initialization Guide](/docs/tracking-methods/sdks/swift#library-configuration) * **Flutter:** [v.2.0.0+](https://github.com/mixpanel/mixpanel-flutter/releases/tag/v2.0.0) | [Initialization Guide](/docs/tracking-methods/sdks/flutter#library-configuration) ## JavaScript (Web) SDK If your JavaScript SDK version is older than the minimum version below, there will be no functionality change; however, your application will begin receiving `410` Response Error Codes from this endpoint. We strongly recommend updating to the minimum version below. Minimum Version: * **JavaScript:** [v.2.45.0+](https://github.com/mixpanel/mixpanel-js/releases/tag/v2.45.0) If you have any questions or need assistance with checking your Mixpanel Project's SDK versions, you can reach out to [Mixpanel’s Support Team](/docs/response-times#contacting-mixpanel-support). **2026-01-20** ## Mixpanel Data Inspector, now available for all Mixpanel JavaScript SDK users ![Mixpanel Data Inspector Browser Extension](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/browser-extension.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=f98d030688b942806ec8a2f6dc9ace5d) The Mixpanel Data Inspector Browser Extension is now available for all [JavaScript SDK users](/docs/tracking-methods/sdks/javascript), making it easier to debug issues and validate your Mixpanel implementation in real time, right in your browser. The extension can also now be used in each Chrome's DevTools window, enabling continuous usage even if the page refreshes. Get the improved extension today on [Chrome](https://chromewebstore.google.com/detail/mixpanel-data-inspector/camknfenboildigjgpmhojlcnejppooh) and [Firefox](https://addons.mozilla.org/en-US/firefox/addon/mixpanel-data-inspector/). For installation and usage instructions, see [Mixpanel Data Inspector documentation](/docs/tracking-methods/data-inspector). **2025-01-15** ## 📱 Session Replay is now available for React Native ![📱 Session Replay is now available for React Native](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/rn-sr-ga.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=f392d86ac76bd3d049a4e112141160df) Now you can replay user sessions for React Native apps, bringing Session Replay to your cross-platform mobile development workflow. With React Native Session Replay, you can: * Answer the what and why in one place by moving seamlessly between reports and replays * Find what matters faster by filtering replays with trusted Mixpanel events, properties, or cohorts * Watch the complete user journey across your React Native iOS and Android apps Session Replay is free to try. Check out the resources below to get started! [View Docs →](/docs/session-replay) **2025-12-22** ## Feature Flagging: Runtime Targeting ![Feature Flagging: Runtime Targeting](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/runtime.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=503f5035df7c89a4720cf46dafc1bc40) Use Runtime Targeting to evaluate feature flags using a live evaluation context, without storing data in Mixpanel. With runtime targeting, you can: * **Target instantly:** Evaluate flags using runtime properties like plan, device, or platform, or when they perform specific events tracked at runtime * **Stay accurate:** Ensure flag decisions always reflect a user’s current state * **Reduce overhead:** No persistence, no backfills, no user history required Ship more precise rollouts with runtime targeting. [Learn More →](/docs/featureflags#targeting-&-identity-management) Note: Runtime targeting is available as part of the Feature Flagging add-on for Enterprise customers. Reach out to your account team to learn more. **2025-12-17** ## Updated Date Range and Metric Block Guardrails for Insights Reports To enable a great self-serve experience and quick queries, we have updated guardrails for Insights Reports as described below. ## Updated Date Range Guardrails for 'All Events' and Line & Column Charts * For Line/Columns charts using “Hour” Unit, the report date range can be a maximum of 31 days * For Line/Columns charts using “Day” Unit, the report date range can be a maximum of 12 Months * For Insights Reports using “All Events”, the report date range can be a maximum of 93 days * For Insights Reports using “Cohort Over Time” with Line/Column charts, the report date range can be a maximum of 93 Unit Intervals (i.e., 93 Days for Day Unit, 93 Weeks for Week Unit) If your existing reports reach the guardrail, we recommend the following approaches to update your reports and receive the same analysis: * Combine events into [Custom Events](/docs/features/custom-events) or [Saved Behaviors](/docs/features/saved-metrics-and-behaviors), which are not subject to the 93-day “All Events” limit. * Utilize [Time Period Comparisons](/docs/reports/insights#time-period-comparisons) for year-over-year analysis. * Reduce the report date range, or create multiple reports with smaller date ranges in a single [Board](/docs/boards). ## Updated Metric Block Guardrails Insights Reports will have a 40 metric/behavior block limit. This includes all metric and behavior blocks, such as hidden metrics and formulas. If you hit this limit, you can: * Migrate some metrics to a new report. * Utilize [Saved Formulas](/docs/reports/insights#save-formulas-for-re-use) if your report contains formulas. * Combine multiple events into [Saved Behaviors](/docs/features/saved-metrics-and-behaviors#simple-behaviors). If you have any questions or need assistance building a report, please don’t hesitate to reach out to our [Support Team](https://mixpanel.com/get-support). **2025-12-11** ## Dynamic Config for Flexible Feature Rollouts Use dynamic config to update your application in real-time and target users with different experiences, without changing code, all from one JSON payload. With dynamic config, you can: * **Go beyond on/off:** Control UI, logic, and defaults with structured parameters * **Iterate faster:** Update configuration instantly without redeploys * **Deliver tailored experiences:** Serve different configurations to different users * **Reduce risk:** Adjust behavior in production with minimal blast radius Build more adaptable product experiences with dynamic config. [Learn More →](/docs/featureflags#types-of-feature-flags) Note: Dynamic config is available as part of the Feature Flagging add-on for enterprise customers. **2025-11-20** ## Dynamic Segments ![Dynamic Segments](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/topn.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=e019095cc0ae5751e4d21967e03f8208) You can now choose between Dynamic and Manual Segments in all reports and visualizations when you add Breakdowns. Dynamic Segments automatically stay up to date based on how your report is sorted as your data changes. With Dynamic Segments you can create reports like: * Funnels broken down by your top 5 app versions * Top 15 brands by weekly purchases * Bottom 10 pages by visits With added flexibility for Dynamic and Manual segments, you now have control over how segments update across your reports. **2025-11-20** ## Expanded regional support for MCP ![Expanded regional support for MCP](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/MCP-region.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=40732f0a3b9084b45c4bf0dbee0df702) ## MCP Support for India and EU Projects The Mixpanel MCP Server is now available for projects hosted in India and the EU. Teams in these regions can now access the MCP server to talk with their data in natural language and democratize analytics across their organization, all while complying to local regulations. ### Getting Started Organization administrators can enable MCP Server access in Settings > Organization > Overview. Learn more about the MCP Server and how to get started in our [documentation](/docs/mcp). **2025-11-14** ## Session Replay: Heatmap Comparison Mode ![Session Replay: Heatmap Comparisons](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/nov_sr_changelog_hmcomparisons.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=514031eb9ee8e16eb5ad8866dd73521c) ## See engagement differences at a glance with side-by-side heatmap comparisons Now you can compare two Heatmaps (web only) side by side to see how user engagement differs across any cut of your data, including: * **Cohort:** Free vs. Paid * **Experiment Group:** Test vs. Control * **Browser:** Chrome vs. Safari * **Time:** Current quarter vs. Last quarter To get started, click `Compare` in the top-right corner of your Heatmap. With **Heatmap Comparison Mode**, it's easier than ever to validate design changes, spot patterns, and identify what drives better engagement, all within Mixpanel. Note: Heatmaps are currently only available on web. **2025-11-14** ## Session Replay: Frustration Signals ![Session Replay Frustration Signals](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/nov_sr_changelog_rage.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=d7732638d3f3df479f6a19f680b75fd4) ## Find user friction fast—view frustration signals in replays and analyze them in your reports Mixpanel now detects **Rage Clicks** and **Dead Clicks** automatically in Session Replay (web only), helping you instantly see where users experience friction. * **Rage Click:** When a user clicks the same spot multiple times in quick succession * **Dead Click:** When a user clicks an interactive element that produces no visible response These frustration signals are automatically tracked as events: * `[Auto] Dead Click` * `[Auto] Rage Click` You can analyze them in reports, funnels, and dashboards just like any other event data. Find the "why" behind drop-offs and fix issues before they impact more users. Note: Rage Clicks and Dead Clicks are currently only available on web. **2025-11-14** ## Session Replay: AI Summaries ![Session Replay AI Summaries](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/nov_sr_changelog_ai.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=1db4747030dcedf54c67d14223ac664f) ## Let AI do the watching for you with accurate summaries that help you understand the "why" instantly Skip the manual replay review. With **AI Summaries**, Mixpanel automatically highlights key moments and summarizes every session, helping you get the "so what" behind user behavior in seconds. Summaries appear right beside your replays, giving you an instant read on what happened and why. Powered by your governed event data, they're uniquely accurate, so you can trust the insights and move faster from understanding to action. **2025-11-13** ## Filter at Item Level ![Filter at item level](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/segment-coloring.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=97d34573911f658579ebab1f52e29634) Mixpanel now allows you to choose “Matching items” to filter and aggregate only the list elements that meet your condition. Previously, when filtering on list properties like cart, filters used to apply to the entire list — not the individual items inside it. For example, if you filtered for cart.category = Garden, Mixpanel would include the entire cart’s revenue if just one item was from Garden, even if the rest were not. For example, if you filter on cart.sale\_price > 25 and were aggregating by taking the sum of cart.price then the sum would only be on elements that have cart.sale\_price > 25. **2025-11-04** ## Connect Your LLM Metrics to Mixpanel with Langfuse ![Connect Your LLM Metrics to Mixpanel with Langfuse](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/mixpanel-langfuse-integration.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=f07949b0817c88174386b480bb37e527) We're excited to announce our integration with [Langfuse](https://langfuse.com), the open-source LLM engineering platform. Now you can automatically sync your AI application metrics from Langfuse directly into Mixpanel. This integration brings three new event types into Mixpanel: * **`[Langfuse] Trace`** - Complete LLM interactions with cost, latency, and observation counts * **`[Langfuse] Generation`** - Individual model calls with token usage and performance metrics * **`[Langfuse] Score`** - User feedback and quality evaluations Answer critical questions about your AI features: * How do AI interactions impact user retention and conversion? * Which users are driving the most LLM costs? * Does user feedback on AI outputs correlate with product engagement? **Set up in minutes:** 1. Add your Mixpanel Project Token in Langfuse project settings 2. Select your Mixpanel region (US, EU, or India) 3. Enable the integration Data syncs automatically every hour with full historical backfill. [View full documentation →](/docs/tracking-methods/integrations/langfuse) Install our [Analytics for AI dashboard template](https://mixpanel.com/p/NaKPyubj6EuA4oV75taqrq) to see pre-built reports for adoption, cost analysis, performance metrics, and more. *Questions? Reach out to [Langfuse support](https://langfuse.com/support) or check the docs for setup details and troubleshooting.* **2025-10-13** ## Feature Flagging — Precision control for every rollout ![Feature Flagging — Precision control for every rollout](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/feature_flags.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=e095e2814039fb90bc7f85ecc76e8289) Feature flagging gives teams fine-grained control over who sees what and when — so you can test new features safely, measure their impact, and roll out with confidence. **What's new:** * **Own every stage of your rollout:** Target specific audiences and ship with confidence. Start small, expand gradually, and stay in control at every phase of your release. * **Launch what matters, to who matters most:** Gate features by subscription tier, geography, or behavior — using dynamic Mixpanel cohorts that update automatically as users engage. * **Move fast without breaking things:** Safeguard reliability with kill switches, throttles, and instant rollbacks — plus audit trails, QA testers, and special role-based permissions to ensure stability and confidence at scale. * **One place to launch, learn, and grow:** Run roll outs and experiments, analyze results, watch replays and tie them directly to real user behavior — all without leaving Mixpanel. Ship safely and with clarity starting today. [Learn More →](/docs/featureflags) NOTE: Feature Flagging is available as a paid add-on for customers on the Enterprise plan. Reach out to your account team to learn more. **2025-09-26** ## Mixpanel Data Inspector Browser Extension ![Mixpanel Data Inspector Browser Extension](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/browser-extension.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=f98d030688b942806ec8a2f6dc9ace5d) Validate your Mixpanel tracking implementation with a new browser extension that provides real-time visibility into events being sent from your website. **Why this matters**: Debugging tracking issues and validating implementation just became much easier. Instead of guessing whether events are firing correctly, you can now see exactly what data is being sent to Mixpanel in real-time. **What you'll see**: The Data Inspector shows events as they're sent from the Mixpanel SDK, complete JSON payloads you can copy and examine, and search functionality to quickly find specific properties across events. This enhancement streamlines the development and QA process, helping teams identify tracking issues before they reach production and ensuring data quality with greater confidence. Try out the extension today on [Chrome](https://chromewebstore.google.com/detail/mixpanel-data-inspector/camknfenboildigjgpmhojlcnejppooh) and [Firefox](https://addons.mozilla.org/en-US/firefox/addon/mixpanel-data-inspector/). For installation and usage instructions, see [Mixpanel Data Inspector documentation](/docs/tracking-methods/data-inspector). **2025-09-22** ## Session Replay automatically appears in Event Metadata ![Session Replay automatically appears in Event Metadata](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/session-replay-in-lexicon.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=74ccf5b2f7634d949fe8e1b94a78855f) Event details now include relevant Session Replays directly in Query Builder, Lexicon, and Event pages. **Why this matters**: Understanding the full context of when and where events occur just got much easier. Instead of manually connecting events to session replays, you'll automatically see the relevant replay footage right alongside your event data. **What you'll see**: When exploring any event, relevant Session Replays will appear directly in the event details view, giving you immediate visual context for user behavior. This enhancement makes Session Replay a powerful tool for data governance, helping teams understand their data with less manual work and more confidence. For more details on this feature, see [Session Replay in Event Metadata](/docs/data-governance/lexicon#session-replay-in-event-metadata). **2025-09-17** ## Annotations, Now with Tags & Filters ![Annotations, Now with Tags & Filters](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/annotations-tags.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=9fc06992459974bf7e8ffe889ec760ee) Annotations let you add time-stamped notes so you can see metrics with context that matters to you. We’ve seen teams add valuable context about everything from product launches, marketing campaigns, outages, to holidays. Now, you can tag and filter Annotations, enabling you to review metrics against different layers of context. Curious how your Marketing initiatives have moved Signups? Or how all the launches for a specific team have moved a KPI? Annotations with tags and filters makes this easy. **What's new:** * **Tag & Filter:** Add tags to your Annotations to categorize them and filter in your report so you only see what's relevant. * **New Annotations sidebar:** See all annotations for your report’s date range in one place. * **Annotations on all chart types:** Previously, Annotations were restricted to time-based charts. Now, you can access this valuable context from any of your reports. **2025-09-10** ## Mixpanel Model Context Protocol (MCP) Beta ![Mixpanel Model Context Protocol (MCP) Beta](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/changelog-mcp-beta.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=9546457b0943673a274741beca97ca8a) What if you could talk to your data using natural language? Now you can with Mixpanel MCP Server beta, democratizing analytics access across your entire organization. ### How It Works The MCP Server serves as a bridge between AI tools (i.e., Claude) and your Mixpanel data. Connect your AI assistant and ask questions in plain English, such as "What's the retention rate for users who completed onboarding?" or "Show me our top converting events this quarter". ### Key Benefits Chat with your data like your most helpful coworker. Improve time-to-insight from "let me build you a dashboard" to "here is your answer". Empower non-technical team members to ask data questions without requiring analytics support. ### Getting Started Organization administrators enable MCP Server access in **Settings > Organization > Overview**. Then connect your AI tool and start asking questions in natural language. [Learn more in our documentation](/docs/mcp). **2025-09-08** ## Cohorts now in Lexicon ![Cohorts now in Lexicon](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/cohorts-change.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=15c1054cb83455773867074d90efbd04) Cohorts have now been integrated into Lexicon, making it easier to manage and reference them alongside your other saved definitions like metrics, custom events, and custom properties. **2025-09-02** ## Updated Billing & Data Retention: Simpler Pricing, Enhanced Privacy ![Updated Billing & Data Retention: Simpler Pricing, Enhanced Privacy](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/billing-data-retention.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=401cd25d0660c59e05f8ec1a31847b74) We're making two important updates to improve your Mixpanel experience: We're transitioning to ingestion-time based billing. This change makes pricing more predictable and transparent—you'll be billed based on when data arrives in Mixpanel, eliminating confusion around backdated events and making it easier to track your usage in real-time. We're updating our default data retention period to 2 years. This change reflects our commitment to data privacy and security best practices, ensuring your customer data is stored only as long as needed for meaningful analysis. These changes take effect on September 1, 2025. You can see if your account is on ingestion time billing in [Organization Settings](https://mixpanel.com/settings/org/plan). If you have specific retention needs beyond 2 years, please contact your account team to discuss custom retention options. **2025-08-22** ## Expand Event Images in Context Panel ![Expand Event Images in Context Panel](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/image-expansion.gif?s=8a168f7b48706e2997f8fe38ffb4901f) Expand images in Query Builder's context panel for a clearer view. When hovering over the event name, you can click associated images to easily view without leaving Query Builder. Whether you're validating an event property or reviewing metadata details, expanded images give you the full picture without breaking your flow. No more switching tabs or guessing from a thumbnail. **2025-08-18** ## Growth customers can now buy custom volumes of session replay ![Growth customers can now buy custom volumes of session replay](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/growth-custom-session-replay.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=9204882a60f8c8f84fccbae5982ae131) Growth customers can now buy custom volumes of Session Replay in addition to their 20k free replays! You've asked and we've answered: using more than 20k monthly replays is core to understanding your users. Growth customers can now purchase up to 500K monthly / 6M annual replays directly online. To purchase more replays: * Existing customers: you can manage your plan directly, including purchasing additional replays, from the pricing page or from your organization details page. * New customers: during your plan purchase, you can now directly add additional replays as you build your plan. You can view Session Replay pricing in our [plan builder](https://mixpanel.com/settings/org/plan?show-modal=plan-builder\&pb-step=session-replay). For questions about billing, check out our documentation [here](/docs/pricing#how-mixpanel-pricing-works) **2025-08-13** ## 📱 Session Replay is now available for iOS and Android ![📱 Session Replay is now available for iOS and Android](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/mobile-sr.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=0b4d41783ffcf20547d2efcd79ecc6cb) Now you can replay user sessions for web and mobile (iOS + Android), all in one unified platform alongside your analytics. With Mobile Session Replay, you can: * Answer the what and why in one place by moving seamlessly between reports and replays * Find what matters faster by filtering replays with trusted Mixpanel events, properties, or cohorts * Watch the complete user journey for web, iOS, and Android Session Replay is free to try. Check out resources below to get started! [View Docs →](/docs/session-replay) **2025-08-11** ## Metric Trees ![Metric Trees](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/latest_metric_trees.gif?s=6e963e699683bf5a69b1cb00a43bfbf7) Metric Trees gives you a complete picture of what drives success, helping you make data backed decisions in the context of your growth strategy. With Metric Trees, you can: * **Rally around KPIs:** Align leaders to contributors on how every initiative ladders up to impact * **See impact instantly:** Spot what’s changed, and why, from inputs to outputs * **Create accountability:** Assign clear owners to each key metric and track progress * **Adapt with your strategy:** Keep your tree up-to-date as priorities shift * **Drive action:** Jump from metrics to contextual reports, discuss in real time, and log insights for traceability Map your path forward and drive meaningful growth. [Learn More →](/docs/metric_tree) NOTE: Metric Trees add-on is available for customers on the Enterprise plan. Reach out to your account team to learn more. **2025-08-11** ## Experimentation Reporting 2.0 - Trusted Insights, Maximum Impact ![Experimentation Reporting 2.0 - Trusted Insights, Maximum Impact](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/experimentation_reporting.webp?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=85a530dbdf8c0bd51acda9e2109d3ccd) With Mixpanel’s new Experimentation Reports, you can monitor every experiment with any Mixpanel Metric — business, performance, or behavioral — and ensure you’re making decisions based on statistically significant results. **What’s new:** * **All metrics supported:** Measure impact on any new or existing Mixpanel metric * **Decisions you can trust:** Analyze multi-variant experiments with robust statistical significance. * **Diagnose results:** See the “why” with integrated experiment data in your behavioral analytics flow. * **One place for all your experiments:** View and filter all active and past experiments, their results, and decisions made. * **See the complete picture:** Link results with user behavior, cohorts, and session replays for the complete picture. **Test, learn, and innovate faster** — all in one solution for turning data into confident decisions. [Learn More →](/docs/experiments) NOTE: Experimentation Reporting is available as a paid add-on for customers on the Enterprise plan. Reach out to your account team to learn more. **2025-08-10** ## Save Column Widths in Tables ![Save Column Widths in Tables](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/column-widths.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=05e89f6fdb31415c2ad204c72ecb7f6d) Create stakeholder-ready reports that are polished and clear. You can now save custom column widths for the segments in table visualizations so your data always looks the way you want it to. Whether you're analyzing top-performing pages by URL or error rates by message content, you can resize segments to see the full value and save that setting. No more clipped text, and no need to reformat every time you open a report or board. **2025-08-05** ## Saved Metrics ![Saved Metrics](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/saved_metrics.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=5d81e97f23f4106dad6efc248605e601) Saved Metrics lets you standardize and reuse your KPIs throughout Mixpanel. No more data inconsistencies or wasted effort. Saved Metrics empowers your entire organization to define your most important metrics. What’s new with Saved Metrics: * **Standardize Definitions:** Define and save a metric definition once * **Share Metrics:** Share your saved metrics with specific teams, individuals, or across your entire project to ensure everyone is using the same metric * **Reuse Across Workflows:** Apply saved metrics across your reports, boards, and other Mixpanel features. Save time by using the source of truth. * **Update with a Click:** When a metric's definition changes, update it once and those changes will automatically reflect everywhere the metric is used. * **Clear Context:** Automatically see more details about what’s in a metric definition before you select it * **Multi-Group Analysis:** For customers with the Groups Add-on, you can now analyze metrics across different groups in the same report. More details [here](/docs/data-structure/group-analytics). Saved Metrics enables your team to move faster, make more informed decisions, and focus on what truly matters: driving impactful business outcomes. Learn more in our documentation [here](/docs/features/saved-metrics-and-behaviors). Plan Availability: Saving Metrics is available on all plans. Sharing Saved Metrics is available on Growth and Enterprise Plans only. Saved Metrics are also compatible with purchased add-ons. **2025-07-30** ## Heatmaps for Web Now available in Mixpanel: Heatmaps, a better way to visually understand your customers. Quickly see where users are clicking (and where they aren’t), spot friction points, and identify hot spots and dead zones at a glance. Use these insights to optimize page layouts, CTAs, and content based on real user interactions. Heatmaps come included with Session Replay and are easy to enable - just change one line of code ([Read more](/docs/session-replay/heatmaps)). **Don’t have Session Replay enabled yet?** [Learn more](/docs/session-replay), or reach out to your account team to get started. **2025-07-15** ## Customize Your Project Homepage ![Customize Your Project Homepage](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/homepage-board.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=1bb1e7472c74863b16d4d80b8ce2f86f) Tailor your Mixpanel experience to suit the needs of your organization. Now, project admins can set any Board in the project as the default project homepage. This means a personalized and productive start for every employee logging into Mixpanel. Since Mixpanel Boards are incredibly flexible, you can craft a homepage that suits your project. Here’s how a dedicated Homepage Board can improve your team's workflow: * **Access Key Information:** Direct your team to important documentation, onboarding guides, or key project data. * **Streamline Onboarding:** Guide new users to intro reports and content that’s specific to your organization. * **Highlight KPIs:** Put key KPIs front and center for your team by adding them to the Homepage Board. Users with the project admin role can configure the project's homepage in Project Settings. Removing the Homepage Board reverts the project to the default Mixpanel Home. **2025-05-19** ## Track key AI metrics ![Track key AI metrics](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/analytics-for-ai-template.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=d83ea802cb8b36e80b2472d4beb05f9b) When building AI products and features, we want to help you measure impact and effectiveness. You need clear answers to questions like: * Are customers even using my chatbot? * How much value do they get from AI outputs? * Do improvements to my agent drive higher retention? Our new template helps you answer these questions quickly. Get a dashboard with proven AI metrics up and running with a few clicks, so you can start understanding how AI impacts user and business outcomes. Learn how to set up templates in our [help docs](/docs/boards/templates). **2025-04-22** ## Optimized Funnel Re-entry When Optimized Re-entry mode is enabled, we actively evaluate all funnel entry attempts - even if the user’s previous funnel is still in progress. This allows us to capture potential conversions which might occur from subsequent entries, maximizing total conversions. If any user funnel entries within the report date range result in a conversion, we count the user as converted. With this mode, we are able to answer * How many unique users converted irrespective of if it was their first attempt or not? * How many total conversions were there, while counting simultaneous ongoing funnels? * Which webpages led to drop-offs? Learn more in our [help docs](/docs/reports/funnels/funnels-advanced#optimized-re-entry) **2025-04-16** ## Global Sidenav ![An easier way to navigate](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/global-sidenav.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=9bec9c0da3491bb04844a409cd915995) We’ve reorganized Mixpanel’s navigation into a persistent left-side panel to make getting around simpler and more intuitive. Here’s what’s new: * **More Screen Space:** We’ve removed the top navigation bar to give you more space to work. * **Effortless Navigation:** All your navigation is now on the left - making it easier to switch projects, create new content, and access Events, Users, Lexicon, and Cohorts seamlessly. * **Always Accessible:** The navigation panel is always available as your navigate through Mixpanel - making it easier to get around. How it’s organized: * **Top:** Project switching, creating new content, search, and quick links to Events, Users, Lexicon, and Cohorts * **Middle:** Boards - grouped into Pinned, Favorites, and Your Boards * **Bottom:** Settings, Help, and advanced reporting features. **Keyboard shortcuts:** `CMD + K` Open search, \`\`\` Expand or collapse the side navigation, `Esc` Close a report to return to your Board **2025-03-27** ## Enforce better governance with Data Standards ![Enforce better governance with Data Standards](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/data-standards.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=1024473420af3b03b0eb5ba3cd0aea7a) ### **Enforce better governance with Data Standards** We’ve made it easier than ever for teams to enforce trustworthy, consistent data with our new Data Standards feature — now available for Enterprise customers. This update empowers Data Governors to define event naming and metadata requirements for their projects, and instantly spot events that don’t comply. The new Data Standards feature includes: * **Custom Rules**: Define rules for naming conventions, event owners, descriptions, and uploaded images — all from the new Data Standards tab in Lexicon. * **Compliance Statuses in Lexicon**: Events are automatically evaluated and flagged as compliant or non-compliant, with visual indicators for events that are misnamed or missing metadata * **Filters for Fast Cleanup**: Quickly surface and fix non-compliant events using a new, dedicated filter view in Lexicon Data Standards gives Data Governors peace of mind — and makes it easier for everyone else to trust, explore, and analyze clean, reliable data. This feature is available exclusively for Enterprise plans. Learn more in our documentation [here](/docs/data-governance/data-standards). PS: Up next is automation! We’re exploring ways to apply automated actions when your Data Standards are met or violated — such as auto-hiding non-compliant events, or automating Event Approval. Interested in early access? Reach out to your Mixpanel Account Manager today. **2025-03-25** ## Mirror Sync Mode for Redshift Warehouse Connectors [Mirror](/docs/tracking-methods/warehouse-connectors#mirror) — a sync mode keeps your data in Mixpanel fully in sync with any changes that occur in the warehouse — is now generally available for the [Redshift Warehouse Connector](/docs/tracking-methods/warehouse-connectors). With Mirror, any time data is modified in your underlying warehouse table, that change is automatically reflected in Mixpanel through change data capture (CDC). You can iteratively implement, rename or remove columns, or reconcile transactions in your warehouse without any worry of data divergence in Mixpanel. This sync enables accurate analysis for all data types, including business data that changes often such as purchases. The Redshift Warehouse Connector is an add-on for Enterprise plans. Contact your account team to inquire about access **2025-02-10** ## New features for enhanced B2B account analytics! !\[New features for enhanced B2B account analytics!]\(/images/changelog/B2B - Summary.png) [Two new features built for B2B analysis](/docs/data-structure/group-analytics#how-is-b2b-company-analytics-different-than-group-analytics) are now available for customers with the [Group Analytics](/docs/data-structure/group-analytics) add-on! You can now improve adoption and reduce churn risk by monitoring strategic accounts with out-of-the-box **Account Profiles** and **Activation Metrics**. You can now answer questions such as: * Who are the power users within our strategic accounts? * How active are users within our strategic accounts? * How are users within our strategic accounts flowing through our activation funnels? * What are potential upsell opportunities for our strategic accounts? To access the new features, customers will need the Group Analytics add-on. In addition, you will need to turn on the advanced B2B Account Analytics functionality, steps for which are [here](/docs/data-structure/group-analytics#setup-b2b-company-key). Once done, [Account Profiles](/docs/data-structure/group-analytics#company-profiles) will automatically be created per each account, and can be accessed in the Users tab. You can also share Account Profiles with key stakeholders for simple account health reporting, such as Sales teams, Customer Success teams, and executives. To identify your [Account Activation Metrics](/docs/data-structure/group-analytics#activation-metrics), head over to an insights report and use the new computed property now available: **Number of users who did… (then select an event)**. This property makes it easy to create reports to track account activation, i.e., their adoption progress as an account. *** We have also deprecated the Revenue App as of Dec. 31, 2024. Thanks to our recently released [Revenue Analytics](/changelogs/2024-10-08-revenue-analytics), you can rebuild this report (and more) and save anything you create to dashboards. This [help document](/docs/features/revenue-analytics#metrics-definitions) guides you through step-by-step. \*Requires ingesting revenue data from [Data Warehouse Connectors](/docs/tracking-methods/warehouse-connectors). **2025-02-04** ## Introducing Autocapture from Mixpanel ![Set up analytics in minutes with Autocapture](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/auto-capture.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=f18502dc6c4ecc2f9bf2b21b954fea75) Introducing Autocapture from Mixpanel! With just a single code snippet, you can now track common events like pageviews, button clicks, and form fills without custom code, enabling you to get started with analytics in less than 2 minutes. Mixpanel’s Autocapture is a great starting point for analytics, getting you to critical user insights quickly. It’s also designed to work well in tandem with precision tracking — so you can go deeper and add more refined tracking over time. Learn more about Autocapture and setting it up in Mixpanel [here](/docs/tracking-methods/autocapture). **2025-02-04** ## Our Growth plan just got 100x more generous ![No more feature limits. Get 1M monthly events free on Mixpanel’s Growth plan.](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/1million-free-events.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=7fb7f511f9ca52c0d75bd4b047eefab2) No more getting stuck on arbitrary feature limits—get 1M monthly events free on Mixpanel’s Growth plan by simply putting down a credit card. Powerful analytics, unlimited reports, 20K session replays, cohorts for behavioral segmentation, and more… now starting at the affordable price of free. Read more on our [blog](https://mixpanel.com/blog/mixpanel-pricing-1m-free-events-autocapture/), and check out our new pricing [here](https://mixpanel.com/pricing/). **2025-01-31** ## Watch replays for any event — even backend events ![Watch replays for any event — even backend events](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/server-side-stitching.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=15d181fefef4d5c4c76fb220ee667650) ### **Watch replays for any event—even server-side** Coming soon on all plans, exclusively at Mixpanel: **Server-Side Stitching**! Session Replays now work for **all** your data, not just client-side or front-end events. That means you can jump straight from reports to replays, even for events tracked via APIs, sent from your data warehouse, or sent from the server-side. Here’s what’s new: * **Replays for your most important events** like purchases or signups—events typically tracked server-side or sent from the data warehouse. Now, you can see exactly what users did leading up to those moments. * **No more dead ends** – Product teams track data in many ways, and now, instead of hitting empty playlists for many of your events, you can watch replays seamlessly across all data sources. * **Complete view of the user journey** – Diagnose issues, optimize funnels, and improve your product experience with replays that work across client-side **and** server-side data. With **Server-Side Stitching**, you get a **fuller picture of user behavior**, helping you better diagnose issues, optimize funnels, and hone your product. This feature is **only available with Mixpanel**—no other session replay provider offers this level of visibility. You can learn more in our documentation [here](/docs/tracking-methods/sdks/javascript/javascript-replay#server-side-stitching). **2025-01-21** ## Mixpanel for Startups now provides over \$150k in value ![Mixpanel for Startups now provides over \\\$150k in value](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/revamped-startup-program.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=8dc534cf9c20efb630f5c6891d252e6b) The [Mixpanel for Startups](https://mixpanel.com/startups/) program has been revamped to ensure founders and product teams have the tools they need to build and scale, from day one. Eligible companies receive their first year of Mixpanel free on the Startup Plan — a new plan designed exclusively for participants in the program. This includes: * Advanced analytics capabilities * No feature gates * 500K Session Replay recordings * 1B annual events * Unlimited team seats * World-class support * And more! The new offer is worth over \$150k in value and startups who meet the eligibility criteria are welcome to [apply here](https://mixpanel.com/startups/). Note: The Startup Plan is not eligible for BAAs or MSAs. Additional details can be found in our [docs here](/docs/pricing/startup-program). **2024-12-19** ## Pin Filters to Boards ![Pin Filters to Boards](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/pinned-filters-settings-2.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=416b9ed5c9e45b3993832ab1c1393af6) Mixpanel has new customization options for the filters applied to your Boards. These Board-wide filter settings give you more control and flexibility over how people interact with your Boards. Board-wide filter settings: * Limit Filter Values: Improve Board clarity by limiting the number of filter values displayed. This is particularly helpful when you have a filter with a large number of values, allowing you to show only the most relevant options. For example, limit a "Country" filter to only include countries within a specific region. * Start Filter with Nothing Selected: Guide users towards specific filtering options by pinning a filter option to the top of a board without applying any filter values. This gives anyone using the Board quick access to a filter without automatically updating the data in the Board for all users. For example, pin a "Region" filter to a board with nothing selected. By default, users will see global data and will have quick access to filter the reports down to a particular region. Note: Currently available only for enterprise plans. **2024-12-02** ## Session Replay is now available on Free and Growth plans ![Session Replay is now available on Free and Growth plans](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/session-replay-all-plans.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=2028ab83df929896dfc3a5e1c8766839) Session Replay is now available on Free and Growth plans! * Customers on the Free plan have access to 10k free replays per month. * Customers on the Growth and Enterprise plans have access to 20k free replays per month. * Additional custom volumes of Session Replay are available as an add-on purchase for Enterprise plans. To access free replays, customers will need to ensure they’re on the latest Mixpanel plans. For customers on an existing Free plan: * Switch your plan to the latest Free plan, which includes 1M monthly events and 10k session replays. You can make this switch directly from the pricing page. For customers on an existing Growth plan: * You’re on the latest plan if you purchased or edited your plan after April 2024. If you’re not sure if you’re on the latest plan, you confirm on the pricing page - if you see ‘Make the Switch’ on the Growth plan, then you are on an older version. * You can make the switch to our latest plan directly from the pricing page. Enterprise customers should contact their account manager to determine their plan status. Read more about Session Replay in our [docs here](/docs/tracking-methods/sdks/javascript/javascript-replay). **2024-11-14** ## Add verification tags to your data ![Add verification tags to your data](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/verified-content.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=a6538a0482d00d1fba8d30b2f535612e) Introducing Verified Content! We’ve now made it easy for teams to identify and use “verified” metrics, events, and formulas confidently. This feature helps governors mark vetted content, making it crystal clear which metrics are trusted across the organization. The new Verified Content feature includes: * Badges in Lexicon: We've added a badge next to verified Events, Behaviors, Formulas, and Custom Events * Verification Context: Hovering over badges displays who verified the item and when, adding accountability and transparency * Verification Button in Details Page: On each item’s details page, you can verify it with a single click * Dedicated Category in Query Builder: We introduced a Verified category in Query Builder so users can quickly filter to see only trusted content * Verified Badge in Query Builder Context Panel: In the footer of the Query Builder’s context panel, the verified badge shows up, reassuring users that they’re working with golden metrics You can learn more in documentation [here](/docs/data-governance/lexicon#verify-data) Note: this feature is available only for enterprise plans currently. **2024-10-11** ## India Data Residency for Mixpanel ![India Data Residency for Mixpanel](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/mixpanel-india-data-residency.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=e23d7ba90235bba963f7df8ed8f9b3c5) Like our EU Data Residency, Mixpanel's India Data Residency helps you process, protect, and manage personal data securely and according to local requirements. Our Data Residencies are overseen by our dynamic Global Privacy Program, which is a dedicated team at Mixpanel monitoring trends and developing solutions to ensure that Mixpanel can meet your privacy and data transfer needs, now and in the future. Read more on our Blog: [https://mixpanel.com/blog/india-data-residency/](https://mixpanel.com/blog/india-data-residency/) **2024-10-09** ## Choose colors for your segments ![Choose colors for your segments](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/segment-coloring.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=97d34573911f658579ebab1f52e29634) Mixpanel now allows you to select the colors of various segments in your reports. You can choose the color for a particular segment by clicking the legend at the top of the chart. Choose between colors that exist in the theme, or choose an entirely separate color. Some common uses for this: * Highlight a particular segment for emphasis * On boards with the same breakdown repeatedly, set the colors for segments so they can be aligned across the board Color selection is available on both boards and reports, so you can easily update the segment colors for a report on a board as well. You can learn more in documentation [here](/docs/features/chart-customization#segment-coloring) Note: this feature is available only for enterprise plans currently. **2024-10-09** ## Set units for your metrics ![Set units for your metrics](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/metric-units.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=b4d8534a856765e64c070e4488caec89) Mixpanel now allows you to set the units for each of your metrics. You can set the unit, the precision, and whether or not you want an abbreviated value. This gets updated for tooltips as well as in the table below the chart. Some common uses for this: * Create a % based formula, and add the % unit so it's clear what the metric is measuring * Revenue based metrics, adding a \$ symbol to know what currency is involved You can also save the unit to a formula so that future uses of that formula will already be configured with the right unit. You can learn more in documentation [here](/docs/features/chart-customization#metric-units) Note: this feature is available only for enterprise plans currently. **2024-10-08** ## Mixpanel Revenue Analytics Mixpanel now helps you analyze the impact of your product and marketing initiatives on your key company revenue metrics. You can now answer questions like * How much new revenue has been generated by this product launch? Has it grown by more than 5%? * Why has LTV/CAC reduced, i.e why has cost of acquiring a valuable customer gone up? Which user segments are driving this? * Which product SKUs is contributing to the most upsell revenue? Is NRR (net revenue retention) also going up accordingly? Does it differ by company size? Irrespective of whether you have a transaction-based business model or a subscription-based business model, you can measure and monitor your top metrics in Mixpanel. We have built the analysis capabilities and underlying data model to ensure the differences in business models are accounted for throughout, providing 100% accurate revenue metrics analysis. Check out our [help docs](/docs/features/revenue-analytics) to learn more about when and how to use these new capabilities. You can also read more about [why we’re launching Mixpanel Revenue Metrics](https://mixpanel.com/blog/introducing-mixpanel-revenue-analytics-ltv-arpu-roas/) on our blog. NOTE: Revenue analytics features are only available to customers who have [setup Mixpanel using Warehouse Connectors](/docs/tracking-methods/warehouse-connectors) **2024-09-23** ## Mixpanel in your language ![Mixpanel in your language](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/localization.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=1409dab93282e27dd19564c9527474d9) Mixpanel is now available to use in additional languages, including Français, Español, Português, 한국어, 日本語, 繁體中文, 简体中文, and Bahasa Indonesia. You can choose your language from the settings menu in the top right of the page. ![localization-settings](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/localization-settings.gif?s=8eca6e4132ba6094b0d14de023a5b0de) Everything in Mixpanel other than events, properties, and named entities (such as board and cohorts) are translated. Mixpanel intentionally won't translate your data or named entities because you may attach your own meaning, and you have the ability to rename, or set a display name. If you have any feedback on translations, whether that is a missing translation or incorrectly translated words, please submit feedback to use [here](http://mixpanel.com/submit-feedback). **2024-09-11** ## Mixpanel Session Replay is Now Available ![Mixpanel Session Replay is Now Available](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/session-replay.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=c98b4419f6629cc5b949d33283cba5c3) Mixpanel Session Replay is officially out of beta! With a unified platform for quantitative and qualitative insights, you can now make faster and more informed product decisions. Quickly pinpoint drop-offs in your funnels and instantly dive into replays to understand exactly why users get stuck. From improving conversions to driving team alignment with visual stories, Mixpanel Session Replay helps you watch and learn from your users. Note: this feature is currently available to enterprise plans only. Read more on our [blog announcement.](https://mixpanel.com/blog/mixpanel-session-replay/) **2024-07-17** ## Pick time ranges down to the minute ![Pick time ranges down to the minute](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/minute-granularity.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=fc35166419940346a6528d10e734da4c) You choose date ranges that are specified up to the minute. If there's a metric that you want to drill in on for only a few hours, you can set your time range and see only that exact range. This saves you work from having to create a detailed time filter or custom property to do the same thing. Use this new feature to: * Look at a metric as a trend for under a day * Zoom into your data on trends * Share insights on a smaller timeframe without having to zoom in again This is supported for all chart types in Insights, Funnels, Flows and Retention. **2024-06-27** ## Color Themes ![Color Themes](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/color-themes.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=365ccb50fe3aca0ac2356fd94bef524a) You can now set the color theme of your charts in Mixpanel. We have a few preset themes for you, but you can also create and save your own theme. You use a different theme for every report, and even have a dashboard with reports using different themes. You'll also be able to set a project wide default for color themes. You can learn more in documentation [here](/docs/features/chart-customization#theme-customization) **2024-06-27** ## Axis Customization ![Axis Customization](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/axis-customization.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=e33cb5c6d04701aae163da25ade5509a) You can now customize the axes of your charts. Using this, you can build better dashboards and tell the story you want more easily. Any changes you make can be saved and will be reflected on the dashboard. To access these new options, go to the "Chart" tab of the query builder. You'll be able to: * create a secondary y axis on the right hand side to show data of different scales * determine the axis thresholds, so you can zoom in or out * add labels to make what you're measuring more clear * determine the unit and decimal precision of your axes You can learn more in documentation [here](/docs/features/chart-customization#axis-customization) **2024-06-18** ## Know where you are with a persistent navigation panel ![Know where you are with a persistent navigation panel](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/persistent-nav.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=f5d7fdc16d8be4f2cd623812effc13ff) Now when switch between Boards or reports, you will always see the side navigation panel and keep your context. Your current Board will also be highlighted on the side as you're viewing a report within a Board. You'll be able to see where you are with respect to your Boards, and easily create a new Board, search, or go to Home. As part of these changes, the query builder has moved to the right of your screen. This allows for consistent placement of report tools, and makes access to report level controls easier. If you prefer to keep the query builder on the left side, you can press the button on the bottom right of the panel to switch it back to left. This setting will be persisted for any future visit to Mixpanel. As part of these changes we've also added keyboard shortcuts: \`\`\` to expand or collapse the side navigation, `Esc` to close out of a report and return the your Board. **2024-06-18** ## Mirror Sync Mode for Warehouse Connectors Mirror is a new mode on Warehouse Connectors that keeps Mixpanel in perfect sync with your warehouse. Any time data is modified in your underlying warehouse table, that change is automatically reflected in Mixpanel through change data capture (CDC). You can iteratively implement, rename or remove columns, or reconcile transactions in your warehouse without any worry of data divergence in Mixpanel. This sync enables accurate analysis for all data types, including business data that changes often like purchases. Supported for BigQuery and Snowflake today. Contact your account team to get access. **2024-05-09** ## Home ![Home](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/home.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=efb72a0797ea7ecc15d6bb4cb2a50c72) Home is the new landing experience in Mixpanel. It’s for you to jump back into your workflows and get a glimpse into what’s happening across your product and your project in Mixpanel. The main sections of Home includes: * **Your Recents**: your most recently viewed reports and boards * **Your Product**: this section is default populated with the top insights reports in your project, you can customize and change which insight report you’d like to display on Home * **Top Boards**: the most popular boards in your project * **Suggested Creators**: people in Mixpanel who are building boards and reports that we recommend checking out * **Recent Users**: a list of recently seen users on your product * **New Events**: a list of newly tracked events in your project * **Resources**: a list of resources that are also available in the top navigation **2024-05-09** ## Column Chart Visualization ![Column Chart Visualization](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/column-chart.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=1484d875212cc7038d204725b3674aa1) You can now view your time series as a column or stacked column chart in Insights report. You can use Column charts to: * Visualize and compare customer segments by behaviors or engagement over time * Compare product sales performance across different regions or customer types * Compare funnels or retention metrics * Visualize monthly new sign-ups, active users, and churn rates * Present financial trends and health over time Column charts give you another way to visualize your data. Column charts tend to be better when visualizing data over shorter time frames. **2024-04-08** ## AI Chatbot and Search in Mixpanel Docs [Link to Demo](https://www.loom.com/share/3407a37ce1634f51b94b380c40c96306) Mixpanel has added AI to the search tool in our docs! Now, get instant AI answers to technical questions about Mixpanel, any time you’d like. Try it now with questions like: 1. What should be the first event I track? 2. How do I migrate off Google Analytics? 3. How do I calculate time spent? 4. How do I import Snowflake data? **2024-04-03** ## Save and Reuse Funnel and Retention Behavior definitions [Link to Demo](https://www.loom.com/share/e84c62b2454d496b960fb0fdb09b9785) You can now save a funnel or retention behavior definition, and reuse it across your reports. This allows you standardize on a definition and feel confident in not missing any changes if you need to update a definition. This also saves time from not having to redefine your funnel or retention behavior for every report. Note that the [behavior](/docs/reports#behaviors) is saved, and not the [metric](/docs/reports#metrics), so you can use the same funnel to in your conversion rate metric, as well as your time to convert metric. You can save and share your behavior definitions just like a custom event or custom property. You'll be able to see all saved behaviors in Lexicon. See [docs](/docs/features/saved-metrics-and-behaviors) for more information on saved behaviors. **2024-04-03** ## Plot Insights, Funnels, and Retention on the same chart [Link to Demo](https://www.loom.com/share/81c25f63005d4d0da8d06c1558ac1c70) You can now plot any funnel or retention metric in Insights, and you can plot any combination of them together. Insights is where you can see how any of your metrics are doing and how different metrics are doing side by side. With these changes you can now: * compare retention of different actions on the same retention curve chart * see how the conversion rate for different steps in a funnel trend over time in the same chart * see funnel and retention metrics in a table visualization of your board * use table, pie, stacked bar and stacked line visualizations for funnel and retention metrics * build a detailed table of funnel metrics in one space * plot different types of metrics on the same line chart * make formulas that use funnel and retention metrics You can see [here](https://mixpanel.com/p/FN3F4aWpunCKSuZNxQQz38) to see some examples of new types of reports you can now build in Mixpanel. **2024-03-27** ## Ask your questions in natural language with Spark AI ![spark](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/spark-changelog.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=22a742496ab569c678be5c3e5cd8b296) Spark is now available on Boards. Launch a Spark card and use it to ask any question in natural language. You’ll be able to iterate on the prompt and jump in to see what was produced. [Link to Demo](https://www.loom.com/share/d6d2919a4c0649d18c35a218cf343d0a) You can learn more in docs [here](/docs/mixpanel-agent). **2024-03-14** ## Merge data from different events on-the-fly with Borrowed Properties [Link to Demo](https://www.loom.com/share/d45c325a7ee544a9965e90c3a5127257?sid=0cc8f226-72a4-4817-bd6d-13732a3b4237) Introducing Borrowed Properties, where you can ‘borrow’ a property from another event on-the-fly and leverage it for analysis as though you’ve tracked it all along. No re-tracking or complicated joins required. Here’s some scenarios where Borrowed Properties makes life a whole lot easier: ### Merging data from client-side to server-side * **Scenario**: You want to understand which restaurant category leads to the most confirmed purchases. * “Order placed” is a client-side event that has a property called restaurant category. * “Transaction completed” is the server-side event of interest that you’d like to break down by restaurant category. * **Solution**: Borrow the restaurant category property from “Order placed” onto “Transaction completed” and poof! It’s like “Transaction completed” always had the restaurant category property. ### Analyzing across two different teams * **Scenario**: One team created a “Speed Mode” feature that runs the app faster. There’s a “Speed Mode” event with the property Speed Mode Enabled. * Another team wants to know how Speed Mode impacts how many pages are viewed. But the “Page View” event doesn’t have the Speed Mode Enabled property. * **Solution**: Borrow the Speed Mode Enabled property onto “Page View” and teams can instantly understand how page views differed when Speed Mode was turned on. All these use cases, without engineers needing to re-track data or develop complicated workarounds. Borrowed Properties is available for customers on Growth & Enterprise plans. For more information, check out our [help docs.](/docs/features/custom-properties#borrowed-properties) **2024-03-11** ## Subscribe to Boards for ongoing notifications on metrics Boards are a useful tool to collect a series of reports in one place, but they shouldn't be a set and forget experience. It's important to stay in the loop with how these key metrics are moving. To keep you and your team up to date on how much progress you're making towards your metrics, you can [Subscribe to a Board](/docs/boards#board-subscriptions). All it takes is setting the schedule of how often you want to receive this information and selecting where you want to read it (email or Slack). Teams that are collectively informed on their data can stay on the same page, and using Subscribe to Boards can help them get there. ![changelog Image](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/subscribetoboards.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=b4a60871a0cbd6366907a15d985fa7b9) You can also subscribe people outside of your team to continuously provide them a quick and meaningful insight into key metrics. **2024-03-11** ## See what actions lead to retention with Behavioral Properties in Retention [Link to Demo](https://www.loom.com/share/dd4042654e6f46039d011a680fe93948) Now in Retention, we’ve made it possible to breakdown users by what they do, not just who they are. This unlocks the ability to find the actions you can influence that will increase the long term retention of a user finding value. At its core, Behavioral Properties in Retention allows you to: * Summarize user activity after the starting event, whether it is a count of events, or a summary of properties on those events. * Set that summary of activity in a timeframe, for example, the number of times a user does the specified activity within 7 days / 1 hour / 30 minutes of the starting event. * Uncover what activities within a certain timeframe correlate with the how often your users do the action you want them to do in the long term. A powerful use case for Behavioral Properties in Retention is finding the “aha” moment in your product, which describes the actions a new user does after signup that lead them to become an active user of your product. A classic example is Facebook’s “aha" moment, which was “adding 10 friends within 7 days results in a huge jump in daily active usage”. In our own example, you can dig into what actions a user does within 7 days after signup that lead them to watch more videos long term. The result we find is that the more channels they subscribe to, the more likely they are to retain. This insight can drive a strategy to create an experience that prompts users to subscribe to popular channels when they first signup. ![changelog Image](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/retentionbp.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=dd317877d9f278cff9d2e3ef686816ea) **2024-03-07** ## Compare against the best with the Benchmarks 2024 Report ![changelog Image](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/benchmarks-changelog.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=6d4df4c93b187b3875d151e45d5395e0) Find out what good versus great performance looks like and put your own performance in perspective. Try out our new Company KPIs template to see how your key metrics in 2023 directly measure up to those of your peers. Simply click "New board", select "Use a Template", and pick the Company KPIs template - Benchmarks 2024 edition. After inputting your signup and value moment events, you'll see your last year's growth, retention, stickiness, and engagement metrics next to your industry's benchmarks. Use these to shape your product plans and visions for 2024. You can also download the [Benchmarks report](https://mixpanel.com/benchmarks/)to explore product benchmarks by industry. From layoffs in the Tech space, to a surge in mobile users in Gaming, to consumer trends in Ecommerce, 2023 performance varied greatly. We examined data from over 7,500 companies to understand what growth, retention, engagement, and marketing metrics looked like last year across six key industries. **2024-03-05** ## Set your visualization to WTD/MTD/QTD/YTD Mixpanel now supports the ability to set the timeframe of your visualization by “X”-to-date: * Week to Date (WTD): The period from the beginning of the current week up to the present day. * Month to Date (MTD): The interval starting from the first day of the current month up until the current date. * Quarter to Date (QTD): The time span from the start of the current quarter (three-month period) to today. * Year to Date (YTD): The duration from the beginning of the current calendar year to the present day. ![changelog Image](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/xtd.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=21f20991630ec8c8ec6ad919b2c82ec9) Adjusting your visualizations to these time frames can be a useful way to align to the way you track progress in your business. You can select the start of the week and the start of the quarter in your project settings. ![changelog Image](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/xtdsettings.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=cd59cc8dd3130e9c0d51139cd56b2d07) **2024-03-05** ## Measure revenue drop-off at each funnel step [Link to Demo](https://www.loom.com/share/e041e17a02d4429b84304ba0ce1345dc) It’s always been possible to view a series of events through a funnel, but now, we’ve added the functionality to [sum a property](/docs/reports/funnels#property-sum) on those events and visualize those values through a funnel. This type of analysis sets the focus on the outcome of the funnel being completed, not just that the conversion rate of the funnel is high. The most exciting use case unlocked from being able to view the sum of a property moving through a funnel is what we call Revenue Conversion. This analysis can help answer the question: “a segment of users might all convert, but how much dollar value of items did they have at each step, at which steps was this money lost, and how much did they ultimately convert with?” ![changelog Image](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/revenueconversion_\(2\).png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=d8065214b6fbe7eee8c0e1482d21a1f6) A couple instances where Revenue Conversion analysis can be useful are: 1. Can determine which page a user lands on (sale, men’s wear, etc) ends up with the most money spent at checkout. All pages might have similar conversion rate to purchase, but some might drive more revenue at checkout. 2. Can shift marketing spend to the industry (Healthcare, Fintech, etc) that have the highest average revenue when they purchase. **2024-03-05** ## Expanded Time To Convert functionality in Funnels [Link to Demo](https://www.loom.com/share/5150be7a7b194de0ac538ff85c35c3ce) Understanding how long it takes users to do actions or convert is key in building an efficient product that gets users to value fast, or, timing marketing strategies. We’ve improved this analysis by opening up new ways to answer questions on the time it takes users to complete a series of actions — this is made possible with our new expanded functionality of [TTC in Funnels](/docs/reports/funnels#time-to-convert). Now, you can measure the amount of time it takes a user to convert in **all of our aggregations** (Average, Median, Percentile, Min & Max) to learn whether the adjustments to a workflow are decreasing the friction it takes to get to a moment of value. * Who are the users that look the lowest amount of time to signup after viewing our new landing page? ![changelog Image](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/funnelsttc1.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=4400584b2ba8cf6dd1445bbccd0b81c8) Can also bucket any of these funnel metrics by the Time To Convert on the whole funnel or a certain step. * How many users converted through our signup funnel based on how quickly they went from step 3 (Upload Media) to step 4 (Invite Friends)? ![changelog Image](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/funnelsttc2.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=5cdbc68b1fd45b570f817a66a7410be4) Finally, you can decouple the time to convert metric from the time to convert breakdown based on a specific step in the funnel to understand which actions lead users to reach value faster. * Do prospects purchase faster when their time to convert from viewing a product to adding it to cart is quick? ![changelog Image](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/funnelsttc3.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=986585a6f93f3f61e447483b61d8ada3) **2024-03-05** ## Segment users by their behaviors in Funnels [Link to Demo](https://www.loom.com/share/e6e9806db88b448bb82044033ac052cf) Now in Funnels, we’ve made it possible to breakdown users by what they do, not just who they are. This unlocks the ability to find the actions you can influence that will increase the likelihood of users converting through a funnel or completing a specific step. The core functionality of Behavioral Properties in Funnels is as follows: 1. You can analyze how often one step of a funnel was done and how that contributes to overall conversion: * Insight: users who watch more videos subscribe to channels at a faster rate. * Result: when a user finishes a video, autoplay another similar video in an attempt to keep them watching more. ![changelog Image](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/funnelsbp2.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=c050c50f402a9802ff4eb88c84eaf439) 2. It’s also possible to learn how actions outside of your funnel influence overall conversion or certain steps. We’ve built this workflow so that you don’t have to put arbitrary steps into your funnel: * Insight: for the users who completed the signup funnel, most of them read help docs over 10 times before doing so. * Result: make help docs more apparent at the beginning of the funnel. ![changelog Image](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/funnelsbp1.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=7af62d5103b1dd490b8a2fe5bb83aefa) 3. The other unique functionality to Funnels Behavioral Properties is the ability to decouple the breakdown step from the metric step. This is useful to answer questions about whether the frequency of a step in a funnel influenced a different step: * Insight: users \*\*\*\*who complete step 1 (product view) to step 2 (add to cart) more often have a higher rate of converting from step 2 (add to cart) to step 3 (purchase). * Result: when a user adds an item to the cart, show them a pop up with other related items they might also want to add to cart. ![changelog Image](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/funnelsbp3.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=d063e1fcfd13b7f2dad2e844b88dab1c) 4. Use the *Aggregate Property per User* breakdown to segment metrics by things like time, cost, or “variety”. * Insight: Users who add a wider variety of brands to cart have a higher rate of purchase. * Result: Create Black Friday landing page to have an assortment of goods rather than focused on one specific category. ![changelog Image](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/funnelsbp4.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=353f73660e50413239bc6e235911e82f) 5. Set a Behavioral Property as a filter to dig deep into a select group of users who are behaving a specific way in the funnel * Metric: Users that added at least five items to their cart before purchasing. * Result: Can grab their email and send them a note when there is an offer for another five items at a different date. ![changelog Image](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/funnelsbp5.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=42e5bd93ce55f0081f6727366eeb6528) **2024-03-05** ## Get alerted when product experiences break [Link to Demo](https://www.loom.com/share/0284fcd216c74397966996fbb558b053) We’ve expanded the amount of funnel metrics you can set an [Alert](/changelogs/2023-03-29-custom-alerts) on so you can have full coverage into knowing whether your product is running smoothly: * Conversion Rate * Unique Converting Users * Total Conversions * Time to Convert * Sum of a property * The metrics above, but for specific step ranges in a funnel When your funnel metric is visualized as a line chart, it is also possible to use our [Anomaly Detection](/changelogs/2023-05-05-anomaly-detection-and-root-cause-analysis) feature. **2024-02-27** ## Track your ad performance metrics in less than 10 minutes Note: this is our latest offering for [Mixpanel Marketing Analytics](https://mixpanel.com/m/mixpanel-marketing-analytics/) Ad-performance metrics are key to help marketers adjust their marketing spend and create the most return on investment. On a daily basis, it’s important to measure ROAS, CPC, CPM and ad-spend — and now, Mixpanel has made it quick and easy to bring this data into Mixpanel. ![changelog Image](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/addatatable.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=c37c750f11d3b4c121a9ab7f38222d70) Our solution was built based on two key market trends: 1. The number of Ad platforms has grown, and marketers want to leverage these channels. Rarely do you advertise only on 2 platforms: Google and Meta. 2. Warehouses have fast become the central location of housing all a company’s data. Considering this, ad-networks are making it easier to export ad performance data (spend, clicks, impressions) to the warehouse. In line with these trends, we’re launching the new Ad-Spend Warehouse Connector, which makes it easy to bring ad data from the warehouse and into Mixpanel. Our solution provides a simple setup experience to send data from all of your ad networks into Mixpanel, and it only takes a few minutes to do so. [Link to Demo](https://www.loom.com/share/69dbc98ffeca415aafb10ede7a52b925) **2024-02-13** ## New Experience and Features in Funnels and Retention Mixpanel's funnels and retention reports are where you can see user behavior through a series of events. With our next set of changes, we are making funnels and retention reports more powerful, while making them easier to use and keeping our controls in a place consistent with insights. You can try the new funnels and retention experience in our demo projects, [here](https://mixpanel.com/project/3018488/view/3536632/app/funnels). ## Funnels Report Changes [New Funnels Report Walkthrough](https://www.loom.com/share/7905e588beea48c5bc757ce8c43aae8b) Here is a quick summary of changes: * Funnels is getting revamped so that your funnel definition as well as the way you measure your funnel will be displayed in the query builder at all times. * You can explicitly define which steps of the funnel you are interested in. * More chart types are available across all different funnel metric measurements. * [Time to Convert is available as a measurement](/docs/reports/funnels/funnels-advanced#time-to-convert-measurement), if you are looking to see a trend or summary of your conversion times. * Time to Convert is available as a breakdown, if you are interested in seeing something like a distribution of conversions, by their conversion time. * Frequency per User is available as a breakdown. ## Retention Report Changes [New Retention Report Walkthrough](https://www.loom.com/share/45ddc28851aa494ead99bccafe1f9a37) Here is a quick summary of changes: * Retention is getting updated so that your retention behavior definition as well as the way you measure your retention behavior will be displayed in the query builder at all times. * You can explicitly define which retention group you are interested in. ## New Analysis Capabilities ### Build and Visualize More Metrics, Faster [Funnels and Retention Reports: Build and Visualize Metrics Faster](https://www.loom.com/share/bee5153decf441c49d141f8b68f161e4) Insights, Funnels and Retention now all follow the same structure. In the query builder on the left, you can define the behavior you want to measure, as well as the way to measure it. Each query builder now has its own self contained definition of a [metric](/docs/reports#metrics). We’ll be leveraging this concept more in the future. More chart types are available across funnels and retention, allowing you to visualize funnel and retention metrics in more way than before. ### See Revenue Drop off in Funnels [Revenue Funnel Drop-off for E-commerce Companies](https://www.loom.com/share/e041e17a02d4429b84304ba0ce1345dc) For e-commerce companies, the most important thing is their sales funnel. Seeing how many users convert is great, but the real end goal is seeing how many dollars converted. With revenue drop off, you can now see the revenue at each stage in the funnel, and not just the users. This helps identify which steps are seeing the most lost dollars and which segments are performing or not. ### More Time to Convert Options [New Funnels Time to Convert Analysis Capabilities](https://www.loom.com/share/5150be7a7b194de0ac538ff85c35c3ce) See how your funnels are performing beyond just average time to convert over time, and median time to convert as a bar chart. We have added the ability to see median, average, P25, P75, P90, P99, min and max time to convert, using any visualization you’d like. You also have more power in [Time to Convert breakdowns](/docs/reports/funnels/funnels-advanced#time-to-convert-breakdown). You can choose the step range you would like the breakdown to apply to, while using a different step range for your measurement. This can allow you to see if converting quick on step 1 → 2 leads to higher conversion overall, and draw more insights from time to convert. ### Alerts of Funnel Metrics [Link to Demo](https://www.loom.com/share/0284fcd216c74397966996fbb558b053) Alerts are much more powerful in funnels now. Instead of only being able to alert on conversion rate, you can now alert on any funnel metric, such as time to convert, or the number of conversions. You also get the power of anomaly detection, if you’d like us to detect when there’s something strange happening. ### Behavioral Properties in Funnels [New Funnels Alerts Features](https://www.loom.com/share/e6e9806db88b448bb82044033ac052cf) You are no longer limited to only seeing the number of times a certain step was performed in a funnel. You can now choose any event, and see how that influences your funnel. This is especially useful if you have a set funnel definition, and you’re interested in how non-core actions might affect your conversion rate. You no longer have to add and remove steps in between your funnel to see how different events affect your funnel. You can also see how the properties of events done between funnel steps affects funnel conversion. For example, you can see how many different categories of items were viewed in a purchase funnel, which may be more telling than a raw count of items viewed. [See more about Frequency Per User in Funnels](/docs/reports/funnels/funnels-advanced#frequency-per-user). ### Behavioral Properties in Retention [New Funnels Alerts Features](https://www.loom.com/share/dd4042654e6f46039d011a680fe93948) Have you wondered if doing certain actions affect retention? With the new Frequency per User and Aggregate Property per User options available in breakdowns, you can summarize user activity and see how it affects retention. Mixpanel will summarize activity after the starting event, whether it is a count of events, or a summary of properties on those events. You can answer questions like: how many song plays does it take after sign up before my retention is 50%? Being able to analyze what actions correlate with retention will give you new insight on how to improve your product. **2024-02-08** ## Be notified of major shifts in data volume [Link to Demo](https://www.loom.com/share/eae9ce08b2e94104afe2f41b634d82ea) Our new governance setting makes it easier to get ahead of data issues in your overall Mixpanel project. With data volume monitoring, you can be notified via Slack or email whenever any tracked event unexpectedly spikes or drops in volume. Instead of getting asked about suspicious data, you can jump in and resolve issues before anyone notices or loses trust. This setting is available for all organizations on an enterprise plan. For more information, check out our [docs](/docs/data-governance/data-volume-monitoring). **2024-01-26** ## Event Approval now supports new property detection Event Approval now supports notifications for new properties on existing events, in addition to notifications for newly tracked events. You can turn on new property detection in project settings. For more information, check out our [docs](/docs/data-governance/event-approval). Available for all enterprise plans today. **2024-01-17** ## Easier to use Event & Property Menus [Link to Demo](https://www.loom.com/share/2ebb3ec708334fd69e27130cf6bfc3db) The Events Menu and Properties Menu is where you find the events and properties needed to craft your metrics, charts, or graphs. Mixpanel users spend a lot of time searching within these menus to find the right building blocks, so, we’ve made some adjustments to make the experience simpler and get you to value faster. ## Event Menu An important feature we have available to organize your events is Tagging. In our old experience, it wasn’t clear as to where to find Tagged events. Now, Tags are easily discoverable on the left side of the menu. You can leverage Tagging to hone in on a set of behaviors you’re interested in analyzing (setup, mobile, payment, etc) and quickly find the events related to those behaviors. ![changelog Image](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/eventmenu.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=5918e4383752f53c0a4bd63cf1767ac7) ## Property Menu Similar to tagging, we’ve categorized all of your properties on the left side of the Properties menu based on what they’re related to. For example, if you want to filter your metric by a property that’s on a user, you can simply click the User category and find all the related properties. A category you might not be familiar with is Computed - these will create a calculation of any property to frame your analysis in a unique way. The Computed Properties we have available today are: * Frequency per User: understand how often users did an action and correlate it to another action * Aggregate Property per User: understand the value of an action and correlating it to another action * Attributed by: understand which touchpoints in a user journey impacted conversion * Duration: find the time spent between two continuous events, like Page View ![changelog Image](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/propertymenu.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=bd141a75729e6c851c1e4df0bbdc8776) **2023-11-22** ## Find the right data more easily with Event Context [Link to Demo](https://www.loom.com/share/f7e0cbde17d04c6eac858f3d7e69aacf?sid=ef579161-ad52-46f4-96e9-a5ad2c500dcf) You can now see rich context about an event, such as an image of the event, frequent users, reports that query it, or an owner for follow-up questions. With these contextual details, teams can build reports more quickly by trusting that they’re using the right event. Types of Event Context now available: * Embedded image of the event * Teammates that recently queried the event * Other reports that query the event * Event Owner, who you can contact for follow-up questions In addition to having easy access to this context via the query builder, you can also leverage Event Context throughout the product. You can filter the Discover page to see existing analyses about an event. Event Context is available for all customers on all plans. **2023-11-16** ## Track your Web Analytics on one Board [Link to Demo](https://www.loom.com/share/a8940230695943ecb743dda421fef673) Our new Web Analytics Template gets you up and running with all your core website performance metrics in just a few seconds. You’ll be able to make informed decisions about what to highlight, improve, or remove from your site to build a more engaging & relevant user experience. Simply select your Page View event and Page Title property (note: these are automatically tracked if you implemented Mixpanel with the Javascript SDK) and you’ll get everything you need: * User Metrics: understand more about the users that visit your website (how many new users, how many returning users, where are they from, and more) * Session Metrics: track all the key session metrics (session start/end, bounce rate, average session duration, what source did they come from, and more) * Page Metrics: find which pages provide the most valuable and engaging content to users (page exits, average page views per user, and more) Checkout the Web Analytics Template for yourself on one of our demo datasets: [https://mixpanel.com/project/3018488/view/3536632/app/boards#id=6020908](https://mixpanel.com/project/3018488/view/3536632/app/boards#id=6020908) **2023-11-16** ## Measure how long users view webpages [Link to Demo](https://www.loom.com/share/19461fe6014c48c3806721e735daac30?sid=3b6a69c3-3618-4300-8ce8-25d437ba32d4) Tracking the number of views your website pages get is a useful way to learn if users have landed on your page. But, it doesn’t tell the complete story of whether these users got value from their visit: * Your blog might have 100s of views, but how do you know if users are actually reading all the content? * Users are reaching your signup page, but are they moving through that experience quickly or getting stuck? * Two different pages are getting similar views, but one is converting more sales than the other - are users finding content more engaging on that page? The missing piece of the puzzle is understanding how long users visit your page, and to access this data **we’ve added a *Duration* property on your *Page View* event** that tracks your users’ “time spent on a page”. It takes no additional setup — *Duration* is auto-computed by calculating the time between *Page View* events. Checkout the video above to learn how you can answer questions like: * What blog content are our users finding the most engaging? (find the average time spent on blog pages) * Which pages are users not finding any value from? (find the pages that have an average visit time of less than 10 seconds) **2023-11-16** ## Manage channel definitions with Channel Classifier [Link to Demo](https://www.loom.com/share/0e773e307f574f398e5a3609462cfa01) Breaking down your analysis by *Channels* is a useful way to answer key questions like: * which channels drive most of the traffic towards our website? * which channels send users that are more likely to make a purchase? There are many directions you can go with a simple breakdown of channels, and now, we’ve made it much faster to setup your *Channels* property. 1. Add a new Breakdown and select “Create Custom” 2. Select “Insert Example” in the next menu, and choose “Channel Classifier” 3. Make any edits you need to channel definitions, change the title to “Channels”, and click save ![changelog Image](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/channelclassifier.gif?s=b749d1755ff18fe36d339839f6ff7b59) This initial setup needs to happen once so that all members of your organization can access the *Channels* property. Our Channel Classifier definitions align with standard practices used in other tools, such as GA4. Most users will keep the out-of-the-box definitions we provide, but you can also add in new properties to a channel (ex. adding DuckDuckGo in to the “Search” channel), as well as tweak any definitions to your liking. [Visit our help doc](/docs/features/custom-properties#grouping-marketing-channels) for more information on how to group your marketing channels. **2023-11-09** ## Save Formulas for reuse and metric standardization [Link to Demo](https://www.loom.com/share/8579c1ac4e2a4b06a0a12e4416b07918?sid=7a3ccce7-5513-455f-8397-fb1269c807f1) Sometimes your analysis calls for a calculated metric, meaning a metric that’s computed from existing metrics or data. An example would be Bounce Rate (Total Sessions less than 10s / Total Session Starts), where we are trying to calculate the percent of site visitors who left without reaching any value. In analytics tools, a typical workflow is to use a “formula” to create a metric like Bounce Rate, but there are some issues with that route: * Every time you need to calculate Bounce Rate in a new report, you have to create a formula from scratch * Other people in your organization don’t know how to define Bounce Rate, so they will figure out their own definition that might not fit the context of your business * There’s no way for the person in your organization that manages the analytics tool to set a standardized Bounce Rate metric that everyone can trust is accurate To solve these pain points, Mixpanel is introducing Saved Formulas, which allows you to save a Formula for reuse across your organization. After creating a new metric using a Formula, you can save it. This allows you and others to reuse it once you start a new analysis - no need to rebuild it from scratch. Simply navigate to Metric, click on Formulas, and you’ll find you Saved Formula. ![changelog Image](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/formulacreate.gif?s=e16ce8fc008fece4496726e9fd6b9b7f) You can also expand the Saved Formula to see the components that contribute to the calculation. Other tools might come with calculated metrics built in (like Bounce Rate), but you can’t see how they’re calculated or adjust the calculation to your use case. ![changelog Image](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/formulachange.gif?s=2ce1b188bc12799002854c879a3545cb) Once you have your Saved Formulas, your organization can trust them as standardized metrics. There’s no pressure for you and your team to have to figure out how to build this metric again and again, simply add it to the visualization just like you’d do any other event, metric, or cohort. [Visit our help doc](/docs/reports/insights#save-formulas-for-re-use) on Saved Formulas to learn more. **2023-11-07** ## Databricks now supported with Warehouse Connectors [Link to Demo](https://www.loom.com/share/56a21b31e75342498317cbb6f31285eb?sid=5cd6c82c-87d4-48c3-9f19-1e44b8327923) Today, all customers can leverage Warehouse Connectors to import data via Databricks, in addition to Snowflake, BigQuery, and Redshift. You can set up recurring syncs from Databricks and ensure that Mixpanel is always in sync with your trusted data. You can import event, User, Group profile, and lookup table data. Navigate to Project Settings > Warehouse Sources to get started today. For more information, check out our [docs on Warehouse Connectors](/docs/tracking-methods/warehouse-connectors). **2023-11-07** ## Lookup Tables Import now supported with Warehouse Connectors Today, all customers can use Warehouse Connectors to import Lookup Tables from their warehouse. For a list of supported warehouses, check out this [list](/docs/tracking-methods/warehouse-connectors). This capability allows you to periodically enrich Mixpanel with data from your source-of-truth. For more information, check out our [docs](/docs/tracking-methods/warehouse-connectors#lookup-tables). **2023-11-02** ## Count a Unique user towards one segment In the past, when breaking down an event counted by *Uniques*, you often came across this question: why is the sum of users in segments not equating the the overall uniques? In the below example, unique users is 1760, but sum of users in segments Chrome + Firefox + all others = 1900. Why don’t these numbers match? ![changelog Image](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/uniquescount.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=65f65791217452573375ac1cc086fc24) While there are 1,760 unique users who made a purchase, one of those unique users might make a purchase on two different browsers, and so the user gets counted in both the browsers (segments). The focus was on the segment, so you were looking at how many users were part of each segment. With this new feature addition, you can choose to associate a user to only one segment, either their first or last segment in the time interval. This way your sum of users across segments will total to the overall 1760. The focus with this counting type is on the user, so you are looking at how are these 1760 users distributed across the segment. This approach also reduces ambiguity and ensures that users aren't double-counted across multiple segments. How do you choose which approach to use? * If you are looking to answer questions focused on the segment - how many users watched Taylor Swift’s Movie or watched Squid Game, you want to count a user across every video they have watched. Choosing the count “per segment” option here * If you want to understand the "last value of" - what was the last item that my users purchased in the past seven days? You would select the "last time" option within Uniques to answer this question. * If you are looking to answer how your users are distributed across segments - I have 2000 users, how are they distributed across video category? Also, I’d like to consider their last watched category as their most recent preference to target them? Choose the count “last time” option here [Visit our help doc](/docs/features/computed-properties#attribution#what-does-attribution-on-unique-users-mean) for more information on how to leverage this new Uniques setting, and how it applies to [Attribution](/docs/features/computed-properties#attribution). **2023-10-20** ## Iterate on existing reports faster than ever with a new workflow ß [Link to Demo](https://www.loom.com/share/9d992239e7ba498a99ae3442cd639b8d?sid=abff6216-3323-4811-9d67-bb31037d87c9) Our new report iteration workflow makes it easier to explore existing reports and save new iterations, through simplified duplication, clearer permissions, and better auto-naming. It’s now faster to build on existing work or go down exploratory deep-dives without losing your flow. An example streamlined workflow: * On an existing Board, you see a purchase conversion funnel filtered for United States in the last 60 days, and broken down by age group. * You want to examine what the funnel looks like when broken down by city instead of age group. * After changing the breakdown, the results look significant to track, so in 1 click you can save this iteration as a new saved report. * On the original Board, the new report iteration is automatically added to the bottom of the Board. This report iteration workflow is available for all customers. If you still wish to duplicate Boards as in the previously supported workflow, you can access the Duplicate button in the 3 dot menu in the top right. **2023-10-04** ## Redshift now supported with Warehouse Connectors [Link to Demo](https://www.loom.com/share/76f4658dd850457e9634c706ee0d9430?sid=2cc72a2a-ca9b-406e-80d3-86500a29f48e) Today, all customers can leverage Warehouse Connectors to import data via Redshift, in addition to Snowflake and BigQuery. You can set up recurring syncs from Redshift and ensure that Mixpanel is always in sync with your trusted data. You can import event, User, and Group profile data. Navigate to Project Settings > Warehouse Sources to get started today. For more information, check out our [docs](/docs/tracking-methods/warehouse-connectors) on setting up Redshift. **2023-09-25** ## Plot Profile Metrics alongside other Metrics Profiles have always been a powerful tool to slice & dice your user-base to learn key insights about where your users are from, what browser they’re using, or any other property. The new functionality we’ve added to Profiles allows for more depth of analysis - specifically, you can compare these metrics alongside other events in the same view. In the past, Mixpanel was switched into a different “mode” in order to access Profile Metrics. While in this mode, you weren’t able to add other events or cohorts to your visualization, and you could not plot a Profile Metric as a trend (ex. line chart). ![changelog Image](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/oldprofilemode.jpg?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=04da80020aed66ca70ab6e7d219974de) Now, Profile Metrics behave like any other Event, Cohort, or Formula metric. You add them to your visualization in the same spot, and can compare them in the same chart type and date range. Profile metrics can also be used in a Formula with other events. ![changelog Image](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/profilemetric.gif?s=2c8262ca24e51852f86baec4b1a9a00f) **2023-09-25** ## Workflow Improvements in Insights Report [Link to Demo](https://www.loom.com/share/f0d467f6b10247838f2edac6e8e4fca4) Recently, we worked on improving upon some of the core workflows you could do in our Insights report. Some of these changes added metric building functionality that open up new analysis possibilities, and some of these changes refreshed existing workflows to help Mixpanel become simpler to use - all in all, we’ve working hard to polish our existing workflows and setup Mixpanel’s design for long term success. **Improvements to the measurement menu** * The default measurement has changed from Total Events to Unique Users * Total Per User has been updated to Frequency Per User ![changelog Image](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/insightsmeasurementmenu1.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=ba735fdeb5913728b501978515ca93b3) * DAU/WAU/MAU has moved under Unique Users (click on the “>” button) ![changelog Image](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/insightsmeasurementmenu2.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=a8056d040ddf298dd3e716d0c499de93) **Individual metrics can now be measured as Rolling or Cumulative** * Metrics can be measure to Rolling or Cumulative in the “Advanced” menu, which means it’s now possible to compare a rolling/cumulative metric with metrics using a different count * You can also set a Formula to be Rolling or Cumulative * This allows for comparisons that aren’t bottle necked by needing all metrics to be Rolling or Cumulative, for example, you can set a “target metric” in the same analysis as multiple cumulative metrics to visualize how long it will take for a trend to reach a goal. ![changelog Image](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/rollingcumulative.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=23ce4161bf9d8d74cb1cce2ebbf9ae54) **2023-09-19** ## Focus on the right metrics with Hide/Unhide It’s now possible to hide or unhide events from your visualization so you can focus on the metrics that matter. For example, when you have two events and one formula, your formula metric might be difficult to analyze since it’s a significantly smaller number than the other events. By hiding the other events, your visualization can scale appropriately to view the formula properly. ![changelog Image](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/hideunhide.gif?s=d80ad4f2e6fa304d04198cfd1657d63d) **2023-09-19** ## Formulas now behave as metrics Formulas have forever been an integral part of Mixpanel to create new metrics (Bounce Rate, Conversion) from existing data — and now, we’ve improved the usability of Formulas to help you encounter less roadblocks and speed up your analysis workflow. In the past, Formulas behaved as their own entity in the query builder, and you had to create separate Formulas (A = Product Added, B = Purchase Completed) to resurface the original events in the visualization. ![changelog Image](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/formulasold.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=7dfb269264c7e79be008b1c9d1c81844) Now, Formulas are added through the Metric button, and they behave like a metric. This means that the original events aren’t removed from the visualization when you add a Formula (note: you can hide the original metrics to focus on just the Formula). ![changelog Image](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/formulacreation.gif?s=8e695b9c66fc867d05d369b29fb6230a) Since Formulas behave like a Metric, you can also reorder them without any adjustments and setup your ideal visualization. ![changelog Image](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/formulamove.gif?s=052f60566834863311a97de013998f93) **2023-09-07** ## Finding a template is easier than ever Templates are supposed to make your life easier, but we heard that figuring out how to access templates was confusing and difficult. So we’ve rolled out phase one of our plan to make finding templates easier, starting with when you click the New Board button. ![changelog Image](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/new-board-empty-state.gif?s=77d546339688e68ac9595daf89466619) Instead of a greyed out button, you’re greeted with a nice tile welcoming you to the template world. From there, you can follow the same process as before: select your template and input your events. You can start building analyses more easily with a clear entry point into templates. Templates are available to all users on all plans and are designed for both new and power users alike. You can read more about templates in our [docs](/docs/boards/templates). **2023-09-07** ## Automagically answer questions with Starter Board ![changelog Image](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/Starter-Animated.gif?s=be58ac3cc3d937ed3b741c4734e4c5fe) Now when creating a new project, you will be prompted to view your automatically generated 🌱Starter Board. You’ll be greeted by empty reports, but they won’t stay that way for long. Starter Board automatically populates when you connect data to the new project. This means that once data is flowing, you can get things going by answering key questions about your active users in seconds. Starter Board is available for all organizations on all plans. To see Starter Board in action, you can check out this [loom overview](https://www.loom.com/share/677846ecfe094d74bb174dcca43baa2c?sid=fefa476e-ea56-4a5e-ab04-159071d351bb). **2023-09-05** ## Warehouse Connectors now supports importing Users & Groups You can now use Warehouse Connectors to import User and Group tables from your warehouse. With this capability, you can extend source-of-truth data about users and groups into Mixpanel for analysis. This importer leverages the same modal as the event importer so that there is one cohesive experience for event, user, and group data. We support importing user and group tables where properties are stored as columns or JSON objects. For more information, check out our [docs](/docs/tracking-methods/warehouse-connectors). **2023-08-30** ## Manage implementations more easily with event metadata [Link to Demo](https://www.loom.com/share/d68d2f2f213144d8817d414eddd88f46?sid=04b74494-7aea-4eb7-aeb3-943e41ac7ec3) Our latest data governance improvement makes it easier to investigate and fix data discrepancies, with peace of mind that you’re not disrupting your team’s workflows. You can now see event usage context in Lexicon, such as: * Who first queried an event? * When was it first tracked? * Which people queried it most recently? When? With this event metadata, data teams can not only sort events to identify your highest volume / least queried events, but also identify relevant stakeholders to confirm whether this event is still necessary. Less fear of disrupting the team, less time spent cleaning data. **2023-08-29** ## Fluid, flexible organization with Boards on Boards You can now nest Boards within other Boards for more flexible, contextual organization of your analyses. Boards on Boards allows you to customize your workspace in whatever way that best suits how your company works. Rigid folders or spaces don’t account for the fact that people at modern organizations collaborate across teams, projects, or topics. Spend less time figuring out organizational hierarchy, and more time sharing ideas. Some ideas for how you can nest Boards: * Product Focus Area Boards on General Product Team Board * Feature Launch Boards on Enterprise Team Board * Landing Page Deep-dive Board on Growth Team Board, on Company Board The beauty of Boards on Boards is that you get the organizational benefit of folders with the rich functionality of Boards, such as contextual text or media cards. This setting available for all organizations on an enterprise plan. For more information, check out our [docs](/docs/boards/boards-on-boards). **2023-08-14** ## Find what's impacting conversion with Attribution Your users will experience a multitude of touchpoints along their journey to a conversion moment like signup or purchase. But, how do you know which touchpoints are valuable - should you invest more budget in certain ads, or, are there certain banners on your website that get lots of clicks? With our long awaited Attribution feature, you can answer the million dollar question to make these critical decisions — which touchpoints contributed the most to conversion? Our multi-touch attribution models allow you to to assign fractional credit to each touchpoint in a user journey and find the highest performers. It’s also possible to compare how these models affect your conversion moment in one table. ![changelog Image](https://mintlify.s3.us-west-1.amazonaws.com/mixpanel-edb78807/images/changelog/attributioninsights.gif) You can also adjust the Lookback Window of your Attribution calculation to take into account a shorter or longer period for users to reach a touchpoint. This can be useful when analyzing your marketing campaigns that have a longer lasting impact on customer decision making. ![changelog Image](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/attributionlookback.gif?s=285325a65fcfb2a214b321d01b820075) We hope you enjoy Attribution, and stay tuned — we’ll soon be bringing this feature to both the Funnels and Retention reports. **2023-08-10** ## Introducing Warehouse Connectors: Sync event data from Snowflake & BigQuery [Link to Demo](https://www.loom.com/share/04f4ea75310744cdab477e1b47684db3?sid=ae77291d-d61a-4f91-9be0-887206896b18) Today, all customers have access to Warehouse Connectors, which allows you to natively import data from Snowflake or BigQuery into Mixpanel. With this feature, you can set up recurring syncs from your data warehouse and ensure that Mixpanel is always in sync with your trusted data. This native connection not only simplifies event implementation by eliminating the need for engineering resources to manually track events, but it also makes analyzing all types of company data in Mixpanel easier, providing a holistic view of your customers. For example, you can bring into Mixpanel: * **Application database tables**: Signups, Reports Created, Dashboards Created * **Salesforce data**: Opportunity Created, Account Created, Account Upsell * **Support data**: Ticket Created, Ticket Resolved * **Billing/Consumption data:** Invoice paid, subscription renewed * **Ad spend data:** Click-through rate, cost per click, Google Ads spend * **Clickstream data from Snowplow:** Views, clicks, etc. This lets you answer questions like: * What is the % of sales opportunities do we win? What is the average deal size in North America? * Which campaigns account for the most revenue? What is the breakdown of the ARR of customers that use this feature? * What is our average time to resolve a ticket? Navigate to Project Settings > Warehouse Sources to get started today. For more information, check out our docs on [Warehouse Connectors](/docs/tracking-methods/warehouse-connectors). **2023-08-02** ## Troubleshoot better with a new design for Boards without data We’re excited to announce that we have released a new design for Boards without data. Now when a report can’t populate, it will display one of two states: a faded out sample report or a “no data” status. ![changelog Image](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/empty-states-screenshot.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=5a195f4489bbef90837480d018321903) * Charts that show "no data" occur when an event has been tracked in the last 30 days, but a selected filter or date range result in no data for the report. * If the report is configured with an event that hasn't been tracked in past 30 days or has never existed, the faded sample report will appear. For example: you are an ecommerce company with a new Start Subscription event and you'd like to make a report to track subscriptions over time. * If you set up a report before this event starts being tracked, the report you create will show a faded out sample report like above. * As data starts flowing, the report will populate as expected. * If you set the date range on the report to a day where no one signed up for a subscription, the report will show “no data” because there were no subscription events tracked that day. This change is designed to make the experiences of creating a new Board and moving a Board to a new project easier to navigate and understand. Nothing needs to be done to experience this new state - it is live for all users on all plans. **2023-07-27** ## You can now move Boards between projects with Move Introducing Move, a powerful new feature that allows you to move Boards from one project to another, or one organization to another. Simply hover over the menu icon in the top right corner and mouse over “Move to” to move a Board to a new project. This feature is available on all plan types at no additional charge. Permissions for this feature are managed by group admins, who have the ability to allow moving Boards between projects, or even organizations. It's important to note that if you would like a version of the Board to stay in the parent project, duplicate it and move the new duplicate Board. Moving boards from projects based in the US -> EU as well as EU -> US is unavailable at this time. ![changelog Image](https://mintcdn.com/mixpanel-edb78807/t0w2ecW2bO4mKfCm/images/Demo_mv_x_proj.gif?s=2cf316ad3bb5c4b536c4036d65876c88) For example: 1. An organization has Project A and Project B that support different products and teams within the organization. 2. Team A has some fantastic Boards that have been well received by leadership and executives. 3. Team B would like to replicate these reports without having to build them all from scratch. This is where Move comes in. With the right permissions, Team A can move copies of their Boards to Team B’s project, allowing Team B to fill in their events and be up and running quickly, saving everyone time and energy. Coming soon: moving Boards to and from demo projects, saving you even more time. **2023-06-16** ## Discover purchase behaviors with Cart Analysis For ecommerce companies, understanding the purchase behavior of your users is vital when creating any revenue-driving strategy — whether that’s through website changes, marketing tactics, or product offerings. That’s why we built Cart Analysis to allow you to surface details about the items in your user’s cart (brand, category, price, etc) at different moments in their purchase journey (viewed product, added to cart, purchased). This is made possible by being able to look at any sub-property within a list of objects. ![changelog Image](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog/cart_analysis.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=d871b3f142c2744edeaab0142ad0e0ab) An example question you can ask in Mixpanel with the power of Cart Analysis might be “how many cart checkouts with a total of over \$75 have a sneaker product as an item?” ![changelog Image](https://mintlify.s3.us-west-1.amazonaws.com/mixpanel-edb78807/images/changelog/cart_analysis.gif) A key feature we used to create the above visualization was the "Sum" computed property, which select a numeric property contained within the objects of the list and sums those values together (in this case, price). The other computed properties available with Cart Analysis are: * **Size**: Buckets carts by the number of items they contain. * **Distinct Count**: Count the number of carts that contain a specific brand or category. Getting the answer to this question can help inform a product offering strategy, like if you wanted to consider offering discounts or incentives for customers who purchase sneakers along with other products to encourage cart values over \$75. If you want to learn more about how Cart Analysis can upgrade your ecommerce analytics, read our help doc on the [List of Objects data type](/docs/data-structure/property-reference/data-type#list-of-objects), the [analysis unlocked with List of Objects](/docs/data-structure/property-reference/data-type#list-of-objects-property-support) , and watch the demo video below. [Link to Demo](https://www.loom.com/share/ff350b78206a4eb6948f86ed67e62ac3) **2023-06-07** ## Correlate user actions to key outcomes with Behavioral Breakdowns [Link to Demo](https://www.loom.com/share/c0cc228cb4bc4e6c8ce25084178f8d30) Actions speak louder than demographics, especially when it comes to finding what behaviors lead users to key outcomes. That’s why we built Behavioral Breakdowns — a new way to segment users by what they do, not just who they are. Now, you have the ability to measure the correlation between a user's actions and their level of engagement, monetization, or other essential metrics. Here are a few examples of how you can leverage Behavioral Breakdowns to inform your approach in getting users to perform a key action: * When trying to get users to follow more accounts, you see that users who comment on 5 pieces of content within a week have a higher rate of following others. So, you make the comment button more accessible to decrease the friction it takes to comment. * To get more users signed up for your credit card, you target your emails to users that spend, on average, over \$100 every time they shop on your eCommerce store because that segment is more likely to apply for a credit card. **2023-06-06** ## Learn how users engage with your marketing tactics ![webtracking](https://mintcdn.com/mixpanel-edb78807/2dQbP7q9Vb6iLUv1/images/799423bf-aeec-431d-bbe1-08ad9e6ac9d9.png?fit=max\&auto=format\&n=2dQbP7q9Vb6iLUv1\&q=85\&s=a2e51dd21c15c1d68d0cdfd7424c6c8f) Your analysis is only as good as the data you capture, and we work hard to make it easy to setup the right data tracking to get you to insights quick and easy. That’s why we’ve updated our our [Mixpanel Javascript SDK](/docs/tracking-methods/sdks/javascript) to automatically collect: * UTM Tags (default: on) — automatically adds these parameters to all events: * utm\_source: track the source where traffic is coming from, including a website or advertiser * utm\_medium: track the advertising medium, including email and banner ads * utm\_campaign: track the campaign name associated with the traffic * utm\_content: track the specific link within in an ad that a user clicked * utm\_term: track keywords associated with campaigns * Initial UTM: tracks the first time a user reaches any of the above parameters Tracking UTM tags help fuel attribution analysis so you can understand which campaigns, ads, or content is contributing the most, or least, to conversion. * Page Views (default: off) — auto-track page views to build metrics like: 1. Total Views: identify top performing pages to learn what content your users like best 2. Bounce Rate: percentage of visitors who leave your website within 10s of viewing it 3. Conversion Rate: percentage of visitors who complete a key action after visiting a page. Tracking the performance of your pages is the main way to understand if your website is driving value to your users and business. If you want to get started with web analytics, turning on auto-tracking pages can help you get started. **2023-06-06** ## Track key ad metrics ![ad\_spend](https://mintcdn.com/mixpanel-edb78807/Y6MSfzF-TDZ89Tu0/images/1d171623-615f-4b47-a54d-883306fcd30c.png?fit=max\&auto=format\&n=Y6MSfzF-TDZ89Tu0\&q=85\&s=c92f745dabc347aa0d76982a1411123b) It’s easier than ever to start sending ad network data to Mixpanel with our [how-to guide](/docs/tracking-methods/integrations/ad-spend). We walk you through every step of implementation so you can start analyzing your ad data in no time and monitor key ad performance metrics like (CPC) cost-per-click, (CPM) cost-per-impression and (CTR) click-through-rate. It’s a one time setup for a lifetime of tracking ad metrics. It’s vital to understand whether your digital advertising is worth the money, and these metrics help inform whether your ads are driving return on investment so you can get informed on where to adjust ad spend to maximize results. Here are a few ways you can leverage ad performance metrics: * Compare campaigns and how they affect cost-per-click to borrow strategies from well performing campaigns into poor performing campaigns * Track the return-on-ad-spend across all ads to determine what channels need an increase in investment * Compare different versions of an ad and compare which one has the higher click-through-rate to learn what copy, imagery, or other aspects resonate most with your audience **2023-06-01** ## Vet new events and ensure data trust with Event Approval [Link to Demo](https://www.loom.com/share/afa48331dd3f44deb3f4e63327bf2389) Our new data governance setting ensures that only trustworthy data is surfaced to your team. Event Approval allows you to hide newly tracked events by default, and notify admins of these new events. With Event Approval, you can: 1. Provide a “stamp of approval” by making an event visible 2. Let an event continue to be hidden if you’re unsure if it was implemented correctly 3. Delete events that are mistakes This setting available for all organizations on an enterprise plan. **2023-05-05** ## Get ahead of issues with Anomaly Detection and Root Cause Analysis [Anomaly Detection Demo](https://www.loom.com/share/572a0f59d22e43069ba0c3bc1b4210f4) [Root Cause Analysis Demo](https://www.loom.com/share/53fd92c89b394e0c92324a4515e88443) Introducing Anomaly Detection and Root Cause Analysis, two new features to help you save time staying on top of metrics and getting ahead of potential issues in your product, data, or company. In addition to [Custom Alerts](https://help.mixpanel.com/docs/features/alerts) where you can manually set a threshold for alerting, you can now use Anomaly Detection to be automatically alerted in Slack or email when your data falls outside an expected range. We use a robust open-source tool [Prophet](https://facebook.github.io/prophet/) to forecast your time series data and determine whether the data point falls outside of your selected confidence interval. With any fired alert, you can create a Root Cause Analysis in one click that will automatically generate a Board with 12 reports broken down by popular properties of the event. This Board helps you quickly investigate potential causes of the metric change, and each alert is tethered to one Root Cause Analysis so you aren’t duplicating work if you see that others already diagnosed the issue. Ways you can catch and diagnose regressions faster with Mixpanel: * Alerted in #marketing Slack channel of a major drop in traffic for a key content landing page. From the Root Cause Analysis, see from last touch breakdown that there’s an issue in a paid ad campaign no longer driving traffic. * Alerted via email of a major drop in your team’s recent feature launch engagement. From the Root Cause Analysis, see from browser breakdown that there’s a severe drop-off for Safari due to a new bug. * Alerted in #engineering Slack channel of a major drop in DAU. From the Root Cause Analysis, see that the drop is driven by users in APAC, coinciding with holiday of Lunar New Year. With Anomaly Detection and Root Cause Analysis, you can stay on top of metrics and get your team moving quickly to a solution, without all the manual labor. **2023-04-14** ## Explore analysis better with Discover Our new Discover feature makes it easier to explore popular analyses to springboard your own work. The Discover page automatically surfaces top analyses and creators and provides more search controls to filter reports & Boards. [Link to Demo](https://www.loom.com/share/5353fc9abb624e2685d787f43b003dc2) Here are a few ways to use Discover: * Find existing analyses: filter searches by the teammate or object type (Board, Insights, Flows, etc.). Build off someone’s previous work instead of redoing an analysis. * Onboard new teammates: new people can quickly get their bearings by discovering the most popular analyses, or by exploring what top builders in the organization are measuring. * Get inspired: browse what your teammates measure or how they organize their Boards, and be inspired to create similar high-quality analyses **2023-04-06** ## Compare metrics side-by-side in one table With Mixpanel’s revamped Tables report, you can compare your key metrics side-by-side to understand how your segments are performing. [Link to Demo](https://www.loom.com/share/f3e4791604fb48f9bfad4bee2021decf) Tables are often the best visualization to process a lot of data at once — so, we made sure to include controls that can quickly get you to the most readable layout, fast: * Focus on the performance of a specific metric by 1) selecting a metric to sort your segments by, and 2) specifying it as ascending or descending order. * Treat each data point as its own row in Ungrouped View, or preserve the hierarchy of your breakdowns in Grouped View. * Control how many segments are displayed, so you can focus on the most relevant data. This unique flexibility of our Tables allow you to spend less time setting up your visualization and get to your takeaway quicker. Here are a few ways you can leverage our new Tables: * As a product manager, you can consider offering localized content that is tailored to the needs of users in specific countries and cities that are not performing well. ![image](https://user-images.githubusercontent.com/2077899/233897155-abf1ba47-a39e-4b1b-9997-a5623e349140.png) * As a growth marketer, you can compare how an increase in marketing spend since last month has effected the key metrics across marketing channels. ![image](https://user-images.githubusercontent.com/2077899/233897168-56a31677-ae64-4e91-b9d8-9e6e5bc8a355.png) * As a product manager in e-commerce, you can determine what product you no longer want to sell by surfacing which items have the worst performing conversion. ![image](https://user-images.githubusercontent.com/2077899/233897180-8f336ee6-a336-4827-b5e8-9040e9ef95b2.png) **2023-03-29** ## Easily create and manage Custom Alerts We’ve revamped Custom Alerts to make it easier for you to notify your team when a metric significantly changes. [Link to Demo](https://www.loom.com/share/2feb00896e90458e8d085495a2e62f14) With just one click, you can set up Slack or email alerts for: * When an important metric reaches a target, such as if "sign-ups" in "Japan" reaches 1000 * Monitoring unexpected behavior (or potentially faulty data), such as when any event in any segment changes by more than 25% As a bonus, we’ve also improved admin controls so that you can better organize your workspace through bulk deletion and clearer invalid alert symbols. **2023-03-28** ## Explore new questions with Custom Buckets Introducing **Custom Buckets**, a super simple way to group existing breakdowns to form meaningful segments. This added power can help you explore new, complex questions about your product usage by slicing & dicing like never before - all on the fly in an easy-to-use interface. Here are a few types of analysis you can build with Custom Buckets: **Age Cohorts:** Group an age breakdown to determine how a new feature has affected a key usage metric for different generations (Gen Z = ages 18-26, Millennial = ages 27-41) since last month. ![changelog Image](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog-2023-03-28-custom-buckets1.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=c0e5db7178e89d6e57462d657cee03df) **Channel Source:** Group all social channel segments into a single value (Social Media Channels = Facebook + Instagram + Twitter) to determine if your investment in social is driving signups. ![changelog Image](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog-2023-03-28-custom-buckets2.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=04041695dfd7cf7b059989d1465c3aed) **2023-02-28** ## Calculate retention based on a calendar interval Our new Calendar Retention setting allows our users to define retention on their own terms - now, you can switch your retention calculations from a rolling time window to calendar interval in just one click. Whether you want to align your retention data to internal records or other analysis tools, you can now create a reliable retention analysis that you and your team can trust to be accurate with your business’s needs. You might enjoy Calendar Retention if: * Your app or service has one engagement a day, so you want to capture the daily sessions that fall outside of the 24-hour window but occur on the next calendar day. * There’s a marketing campaign running week-to-week, so you can scale weekly marketing spend based on calendar week retention increasing or decreasing. * You need to align your retention metric to a monthly or quarterly calendar interval when sharing out retention performance to investors. Please checkout our help document if you would like to learn more on how to use Calendar Retention. ![changelog Image](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog-2023-02-28-retention-calendar-interval.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=178faf6f46fa395ef5ceb20512d87579) **2023-01-31** ## Embed Mixpanel in Figma, Notion, Coda, and more ![changelog Image](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog-2023-01-31-embed.gif?s=37d7111e47b78bbb07d34fe7c64500f1) You can now embed Mixpanel across your favorite product tools like Figma, Notion, Coda, Jira, and more. Specifically, Mixpanel Boards and reports can be embedded in any third party tool that supports embedding, unlocking integrations with many apps at no additional cost. A few ideas to get started on collaborating with data: Add OKRs to your team hub Embed success metrics in your PRDs Check in on metrics progress for your weekly syncs Check out more use cases in [our blog](https://mixpanel.com/blog/introducing-embeddable-reports/). **2023-01-23** ## View Users now available in Flows & more charts Back in March of 2022, we upgraded Mixpanel’s user insights analysis with View Users - a simple way to discover who’s contributing to a point on a chart or metric. Since then, Mixpanelers have leveraged this feature to learn more about their users who are driving product growth or stagnation. With so many people enjoying the power of View Users, we’re excited to bring this functionality to additional areas of Mixpanel: * **Flows report** * **Trends Chart** in Funnels, Retention, and Retention Frequency report * **Frequency Chart** in Funnels report * **Top Paths Chart** in Funnels report * **Time To Convert Chart** in Funnels report * **Metric Chart** in Insights and Funnels report * **Pie Chart** in Insights report ![changelog Image](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog-2023-01-23-users-flows.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=c41bee310eaa41962092524bf6c98cd2) **2023-01-18** ## Add your Insights Table to Boards If you’re a fan of visualizing data in table format, you can now save your table to a Board and preserve your analysis. To leverage this new capability, simply add a table to your Board or switch an existing Insights chart into its table format. ![changelog Image](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog-2023-01-18-table-boards1.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=b34e14960e4439bc2458004db4a32537) ## Other Updates URLs are meant to be short and sweet - now, sharing your Mixpanel analysis is super easy with shortened URLs supported on all reports and Boards. **2022-12-13** ## Collaboration just got easier with Boards We’re excited to introduce Mixpanel Boards, a new collaborative workspace that replaces our existing dashboards. Unlike an inflexible dashboard that only shows product metrics, Boards empowers teams to share complete context, dig into the data, and make better product decisions together. **What's included in Boards:** * **Text cards:** Add text to share the reasoning behind tracking any metric (with support for rich text formatting!) * **Media cards:** Give more color with a screenshot or feature walkthrough with YouTube, Vimeo, or Loom, or just spice things up with great memes * **Adjustable card height and width:** Insert, drag, and resize cards to make your analyses more organized and readable * **Viewer transparency:** Hover over the top right corner to quickly see who has recently viewed your Board, so you can know your impact Check out more use cases for collaboration in our [blog](https://mixpanel.com/blog/boards-collaborate-cards-mixpanel-feature-update/). **2022-12-01** ## Mixed Improvements in Mixpanel [Perfecting Mixpanel’s workflows are a top priority for us](https://mixpanel.com/blog/mixpanel-product-polish-updates-user-friction/), and that’s why our customers appreciate our best-in-class design when answering their everyday product questions. We take pride in focusing on the small, but vital incremental improvements that help Mixpanel become faster, more intuitive, and an overall joyous experience for our users. This month, we’re introducing our **Mixed Improvements**: updates that enhance Mixpanel’s workflows and upgrade your product analytics experience. **Query builder refinements** * Report tabs have been adjusted and color-coded to help you easily recognize where you are during an analysis. ![changelog Image](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog-2022-12-01-improvements1.gif?s=4c882f2ae84de000c722ef61af02f5f5) * The query builder is much easier to scan, all thanks to the new way of adding event and cohort blocks via the header of each section. ![changelog Image](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog-2022-12-01-improvements2.gif?s=8d185d1c20417bca5a27cccc982a2e64) * Query blocks feel super reactive with their new design that reflects all the possible states they can be in. ![changelog Image](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog-2022-12-01-improvements3.jpeg?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=f67d8bc3759f8cb5859c0f3f8f6d8149) * Headers, like **Event & Cohorts**, stick to the top so you don’t have to scroll back up to add other query blocks. ![changelog Image](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog-2022-12-01-improvements4.gif?s=b4fc66caafe2231442b97897096e8dac) * We’ve added arrow controls for a quicker way to input your number of steps in Flows report. * Dragging and dropping query blocks that are partially populated (uncompleted) is now possible across the query builder. ## Other updates * Flows report has been made even more intuitive - hover over a path to find the percent of users who performed that next step, and left-click on an event to pull up the action menu. ![changelog Image](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog-2022-12-01-improvements5.gif?s=149a44b93eaa981501b1e8f1b937f685) * Dashboards feel quicker than ever now that loading times for report editing in a Dashboard have decreased considerably. * Build and rebuild your Dashboards faster than ever with supported Undo (⌘+Z) & Redo (Shift+⌘+Z). * Render optimizations to data tables have helped them feel snappier and scroll much smoother. * All dates in Mixpanel have been streamlined to one format, for example, *Thu Jul 14, 2022 7:00 AM*. **2022-11-07** ## Accurate Event Ordering with Millisecond Precision Say hello to accurate event ordering with Millisecond Precision. Now, even if you have multiple events happening within the same second, Mixpanel has the power to decipher the exact sequence in which those events occurred. Check out any Flows report to view millisecond level of precision firsthand! **Before you can view events at Millisecond Precision, please make a note of two key points:** 1. You need to update your SDK to ingest events with millisecond timestamps. All previous versions only track at second precision. The *minimum versions* that support *ms* time stamps are as follows: * Swift - 3.3.0 * Obj-C - 4.2.0 * Android - 6.3.0 * Flutter - 1.6.0 * React Native - 1.5.0 * Unity - 3.3.0 * Javascript - historical versions have already been tracking ms timestamp. No action is to be taken if using this SDK. > Note: If you are sending data into Mixpanel via a CDP or the DWH, no change is required at your end if you’re already tracking data at ms precision. 2. Only forward-looking data will be tracked at ms precision. This means that once you update your SDK, it will take some time to accumulate data with ms precision before you can see it reflected in your analysis. **2022-11-03** ## Sessions improvements and new functionality We’ve added two updates to session tracking in Mixpanel for more flexibility when defining your sessions and a simpler process to slice and dice this data. With Property Based Sessions and Sessions Properties, you can take advantage of a whole new way to analyze how users engage with your product: * **Property-Based Sessions:** have your own parameters that define a session? No worries - simply attach a Session ID property to your events, and Mixpanel will register all instances when a session starts and ends. Even if your sessions are complex — start from multiple events, have a max duration of 6 hours, and end after 30 minutes of inactivity — Property-Based Sessions can manage these parameters. * **Session Properties:** borrow any property from the events that define a Session Start or Session End to break down your user engagement data like never before. For example, you can now set the property “City” to your session events to compare how users across different cities start and end sessions as well as the duration of these sessions. **2022-07-08** ## Reorient your view of charts and tables Mixpanel’s charts and tables both provide a unique way to view data and capture insights. But, sometimes you’re only in need of the table. Or, you need both the chart and table for a holistic analysis. That’s why we’ve introduced **Layout Controls** and **Visual Grouped** Sort to give you control over the orientation of your report. ## Layout Controls ![changelog Image](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog-2022-07-08-reorient1.gif?s=a5713a9b13e484cc96e02ddc40574110) We’ve added three buttons to give you control over the viewable area of your charts and tables: 1. Chart Focus: expand your chart so it is the only focus 2. Split View: split screen between both your chart and table 3. Table Focus: hide the chart completely to view the full, un-collapsed table Now, you don’t have to scroll around trying to find the most relevant data view. Simply click your desired orientation and voila - the perfect view is automatically adjusted. Otherwise, you can drag the dividing handle to your preferred destination. ## Visual Grouped Sort ![changelog Image](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog-2022-07-08-reorient2.gif?s=6d42d0a2520153c201b23d4be4f7cd01) Across all reports, data tables now include hierarchal structures that reduce repetitive information. This update makes it easier to group together the same metric so you can compare the results side-by-side. Checkout the before and after: ### Before ![changelog Image](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog-2022-07-08-reorient1.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=20f17b02492cde362150b24a03b4b8a3) ### After ![changelog Image](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/changelog-2022-07-08-reorient2.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=9efa4378ded83b13ef0334c736a8e8fa) **2022-07-01** ## Uncover user insights with View Users Making sense of your data just got a whole lot easier. In just two clicks, you can now View Users contributing to any event, at any point in time, across Insights, Funnels, and Retention reports. Save this list as a cohort. Export it as a CSV. And just like that, you have the data to find groups of users experiencing friction or dig deeper into what specific users are driving feature adoption. You can expect View Users to help: **Learn what type of users are driving growth or stagnation:** Each user’s properties and recent activities are readily accessible in View Users. This makes uncovering user themes fast - plus, you don’t have to leave the context of your Mixpanel report for this deep level of exploration. **Take action on a group of users:** View Users also helps with turning discoveries into actionable next steps. For example, you can leverage the Export to CSV button to grab the emails of a specific user group and plug them into an email campaign. Then, save that same group as a cohort in order to track their product usage after you send an email. **2022-06-16** ## Faster Workflows for Speedy Report Building Undo mistakes, shift query blocks and switch reports with lightning speed. Now, Mixpanel workflows are even faster with tools to quickly build, rebuild, and explore your reports. **Undo / Redo** We’ve added shortcuts to make iterating between changes in your analysis blazingly fast. Cmd + Z to undo; Cmd + Shift + Z to redo. Change filters, date ranges, line vs bar chart, and go back in one second to compare before and after, or fix the view. Speed is the only constant. **Drag & Drop Query Blocks** Save valuable time by dragging and dropping an existing query block into a different section. Want to change your breakdown by cities into a filter by those same cities? Click and drag your query block from the breakdown section, place it into the filter section, and voila - no need to recreate your queries, simply drag and drop existing ones. **Fluid Report Transitions** Realized you can find the answer to your question in a different report? No worries - Fluid Report Transitions preserves the parameters of your original question for quick, stress-free report switching. Start in Insights and switch into Funnels, then into Flows, and back to Insights all while keeping the events, filters, breakdowns and date ranges you set originally - zero rebuilding required. **2022-05-31** ## Improved conversion analysis in Flows We’ve boosted Flows so you can better see which actions affect conversion. You can seamlessly switch from Funnels to Flows now, carrying over criteria like excluded steps, and you can break down paths by conversion & drop-off — all in a single, smooth visualization. [Read more here.](https://help.mixpanel.com/hc/en-us/articles/360057520772-Conversion-and-Drop-off-Flows) **2022-05-24** ## Clarify context with more Lexicon support You can now use Lexicon descriptions for group profile properties, helping you add more context to your metrics. No more guesswork about what a property means. [Read more here](https://help.mixpanel.com/hc/en-us/articles/360001307806-Lexicon-Overview#adding-or-changing-descriptions). **2022-04-18** ## Measure performance better with relative comparisons With our improved relative comparisons, you can now calculate & visualize metrics for specific segments relative to others. We’ve also enhanced time comparisons, adding visualizations like comparing percent change over baseline or plotting metrics like YoY. [Read more here.](https://help.mixpanel.com/hc/en-us/articles/4485419360916) **2022-03-29** ## Tell a richer story with text on dashboards You can now add text to dashboards, making it easier to share the context behind your analysis or tell a compelling story around your data. Sometimes, a word is worth a thousand pictures. # Access Security Source: https://docs.mixpanel.com/docs/access-security Mixpanel is committed to keeping your data and access secure Mixpanel is committed to keeping your data and access secure. > [card] [Login Methods](/docs/access-security/login-methods) > [card] [Two-Factor Authentication](/docs/access-security/two-factor-authentication) > [card] [Single Sign-On](/docs/access-security/single-sign-on) # Audit Log Source: https://docs.mixpanel.com/docs/access-security/audit-log Track organization and project activity, visibility into changes, and compliance for your Mixpanel workspace Mixpanel's audit log tracks activity within your organization and projects, providing visibility into who made changes, when they occurred, and what was modified. The audit log helps teams maintain security, troubleshoot issues, and meet compliance requirements. > [!NOTE] > > The audit log is available on all plans. Free and Growth plans retain logs for 90 days. Enterprise plans retain logs for 2 years. See our [pricing page](https://mixpanel.com/pricing/) for more details. ## Accessing the Audit Log You can access the audit log at two levels: * **Organization-level logs** — Found in Organization Settings. Accessible to organization admins and owners, these log all events across the organization, including user authentication, service account management, and more. * **Project-level logs** — Found in Project Settings. Accessible to project admins and owners, these logs include project-specific events like report creation and data exports. Some events appear only at the organization level. Most appear in both organization and project logs. 1. **Navigate to Organization Settings or Project Settings** by clicking the gear icon in the bottom left navigation > Settings. 2. **Select Audit Log** from the sidebar menu. 3. **View the activity log** showing recent events, who performed them, and when they occurred. ![image](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/org_audit_logs.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=26e730fa472fd04b7c6f82522e4bedf9) ## Tracked Events See [Audit Log Reference](/docs/access-security/audit-log-reference) for a complete list of all tracked events, including descriptions and availability dates. ## MCP Activity When someone connects an AI assistant to Mixpanel through the [MCP server](/docs/mcp), the changes that assistant makes are recorded in the same audit log as changes made in the Mixpanel UI — attributed to the Mixpanel account whose credentials the assistant is using, and marked as having come from MCP. ### What Gets Logged Every MCP tool that changes something records an entry. That covers all of Mixpanel's write tools — boards, cohorts, experiments, feature flags, metrics, lookup tables, custom properties, Lexicon metadata, tags, and business context. Two things are deliberately **not** logged: * **Read-only tool calls.** Running a query, reading a report, or listing cohorts through MCP produces no audit entry, consistent with how the Mixpanel UI treats the same actions. * **Failed tool calls.** Only changes that actually took effect are recorded. ### Identifying MCP Activity In the audit log UI, MCP entries carry an **Origin** of MCP, and the **Origin** filter narrows the table to a single source. In [exports](#exporting-the-audit-log) and the audit log API, the same information is the `service` field, and MCP entries carry the value `mcp`. Entries are attributed to the account the assistant is connected as. If that is a [service account](/docs/mcp#connecting-with-service-accounts) shared by a team, the entry identifies the service account rather than the person who initiated the action. For a clue about *which* AI client made a change, read the `http_user_agent` field on the MCP tool call entry — for example, `claude-code/2.1.281 (claude-desktop, agent-sdk/0.3.281)`. The value is client-supplied, so treat it as a hint rather than proof of identity. ### How Many Entries an Action Produces A single MCP action usually produces more than one audit entry: * **One MCP tool call entry** — event type `mcp_tool_call.performed` — recording which tool was run and the arguments it was given. * **One detailed entry per object that changed**, including its before and after state. Creating a board with ten reports through MCP, for example, produces one tool call entry, one `board.created` entry, and ten `bookmark.created` entries. Objects that Mixpanel does not audit in their own right — tags, metrics, custom properties, lookup tables, and business context — produce only the tool call entry, with no before/after state. ### Retention MCP tool call entries are retained for **90 days on all plans, including Enterprise**, rather than the standard retention described above. The detailed entries are unaffected: a board, cohort, experiment, or feature flag change follows your plan's standard retention regardless of whether it came from MCP. ### Things to Know * **The IP address is not the user's.** On an MCP tool call entry, the recorded IP address belongs to the server making the tool call (typically your AI provider's, such as Anthropic's or OpenAI's), not the device of the person using the assistant. Use the user field, not the IP address, to identify who performed an MCP action. The detailed entries have no IP address at all. * **MCP entries can take several minutes to appear.** If a recent action is missing, wait and refresh before treating it as unlogged. * **Very large arguments are dropped.** If a tool call's arguments exceed 64 KB, the MCP tool call entry records none of them and sets `arguments_truncated` to true. The detailed entries still carry the full before/after state. * **Disconnecting an MCP client is not yet recorded.** Each connection, including an [enterprise-managed connection](/docs/mcp/claude-enterprise-managed-auth), is recorded as an `mcp_client.authorized` entry. Organization admins and owners can also query this history conversationally with the `Get-Audit-Log` tool — see [Querying the Audit Log](/docs/mcp#querying-the-audit-log) on the MCP server page. ## Exporting the Audit Log You can export the audit log to CSV or NDJSON (newline-delimited JSON) for further analysis or archival. The export contains the raw data for each event. CSV is convenient for spreadsheets and quick analysis. NDJSON preserves the full nested structure of each event, which suits programmatic processing or ingestion into log pipelines. 1. **Navigate to the audit log** page in Organization Settings or Project Settings. 2. **Click the Export button** and choose your format—**CSV** or **NDJSON**—from the dropdown to download the current view of the audit log. 3. The export includes all visible events within the selected time range. ## Limitations * **Retention periods** vary by plan: * Free & Growth plans: 90 days * Enterprise plans: 2 years * [MCP tool call entries](#retention): 90 days on all plans * **Organization-only events** (service account management, login/logout, two-factor auth) are only visible in Organization Settings, not Project Settings. * **Read-only actions are not logged**, whether taken in the Mixpanel UI or [through MCP](#what-gets-logged). The audit log records changes, not views or queries. * **Not all object types are audited.** Changes to some object types — including tags, metrics, custom properties, lookup tables, and business context — are recorded when made [through MCP](#how-many-entries-an-action-produces), but not when made in the Mixpanel UI. ## FAQ #### Who can access the audit log? Only users with Admin or Owner roles in an organization or project can view the audit log for that organization or project. You can configure custom roles to include audit log access as well. #### Can I filter the audit log by event type or user? Yes, the audit log interface provides filtering options to help you find specific events or actions by particular users. The **Origin** filter also narrows the table to a single source, such as [MCP](#identifying-mcp-activity). #### Can I tell whether a change was made by a person or by an AI assistant? Yes. Changes made through the [MCP server](/docs/mcp) have an **Origin** of MCP, and are attributed to the Mixpanel account whose credentials the assistant is connected with. See [MCP Activity](#mcp-activity). #### What's the difference between the organization and project audit logs? Most events appear in both places. The organization audit log contains additional organization-wide events like user authentication and service account creation. The project audit log is limited to project-specific events. The scope field on the audit log reference page indicates which audit log will contain the event. If there is no scope column in a table, the event appears in both the organization and project audit logs. # Audit Log Reference Source: https://docs.mixpanel.com/docs/access-security/audit-log-reference Mixpanel's Audit Log tracks activity within your organization and projects, providing visibility into who made changes, when they occurred, and what was modified. This page is the authoritative catalog of every event type the Audit Log records. For an overview of the Audit Log — how to access it in the UI, retention by plan, the CSV export workflow, and FAQ — see the [Audit Log overview](/docs/access-security/audit-log). JSON Schemas for the shared audit log entry format and each event type's payload are available on [GitHub](https://github.com/mixpanel/docs/tree/main/schemas/audit-logs). ## Entry Fields Every audit log entry in the API and NDJSON exports has these fields. `entity` holds the event-specific details, which vary by event type. CSV exports split `entity` into separate columns and omit `ttl_timestamp`. | Field | Description | | - | - | | `project_id` | ID of the project the audited action occurred in. | | `organization_id` | ID of the organization the audited action occurred in. | | `service` | The Mixpanel service the audited action came from, shown as Origin in the audit log UI. Values, with their UI labels: `webapp` (API), `mcp` (MCP), `cron` (Scheduled Job), `webapp_worker` (Background Worker), `export_server` (Export API). | | `event_category` | High-level category describing the type of audited event. | | `organization_name` | Name of the organization at the time the audited action occurred. | | `ttl_timestamp` | UTC timestamp at which the audit log entry expires and may be deleted. | | `client_ip` | IP address of the client that initiated the audited action. On MCP tool call entries, this is the calling server's address (typically your AI provider's), not the user's. | | `http_method` | HTTP method of the request that triggered the audited action (e.g. GET, POST). | | `http_request_headers` | HTTP request headers from the request that triggered the audited action. | | `http_request_size` | Size of the HTTP request body in bytes. | | `http_response_headers` | HTTP response headers returned for the request that triggered the audited action. | | `http_response_size` | Size of the HTTP response body in bytes. | | `http_status` | HTTP status code returned for the request that triggered the audited action. | | `http_url` | URL of the request that triggered the audited action. | | `http_user_agent` | User-Agent header from the request that triggered the audited action. | | `project_name` | Name of the project at the time the audited action occurred. | | `user_email` | Email of the user who performed the audited action. | | `user_id` | ID of the user who performed the audited action. | | `user_roles` | Comma-separated list of roles held by the user at the time of the audited action. | | `created` | UTC timestamp when the audit log entry was created. | | `id` | Unique identifier for the audit log entry. | | `was_impersonated_by_staff` | Whether the action was performed by a Mixpanel staff member acting on behalf of your organization. | | `entity` | The entity that was acted upon, including its type, action, and action-specific payload. | ## Events The events Mixpanel records are listed below. The **Available Since** date on each event is the first calendar day on which the event is available. ### Agentic Workflows | Event Type | Display Name | Description | Scope | Available Since | | - | - | - | - | - | | `agent_flow.activated` | Agent Automation Activated | An agentic automation was activated. | Project and organization | June 9, 2026 | | `agent_flow.created` | Agent Automation Created | A new agentic automation was created. | Project and organization | June 9, 2026 | | `agent_flow.deleted` | Agent Automation Deleted | An agentic automation was deleted. | Project and organization | June 9, 2026 | | `agent_flow.paused` | Agent Automation Paused | An active agentic automation was paused. | Project and organization | June 9, 2026 | | `agent_flow.triggered` | Agent Automation Triggered | An agentic automation run was triggered, either manually or based on the configured schedule. | Project and organization | June 9, 2026 | | `agent_flow.updated` | Agent Automation Updated | An existing agentic automation was updated. | Project and organization | June 9, 2026 | ### Alerts | Event Type | Display Name | Description | Scope | Available Since | | - | - | - | - | - | | `alert.created` | Alert Created | A new alert was created on a report. | Project and organization | February 1, 2026 | | `alert.deleted` | Alert Deleted | An alert was removed. | Project and organization | February 1, 2026 | | `alert.updated` | Alert Modified | An existing alert's settings were changed. | Project and organization | February 1, 2026 | | `alert.triggered` | Alert Triggered | An alert condition was met and triggered. | Project and organization | February 7, 2026 | ### Billing Info | Event Type | Display Name | Description | Scope | Available Since | | - | - | - | - | - | | `billing_info.receipt_preferences_updated` | Billing Invoice Preferences Updated | Billing invoice preferences were updated. | Organization only | May 20, 2026 | | `billing_info.payment_info_updated` | Billing Payment Information Updated | Billing payment information was modified. | Organization only | May 20, 2026 | | `billing_info.tax_info_updated` | Billing Tax Information Updated | Billing tax information was modified. | Organization only | May 20, 2026 | ### Boards | Event Type | Display Name | Description | Scope | Available Since | | - | - | - | - | - | | `board.created` | Board Created | A new board was created. | Project and organization | April 5, 2026 | | `board.deleted` | Board Deleted | A board was permanently removed. | Project and organization | April 5, 2026 | | `board.duplicated` | Board Duplicated | A copy of an existing board was created. | Project and organization | April 5, 2026 | | `board.exported` | Board Exported | Board data was exported. | Project and organization | April 5, 2026 | | `board.shared` | Board Shared | A board was shared with users or teams. | Project and organization | April 5, 2026 | | `board_subscription.created` | Board Subscription Created | A scheduled board email subscription was set up. | Project and organization | April 5, 2026 | | `board_subscription.deleted` | Board Subscription Deleted | A board subscription was removed. | Project and organization | April 5, 2026 | | `board.unshared` | Board Unshared | Sharing access to a board was revoked. | Project and organization | April 5, 2026 | | `board.updated` | Board Updated | Board settings or content were modified. | Project and organization | April 5, 2026 | | `board.public_access_updated` | Public Board Access Updated | Public sharing settings for a board were changed. | Project and organization | April 5, 2026 | ### Cohorts | Event Type | Display Name | Description | Scope | Available Since | | - | - | - | - | - | | `cohort.created` | Cohort Created | A new cohort was created. | Project and organization | April 5, 2026 | | `cohort.deleted` | Cohort Deleted | A cohort was removed. | Project and organization | April 5, 2026 | | `cohort.shared` | Cohort Shared | A cohort was shared with users or teams. | Project and organization | April 5, 2026 | | `cohort_sync.created` | Cohort Sync Created | A new cohort sync integration was configured. | Project and organization | May 20, 2026 | | `cohort_sync.updated` | Cohort Sync Updated | Cohort sync settings were modified. | Project and organization | May 20, 2026 | | `cohort.unshared` | Cohort Unshared | Sharing access to a cohort was revoked. | Project and organization | April 5, 2026 | | `cohort.updated` | Cohort Updated | Cohort criteria or settings were modified. | Project and organization | April 5, 2026 | ### Custom Roles | Event Type | Display Name | Description | Scope | Available Since | | - | - | - | - | - | | `custom_role.created` | Custom Role Created | A new custom role was created. | Project and organization | April 5, 2026 | | `custom_role.deleted` | Custom Role Deleted | A custom role was deleted. | Project and organization | April 5, 2026 | | `custom_role.updated` | Custom Role Updated | A custom role's permissions or settings were modified. | Project and organization | April 5, 2026 | ### Data Exports | Event Type | Display Name | Description | Scope | Available Since | | - | - | - | - | - | | `audit_log_export.created` | Audit Log Export Created | An audit log export was initiated. | Project and organization | April 5, 2026 | | `audit_log_export.downloaded` | Audit Log Export Downloaded | An audit log export file was downloaded. | Project and organization | April 5, 2026 | | `audit_log_stream.created` | Audit Log Stream Created | An audit log stream was created. | Organization only | October 31, 2026 | | `audit_log_stream.deleted` | Audit Log Stream Deleted | An audit log stream was deleted. | Organization only | October 31, 2026 | | `audit_log_stream.paused` | Audit Log Stream Paused | An audit log stream was paused. `pause_reason` identifies the cause. | Organization only | October 31, 2026 | | `audit_log_stream.resumed` | Audit Log Stream Resumed | Delivery for a paused audit log stream was restarted. A resume changes no configuration and has nothing to report beyond the actor and the stream, so its payload is empty. | Organization only | October 31, 2026 | | `audit_log_stream.updated` | Audit Log Stream Updated | An audit log stream's delivery configuration was changed. | Organization only | October 31, 2026 | | `event_export.downloaded` | Events Exported | Event data was exported from the project. | Project and organization | April 5, 2026 | | `profile_export.downloaded` | Profile Data Exported | User profile data was exported. | Project and organization | April 5, 2026 | | `raw_event_export.requested` | Raw Event Export Requested | A raw event export was requested. | Project and organization | May 20, 2026 | | `user_data_export.created` | User Data Export Requested | A user data export request was submitted. | Project and organization | April 5, 2026 | ### Data Management | Event Type | Display Name | Description | Scope | Available Since | | - | - | - | - | - | | `event_definition.created` | Event Definition Created | A new event definition was created. | Project and organization | May 20, 2026 | | `event_definition.deleted` | Event Definition Deleted | An event definition was deleted. | Project and organization | May 20, 2026 | | `event_definition.updated` | Event Definition Updated | An event definition was modified. | Project and organization | May 20, 2026 | | `event_deletion.canceled` | Event Deletion Canceled | A pending event deletion request was canceled. | Project and organization | April 5, 2026 | | `event_deletion.created` | Event Deletion Requested | A request to delete events was submitted. | Project and organization | April 5, 2026 | | `profile.deleted` | Profile Deleted | A user profile was removed. Only tracked when initiated through the Mixpanel web application. API calls and direct updates using the Mixpanel SDK are not currently logged. | Project and organization | May 20, 2026 | | `profile.updated` | Profile Updated | A user profile was updated. Only tracked when initiated through the Mixpanel web application. API calls and direct updates using the Mixpanel SDK are not currently logged. | Project and organization | May 20, 2026 | | `profile.batch_deleted` | Profiles Batch Deleted | A batch of user profiles were removed. Only tracked when initiated through the Mixpanel web application. API calls and direct updates using the Mixpanel SDK are not currently logged. | Project and organization | May 20, 2026 | | `profile.batch_updated` | Profiles Batch Updated | A batch of user profiles were updated. Only tracked when initiated through the Mixpanel web application. API calls and direct updates using the Mixpanel SDK are not currently logged. | Project and organization | May 20, 2026 | | `property_definition.created` | Property Definition Created | A new property definition was created. | Project and organization | May 20, 2026 | | `property_definition.deleted` | Property Definition Deleted | A property definition was deleted. | Project and organization | July 2, 2026 | | `property_definition.updated` | Property Definition Updated | A property definition was modified. | Project and organization | May 20, 2026 | | `user_data_deletion.canceled` | User Data Deletion Canceled | A pending user data deletion request was canceled. | Project and organization | April 5, 2026 | | `user_data_deletion.created` | User Data Deletion Requested | A request to delete user profile data was submitted. | Project and organization | April 5, 2026 | ### Data Pipelines | Event Type | Display Name | Description | Scope | Available Since | | - | - | - | - | - | | `data_pipeline.created` | Data Pipeline Created | A new data pipeline integration was set up. | Project and organization | April 5, 2026 | | `data_pipeline.deleted` | Data Pipeline Deleted | A data pipeline was removed. | Project and organization | April 5, 2026 | | `data_pipeline.updated` | Data Pipeline Updated | Data pipeline configuration was modified. | Project and organization | April 5, 2026 | ### Data Views | Event Type | Display Name | Description | Scope | Available Since | | - | - | - | - | - | | `workspace.team_added` | Team Added to Data View | A team was granted access to a data view. | Project and organization | May 20, 2026 | | `workspace.team_removed` | Team Removed from Data View | A team's data view access was revoked. | Project and organization | May 20, 2026 | | `workspace.user_added` | User Added to Data View | A user was granted access to a data view. | Project and organization | May 20, 2026 | | `workspace.user_removed` | User Removed from Data View | A user's data view access was revoked. | Project and organization | May 20, 2026 | ### Experiments | Event Type | Display Name | Description | Scope | Available Since | | - | - | - | - | - | | `experiment.archived` | Experiment Archived | An experiment was archived. | Project and organization | May 20, 2026 | | `experiment.concluded` | Experiment Concluded | An experiment was concluded. | Project and organization | May 20, 2026 | | `experiment.created` | Experiment Created | A new experiment was created. | Project and organization | May 20, 2026 | | `experiment.decided` | Experiment Decision Recorded | A decision was made on an experiment. | Project and organization | May 20, 2026 | | `experiment.deleted` | Experiment Deleted | An experiment was deleted. | Project and organization | May 20, 2026 | | `experiment.duplicated` | Experiment Duplicated | An experiment was duplicated. | Project and organization | May 20, 2026 | | `experiment.launched` | Experiment Launched | An experiment was launched. | Project and organization | May 20, 2026 | | `experiment.restored` | Experiment Restored | An archived experiment was restored. | Project and organization | May 20, 2026 | | `experiment.updated` | Experiment Updated | Experiment settings were modified. | Project and organization | May 20, 2026 | ### Feature Flags | Event Type | Display Name | Description | Scope | Available Since | | - | - | - | - | - | | `feature_flag.archived` | Feature Flag Archived | A feature flag was archived. | Project and organization | May 20, 2026 | | `feature_flag.created` | Feature Flag Created | A new feature flag was created. | Project and organization | May 20, 2026 | | `feature_flag.deleted` | Feature Flag Deleted | A feature flag was deleted. | Project and organization | May 20, 2026 | | `feature_flag.duplicated` | Feature Flag Duplicated | A feature flag was duplicated. | Project and organization | May 20, 2026 | | `feature_flag.restored` | Feature Flag Restored | An archived feature flag was restored. | Project and organization | May 20, 2026 | | `feature_flag.updated` | Feature Flag Updated | Feature flag settings were modified. | Project and organization | May 20, 2026 | ### MCP | Event Type | Display Name | Description | Scope | Available Since | | - | - | - | - | - | | `mcp_client.authorized` | MCP Client Authorized | A user granted an application access to Mixpanel through the MCP server. The entry records which application was authorized, where it was sent the authorization code, and what it was allowed to do. It is written once per organization the user belonged to at the time of consent, because the resulting access is not limited to a single organization. | Organization only | October 31, 2026 | ### Organization Settings | Event Type | Display Name | Description | Scope | Available Since | | - | - | - | - | - | | `organization_spark_setting.updated` | Organization AI Settings Changed | Organization AI settings were updated. | Organization only | May 20, 2026 | | `organization_setting.updated` | Organization Settings Changed | Organization settings were modified. | Organization only | May 20, 2026 | | `organization.sso_settings_updated` | Organization SSO Settings Changed | The organization's single sign-on settings were updated. | Organization only | September 10, 2026 | | `organization_access_security.twofactor_disabled` | Organization Two-Factor Auth Disabled | Organization-wide two-factor authentication was disabled. | Organization only | May 20, 2026 | | `organization_access_security.twofactor_enabled` | Organization Two-Factor Auth Enabled | Organization-wide two-factor authentication was enabled. | Organization only | May 20, 2026 | | `trusted_identity_issuer.created` | Trusted Identity Provider Added | An identity provider was trusted for Enterprise Managed Auth. | Organization only | October 31, 2026 | | `trusted_identity_issuer.deleted` | Trusted Identity Provider Removed | A trusted identity provider was removed, so members can no longer sign in through it. | Organization only | October 31, 2026 | | `trusted_identity_issuer.updated` | Trusted Identity Provider Updated | A trusted identity provider was changed, such as pausing or resuming sign-in through it. | Organization only | October 31, 2026 | ### Project Settings | Event Type | Display Name | Description | Scope | Available Since | | - | - | - | - | - | | `project.transferred` | Project Transferred | A project was transferred to a different organization or owner. | Project and organization | May 20, 2026 | ### Real-Time Destinations | Event Type | Display Name | Description | Scope | Available Since | | - | - | - | - | - | | `realtime_destination.created` | Real-Time Destination Created | A new real-time (event streaming) destination was created. | Project and organization | November 3, 2026 | | `realtime_destination.deleted` | Real-Time Destination Deleted | A real-time destination was soft-deleted. | Project and organization | November 3, 2026 | | `realtime_destination.paused` | Real-Time Destination Disabled | A real-time destination was disabled. | Project and organization | November 3, 2026 | | `realtime_destination.activated` | Real-Time Destination Enabled | A real-time destination was enabled. | Project and organization | November 3, 2026 | | `realtime_destination.updated` | Real-Time Destination Updated | A real-time destination's configuration was updated. | Project and organization | November 3, 2026 | | `realtime_stream.created` | Real-Time Stream Created | A new real-time stream was created. | Project and organization | November 3, 2026 | | `realtime_stream.deleted` | Real-Time Stream Deleted | A real-time stream was soft-deleted. | Project and organization | November 3, 2026 | | `realtime_stream.paused` | Real-Time Stream Disabled | A real-time stream was disabled. | Project and organization | November 3, 2026 | | `realtime_stream.activated` | Real-Time Stream Enabled | A real-time stream was enabled. | Project and organization | November 3, 2026 | | `realtime_stream.updated` | Real-Time Stream Updated | A real-time stream's configuration was updated. | Project and organization | November 3, 2026 | ### Reports | Event Type | Display Name | Description | Scope | Available Since | | - | - | - | - | - | | `bookmark.deleted` | Report Deleted | A saved report was removed. | Project and organization | April 5, 2026 | | `bookmark.moved` | Report Moved | A saved report was moved to a different location. | Project and organization | May 20, 2026 | | `bookmark.created` | Report Saved | A new report was saved to a dashboard. | Project and organization | April 5, 2026 | | `bookmark.screenshot_downloaded` | Report Screenshot Downloaded | A screenshot of a report was downloaded. | Project and organization | May 20, 2026 | | `bookmark.updated` | Report Updated | A saved report's configuration was changed. | Project and organization | April 5, 2026 | ### Service Accounts | Event Type | Display Name | Description | Scope | Available Since | | - | - | - | - | - | | `service_account.added_to_project` | Service Account Added to Project | A service account was granted access to a project. | Project and organization | April 5, 2026 | | `service_account.created` | Service Account Created | A new service account was created. | Organization only | April 5, 2026 | | `service_account.deleted` | Service Account Deleted | A service account was removed. | Organization only | April 5, 2026 | | `service_account.removed_from_project` | Service Account Removed from Project | A service account's project access was revoked. | Project and organization | April 5, 2026 | | `service_account.role_changed` | Service Account Role Changed | A service account's role or permissions were modified. | Project and organization | April 5, 2026 | ### Teams | Event Type | Display Name | Description | Scope | Available Since | | - | - | - | - | - | | `team.service_account_added` | Service Account Added to Team | A service account was added to a team. | Organization only | May 20, 2026 | | `team.service_account_removed` | Service Account Removed from Team | A service account was removed from a team. | Organization only | May 20, 2026 | | `team.created` | Team Created | A new team was created. | Organization only | May 20, 2026 | | `team.deleted` | Team Deleted | A team was deleted. | Organization only | May 20, 2026 | | `team.updated` | Team Updated | Team settings were modified. | Organization only | May 20, 2026 | | `team.user_added` | User Added to Team | A user was added to a team. | Organization only | May 20, 2026 | | `team.user_removed` | User Removed from Team | A user was removed from a team. | Organization only | May 20, 2026 | ### User Authentication | Event Type | Display Name | Description | Scope | Available Since | | - | - | - | - | - | | `passkey.created` | Passkey Registered | A user registered a new passkey. | Organization only | October 31, 2026 | | `passkey.deleted` | Passkey Removed | A user removed a registered passkey. | Organization only | October 31, 2026 | | `user.passkey_login_disabled` | User Disabled Passkey Login | A user disabled passkey login in their profile settings. | Organization only | October 31, 2026 | | `user.twofactor_disabled` | User Disabled Two-Factor Auth | A user deactivated two-factor authentication. | Organization only | August 16, 2026 | | `user.passkey_login_enabled` | User Enabled Passkey Login | A user enabled passkey login in their profile settings. | Organization only | October 31, 2026 | | `user.twofactor_enabled` | User Enabled Two-Factor Auth | A user activated two-factor authentication. | Organization only | April 5, 2026 | | `session.logged_in` | User Logged In | A user successfully logged into the organization. | Organization only | April 5, 2026 | | `session.logged_out` | User Logged Out | A user logged out of the organization. | Organization only | April 5, 2026 | | `session.login_failed` | User Login Failed | A user login attempt failed. | Organization only | May 20, 2026 | | `session.reauth_failed` | User Re-authentication Failed | A logged-in user failed to re-authenticate before changing a sensitive setting. | Organization only | October 2, 2026 | ### User Management | Event Type | Display Name | Description | Scope | Available Since | | - | - | - | - | - | | `invitation.accepted` | Accepted Invitation | A user accepted an invitation to the organization. | Organization only | May 20, 2026 | | `project.default_access_granted` | Default Project Access Granted | Default access for all users to a project was granted. | Project and organization | May 20, 2026 | | `project.default_access_revoked` | Default Project Access Revoked | Default access for all users to a project was revoked. | Project and organization | May 20, 2026 | | `invitation.sent` | Invited User to Organization | An invitation was sent to a new user. | Organization only | May 20, 2026 | | `project.team_added` | Team Added to Project | A team was granted access to a project. | Project and organization | May 20, 2026 | | `project.team_removed` | Team Removed from Project | A team's project access was revoked. | Project and organization | May 20, 2026 | | `organization.user_added` | User Added to Organization | A user was added to the organization. | Organization only | May 20, 2026 | | `project.user_added` | User Added to Project | A user was granted access to a project. | Project and organization | May 20, 2026 | | `organization.user_removed` | User Removed from Organization | A user was removed from the organization. | Organization only | May 20, 2026 | | `project.user_removed` | User Removed from Project | A user's project access was revoked. | Project and organization | May 20, 2026 | | `user.role_changed` | User Role Changed | A user's role or permissions were modified. | Project and organization | May 20, 2026 | ### Warehouse Sources | Event Type | Display Name | Description | Scope | Available Since | | - | - | - | - | - | | `warehouse_source.created` | Warehouse Source Created | A new warehouse data source was connected. | Project and organization | April 5, 2026 | | `warehouse_source.deleted` | Warehouse Source Deleted | A warehouse source connection was removed. | Project and organization | April 5, 2026 | | `warehouse_source_sync.created` | Warehouse Source Sync Created | A warehouse source sync job was created. | Project and organization | May 20, 2026 | | `warehouse_source_sync.deleted` | Warehouse Source Sync Deleted | A warehouse source sync job was deleted. | Project and organization | May 20, 2026 | | `warehouse_source_sync.updated` | Warehouse Source Sync Updated | Warehouse source sync configuration was modified. | Project and organization | May 20, 2026 | | `warehouse_source.updated` | Warehouse Source Updated | Warehouse source configuration was changed. | Project and organization | April 5, 2026 | # Audit Log Streaming Source: https://docs.mixpanel.com/docs/access-security/audit-log-streaming Continuously deliver your organization's audit log to a cloud destination you control > [!NOTE] > > Audit Log Streaming is available on the Enterprise plan. See our [pricing page](https://mixpanel.com/pricing/) for more details. ## Overview Audit Log Streaming continuously delivers your organization's [audit log](/docs/access-security/audit-log) to a cloud storage destination that you own and control. Instead of exporting the audit log by hand, Mixpanel pushes new entries to your destination as they are recorded — ready to be picked up by your security monitoring tooling, a log pipeline, or a compliance archive. A stream is configured once for the whole organization and carries every audit log entry for it, including entries scoped to individual projects. Entries typically arrive at your destination within five minutes of the action that produced them. ## Requirements * An Enterprise plan. * Organization Owner or Admin. Only Owners and Admins can create, edit, pause, resume, or delete a stream. * A cloud storage destination you control, and the access to grant Mixpanel permission on it. Because a stream carries the organization's entire audit log, treat configuring one as a security-sensitive change. Every stream action — create, update, pause, resume, and delete — is itself recorded in your audit log. ## What Gets Streamed Every audit log entry recorded for your organization is streamed. This is the same set of events listed in the [Audit Log Reference](/docs/access-security/audit-log-reference), covering both organization-level events (logins, service account management, two-factor changes, role changes) and project-level events (report and board changes, data governance changes, exports, and more). ## Set Up a Stream **1. Open the stream configuration** Go to **Organization Settings → Audit Log** and click **Configure stream**. **2. Select your destination type** Each destination type has its own setup guide under [Destinations](#destinations). **3. Grant Mixpanel access to the destination** Follow the setup guide for your destination type. Do this **before** saving in Mixpanel — access is verified at save time, and the stream is only created if that check succeeds. **4. Enter the destination details and save** If the access check fails, nothing is saved and Mixpanel returns an error describing what to fix. The same access check runs whenever a stream is created, updated, or resumed, so a bad edit or a revoked permission can't silently break a live stream. How the check is performed is specific to each destination type and is described in its section below. ## Delivered Files All destinations receive batches as gzipped NDJSON files. ### Record Shape Each line contains one complete audit log entry. See the [Audit Log Reference](/docs/access-security/audit-log-reference) for the record schema and field definitions. In particular, consumers should use `id` to deduplicate entries and `created` to order them. ### Object Path Files use this path: ```text theme={"system"} [/]YYYY/MM/DD/HH/MM/.ndjson.gz ``` The path prefix is optional. The timestamp in the path is when Mixpanel batched the entries, not when the file was delivered. This keeps retries idempotent: a redelivered batch overwrites itself at the same object name instead of producing another file. ## Destinations ### AWS S3 Mixpanel delivers each batch of audit log entries as a gzipped NDJSON object into an S3 bucket you own. Mixpanel assumes a cross-account IAM role in your AWS account to write the objects. The role must trust the Mixpanel export user and require the external ID shown while you configure the stream in Mixpanel. The external ID is unique to your Mixpanel organization and has this format: ```text theme={"system"} mixpanel-audit-log-streaming- ``` #### Set Up the Bucket and IAM Role **1. Start configuring the stream in Mixpanel** Go to **Organization Settings → Audit Log**, click **Configure stream**, and select **AWS S3**. Mixpanel displays the external ID for your organization. Copy it before you configure the IAM role. **2. Create or choose an S3 bucket** Create the bucket that will receive the audit logs, or choose an existing bucket. Mixpanel does not create or manage the bucket. **3. Create an S3 write policy** In AWS IAM, create a policy that allows the role to write objects to the target bucket. Replace `` with the name of your bucket: ```json theme={"system"} { "Version": "2012-10-17", "Statement": [ { "Sid": "MixpanelAuditLogStreamingS3Access", "Effect": "Allow", "Action": "s3:PutObject", "Resource": "arn:aws:s3:::/*" } ] } ``` If the bucket uses default SSE-KMS encryption with a customer-managed key, add this statement to the role policy and replace `` with the key's ARN: ```json theme={"system"} { "Sid": "MixpanelAuditLogStreamingKmsAccess", "Effect": "Allow", "Action": "kms:GenerateDataKey", "Resource": "" } ``` The KMS key policy must also allow the role to use `kms:GenerateDataKey`. **4. Create an IAM role with a custom trust policy** In the AWS console, go to **IAM → Roles → Create role** and select **Custom trust policy**. Use the policy below, replacing `` with the value you copied from the stream configuration: ```json theme={"system"} { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::485438090326:user/mixpanel-export" }, "Action": "sts:AssumeRole", "Condition": { "StringEquals": { "sts:ExternalId": "" } } } ] } ``` Requiring the external ID prevents [the confused deputy problem](https://docs.aws.amazon.com/IAM/latest/UserGuide/confused-deputy.html). Continue to the permissions step, attach the S3 write policy you created above, and create the role. Then copy its ARN. **5. Finish configuring the stream in Mixpanel** Return to Mixpanel and enter: * **Bucket**: The name of the destination S3 bucket. * **Region**: The AWS region containing the bucket. * **Role ARN**: The ARN of the IAM role Mixpanel should assume. * **Path prefix**: An optional path under which Mixpanel should write the audit log objects. Save the configuration. Mixpanel verifies that it can assume the role and write to the bucket before creating the stream. **6. Confirm delivery** Within a few minutes of any audited action, files begin appearing in the bucket under your configured prefix. > [!NOTE] > > Copy the external ID from Mixpanel instead of entering it manually. It is tied to your organization and differs from the project token used by an AWS S3 Data Pipeline. #### How Mixpanel Verifies Access When you create, update, or resume a stream, Mixpanel writes a zero-byte probe object named `_mixpanel_healthcheck` under your configured prefix. The probe is rewritten in place on every check, so only one ever exists and it is safe to leave in your bucket. ### Google Cloud Storage Mixpanel delivers each batch of audit log entries as a gzipped NDJSON object into a Cloud Storage bucket you own, writing as a **Mixpanel-owned service account** that you grant access to on your bucket. There is no key exchange in either direction: you never give Mixpanel a service account key, and Mixpanel never stores credentials for your Google Cloud project. The same service account is used regardless of your organization's data residency (US, EU, or India). #### Required Permissions Grant this service account: ```text theme={"system"} audit-log-streaming@mixpanel-prod-1.iam.gserviceaccount.com ``` the **Storage Object User** (`roles/storage.objectUser`) role **on the destination bucket**. Storage Object User is required because delivery overwrites objects: retried batches rewrite the same object name, and the access-verification probe is rewritten in place. Cloud Storage requires delete permission to overwrite an existing object, so object-creation permission alone is not sufficient. > [!NOTE] > > Mixpanel only writes to your bucket. It never reads, lists, or deletes your existing data, even though Storage Object User technically permits it. > > **Storage Object Creator is not sufficient** — it cannot overwrite an existing object. #### Set Up the Bucket **1. Start configuring the stream in Mixpanel** Go to **Organization Settings → Audit Log**, click **Configure stream**, and select **Google Cloud Storage**. **2. Create a bucket** Any location, storage class, and lifecycle policy works. Mixpanel does not create or manage the bucket. **3. Grant Mixpanel access on the bucket** ```bash theme={"system"} gcloud storage buckets add-iam-policy-binding gs://MY_BUCKET \ --member="serviceAccount:audit-log-streaming@mixpanel-prod-1.iam.gserviceaccount.com" \ --role="roles/storage.objectUser" ``` Or in the Cloud Console: **Cloud Storage → your bucket → Permissions → Grant access**, with the service account above as the principal and **Storage Object User** as the role. **4. Configure the stream in Mixpanel** Enter the bucket name and an optional path prefix, then save. **5. Confirm delivery** Within a few minutes of any audited action, files begin appearing under your prefix. #### How Mixpanel Verifies Access When you create, update, or resume a stream, Mixpanel writes a zero-byte probe object named `_mixpanel_healthcheck` under your configured prefix. The probe is rewritten in place on every check, so only one ever exists and it is safe to leave in your bucket. #### Bucket Configuration Notes * **Bucket name** must be a valid Cloud Storage bucket name (3–63 characters; lowercase letters, numbers, dots, hyphens, underscores). * **Path prefix** is optional. Leading and trailing slashes are normalized, so `audit-logs`, `/audit-logs`, and `audit-logs/` are equivalent. * **Retention locks and object holds** that prevent overwriting an existing object will fail the access check and break retried deliveries. Use a bucket or prefix without an overwrite-blocking retention lock. * **Customer-managed encryption keys** work normally. Mixpanel writes through the bucket's default encryption settings. ## Managing a Stream | Action | Effect | | - | - | | **Pause** | Delivery stops. Mixpanel keeps collecting your audit logs and holds them for delivery when you resume, subject to the retention rules below. | | **Resume** | Mixpanel re-verifies the destination, then restarts delivery and ships whatever held logs are still within the retention window. | | **Update** | Replaces the destination configuration. The new destination is verified before it is saved, so a bad edit cannot silently break a live stream. | | **Delete** | Delivery stops immediately and permanently. Held logs are discarded and cannot be recovered. Configure a new stream to start over. | ## Pausing and Log Retention Pausing is safe for short periods, but it is **not** an indefinite hold — Mixpanel does not archive an unbounded backlog on your behalf. 1. **While paused, Mixpanel keeps collecting your audit logs** and holds the undelivered batches, ready to ship when you resume. 2. **On resume, Mixpanel delivers up to the last 7 days of held logs.** Held logs older than that have aged out and will not be delivered. A stream paused for 3 days and resumed loses nothing; a stream paused for 12 days and resumed receives roughly the most recent 7 days, and the earlier part of the pause is a permanent gap in your destination. 3. **A stream paused for more than 3 weeks stops collecting altogether.** At that point Mixpanel treats the stream as abandoned: it stops holding new logs, and any still-held logs are discarded. When you resume such a stream, **delivery restarts from the point of resume** — only actions that occur after you resume are streamed. Nothing from during the pause is delivered, regardless of the 7-day window. 4. **Deleting a stream discards held logs immediately.** There is no grace period and no resume path; delete is not a long pause. This applies identically whether the pause was manual or automatic (see [Delivery Failures and Automatic Pausing](#delivery-failures-and-automatic-pausing)) — the retention clock starts at the moment the stream was paused, either way. ### Filling a Gap Any entry that was never delivered — whether from before the stream existed, or from a pause that exceeded the retention window above — remains available in Mixpanel until the end of the [audit log retention period](/docs/access-security/audit-log#limitations). To backfill it in the same format as streamed entries, export the audit log as NDJSON from **Organization Settings → Audit Log** for the affected time range. Streaming and the audit log read the same underlying records, so a backfilled export reconciles cleanly with streamed files. ## Delivery Failures and Automatic Pausing Mixpanel retries failed deliveries automatically, so a brief problem at your destination resolves itself with no action from you. If Mixpanel fails to deliver to your destination too many times in a row, **the stream is paused automatically.** Your organization's Owners and Admins receive a notification email, and the stream shows as **Paused** in Mixpanel along with when it was paused and why. Fix the underlying problem, then click **Resume** — Mixpanel re-verifies the destination before restarting delivery. An automatic pause that goes unnoticed will quietly become a gap in your destination once it crosses the retention window above, so act on the notification email promptly. ## Troubleshooting | Symptom | Likely cause and fix | | - | - | | Events stopped arriving | Check the stream's status in **Organization Settings → Audit Log → Configure stream**. If it shows **Paused**, the pause reason explains why, and your Owners and Admins were emailed. Fix the cause and resume. | | Resumed the stream, but earlier entries never arrived | The pause exceeded a retention window. See [Pausing and Log Retention](#pausing-and-log-retention), then [fill the gap](#filling-a-gap) with an export. | | Mixpanel cannot write to the destination | The destination's write permission is missing, too narrow, or applied to the wrong resource. Review the required permissions for your destination above. If the S3 bucket uses a customer-managed KMS key, also check the role and KMS key policies. | | Destination cannot be found | The bucket name or region is wrong, or the bucket has been deleted. Confirm the destination details and update the stream. | | Mixpanel cannot authenticate with the destination | The destination's access configuration has been removed or changed. For S3, confirm the role ARN, trust policy, and external ID. For Cloud Storage, confirm the service account's bucket-level IAM binding. | | Destination is temporarily unavailable | A transient failure occurred while reaching the destination. Retry the save shortly. | ## FAQ > [accordion] Is there an API for exporting audit logs? > > Yes. You can use the [Query Organization Audit Logs API](https://docs.mixpanel.com/api-reference/organizations/query-organization-audit-logs) to retrieve your audit logs and route them to a destination you manage. > [accordion] What if my destination isn't supported? > > If you don't see your destination listed, [reach out to us](https://mixpanel.com/get-support) and tell us about your use case. > [accordion] Can I stream to more than one destination? > > No. An organization has one audit log stream at a time. To change where entries go, edit the existing stream's configuration rather than creating a second one. > [accordion] Can the same entry arrive twice? > > Delivery is at-least-once. A retried batch is redelivered in place rather than duplicated, but a consumer should still be idempotent on each entry's `id`. > [accordion] Are entries delivered in order? > > No. Entries are not ordered within a batch or across batches. Sort by each entry's `created` timestamp after ingestion. > [accordion] Can I recover the logs held by a stream I deleted? > > No. Deleting a stream discards held, undelivered logs immediately and irreversibly. Export the audit log to recover the affected range. > [accordion] Does streaming change how long Mixpanel keeps my audit log? > > No. Streaming delivers a copy to your destination and does not affect the audit log's retention inside Mixpanel. # Login Methods Source: https://docs.mixpanel.com/docs/access-security/login-methods Users must authenticate themselves through a login process to access Mixpanel ## Overview Users must authenticate themselves through a login process to access Mixpanel. Mixpanel supports multiple login methods. ## Magic Link Login If you do not see the magic link email in your inbox/junk/spam mailbox, you may need to create an account or your account may be associated with a different email address. By default, Mixpanel users authenticate in a password-less manner using Magic Link. After entering your email and clicking continue in the log in screen, we send an email to your inbox that contains a Magic Link, which will log you in directly. ![image](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/magic-link.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=bff42effa603ea2591403acc0d4dc752) ## Password Login > [!WARNING] > > Once you set a password, the magic link login option will be permanently disabled for your account. You can set a password for your user account if you prefer to log in by providing an email and password instead of the Magic Link. To set a password for your account: 1. Click the settings button (gear icon) in the bottom left corner of the UI 2. Select “Personal Settings” 3. Navigate to “Your Profile” 4. Click the pencil icon to set your password. ![image](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/personal-profile-setting.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=1d93f763f0d8a22173f92d17e5edab2d) ## Passkey Login Passkeys offer a modern, phishing-resistant way to sign in to Mixpanel without a password. Instead of typing a password or a one-time code, you authenticate with something you already use to unlock your device - Touch ID, Face ID, Windows Hello, or a hardware security key. Passkeys are built on the WebAuthn/FIDO2 standard. The credential never leaves your device, and it is cryptographically bound to Mixpanel's domain, so it cannot be phished, reused on a fake login page, or replayed by an attacker. To set a passkey for your account: 1. Click the settings button (gear icon) in the bottom left corner of the UI 2. Select “Personal Settings” 3. Navigate to “Your Profile” 4. Under the Passkeys section, click the "Register passkey" button 5. Follow your device’s prompt to confirm with your fingerprint, face, PIN, or security key ![image](https://mintcdn.com/mixpanel-edb78807/f8N2YXv85860a4P3/images/passkey_settings.jpg?fit=max\&auto=format\&n=f8N2YXv85860a4P3\&q=85\&s=42b432e7b999ba9c1547f37c63c4b42e) Once created, the passkey is immediately available for login. You can optionally enable skip password so Mixpanel uses your passkey as the primary login method, giving you a fully passwordless sign-in experience (this does not bypass org-mandated SSO requirements.) ### Logging in with a passkey 1. On the [login page](https://mixpanel.com/login), click "Login with passkey", or enter your email and continue 2. When prompted, choose to sign in with your passkey 3. Confirm with your device (fingerprint, face, PIN, or security key). You're in! ![image](https://mintcdn.com/mixpanel-edb78807/f8N2YXv85860a4P3/images/passkey_login.jpg?fit=max\&auto=format\&n=f8N2YXv85860a4P3\&q=85\&s=4f3d8763dc8d61fb7e4664cccb494246) ### Recovery codes When you enable passkeys, Mixpanel generates a set of single-use recovery codes. These let you sign in if you ever lose access to the device that holds your passkey. > [!WARNING] > > Recovery codes are shown only once. Save them somewhere safe (a password manager is ideal) - Mixpanel cannot show them to you again after this point. Each recovery code can be used only once. You can regenerate your recovery codes at any time from the Passkeys section of your personal settings; regenerating invalidates the previous set. To sign in with a recovery code, choose the "Use recovery code" option on the login screen and enter one of your saved codes. ## Organization-wide Access Settings Additional access security requirements may be configured across an Organization that impacts how a user logs in to Mixpanel. Organization Owners and Admins can require users who are inside of their organization to use 2FA, and force any users with an email from a claimed domain to use SSO for login. **Two-Factor Authentication**: Whenever users sign in with a username and password, they also need to enter a security code generated on their mobile device. Users do not need a security code when signing in through the organization's identity provider (SSO). **Single Sign-On**: Enable users of your organization to log in with single sign-on. Can also require users to login using SSO and assign roles/permissions via IdP. Read more about Two-Factor Authentication [here](/docs/access-security/two-factor-authentication) and Single Sign-On [here](/docs/access-security/single-sign-on). ## FAQ **1. Why am I not receiving the magic login link after I click in?** Check the junk/spam inbox for the email or click the resend the email from the login page. If you are not seeing the email even after checking spam and resending the email, it is possible that your account may be associated with a different email. In this case, try signing up for a new account using your provided email. If your account already exists, this is another way to send the magic login link to your email. If your account does not exist, it will create one for you. **2. Why don't I see my team's data and reports?** If you signed up via an invitation from a teammate, it is possible that the invitation was sent with the incorrect access permission. Reach out to your teammate and have them follow [these instructions](/docs/orgs-and-projects/roles-and-permissions#invite-users) to grant you access. **3. I forgot my password. How can I login?** You can navigate to the [login page](https://mixpanel.com/login/) and click the button at the bottom to set up a new password. # Single Sign-On Source: https://docs.mixpanel.com/docs/access-security/single-sign-on Use SSO to access Mixpanel > [!NOTE] > > Users on a Growth plan or above can enable Single Sign-On for authentication. See our [pricing page](https://mixpanel.com/pricing/) for more details. ## Overview Single sign-on (SSO) allows users to log into multiple platforms, services, or systems using a single ID and password combination. Mixpanel supports SSO and works with any SAML 2.0-compliant SSO provider. ## Access SSO Settings You will need to be in the **Organization Owner** or **Admin role** to access the SSO settings. To access SSO settings in Mixpanel, navigate to your **Organization Settings** (gear icon on the bottom-left side of the screen -> 'Settings' menu), and then click on the **Access Security** tab. ## Claim a Domain Claiming a domain will add security to an SSO implementation by allowing only members with a claimed domain in their email address to access Mixpanel. SSO only works on domains that are claimed. To claim a domain, add a TXT record to your domain's DNS records with a verification key provided by Mixpanel. The verification key is available after you submit to claim a domain in your Organization Settings. > [!NOTE] > > A single domain can be claimed by only one Mixpanel organization. If you have multiple Mixpanel organizations with separate billing accounts but need to share SSO settings and email domains for login, please see the [documentation for the Shared SSO beta](/docs/access-security/single-sign-on/shared-sso) to see how you can share those settings with an "Admin" Organization. ### Generate Verification Key by Claiming Domain To claim a domain, click **Access Security** in your Organization Settings. ![SSO Access Security Image](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sso_access_security.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=689396c7bdd1eadd875ea211f2419a2b) Click **Domain Claiming** in the Access Security menu. ![SSO Domain Claiming Image](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sso_domain_claiming.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=c0349813b1dedfde43f7a50674b67489) Click **Add a Domain** found in the Domain Claiming sub-menu. You will be prompted to enter your Mixpanel password. ![SSO Add Domain Image](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sso_add_domain.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=63081e2f6097cb47fd71e7c1d9972f50) Enter the domain you wish to claim in the pop-up modal. Click **Submit Claim**. ![SSO Submit Claim Image](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sso_submit_claim.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=fa7b28621a2b801b72d41d3d8bfc373f) ### Check Verification Status It may take up to 24 hours for Mixpanel to verify ownership after you claim a domain. The claimed domain is listed in the Domain Claiming menu. It will appear as pending until it is successfully verified. ![SSO Check Verification Status Image](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sso_check_verification_status.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=7ba407f7aeb2110878fd3ec3df0880b2) It will indicate as verified after Mixpanel verifies the domain. ### Add Verification Token to your DNS For Mixpanel to verify that you own the domain claimed, Mixpanel must detect the verification token in a TXT record in your domain's DNS. The verification token is available in the Domain Claiming menu after you claim a domain. Use the verification token in the TXT record that you add to your domain's DNS record. Add `mixpanel-domain-verify=` as the TXT record. **Note that you will need to leave the verification token in your DNS records permanently**, or the domain will unverify after a week. Only remove the verification token TXT record from domains with which you no longer wish to use SSO. ## Set Up Your IDP You must configure your Identity Provider (IDP) to connect to Mixpanel to use SSO if you are not using custom-built SSO. This requires that you directly configure your SSO settings. See the supported IDPs below: ### Okta Set up SSO with Okta using the "Mixpanel" app within the OIN or by configuring a custom app in Okta. [Follow these instructions](/docs/access-security/single-sign-on/okta) to configure the "Mixpanel" app or a custom app. ### OneLogin OneLogin only requires that you get the Postback URL. The "Mixpanel" application is in the OneLogin application store and supports auto-provisioning. You will just need to copy a SCIM token from Mixpanel into the provisioning token box in the OneLogin app. [Learn how to generate a token](/docs/access-security/single-sign-on#scim). ### G-Suite [Google has an official integration with Mixpanel with instructions](https://support.google.com/a/answer/7553416). Unfortunately, we do not have an auto-provisioning integration with G-Suite. You will need to rely on [Just In Time Provisioning](/docs/access-security/single-sign-on#just-in-time-provisioning). ### Azure Here are [instructions to set up SSO with Azure](/docs/access-security/single-sign-on/azure). Azure also has an [auto-provisioning integration with Mixpanel](https://learn.microsoft.com/en-us/azure/active-directory/saas-apps/mixpanel-provisioning-tutorial). ### Other IDPs It is possible to set up Mixpanel SSO with IDPs not listed above. [Contact support](https://mixpanel.com/contact-us/support/) for further assistance in such cases. ## Postback URL You likely will need to provide your IDP with a postback URL. The postback URL is accessible from the **Access Security** menu. To obtain your postback URL, navigate to Access Security in your Organization Settings and toggle on the Single Sign-On button. ![SSO Postback URL Image](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sso_postback_url.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=58993982c0d77470eb8508a5ec3e3eea) ## SAML Certificate This needs to be a **.cert** or **.pem** file for a valid X509 certificate. * Note that .xml files are not valid. If you have downloaded an .xml file from your IDP, it will not work. * It's important to note that this certificate will expire after a certain number of years. At the moment, we do not send any notifications when it is about to expire. Please make sure you have a system set up to cycle your certificate every so often if you wish to avoid disruption. ## Require Users to Log In Using SSO Optionally toggle on **Require Single Sign-On** to require your users to log in using SSO and to prevent your users from logging in using a username and password. * Please note that Organization Owners and Admins will still be able to log in using username and password in the case that SSO is not set up correctly. * Note that external users (with an email of an unclaimed domain) who were invited to projects will *not* be able to log in if Require SSO is toggled on. ## Require Single Sign-On for administrators Optionally toggle on **Require Single Sign-On for administrators**; by default, even if the toggle to require SSO is enabled, organization admins and owners can still log in via email+password or magic link. In case you prefer to restrict everyone to use SSO, enable this toggle, and the exception to admins/owners will not apply. Do note that if your SSO is misconfigured, no one with administrator permissions can sign in to fix it, so it's important to verify your authentication is working before enabling. ## IDP Managed Access This feature determines whether you are using your IDP to manage which users should be allowed in the organization or whether you are using the IDP purely as an authentication method and want to leave user management within Mixpanel. If you enable this feature: * All users of your verified claimed domain(s) who log into Mixpanel will be prompted to use SSO, whether they are in your organization or not. * If they successfully log in through your SSO setup, they will be automatically added to the organization with no permissions except those granted to all users ([JIT provisioning](/docs/access-security/single-sign-on#just-in-time-provisioning)). * It will also redirect anyone signing up for a Mixpanel account with your claimed domain or anyone requesting access to a project in your organization to log in via SSO first. This helps ensure all users in your organization who try to use Mixpanel get routed to your IDP, where you can then assign them access to the Mixpanel app. This also prevents needing to manually invite users to Mixpanel from within Mixpanel's Organization Settings. We recommend enabling IDP Managed Access for most customers. Enable the feature in the Access Security tab of your Organization Settings. Toggle on **IDP Managed Access** at the bottom. The toggle is purple when enabled. ![SSO IDP Managed Access Image](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sso_idp_managed_access.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=4ec5938128ffbc8adb2117d1970c8015) ## Just in Time Provisioning Just-in-Time (JIT) provisioning using SAML will let users sign in automatically upon the initial login event. This removes the need for the organization admin to invite individual users to an Organization. This is part of the **IDP Managed Access** feature. To use JIT provisioning, go to Access Security and toggle on the **IDP Managed Access** toggle. The toggle will be purple if the feature is enabled. Users added using the IDP will have first names and last names populated by the `firstName` and `lastName` profile attributes provided via SAML at login time. These users will also have no roles to start off except those given to **all users** in your organization. To give these provisioned users default access to projects, invite **All Users in the Organization** to the project. ![image](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sso_jit_all_users_invite.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=f8e3a9f42629d70409197c1c533efb4d) ## SCIM The SCIM menu in the Access Security tab of the Organization Settings lets you generate a token used to hit the SCIM endpoints. **Remember to save this token, as you will see it only once.** Note that only accounts with an **Enterprise plan** have access to SCIM at the moment. Mixpanel uses a [SCIM spec subset](https://datatracker.ietf.org/doc/html/rfc7644). The base endpoint is `https://mixpanel.com/api/app/scim/v2`, which you can hit using the SCIM token as an Authentication Bearer token. For instance, a GET call on `https://mixpanel.com/api/app/scim/v2/Users` using the SCIM token will get you a list of all users in your organization. > [!NOTE] > > The SCIM endpoint affects only users whose email has a domain in the list of your verified claimed domains. ![SSO SCIM Image](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sso_scim.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=0eb44405120a3ab9ef43610abdb5703b) While you can hit the SCIM endpoints directly, the most common use case would be to use it for auto-provisioning within an IDP that has an integration with Mixpanel provisioning. This will let your IDP and Mixpanel stay in sync - when you assign users to Mixpanel in your IDP, they will be provisioned in Mixpanel, and optionally, you can deprovision users within Mixpanel who lose access in your IDP. IDPs that currently have an auto-provisioning integration with Mixpanel are Okta, OneLogin, and Azure. If you wish to revoke your SCIM Provisioning token, you can generate a new one, which will kill the previous token. We recommend enabling **IDP Managed Access** when using SCIM; otherwise, your IDP and Mixpanel can get out of sync. ## Remove SSO Configuration If you need to remove all of your SSO configuration, you can do so with the "Remove SSO Configuration" button. This option is available if you had previously configured SSO and then disabled SSO. This will clear the settings and SAML certificate, as well as entries that facilitate the SSO process. ![SSO Remove Configuration](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sso_remove_config.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=e9327101cdfb02630307af8da9250075) > [!WARNING] > > Removing SSO Configuration is permanent and cannot be undone. # Setup Azure SSO Source: https://docs.mixpanel.com/docs/access-security/single-sign-on/azure You can set up Microsoft Azure Single Sign-On to use with your Mixpanel account ## Overview You can set up Microsoft Azure Single Sign-On to use with your Mixpanel account. Before using this document, read the [general Mixpanel SSO set-up instructions](/docs/access-security/single-sign-on) as well as [Azure's documentation on setting up a new application](https://docs.microsoft.com/en-us/azure/active-directory/saas-apps/mixpanel-provisioning-tutorial). ### Add Mixpanel as a New Application For more information, read [this Microsoft Azure article](https://docs.microsoft.com/en-us/azure/active-directory/saas-apps/mixpanel-provisioning-tutorial) about configuring Mixpanel for automatic user provisioning. 1. Navigate to **Enterprise Applications** on the Microsoft Azure home page under **Default Directory**. 2. Click **New Application**. 3. Search and select **Mixpanel** to add as an application. ### Edit SAML Config in Microsoft Azure 1. Click **Single sign-on** under **Manage**. 2. Enter the following information in the SAML Configuration: * **Entity ID:** [https://mixpanel.com/security/sso/v2/authorize/](https://mixpanel.com/security/sso/v2/authorize/) * **Reply URL:** [https://sso.mixpanel.com/sso/saml2](https://sso.mixpanel.com/sso/saml2) * **Sign on URL:** Postback URL from Mixpanel ([https://mixpanel.com/security/sso/v2/authorize/?org\_id=YOUR\_ORG\_ID](https://mixpanel.com/security/sso/v2/authorize/?org_id=YOUR_ORG_ID)) ![Azure Config 1 Image](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/azure_config1.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=54fe48b39e79c4cdc3adb26380da71ae) 3. Click **Edit** under **User Attributes & Claims** to add the required `email` claim (`firstName` and `lastName` are used for provisioning and optional). | Claim name | Value | | -: | -: | | email | user.mail | | firstName | user.givenname | | lastName | user.surname | ![Azure Config 2 Image](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/azure_config2.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=9464f60bdacfe66f83823936d59aeff3) 4. Make sure to clear out the **Namespace** field as well, or else it won't work! ![Azure Config 3 Image](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/azure_config3.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=e6afcd4b4a23111f9eea9324b249d0dd) 5. Download the SAML certificate under **SAML Signing Certificate** by clicking **Download** next to the **Certificate (Base64)** field. If you downloaded an .xml file, then you have clicked the wrong button. Make sure it is a **.cer** or **.pem** file. This will be uploaded to Mixpanel in the next step. ### Copy Certificate into Mixpanel 1. Navigate to the **Access Security** section in your Mixpanel **Organization Settings**. 2. Upload the certificate in the **SAML Certificate** field. 3. Input the **Azure AD Identifier** into the **Issuer URL** field. 4. Input the **Azure Login URL** in the **Identity Provider Sign-in URL** field. 5. Assign your team members this new application. ### SCIM Provisioning Azure has an auto-provisioning integration with Mixpanel that allows you automatically add users to Mixpanel upon giving them access in Azure. The integration also allows you to remove access within Mixpanel when you remove access in Azure. You can find more information [here](https://learn.microsoft.com/en-us/azure/active-directory/saas-apps/mixpanel-provisioning-tutorial). * New users provisioned from Azure will be automatically added as an Organization Member. * You will need to provision other [Organization Roles](/docs/orgs-and-projects/roles-and-permissions#organization-roles) to users within the Mixpanel product. * You will not be able to set the user's Organization Role and Project access within Azure. You can also provision Groups of users in Azure to Mixpanel [Teams](/docs/orgs-and-projects/roles-and-permissions#teams) with SCIM. * Use the same name for the Group in Azure as the Team in Mixpanel. * In the Mixpanel Team, set the Organization Role and access to projects for the group of users. * You will not be able to provision Organization Role and Project access for the Group within Azure. Note that it is advised you turn on **IDP Managed Access** if you are using SCIM Provisioning. Otherwise, Okta and Mixpanel might fall out of sync. Tenant URL: `https://mixpanel.com/api/app/scim/v2` # Setup Google Workspace SSO Source: https://docs.mixpanel.com/docs/access-security/single-sign-on/google Configure SAML single sign-on for Mixpanel through Google Workspace, using the Mixpanel app from the app store or a custom app ## Overview Before using this document, read the [general Mixpanel SSO set-up instructions](/docs/access-security/single-sign-on). You have two setup options to use Single Sign-On (SSO) for Mixpanel through Google Workspace IDP: A. For most use cases, you can use the **Mixpanel app** within Google Workspace's app store. B. If you have a custom setup, follow Google Workspace's documentation on setting up a new application to create a custom Mixpanel app. ### Configure SSO in Mixpanel Follow the [general SSO set-up instructions](/docs/access-security/single-sign-on). Make sure to collect your postback URL and successfully claim your domain. ### Configure the Mixpanel App in Google Workspace A. Use the [Mixpanel app within Google Workspace's app store](https://admin.google.com/ac/apps/unified), or B. Follow [Google Workspace's documentation on setting up a new application](https://support.google.com/a/answer/6087519?hl=en) to create a custom Mixpanel app. #### Configure SAML A. If you use the Mixpanel app from the store, the following SAML configuration is already built into the app. ![use\_existing\_app](https://github.com/user-attachments/assets/4d42cf48-9b1e-4be2-8b56-ec76edaad118) B. If you create a custom app, you must fill out the form found in the **Configure SAML** menu in Google Workspace. Make sure that the following fields are adjusted to exactly match the corresponding values: * **ACS URL:** [https://sso.mixpanel.com/sso/saml2](https://sso.mixpanel.com/sso/saml2) * **Entity ID:** [https://mixpanel.com/security/sso/v2/authorize/](https://mixpanel.com/security/sso/v2/authorize/) * **Start URL:** [https://mixpanel.com/security/sso/v2/authorize/?org\_id=YOUR\_ORG\_ID](https://mixpanel.com/security/sso/v2/authorize/?org_id=YOUR_ORG_ID) The following screenshot highlights what you should place in the fields: ![custom\_saml\_app](https://github.com/user-attachments/assets/be8660ff-084f-409e-9dec-49e17b7563e6) Additionally, it is required that you use `email` as an attribute statement; other attributes we recommend include `firstName` and `lastName`. ![attr\_mapping](https://github.com/user-attachments/assets/b10ea8bf-ff1a-4270-8b97-0d078ae46fde) ### Obtain Information From Google Workspace To configure Mixpanel use with Google Workspace, you must first obtain your **Public Certificate**, **SSO URL**, and **Entity ID**. To access this information, access the Mixpanel app in Google Workspace (or create a custom app) first select **DOWNLOAD METADATA**. Then, grab the **SSO URL** and **Entity ID** as well as the certificate to upload in Mixpanel (we recommend adding the expiration date to the file name to make it easier to manage in Mixpanel). ![google\_metadata](https://github.com/user-attachments/assets/d1ea2115-eaf7-4cde-a01d-b9bb248314e3) ### Enable SSO From Mixpanel, navigate to your **Organization Settings** and then the **Access Security** tab. From the **2FA & SSO** menu, upload your **Public Certificate** and add your **SSO URL** and **Entity ID** to the **Identity Provider Sign-In URL** and **Issuer URL**, respectively. ![sso\_settings\_in\_mp](https://github.com/user-attachments/assets/e97be4c6-dc1f-44d1-adb4-530679bca9ba) Optionally, toggle **Require Single Sign-On** to prevent your users from logging in with a username and password. Organization Owners and Admins will still be able to log in using username and password in case SSO is not set up correctly. ### Troubleshooting 1. If a Mixpanel account has already been created with the Google Workspace user's email (their Google Workspace Username) and that account is **not a member** of your Mixpanel organization, provisioning setup for that Google Workspace user will fail. To resolve this, manually invite the existing user to your organization. 2. Provisioning will also fail if the domain of the user's email has not been claimed by your organization. To resolve this, manually invite the existing user to your organization. 3. If seeing the "Error 403: app\_not\_configured" message when trying to log in, please follow [these instructions](https://knowledge.workspace.google.com/admin/apps/saml-app-error-messages#403_app_not_configured) to grant the necessary permissions to the user's account. # Setup JumpCloud SSO Source: https://docs.mixpanel.com/docs/access-security/single-sign-on/jumpcloud Configure SAML single sign-on for Mixpanel through JumpCloud by creating a custom application with Mixpanel's SAML values ## Overview Before using this document, read the general Mixpanel SSO set-up instructions. ### Configure SSO in Mixpanel Follow the general SSO set-up instructions. Make sure to collect your postback URL and successfully claim your domain. ### Configure the Mixpanel App in JumpCloud Go to JumpCloud and create a custom application with the following values: SP Entity ID: [https://mixpanel.com/security/sso/v2/authorize/](https://mixpanel.com/security/sso/v2/authorize/) ACS URL: [https://sso.mixpanel.com/sso/saml2](https://sso.mixpanel.com/sso/saml2) Login URL: \ IDP Entity ID: The value itself doesn't matter much but it must be unique across all Mixpanel customers and must also be a URL, so something like `https://sso.jumpcloud.com/saml2/-mixpanel` would work swapping in your company name. You will paste this into Mixpanel's Issuer URL field. IDP URL: You will paste this into Mixpanel's Identity Provider Sign-in URL field You will also want to download the IDP certificate to upload into Mixpanel Make sure to pass through the attributes: email, firstName and lastName. Only email is required but the other two are useful if you want to provision new users with SSO via IDP Managed Access. Here is a screenshot of an example setup: ![JumpCloud Info Image](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/jumpcloud1.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=a5744706860550e67a47bb11f978b48d) Optionally toggle “Require Users to Log In using SSO” to prevent your users from using a username and password to log in. Click **Enable**. Organization owners and admins will still be able to log in using username and password if SSO is not set up correctly. ### SCIM Use SCIM with JumpCloud at your own risk. There have been problems reported with the JumpCloud setup process hard deleting users unexpectedly. # Setup Okta SSO Source: https://docs.mixpanel.com/docs/access-security/single-sign-on/okta Configure SAML single sign-on for Mixpanel through Okta, using the Mixpanel app from the OIN or a custom Okta application ## Overview Before using this document, read the [general Mixpanel SSO set-up instructions](/docs/access-security/single-sign-on). You have two setup options in order to use Single Sign-On (SSO) for Mixpanel through Okta: A. For most use cases, you can use the **Mixpanel app** within the OIN (Okta's app store). B. If you have a more custom setup, follow Okta's documentation on setting up a new application to create a custom Mixpanel app. ### Configure SSO in Mixpanel Before configuring Okta, [claim your domain](/docs/access-security/single-sign-on#claim-a-domain) in Mixpanel and get your [Postback URL](/docs/access-security/single-sign-on#postback-url) for use when configuring SAML in Okta. ### Configure the Mixpanel App in Okta A. Use the [Mixpanel app within the OIN (Okta's app store)](https://www.okta.com/integrations/mixpanel/), or B. Follow [Okta's documentation on setting up a new application](https://help.okta.com/en-us/Content/Topics/Apps/Apps_Apps_Page.htm) to create a custom Mixpanel app. #### Configure SAML A. If you use the Mixpanel app from the OIN, the following SAML configuration is already built into the app. B. If you create a custom app, you must fill the form found in the **Configure SAML** menu in Okta. Make sure that the following fields are adjusted to exactly match the corresponding values: * **Single sign on URL:** Postback URL from Mixpanel ([https://mixpanel.com/security/sso/v2/authorize/?org\_id=YOUR\_ORG\_ID](https://mixpanel.com/security/sso/v2/authorize/?org_id=YOUR_ORG_ID)) * **Requestable SSO URLs:** [https://sso.mixpanel.com/sso/saml2](https://sso.mixpanel.com/sso/saml2) * **Recipient URL:** [https://sso.mixpanel.com/sso/saml2](https://sso.mixpanel.com/sso/saml2) * **Destination URL:** [https://sso.mixpanel.com/sso/saml2](https://sso.mixpanel.com/sso/saml2) * **Audience URI:** [https://mixpanel.com/security/sso/v2/authorize/](https://mixpanel.com/security/sso/v2/authorize/) The following screenshot highlights what you should place in the fields: ![Okta Config SAML 1 Image](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/okta_config_1.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=cfc2b318bb9eb0642b2b146a5cdc8d30) To add the Requestable SSO URLs field, navigate to Advanced Settings: ![Okta Config SAML 2 Image](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/okta_config_2.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=b66f769985260cb87b10e8c6cc566a8f) Additionally, it is required that you use `email` as an attribute statement, other attributes we recommend include `firstName` and `lastName`. | Name | Value | | -: | -: | | firstName | user.firstName | | lastName | user.lastName | | email | user.email | ![Okta Config SAML 2 Image](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/okta_config_3.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=be9095dfcfd8d1c318a1dfde73df4655) ### Obtain Information From Okta In order to configure Mixpanel use with Okta, you must first obtain your **Public Certificate**, **Authentication URL**, and **Issuer URL**. To access this information, first select the select the Mixpanel app under the **Applications** tab in Okta. Click on the **Sign On** tab. In the right **About** column under the **SAML Setup** section, click **View SAML setup instructions**. ![Okta Info 1 Image](https://mintcdn.com/mixpanel-edb78807/t0w2ecW2bO4mKfCm/images/Admin/Okta/okta_saml_setup_instructions_fixed.png?fit=max\&auto=format\&n=t0w2ecW2bO4mKfCm\&q=85\&s=6ce4f312e0676a4194545db26a412ff8) #### Public Certificate The X.509 certificate allows users signing in through a third-party identity provider to be authenticated by Mixpanel without supplying a username and password. Each identity provider account has a unique X.509 certificate that will need to be uploaded to Mixpanel during the SSO setup process. Click **Download Certificate** in the second entry to download your certificate. ![Okta Info 2 Image](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/okta_info2.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=1324c6fdedeb4d1b610fdbbb5d12a091) You can also find the Public Certificate in the **Sign On** tab of the **Mixpanel** app. Scroll down to the **SAML Signing Certificates** section. Click **Actions** for the SHA-2 certificate and **Download certificate**. ![Okta Certificate Download Image](https://mintcdn.com/mixpanel-edb78807/zIwFvUafFSjAERSV/images/Admin/Okta/okta_download_certificate.png?fit=max\&auto=format\&n=zIwFvUafFSjAERSV\&q=85\&s=cb6c59b742d17c6393e0611615e8128d) If you Public Certificate is expired or compromised, click **Generate new certificate** to generate a new certificate to upload in Mixpanel. #### Authentication URL Your Authentication URL is in the third entry labeled **Redirect Login URL**. ![Okta Info 3 Image](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/okta_info3.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=10e64c0c510519d34f43c975461df4bd) #### Issuer URL You will find your Issuer URL in the third entry labeled **Identity Provider Issuer**. ![Okta Info 4 Image](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/okta_info4.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=96900a54125e717bfe371b9eaed01fd7) ### Enable SSO in Mixpanel After configuring Okta: 1. Collect the **Public Certificate**, **Authentication URL**, and **Issuer URL** as described above. 2. In Mixpanel, go to **Organization Settings** > **Access Security** > **Single Sign-On**. 3. Enter the **Public Certificate** in the **SAML Certificate** field, the **Authentication URL** in the **Identity Provider Sign-in URL** field, and the **Issuer URL** in the **Issuer URL** field. 4. Click **Update**. Optionally, enable **Require Single Sign-On** to prevent users from logging in with a username and password. Organization Owners and Admins can still log in with a username and password if SSO is not set up correctly. ### Configuring SCIM Provisioning SCIM provisioning uses [the Mixpanel app within the OIN (Okta's app store)](https://www.okta.com/integrations/mixpanel/). The following prerequisites must be met to set up SCIM provisioning: * You must have an active Enterprise plan subscription with Mixpanel. * You must have Okta SSO set up with Mixpanel. * The `Username` value in Okta must be an email address with a domain that you've claimed. * You need to have generated a SCIM OAuth token to use with the app. This token is located in **SCIM** menu of the **Access Security** tab in your Organization Settings. You will need to be an Organization Owner or Admin to access this. ![Okta SCIM 1 Image](https://mintcdn.com/mixpanel-edb78807/t0w2ecW2bO4mKfCm/images/Admin/Okta/sso_scim_token_updated_2024.png?fit=max\&auto=format\&n=t0w2ecW2bO4mKfCm\&q=85\&s=c59e112246e4c292201314881471e772) The following provisioning features are supported: * **Push New Users:** New users created through Okta and assigned to the application will be created in Mixpanel. * **Push Profile Updates:** Updates made to the assigned user's supported profile attributes (First Name, Last Name, Email) through Okta will be pushed to Mixpanel. * **Push User Deactivation:** Deactivating the user or removing the user from the application through Okta will deactivate the user in Mixpanel (or delete the account if specified). * **Reactivate Users:** Reassigning a previously unassigned user to the application will reactivate the user's account in Mixpanel. Please note the following when provisioning users from Okta to Mixpanel with SCIM: * New users provisioned from Okta will be automatically added as an Organization Member. * You will need to provision other [Organization Roles](/docs/orgs-and-projects/roles-and-permissions#organization-roles) to users within the Mixpanel product. * You will not be able to set the user's Organization Role and Project access within Okta. You can also provision Groups of users in Okta to Mixpanel [Teams](/docs/orgs-and-projects/roles-and-permissions#teams) with SCIM. * Use the same name for the Group in Okta as the Team in Mixpanel. * In the Mixpanel Team, set the Organization Role and access to projects for the group of users. * You will not be able to provision Organization Role and Project access for the Group within Okta. Note that it is advised you turn on **IDP Managed Access** if you are using SCIM Provisioning. Otherwise, Okta and Mixpanel might fall out of sync. #### Configuration Setup 1. Click the **Configure API Integration** button in Okta to begin. ![Okta SCIM 2 Image](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/okta_scim2.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=5587de3d07e4e73b8dc3cd6688aa52bb) 2. Check the **Enable API Integration** box, then enter your SCIM token. Select the supported features (Create / Update / Deactivate) you wish to enable: ![Okta SCIM 3 Image](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/okta_scim3.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=bd234fa0ee2497be843c76118f5f27fb) 3. The following profile attributes are required to be sent from Okta to Mixpanel: * Username * Given name * Family name * Primary email ![Okta SCIM 4 Image](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/okta_scim4.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=fc37ce174c4e7736af7eff22c862fdd1) 4. Select and assign the users you wish to provision: ![Okta SCIM 5 Image](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/okta_scim5.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=a31f4d8c22acd8ded8e6f971395c7f31) #### Troubleshooting 1. If a Mixpanel account has already been created with the Okta user's email (their Okta Username) and that account is **not a member** of your Mixpanel organization, provisioning setup for that Okta user will fail. To resolve this, manually invite the existing user to your organization. 2. Provisioning will also fail if the domain of the user's email has not been claimed by your organization. To resolve this, manually invite the existing user to your organization. ### Configuring Universal Logout Mixpanel supports Okta's [Universal Logout](https://help.okta.com/oie/en-us/content/topics/itp/universal-logout.htm), which lets an Okta Admin trigger a logout from Okta that propagates to Mixpanel. This functionality is available after enabling SSO. #### OIN App If you use the [Mixpanel app within the OIN (Okta's app store)](https://www.okta.com/integrations/mixpanel/), enable it by updating the Mixpanel application in the Okta Admin Console: 1. Log in to your organization's [Okta Admin Console](https://developer.okta.com/login/). 2. Select **Applications** from the **Applications** drop-down list in the left navigation drawer. 3. Select the **Mixpanel** app. 4. Activate the **Authentication** or **Sign On** tab. 5. Click **Edit** in the **Logout** section. 6. Select the **Okta system or admin initiates logout** checkbox. 7. Click **Save**. #### Custom Apps If you created a custom app, configure Universal Logout using the Global Token Revocation endpoint: 1. Log in to your organization's [Okta Admin Console](https://developer.okta.com/login/). 2. Select **Applications** from the **Applications** drop-down list in the left navigation drawer. 3. Select your custom Mixpanel app. 4. Activate the **General** tab. 5. In the **Logout** section, click **Edit**. 6. Under **Global Token Revocation**, select **Okta system or admin initiates logout**. 7. In the **Logout endpoint URL** field, enter `https://platform-us.mixpanel.com/v1/global-token-revocation`. 8. Set **Endpoint authentication type** to **Signed JWT**. 9. For **Subject format type**, select **Email Identifier**. 10. Click **Save**. # Shared SSO Source: https://docs.mixpanel.com/docs/access-security/single-sign-on/shared-sso Use the same SSO setting for multiple Mixpanel organizations ## Overview If you have multiple Mixpanel [Organizations](/docs/orgs-and-projects/organizations) with separate billing accounts, but need to share SSO settings and email domains for login, you can share those settings with an "Admin" Organization. With a shared SSO setup, Single Sign-On settings and Claimed Domains are administered via this "Admin" Organization, and Organizations can be linked to the "Admin" Organization in order to utilize those settings. Administrators need administrative privileges in the Admin Organization to make changes to the shared SSO and Domain settings. This feature is available to customers on an Enterprise Plan. > [!NOTE] > > Shared SSO is available by request. Please contact your Account Manager if you are interested in enabling this feature. ## Admin Organizations An Admin Organization is a special type of Organization that contains Single Sign-On settings and Claimed Domains. It can have Organization Members, but you should only add administrative users to the Admin Organization to manage security. The [SCIM](/docs/access-security/single-sign-on#scim) process will add Users as Organization Members. An "Admin" Organization is different from a regular Organization in that it will not have Projects, Teams, a Plan or Billing, or Service Accounts. Other than administrators (those with Admin or Owner roles), any Organization Members will not see the Admin Organization or interact with it directly. An Admin Organization can have multiple Linked Organizations which will share SSO settings. A regular Organization can only be linked to one Admin Organization. ![SSO Admin Organization Image](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sso_view_admin_org.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=f88fed83b876c5f1aace309e3b9079cc) ## How It Works Any Organization linked to an Admin Organization will use the Single Sign-On settings from that Admin Organization - **any Single Sign-On settings or Claimed Domains the Linked Organization may have had are now ignored**. SSO settings and Claimed Domains are managed in the Admin Organization. Administrative users who manage SSO settings in the Admin Organization do not need to be members of the Linked Organization(s), and vice-versa. This configuration supports [SCIM](/docs/access-security/single-sign-on#scim). ## Differences From Single-Organization SSO * In single-Organization SSO, SSO is configured in each Organization. In Shared SSO, SSO is configured in the "Admin" Organization, and shared by any Linked Organizations. * In single-Organization SSO, claimed domains belong to each Organization. In Shared SSO, claimed domains belong to the Admin Organization and are shared by any Linked Organizations. * In single-Organization SSO, SCIM groups in the IDP map to Teams in Mixpanel, with the IDP group name matching the Mixpanel Team **name**. In Shared SSO, SCIM groups in the IDP map to Linked Organizations, with the IDP group name matching the Linked Organization's **SCIM Name**. | --- | **Single-Organization SSO** | **Shared SSO** | | :-: | :-: | :-: | | SSO Configuration | In each Organization | In the Admin Organization | | Claimed Domains | In each Organization | In the Admin Organization | | SCIM | IDP Groups = Mixpanel Teams | IDP Groups = Mixpanel Linked Organizations\* | \* With Shared SSO, SCIM cannot manage Mixpanel Team membership. Team membership will need to be managed manually. ## Setting Up Shared SSO > [!WARNING] > > If you already use Azure for SSO with Mixpanel, you must [remove existing SSO configuration](/docs/access-security/single-sign-on#remove-sso-configuration) before migrating, due to constraints with “Issuer URL” and “Identifier (Entity ID).” Contact Mixpanel by [opening a Mixpanel support ticket](https://mixpanel.com/get-support). ### 1. Create an Admin Organization in Mixpanel For an existing Organization in Mixpanel, go to Organization Settings > Access Security > Shared SSO. ![SSO Create Admin Organization Image](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sso_create_admin_org1.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=433f10fb45798314c29a3abe2cd9c78a) ![SSO Create Admin Organization Image](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sso_create_admin_org2.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=415b58b03ce0249918e2c602b509eacd) The new Admin Organization will be listed in the left nav in Organization Settings. ![SSO Admin Organization Navigation Image](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sso_admin_org_nav.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=07c8cbf4482e38792905f0660f3db721) ### 2. [Set up SSO](/docs/access-security/single-sign-on) for the Admin Organization Follow the steps to set up SSO in the Admin Organization as you would for a regular Organization. [SSO documentation](/docs/access-security/single-sign-on). ### 3. Link any Organizations to the Admin Organization in Mixpanel > [!WARNING] > > Any existing SSO settings in the "Linked" Organization will be ignored after this step. Start by generating a linking code in the new Admin Organization. In the "Linked Organizations" section, click "Link Organization", then copy the generated linking code. ![SSO Generate Linking Code Image](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sso_generate_linking_code.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=e4cd1e16e360c7f488341816d0c56d20) Then complete the linking by entering the linking code in the Organization to be linked. ![SSO Enter Linking Code Image](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sso_enter_linking_code.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=040041edbe2b1d5b51aba7b7cd5d4b4d) The Organizations are now linked. The Linked Organization will now follow the SSO settings and claimed domains from the Admin Org. ### 4. (Optional) Transfer Existing Domains Once your organizations are linked, you can then transfer any domains you might have claimed from the Linked Organization to the Admin Organization. Go to domain claiming on the Linked Organization and click the “Transfer domain” button for all the domains you want to transfer. ![SSO Domain Transfer Image](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sso_domain_transfer_image.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=10b3e2a40bca453b72f28a1f58f24cdf) ### 5. (Optional) Set up [SCIM](/docs/access-security/single-sign-on#scim) The configurable "SCIM Name" for the Linked Organization must match a group in your IDP. Members of the matching group will be added to the Linked Organization. ![SSO Linked Organizations Image](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sso_linked_orgs.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=6c2698ff29a164d6de844f397710085b) ## SCIM With Shared SSO Mixpanel supports using SCIM to administer users while using Shared SSO. With single-Organization SSO, the SCIM process would push users into the Mixpanel Organization, it would create Mixpanel Teams with the names of Groups in the IDP, and it would assign Mixpanel Users to those Teams. With Shared SSO, the SCIM process works a little differently. Users are pushed to the Admin Organization. Groups in the IDP are pushed to Organizations Linked to the Admin Organization. Groups are mapped by matching an editable “SCIM Name” field in an Organization to the name of the Group in the IDP. Users that are members of the IDP Group are assigned to the linked Organization whose SCIM Name matches the name of the Group. With Shared SSO, SCIM cannot manage Mixpanel Team membership. Team membership will need to be managed manually. > [!NOTE] > > With Shared SSO, the SCIM process cannot create, delete or alter the linked Organizations in Mixpanel like it would with a Mixpanel Team. The SCIM process can only add and remove Users, and assign those users to the linked Organization. ## Migrating To Shared SSO > [!WARNING] > > If you already use Azure for SSO with Mixpanel, you must [open a Mixpanel support ticket](https://mixpanel.com/get-support) before migrating, due to constraints with “Issuer URL” and “Identifier (Entity ID)” If you have Single Sign-On configured for an Organization, and want to use the same email domains with a Shared SSO; you will need to follow these steps to migrate and minimize the time Single Sign-On is unavailable for your users. Be sure to follow these steps in this order, or there will be more downtime for Single Sign-On. 1. In Mixpanel, [Create an Admin Organization](#1-create-an-admin-organization-in-mixpanel) 2. In Mixpanel, Set up SSO for the Admin Organization and configure an application in your IDP with the corresponding settings. You can refer to the [Single Sign-on Overview section](/docs/access-security/single-sign-on) in our docs or to the respective IDP docs for [Azure](/docs/access-security/single-sign-on/azure) or [Okta](/docs/access-security/single-sign-on/okta) 3. In your IDP, assign all users (who will be using Mixpanel in any Linked Organization) into the newly configured app 4. (Optional) In your IDP, set up SCIM for the newly configured app, but **do not start pushing groups** 5. In Mixpanel, [link the original Organization to the Admin Organization](#3-link-any-organizations-to-the-admin-organization-in-mixpanel). Users should be able to log in via SSO again. 6. In Mixpanel, transfer claimed Domains from the original Organization to the Admin Organization. (see [Transfer Existing Domains](#4-optional-transfer-existing-domains) above) 7. Deactivate the original SSO application in your IDP 8. (Optional) Finish setting up SCIM 1. In your IDP, establish a Group for the users who have access to the original Organization 2. In Mixpanel, edit the SCIM name of the original Organization to match the name of this group 3. Configure your IDP to push this group to Mixpanel # Two-Factor Authentication Source: https://docs.mixpanel.com/docs/access-security/two-factor-authentication Enable two-factor authentication (2FA) for your Mixpanel organization, how it applies to Google and password logins, and why SSO users are exempt ## Overview Two-factor authentication (2FA) is a security process that requires users to provide two different authentication factors, such as passwords or tokens, to verify their identity. When you enable 2FA for your organization, all users will be prompted for a 2FA code, including users who log in with Google social login (OAuth) and traditional username/password login methods. If a user hasn't set up 2FA yet, they will be prompted to set it up on their next login. This is distinct from [SSO](/docs/access-security/single-sign-on) (SAML-based Single Sign-On) users, who are exempt from 2FA prompts if SSO is enforced for them. ### Enable Two-Factor Authentication for your Organization If you are an organization admin, you can enable two-factor authentication by doing the following: 1. In your "Organization Settings", select **Access Security**. ![2FA Access Security Image](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/2fa_access_security.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=ceac30b820ce680ec6996d91fdacd3d0) 2. In “Two Factor Authentication”, if the icon is gray, click it to enable. If the icon is purple, click it to disable. ![2FA Enable Image](https://mintcdn.com/mixpanel-edb78807/zIwFvUafFSjAERSV/images/2fa_enable_2fa.png?fit=max\&auto=format\&n=zIwFvUafFSjAERSV\&q=85\&s=444082adab8c5b02709181040f521933) When SSO is enabled, Two Factor Authentication **will not be enforced for users required to use SSO**, as authentication will be handled through the IDP directly. However, users who are not required to log in through SSO (just have the option), will need to pass two factor authentication if enabled along with SSO. 3. The “Verify Mixpanel password” box will appear. **Note: If you do not have a password because you use Magic Link or Google Sign In, please go to your personal settings to set up your password.** ![2FA Verify Password Image](https://mintcdn.com/mixpanel-edb78807/zIwFvUafFSjAERSV/images/2fa_verify_password.png?fit=max\&auto=format\&n=zIwFvUafFSjAERSV\&q=85\&s=1da8d4628f58cf69dae0cf20441fb70a) 4. Enter your password and click **Confirm** to finalize changes. ### Setting up your Two-Factor Authentication Method Once two-factor authentication has been enabled for your organization, an individual member of your organization can set up two-factor authentication via the methods below. #### Setup via second login On their second login, Mixpanel Users will be prompted to set up two-factor authentication via an authentication app. ##### Authentication App 1. In order to set up two-factor authentication via an authentication app, select the authentication app option and ensure you have your preferred authentication app downloaded. We recommend using apps such as Google Authenticator, Authy and Microsoft Authenticator. ![2FA Authentication App 1 Image](https://mintcdn.com/mixpanel-edb78807/zIwFvUafFSjAERSV/images/2fa_authentication_app1.png?fit=max\&auto=format\&n=zIwFvUafFSjAERSV\&q=85\&s=2c74c229ea1e9bcafb27c07a5010aeed) 2. Scan the QR code via your Authentication App in order to complete the setup. ![2FA Authentication App 2 Image](https://mintcdn.com/mixpanel-edb78807/zIwFvUafFSjAERSV/images/2fa_authentication_app2.png?fit=max\&auto=format\&n=zIwFvUafFSjAERSV\&q=85\&s=2d7449aeea82a73eddd33c4d769fe084) If you are unable to scan the QR code, click on “Can’t scan QR code?” This will provide you a two-factor secret to set up your authentication app manually. ![2FA Authentication App 2b Image](https://mintcdn.com/mixpanel-edb78807/zIwFvUafFSjAERSV/images/2fa_authentication_app2b.png?fit=max\&auto=format\&n=zIwFvUafFSjAERSV\&q=85\&s=cf2293ff733644e7aa0d48b9cbc2456e) 3. Before you log in into Mixpanel, download or copy your recovery codes. These are essential for you to log in if you happen to lose your phone. **Note: This is the only location you can save your recovery codes, please ensure you save them in a safe place.** ![2FA Authentication App 3 Image](https://mintcdn.com/mixpanel-edb78807/zIwFvUafFSjAERSV/images/2fa_authentication_app3.png?fit=max\&auto=format\&n=zIwFvUafFSjAERSV\&q=85\&s=50e8fbab96ac85622633e6b5e01de35c) #### Setup via personal settings page An individual user can also set up their two-factor authentication via their personal settings. In order to setup two-factor authentication, follow these steps: 1. Go to the settings icon > personal settings> your profile, then click on "Set Up Method". ![2FA Personal 1 Image](https://mintcdn.com/mixpanel-edb78807/zIwFvUafFSjAERSV/images/2fa_personal1.png?fit=max\&auto=format\&n=zIwFvUafFSjAERSV\&q=85\&s=ff385fec9247a24e79b6e8592849501d) 2. You will be asked to log out in order to set up two-factor authentication. Log in to Mixpanel and follow the setup process. ![2FA Personal 2 Image](https://mintcdn.com/mixpanel-edb78807/zIwFvUafFSjAERSV/images/2fa_personal2.png?fit=max\&auto=format\&n=zIwFvUafFSjAERSV\&q=85\&s=9fc9cb20ff039cbd8b1a25e5dc662475) ### Changing your Two-Factor Authentication Method An individual user can switch between different authentication apps for their two-factor authentication method via their personal setting. (i.e. Authy to Google Authenticator) **Note: Changing your two-factor method will reset it** Users can switch their method via the following steps: 1. Go to settings cog > personal settings> your profile, then click "**Change Method**". ![2FA Change 1 Image](https://mintcdn.com/mixpanel-edb78807/zIwFvUafFSjAERSV/images/2fa_change1.png?fit=max\&auto=format\&n=zIwFvUafFSjAERSV\&q=85\&s=a01c8cded2a919d4a81aba901abb21e6) 2. To change your method, log out and log back in to Mixpanel to start the setup process for your new authentication method. ![2FA Change 2 Image](https://mintcdn.com/mixpanel-edb78807/zIwFvUafFSjAERSV/images/2fa_change2.png?fit=max\&auto=format\&n=zIwFvUafFSjAERSV\&q=85\&s=dca982c1c81937eb880756c3a217f602) ### Login via backup methods If you are unable to log in due to two-factor authentication because you lost your phone, we have a couple backup methods you can use to log in depending on your authentication method. **Note: Contact support if none of these backup methods work for you.** #### Login via recovery codes (authentication app) If an authentication app is your preferred method of authentication, you can login via your saved recovery codes if you don’t have access to your phone. A user can login via a recovery code by doing the following: 1. Click on “Need help? Use a recovery code to sign in” ![2FA Backup 1 Image](https://mintcdn.com/mixpanel-edb78807/zIwFvUafFSjAERSV/images/2fa_backup1.png?fit=max\&auto=format\&n=zIwFvUafFSjAERSV\&q=85\&s=5f18e3e1fa3471e63e624c8c922a6bcf) 2. Enter your recovery code and click "Login". ![2FA Backup 2 Image](https://mintcdn.com/mixpanel-edb78807/zIwFvUafFSjAERSV/images/2fa_backup2.png?fit=max\&auto=format\&n=zIwFvUafFSjAERSV\&q=85\&s=e28771a0a596e55c7ccad40a6e27cb26) **Note: If you use all your recovery codes, you will be asked to reset your two-factor authentication method on your next login.** ### Resetting Two-Factor Authentication for Users As an organization admin, you can reset two-factor authentication (2FA) for users within your organization. To do this, follow these steps: 1. Navigate to the Access Security section within your "Organization Settings". 2. Click on the 2FA tab. 3. Select the users whose 2FA needs to be reset. 4. Click Reset Two-Factor Authorization This will reset their two-factor authentication, allowing them to set up 2FA again the next time they log in. # Agent Intelligence Source: https://docs.mixpanel.com/docs/agent-intelligence Send your AI agent traces to Mixpanel over OpenTelemetry and analyze usage, cost, errors, and conversations alongside your product data Agent Intelligence brings your AI agent's traces into Mixpanel, next to the product data you already track. With Agent Intelligence you can answer: **how is my agent being used? Is it working?** It requires no new installations. Traces land in your existing Mixpanel project, so agent data and product data work together in the same charts, funnels, and cohorts. > [!NOTE] > > **Beta**. Agent Intelligence is currently available to a limited set of customers during Beta. If you'd like to participate, request access [here](https://mxpnl.notion.site/93631162c3994cd1b274f0a6b439add4?pvs=105). *** ## Concepts | Concept | What it is | Example | | :- | :- | :- | | **Conversation** (session) | A user's whole conversation, made of one or more traces. | A chat session where the user sends five sequential prompts to the agent. | | **Turn** | One prompt and response pair inside a conversation. | The user asks "help me book a trip to London” and the agent responds to this prompt. | | **Span** | One piece of work the agent did in order to respond. Spans can run in sequence or in parallel. | A call to an LLM. | *** ## Before you start You need: * A Mixpanel project and its project token * An agent instrumented with OpenTelemetry using the `gen_ai.*` [semantic conventions](https://github.com/open-telemetry/semantic-conventions-genai) (v1.41 or later) * A `user.id` attribute on your spans, set to the same value you use as `distinct_id` in Mixpanel *** ## Implementation Mixpanel reads the OpenTelemetry GenAI semantic conventions (`gen_ai.*`). Every span becomes one Mixpanel event. ### A. Implement Agent Intelligence with your coding agent > [tab] Agent already has OpenTelemetry tracing > > ```text expandable theme={"system"} > # Task: Export our agent's existing OpenTelemetry traces to Mixpanel Agent Intelligence > > ## Goal > Add Mixpanel as an extra trace destination for our already-instrumented AI agent. Make sure every exported span has the attributes Mixpanel needs. Our existing tracing destinations must behave exactly as they do today. > > ## Source of truth > Read https://docs.mixpanel.com/docs/agent-intelligence.md (if you have web access) and the GenAI semantic conventions at https://github.com/open-telemetry/semantic-conventions-genai. If they disagree with this prompt, follow the docs and tell me about the conflict. > > ## Config > - MIXPANEL_PROJECT_TOKEN: env var (don't hardcode; don't commit it) > - Region: [US | EU | India] > - Test project token for verification (optional): [token or "none"] > If the region is still a placeholder, ask me before writing code. > > ## Non-goals > - Don't change existing exporters, span names, attributes, or samplers that other destinations depend on. > - Don't refactor the agent loop or upgrade unrelated dependencies. > - Don't turn on prompt/response capture in production without my approval. > > ## Mixpanel facts you need > - Each span becomes one Mixpanel event and counts toward our billed event volume. > - Model: Conversation (`gen_ai.conversation.id`) → Turn (one prompt/response = one trace) → Span. > - Endpoint (OTLP/HTTP, protobuf or JSON; use the HTTP exporter, not gRPC): > US https://ingestion-us.mixpanel.com/v1/ai/otel/traces > EU https://ingestion-eu.mixpanel.com/v1/ai/otel/traces > IN https://ingestion-in.mixpanel.com/v1/ai/otel/traces > - Header: `Authorization: Basic base64(":")`. Note the trailing colon. Build it in code with the standard library. > - Spans without a `user.id` attribute are dropped. Its value must equal the Mixpanel `distinct_id` for that user. > - Spans over 1MB (uncompressed JSON) are dropped. Custom string properties are truncated to 255 bytes. > - Cost is calculated from `gen_ai.request.model` (exact string match) and the token attributes. `gen_ai.usage.input_tokens` must INCLUDE cache-read and cache-write tokens. > > ## Phase 1: Investigate, then STOP > Don't change any code yet. Find out: > 1. Is our tracing really OpenTelemetry? Which SDK and versions? Some vendor SDKs aren't OTel (e.g. Datadog ddtrace without OTel mode, or LangSmith's native tracer). If it isn't OTel, stop and tell me; that needs the "no OTel" approach. > 2. Where the TracerProvider is registered, and who owns it (our code, Sentry, Langfuse, Logfire, a Collector, etc.). List all span processors, exporters, and the sampler with its rate. > 3. Which library produces the GenAI spans. Run one real agent turn with a console/in-memory exporter and paste the actual span names and attribute keys you see. Compare them to the semconv names listed below, and note any semconv stability opt-in setting the instrumentation needs (e.g. `OTEL_SEMCONV_STABILITY_OPT_IN=gen_ai_latest_experimental` in the Python contrib instrumentations). > 4. Does one trace equal one user turn? Check websocket/long-lived sessions, background or queue workers, and multi-service hops. Describe any mismatch. > 5. Where the user ID and conversation ID are available at the start of a turn. Does the user ID match our Mixpanel distinct_id, including for anonymous/logged-out users (how does our Mixpanel identity setup handle them)? > 6. Whether prompt/response content is captured, and whether it's stored as span attributes or as log events (only span attributes reach Mixpanel). > 7. Which non-agent spans are exported per turn, with approximate counts. > > Then present a short plan covering: where the exporter attaches, the filtering rule, how user.id/conversation.id get onto spans, any attribute mapping, the sampling impact, and open questions. **Wait for my approval before you implement.** > > ## Phase 2: Implement > > ### 2.1 Exporter > - Attach to the EXISTING provider. Don't register a second global TracerProvider; it can silently replace the current one. If we run a Collector, add an `otlphttp` exporter + a dedicated pipeline there instead. > - Configure the Mixpanel exporter in code. Don't use the generic `OTEL_EXPORTER_OTLP_*` env vars, because they'd change the existing exporter. > - Use a BatchSpanProcessor with sensible queue/timeout settings. Export failures must never affect requests. > - Add a kill switch, `MIXPANEL_AI_TRACING_ENABLED` (default off until verified), plus a region setting. > > ### 2.2 Mixpanel-only filtering and shaping > Wrap the Mixpanel exporter (or use a Collector `filter`/`transform` processor in the Mixpanel pipeline) so ONLY that destination is affected: > - Keep a span if it has `gen_ai.operation.name`, or one of our explicit agent-span markers. Drop generic HTTP/DB/framework spans. Missing parents are fine; Mixpanel groups spans by trace ID. > - The root span of each turn must have `gen_ai.operation.name=invoke_agent`. Some frameworks (e.g. pydantic-ai) leave it out; set it here. Without it, Mixpanel classifies the turn as `other`. > - Do attribute renaming HERE, at export time. Spans are read-only after they end, so a span processor can't add token or response attributes in `onEnd`. Rename non-standard keys (e.g. `llm.*`, `ai.*`, old `gen_ai.prompt.*`/`gen_ai.completion.*`) to the current `gen_ai.*` names. > - Truncate oversized attributes (tool results, message histories) so no span goes over ~1MB. > > ### 2.3 Identity attributes > - At the start of each turn, put `user.id`, `gen_ai.conversation.id`, and `gen_ai.agent.name` into context. Copy them onto every span in a span processor's `onStart`, using an allowlist (only these keys). Don't copy all baggage. > - Watch out for baggage leaks: the W3C baggage propagator puts baggage in outbound HTTP headers, which would send user IDs to the LLM provider and other third parties. If the turn runs in one process, use a non-propagating context value instead. If it crosses our own services, use baggage but make sure it isn't injected into requests to external hosts. > - Check that the values survive async tasks, threads, streaming callbacks, and queue hops. > - If trace ≠ turn (Phase 1, item 4), implement whatever we agreed on in the plan. > > ### 2.4 Sampling > Mixpanel analytics (user counts, funnels, retention) needs unsampled or consistently sampled data. If the existing sampler drops traces, tell me how that affects things. Never sample individual spans. > > ### 2.5 Recommended attributes (fill in any that are missing) > `gen_ai.agent.name`, `gen_ai.operation.name`, `gen_ai.provider.name`, `gen_ai.request.model`, `gen_ai.response.model`, `gen_ai.usage.input_tokens`, `gen_ai.usage.output_tokens`, `gen_ai.usage.cache_read.input_tokens`, `gen_ai.usage.cache_write.input_tokens`, `gen_ai.tool.name`, `gen_ai.tool.call.arguments`, `gen_ai.tool.call.result`, plus `error.type` and ERROR status on failures. > Token gotchas: > - Anthropic's `input_tokens` EXCLUDES cache tokens. Add `cache_creation_input_tokens` + `cache_read_input_tokens` to it. > - OpenAI streaming returns no usage unless `stream_options: {"include_usage": true}` is set. > - Cache writes go in `gen_ai.usage.cache_write.input_tokens`. Rename `gen_ai.usage.cache_creation.input_tokens` and the Vercel AI SDK's `cacheWriteTokens` to it, or cache-write cost is left out. > - Model strings must be the exact provider model ID, or the cost shows as $0. Cost is keyed on `gen_ai.request.model`, so behind LiteLLM or another gateway, set it to the underlying provider model ID, not the gateway's alias. > Message content (`gen_ai.input.messages` / `gen_ai.output.messages`, JSON strings): put it behind a flag that's OFF by default. Make sure it lands as span attributes, not log events. > - Prefer the semconv shape: `[{"role": "user", "parts": [{"type": "text", "content": "..."}]}]`. > - The `invoke_agent` root span must carry the user's prompt in `gen_ai.input.messages` and the final reply in `gen_ai.output.messages`, or the transcript can be missing them. > - Mixpanel redacts common PII (emails, phone numbers, SSNs, card numbers, API keys, IPv4 addresses) at ingestion and sets `$mp_ai_pii_redacted` on affected events. This is a backstop, not a substitute for our own redaction. > > ### 2.6 Custom attributes > Propose 3–6 product dimensions for the turn's root span (e.g. `surface`, `command.type`, `prompt.version`, `plan.tier`, a flag variant, or tenant IDs like `account.id` / `org.id` for B2B agents). Use stable, lowercase, dotted names with short values. Add more only after I approve. > > ## Phase 3: Verify (all must pass) > 1. Unit test: the auth header for token "abc" equals `Basic YWJjOg==`. > 2. Test with an in-memory exporter wrapped by our Mixpanel filter/shaper: every exported span has `user.id` and `gen_ai.conversation.id`; non-agent spans are dropped; renamed attributes are present; the existing exporter still receives every span unchanged. > 3. curl a single test span to the regional endpoint and get a 2xx. Use the test project if one was provided; otherwise use `user.id = "mp-ai-test"` so it's easy to find and exclude. > 4. Run a real 2+ turn conversation that includes a tool call and one forced error. Check the debug output: each turn is its own trace, all turns share a conversation ID, tokens and model are filled in, and the error is marked. > 5. All existing tests pass. > 6. Tell me to check Agent Intelligence → Conversations in Mixpanel. > > ## Final report > - Changes, by file (and any new dependencies, with pinned versions you checked exist) > - Table of attributes sent → where each value comes from > - Filtering rule, sampling impact, and env vars/flags added > - Known gaps: unfillable attributes, models that might not have pricing, content capture status, trace≠turn caveats > ``` > [tab] Starting from scratch > > ```text expandable theme={"system"} > # Task: Add OpenTelemetry GenAI tracing to our agent and export it to Mixpanel Agent Intelligence > > ## Goal > Instrument our AI agent with OpenTelemetry following the GenAI semantic conventions, and export the traces to Mixpanel. Keep the change small and production-safe. Agent behavior must not change. > > ## Source of truth > Read https://docs.mixpanel.com/docs/agent-intelligence.md (if you have web access) and the GenAI semantic conventions at https://github.com/open-telemetry/semantic-conventions-genai. If they disagree with this prompt, follow the docs and tell me about the conflict. > > ## Config > - MIXPANEL_PROJECT_TOKEN: env var (don't hardcode; don't commit it) > - Region: [US | EU | India] > - Test project token for verification (optional): [token or "none"] > If the region is still a placeholder, ask me before writing code. > > ## Non-goals > - Don't refactor the agent loop, change prompts/models, or upgrade unrelated dependencies. > - Don't add tracing to non-agent code paths. > - Don't turn on prompt/response capture in production without my approval. > > ## Mixpanel facts you need > - Each span becomes one Mixpanel event and counts toward our billed event volume. Only make spans for work worth looking into. > - Model: Conversation (`gen_ai.conversation.id`) → Turn (one prompt/response = ONE trace) → Span. > - Endpoint (OTLP/HTTP, protobuf or JSON; use the HTTP exporter, not gRPC): > US https://ingestion-us.mixpanel.com/v1/ai/otel/traces > EU https://ingestion-eu.mixpanel.com/v1/ai/otel/traces > IN https://ingestion-in.mixpanel.com/v1/ai/otel/traces > - Header: `Authorization: Basic base64(":")`. Note the trailing colon. Build it in code with the standard library. > - Spans without a `user.id` attribute are dropped. Its value must equal the Mixpanel `distinct_id` for that user. > - Spans over 1MB (uncompressed JSON) are dropped. Custom string properties are truncated to 255 bytes. > - Cost is calculated from `gen_ai.request.model` (exact string match) and the token attributes. `gen_ai.usage.input_tokens` must INCLUDE cache-read and cache-write tokens. > > ## Phase 1: Investigate, then STOP > Don't change any code yet. Find out: > 1. Language/runtime, how we deploy (long-running server, serverless, worker), the agent framework (if any), and the LLM SDKs/providers. > 2. Whether anything already registers a global OTel TracerProvider or uses OTel internally (Sentry, Langfuse, Logfire, Datadog OTel mode, Honeycomb, etc.). If something does, we must attach to it, not register a second provider. Tell me if this changes the plan. > 3. The agent loop: where a user turn starts and ends, where LLM calls happen (including streaming and retries), where tools run, and anything that runs in parallel or crosses processes/queues. > 4. Where the user ID and a conversation/thread ID are available at the start of a turn. Does the user ID match our Mixpanel distinct_id, including for anonymous/logged-out users (how does our Mixpanel identity setup handle them)? If there's no conversation ID, suggest a source. > 5. Instrumentation options, in this order of preference: > a) Our framework/SDK has built-in OTel tracing that emits current `gen_ai.*` semconv. > b) A maintained OTel GenAI instrumentation package exists for our SDK (e.g. the official OpenTelemetry contrib GenAI instrumentations, or OpenLLMetry). > c) Manual instrumentation with the OTel API around our LLM and tool calls. > For each option, check that the package actually exists in the registry, and find out which attribute names it emits and whether it needs a semconv opt-in (e.g. `OTEL_SEMCONV_STABILITY_OPT_IN=gen_ai_latest_experimental` in the Python contrib instrumentations). Don't guess package names. > > Then present a short plan covering: the chosen approach and why, packages with pinned versions, the span structure, how user.id/conversation.id get onto spans, and open questions. **Wait for my approval before you implement.** > > ## Phase 2: Implement > > ### 2.1 SDK setup > - Initialize tracing once, at startup, before the LLM clients are imported or created. Set the `service.name` resource attribute. > - BatchSpanProcessor + OTLP HTTP exporter → the Mixpanel regional endpoint with the auth header. In dev, add a console exporter behind a flag. > - Add a kill switch, `MIXPANEL_AI_TRACING_ENABLED` (default off until verified), plus a region setting. > - Tracing must never block, slow down, or crash a request. If config is missing, it does nothing. > - Shut down/flush when the process exits. On serverless, `forceFlush` at the end of each invocation. > > ### 2.2 Span structure (GenAI semconv) > - One root span per user turn: `invoke_agent {agent_name}`, `gen_ai.operation.name=invoke_agent`. Each turn is a NEW trace. Never put a whole conversation in one trace. > - One child span per LLM call: `chat {model}`, `gen_ai.operation.name=chat`. Retries are separate spans. > - One child span per tool call: `execute_tool {tool_name}`, `gen_ai.operation.name=execute_tool`. > - Retrieval/embedding steps only if we have them. Don't wrap trivial internal functions. > - Errors: record the exception, set ERROR status, and set `error.type`. > - If an auto-instrumentation package already creates the chat spans, add only the root/tool spans around it. Don't make duplicate LLM spans. > > ### 2.3 Identity attributes > - At the start of each turn, put `user.id`, `gen_ai.conversation.id`, and `gen_ai.agent.name` into context. Copy them onto every span in a span processor's `onStart`, using an allowlist (only these keys). > - Watch out for baggage leaks: the W3C baggage propagator puts baggage in outbound HTTP headers, which would send user IDs to the LLM provider and other third parties. If the turn runs in one process, use a non-propagating context value (e.g. a context key / contextvar). If it crosses our own services, use baggage but make sure it isn't injected into requests to external hosts. > - Check that the values survive async tasks, threads, streaming callbacks, and queue hops. > > ### 2.4 GenAI attributes > Set these per span where they apply: > `gen_ai.agent.name`, `gen_ai.provider.name`, `gen_ai.request.model`, `gen_ai.response.model`, `gen_ai.usage.input_tokens`, `gen_ai.usage.output_tokens`, `gen_ai.usage.cache_read.input_tokens`, `gen_ai.usage.cache_write.input_tokens`, `gen_ai.tool.name`, `gen_ai.tool.call.arguments`, `gen_ai.tool.call.result`. > Token gotchas: > - Anthropic's `input_tokens` EXCLUDES cache tokens. Add `cache_creation_input_tokens` + `cache_read_input_tokens` to it. > - OpenAI streaming returns no usage unless `stream_options: {"include_usage": true}` is set. Set the usage attributes after the stream finishes, before the span ends (spans are read-only after they end). > - Cache writes go in `gen_ai.usage.cache_write.input_tokens`. If the SDK reports them as `cache_creation.input_tokens` or (Vercel AI SDK) `cacheWriteTokens`, map them to that name, or cache-write cost is left out. > - Model strings must be the exact provider model ID, or the cost shows as $0. Cost is keyed on `gen_ai.request.model`, so behind LiteLLM or another gateway, set it to the underlying provider model ID, not the gateway's alias. > Message content (`gen_ai.input.messages` / `gen_ai.output.messages`, JSON strings in the semconv message format): put it behind a flag that's OFF by default. Make sure it lands as span attributes, not log events (we only export traces). Truncate it so spans stay well under 1MB. > - Semconv message shape: `[{"role": "user", "parts": [{"type": "text", "content": "..."}]}]`. > - The `invoke_agent` root span must carry the user's prompt in `gen_ai.input.messages` and the final reply in `gen_ai.output.messages`, or the transcript can be missing them. > - Mixpanel redacts common PII (emails, phone numbers, SSNs, card numbers, API keys, IPv4 addresses) at ingestion and sets `$mp_ai_pii_redacted` on affected events. This is a backstop, not a substitute for our own redaction. > > ### 2.5 Custom attributes > Propose 3–6 product dimensions for the turn's root span (e.g. `surface`, `command.type`, `prompt.version`, `plan.tier`, a flag variant, or tenant IDs like `account.id` / `org.id` for B2B agents). Use stable, lowercase, dotted names with short values. Add more only after I approve. > > ### 2.6 Volume > If volume is high, add a parent-based trace sampler behind config, defaulting to 100%. Sample whole traces only, never individual spans. > > ## Phase 3: Verify (all must pass) > 1. Unit test: the auth header for token "abc" equals `Basic YWJjOg==`. > 2. Test with an in-memory exporter: a simulated 2-turn conversation with a tool call produces 2 traces; every span has `user.id` and the same `gen_ai.conversation.id`; LLM spans have the model and token counts (including the cache-token rule for our provider); a forced tool error marks its span as ERROR. > 3. Test that agent behavior and output are unchanged when tracing is disabled AND when the exporter endpoint is unreachable. > 4. curl a single test span to the regional endpoint and get a 2xx. Use the test project if one was provided; otherwise use `user.id = "mp-ai-test"` so it's easy to find and exclude. > 5. Run a real 2+ turn conversation locally and check the console exporter output. > 6. All existing tests pass. > 7. Tell me to check Agent Intelligence → Conversations in Mixpanel. > > ## Final report > - Changes, by file, and new dependencies with pinned versions > - Table of attributes sent → where each value comes from > - Env vars/flags added and their defaults > - Known gaps: unfillable attributes, models that might not have pricing, content capture status, anything that crosses processes > ``` ### B. Implement Agent Intelligence manually ### Step 1 — Point your exporter at Mixpanel
**Endpoint** \ (Use the endpoint for your project’s data residency region) US: `https://ingestion-us.mixpanel.com/v1/ai/otel/traces`\ EU: `https://ingestion-eu.mixpanel.com/v1/ai/otel/traces`\ India: `https://ingestion-in.mixpanel.com/v1/ai/otel/traces`
**Protocol** OTLP over HTTP, protobuf or JSON
**Auth header** Authorization: Basic \:")>
The auth value is your project token followed by a colon, base64-encoded. The trailing colon stands in for an empty password. ```shellscript theme={"system"} echo -n "YOUR_PROJECT_TOKEN:" | base64 ``` ### Step 2 — Set required properties and attributes on every span Your tracer sets most of these. You set `user.id` These attributes and properties need to be on every span. Spans missing user.id are dropped. #### From the span's attributes These come from entries in the span's `attributes` object. | Where it comes from | Who sets it | **What Mixpanel property gets set** | | :- | :- | :- | | `user.id` attribute | You | `distinct_id` | The simplest way to capture `user.id` is OTel baggage, so the value propagates to child spans automatically. ```tsx theme={"system"} import { context, propagation } from "@opentelemetry/api"; const ctx = propagation.setBaggage( context.active(), propagation.createBaggage({ "user.id": { value: currentUser.id } }) ); context.with(ctx, () => runAgentTurn(prompt)); ``` If your tracer doesn't propagate baggage into span attributes, set `user.id` in a span processor instead. #### From OTLP span fields These come from standard OTLP span fields (the span root, not the attributes object). Your tracer sets them automatically; Mixpanel maps them to these event properties. | Where it comes from | Who sets it | **What Mixpanel property gets set** | | :- | :- | :- | | `traceId` on OTLP span field | Your tracer | `$mp_ai_trace_id` | | `spanId` on OTLP span field | Your tracer | `$mp_ai_span_id` | | `name` OTLP span field | Your tracer | `$mp_ai_span_name` | | `startTimeUnixNano` OTLP span field | Your tracer | `$time` | | Computed from `endTimeUnixNano` − `startTimeUnixNano` (both from OTLP span fields) | Your tracer + Mixpanel computation | `$mp_ai_duration_ms` | ### Step 3 — Add the attributes that make the data useful Optional, but recommended. Adding more data unlocks the questions you'll want to ask. OTel GenAI tracers produce most of them. Send them **per span**. Any attribute Mixpanel does not set itself arrives as a property with the same name your tracer used. | **Property** | **What it gives you** | **Type** | | :- | :- | :- | | `gen_ai.conversation.id` | Groups turns into a multi-turn conversation | String | | `gen_ai.agent.name` | Breakdowns by agent | String | | `gen_ai.request.model` / `gen_ai.response.model` | Cost and latency by model; catches a silent model change | String | | `gen_ai.usage.input_tokens` / `gen_ai.usage.output_tokens` | Token volume and cost per model | Number | | `gen_ai.usage.cache_read.input_tokens` | Prompt-cache hit rate | Number | | `gen_ai.usage.cache_write.input_tokens` | Cache writes | Number | | `gen_ai.input.messages` / `gen_ai.output.messages` | Readable prompts and responses in the conversation view | String (JSON) | | `gen_ai.tool.name` | Which tools run, and how often | String | | `gen_ai.tool.call.arguments` / `gen_ai.tool.call.result` | Tool input and output in the conversation view | String | ### Step 4 — Send your own attributes Standard attributes cover cost, latency, errors, models, and tools. They don't cover what makes your product unique. Any attribute Mixpanel doesn't recognize is kept as a custom property. Send any dimensions you'd want to break down by. For example: ```tsx theme={"system"} span.setAttributes({ "command.type": "slash_command", // how this turn was initiated "surface": "sidebar", "prompt.version": "2026-09-02", }); ``` Use a stable, lowercase, dotted naming pattern. These become properties your whole team will filter on. Agent Intelligence is built on top of existing Mixpanel Events architecture so the same rules apply to Agent Intelligence events(spans). Most noticeably: 1. Event Property limits: Mixpanel truncates string properties to at most 255 bytes 1. [High Level Requirements](https://docs.mixpanel.com/reference/import-events#high-level-requirements) 2. [Event Property Type Requirements](https://docs.mixpanel.com/docs/data-structure/property-reference/data-type#:~:text=String%20properties%20have%20a%20limit%20of%20255%20bytes) 3. [Event and Property Limits](https://docs.mixpanel.com/docs/data-structure/events-and-properties#what-are-the-limits-of-events-and-properties) 2. Event size limits: each OTEL span must be below 1MB uncompressed JSON otherwise the span cannot be ingested into Mixpanel **(i.e. it will be dropped)** 1. [Ingestion Requirements](https://docs.mixpanel.com/reference/import-events#high-level-requirements) ### Step 5 — Verify Send one test span and confirm it arrives. ```bash theme={"system"} AUTH=$(echo -n "$MIXPANEL_PROJECT_TOKEN:" | base64) curl -X POST https://ingestion-us.mixpanel.com/v1/ai/otel/traces \ -H "Content-Type: application/json" \ -H "Authorization: Basic $AUTH" \ -d '{ "resourceSpans": [{ "scopeSpans": [{ "spans": [{ "traceId": "5b8efff798038103d269b633813fc60c", "spanId": "eee19b7ec3c1b174", "name": "chat", "kind": 1, "startTimeUnixNano": "1789421333000000000", "endTimeUnixNano": "1789421334500000000", "attributes": [ {"key": "user.id", "value": {"stringValue": "user_123"}}, {"key": "gen_ai.agent.name", "value": {"stringValue": "support-agent"}}, {"key": "gen_ai.operation.name", "value": {"stringValue": "chat"}}, {"key": "gen_ai.request.model", "value": {"stringValue": "claude-sonnet-4-6"}}, {"key": "gen_ai.usage.input_tokens", "value": {"intValue": "1200"}}, {"key": "gen_ai.usage.output_tokens", "value": {"intValue": "340"}} ] }] }] }] }' ``` Then open Agent Intelligence in your project. Your conversation should appear shortly. ## Data privacy Mixpanel’s [security and access controls](https://docs.mixpanel.com/docs/access-security) apply to your agent traces. Additionally, Mixpanel scans AI span attributes for common PII patterns at ingest, before the data is stored. Matches are replaced with a `[REDACTED:]` placeholder. The original value is never written, and redaction can't be reversed. Mixpanel attempts to detect and redact the following properties: * Email addresses * US Social Security numbers * Credit card numbers * Phone numbers * API keys (OpenAI, Slack, GitHub, AWS) * Bearer tokens * IPv4 addresses. If anything was redacted, the event carries `$mp_ai_pii_redacted = true`. Mixpanel sets this value. Events with nothing redacted don't carry the property at all. Note that message content, agent responses, and tool calls are optional attributes. Regulated industries typically omit these fields. If you omit them, you still get cost, tokens, latency, errors, models, tool usage, conversation shape, and every custom property you send. Most OpenTelemetry GenAI instrumentations don't capture prompt and response text by default, so if you leave it off, no message content reaches Mixpanel. **Redacting sensitive data yourself** If you want readable transcripts, but prefer to scrub them first, redact in your own OpenTelemetry Collector using the [redaction processor](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/redactionprocessor). You can mask values matching your patterns and drops any attribute not on your allow list. Be sure not to remove `user.id` , which is required on every span. *** ## Intelligence on your Agents Once spans are arriving, you have different ways to look at them. ### Key metrics Open **Agent Intelligence → Usage** for usage and health metrics. Span level data is rolled up to Conversation and Turns levels for analysis. See more on computed values below. Use the filters and date range at the top to narrow to one agent, model, or cohort. Every attribute you sent in Steps 3 and 4 is available here. ### Dig into conversations **Conversations** lists every conversation in your project, sorted by conversations with the newest activity. Each row shows key details of the conversation such a number of turns and total cost. Click a conversation to open it. You'll see every turn, and every span inside each turn, in the order they ran. This is where you go to troubleshoot. A turn with an unusual duration or cost stands out in the list, opening it shows which span caused it. If a turn errored, the failing span is marked, so you can read the error and the tool call that produced it. ### Link Agent data to your product outcomes Spans are events, so agent data works in every Mixpanel report. You can answer questions like: **Does the agent drive conversion?** Build a funnel with an agent turn as step one and your conversion event as step two. Break down by `gen_ai.agent.name` to compare agents, or by `gen_ai.request.model` to see whether a model change moved the conversion rate. **Do agent users stick around?** Run a retention report on users who complete an agent turn. Compare it to retention for users who never touch the agent. **Which users are having a bad time?** Create a cohort of users with a high share of errored conversations. Use the cohort to compare they retain against everyone else. Or dig into the underlying conversations to understand their experience. **What value does the agent provide the business?** Compare revenue or active users against agent cost over the same period. Segment by model to see whether a more expensive model paid for itself. ### Leverage Experimentation and Session Replay * **Experiments:** Use [feature flags](https://docs.mixpanel.com/docs/featureflags) and [experiments](https://docs.mixpanel.com/docs/experiments) to test models, prompts, tools, and UX. Because agent metrics are events, cost and error rate can be experiment metrics like any other. * **[Session Replay](https://docs.mixpanel.com/docs/session-replay):** Watch what a slow turn felt like, or find users who opened the agent and left without sending a prompt. ## Conversation Level Data Spans are important because they include key data you need about how your agent is performing. However, we tend to do analysis at a conversation or turn level. Mixpanel automatically computes key conversation-level data from spans up by `trace_id` and `conversation_id` inside Agent Intelligence so you can analyze a turn or conversation as one thing. | Computed values | How it's calculated | | :- | :- | | `duration` | Sum of duration of all spans. Note, this may exceed the time a user actually waited in the case that spans ran in parallel. | | `cost` | Sum of all span costs. | | `is_error` | True if any span in the trace or conversation errored | | `error` | Details of the errors in the trace | | `input` / `output` | The input and output of the trace | *** ## FAQ > [accordion] How much does Agent Intelligence cost? > > There is no extra charge to use Agent Intelligence. Note, events sent for the purposes of Agent Intelligence count towards your event volume. > [accordion] Troubleshooting implementation > > **Nothing is arriving.** > > 1. Check the auth header first: base64 of `:` with the trailing colon, scheme `Basic`. > 2. `user.id` is missing on spans. It has to be set per span; baggage is the usual fix and without `user.id` events are dropped. > > **Every turn is a separate conversation.** `gen_ai.conversation.id` isn't being set, or isn't propagating to child spans. > > **Prompts and responses are missing.** Either your tracer isn't emitting `gen_ai.input.messages` and `gen_ai.output.messages`, or a Collector processor is stripping them. > > **Spans arrive but properties are empty or spans arrive but my dashboard is empty.** Your tracer is probably emitting a namespace we don't read. Check the raw attribute names it produces against [supported conventions](https://github.com/open-telemetry/semantic-conventions-genai). > [accordion] How is LLM cost data determined > > `$mp_ai_cost_usd` is the estimated USD cost of a model call, available on `$mp_ai_span` events. It's calculated using the following span attributes: > > | Property | Role | > | :- | :- | > | `gen_ai.request.model` | Selects the rate | > | `gen_ai.usage.input_tokens` | Input tokens (inclusive of cache-read and cache-write tokens) | > | `gen_ai.usage.output_tokens` | Output tokens | > | `gen_ai.usage.cache_read.input_tokens` | Cached input tokens | > | `gen_ai.usage.cache_write.input_tokens` | Cache-write tokens, priced at the cache-write rate | > | `$time` | Selects which rate was in effect | > > Rates come from the open-source [`genai-prices`](https://github.com/pydantic/genai-prices) library, which tracks each provider's published list prices per 1M tokens by model. Mixpanel pins a version of the library and updates it periodically to pick up new models and price changes. To look up the rate for a model, search the library's [price data](https://github.com/pydantic/genai-prices/tree/main/prices/providers). > > Cache tokens are priced separately, not at the full input rate. `gen_ai.usage.input_tokens` includes both cache-read and cache-write tokens. Both counts are subtracted from the input total; the remainder is charged the full input rate, cache-read tokens are charged the cache-read rate, and cache-write tokens the cache-write rate. > > **Historical prices are preserved.** Cost is calculated when you run a query, not stored on the event. When a provider changes a model's price, `genai-prices` records the date the new price took effect. Each span is priced using the rate in effect on the date of its `$time`, so spans before the change keep the old rate and spans on or after it use the new rate. A report that spans a price change shows the correct cost for each period. When Mixpanel updates the library, the new rates apply to all history on your next query. There's no need to re-send data. > > Rates are matched by day. Pricing that varies within a day, such as off-peak discounts, isn't reflected; the model's standard rate applies. > > **Models without a published rate:** Cost will show as \$0. Model names must match exactly. Break a report down by `gen_ai.request.model` to spot unpriced calls. > > Note: These are list-price estimates and won't match a provider invoice exactly. Negotiated rates, discounts, and non-token charges aren't reflected. > [accordion] How can I control the volume of spans sent to Mixpanel? > > * Send spans for work you'd investigate: model calls, tool calls, retrieval steps. Skip trivial internal functions. > * Sample high-volume, low-variance agents. Sample whole traces. Avoid sampling at the span level > * Use the Collector's `filter` processor to drop span types you don't analyze > [accordion] Can I backfill past conversations > > Backfilling span events is not currently supported. # Agentic Automations Source: https://docs.mixpanel.com/docs/agentic-automations Sub-agents of Mixpanel Agent configured to run recurring analysis work automatically ## Overview Mixpanel Agentic Automations are sub-agents of Mixpanel Agent that you configure once to do recurring analysis work for you, and deliver the result where you already work. You decide when an Automation runs, on a schedule or when a metric crosses a threshold, and what it should look at; the agent does the analysis and sends you the result. Today, Automations monitor a KPI: watch a metric you own and get a digest explaining what changed. We're expanding what an Automation can do, so that over time you'll describe the job in your own words rather than pick from a fixed set of use cases. If you'd like early access or want to help shape this, reach out to your account manager and ask to be connected with our product team. ## KPI Monitoring A KPI Monitor watches a metric you care about and ships a personalized digest, either on the cadence you choose or whenever the metric crosses a threshold you set. Each digest summarizes what changed in the last window, calls out shifts the agent considers notable, and gives you a way to give feedback so we can improve what the agent surfaces over time. ### Create a KPI Monitor You can also create and manage Automations by asking Mixpanel Agent — see [below](#manage-automations-with-mixpanel-agent). **1. Launch the Automation creation workflow** Click '+ Create New' button in your side navigation bar. At the bottom of the 'Analysis' section, click the Automation button. You can also go straight to [mixpanel.com/app/agent-flows/new](https://mixpanel.com/app/agent-flows/new).\\ ![Image](https://mintcdn.com/mixpanel-edb78807/wHxTyxwZkMmeQP6P/images/image-7.png?fit=max\&auto=format\&n=wHxTyxwZkMmeQP6P\&q=85\&s=cdccfebe3909603f2efb12141035ae1f) > [!NOTE] > > Don't see this button? Your organization may not have Mixpanel AI enabled. See the [Mixpanel Agent FAQ](/docs/mixpanel-agent#faq) for how to enable Mixpanel AI features in settings. **2. Name the Automation** Pick the automation type and give it a name. The Automation is created as a **Draft** right away, before you configure anything, and won't run until it's fully configured and saved. You'll set up everything else on the Automation's **Configuration** tab. **3. Set the trigger** An Automation runs either **on a schedule** or **when a threshold is crossed**. **On a schedule.** Digests can be delivered daily, weekly, or monthly, at a time of day you choose. Daily schedules can run on specific weekdays, weekly schedules on a single weekday, and monthly schedules on either a day of the month or an nth weekday. You can also repeat every few weeks or months instead of every one. Weekly is a balanced default cadence for most teams. **When a threshold is crossed.** Instead of a fixed cadence, the Automation checks your metric every hour and only runs when it meets a condition you define. See [Run when a threshold is crossed](#run-when-a-threshold-is-crossed). Changing the cadence resets the analysis window to the new cadence's default. **4. Configure the metric analysis** **Metric.** Choose any Insights metric — sums, counts, or unique counts over an event or custom event, as well as funnels, retention, and saved metrics. Click **Select metric** to open the metric builder, where you can also add filters. The agent will use the metric's existing definition as the source of truth for what it watches. **Breakdown (optional).** In the same metric builder, pick one property to break the metric down by, and each digest ranks its segments alongside the overall number. See [Break a KPI down by a property](#break-a-kpi-down-by-a-property). **Instructions.** Use the **Instructions** field to tell the agent how to interpret results and what to call out. For example: "Flag anything that deviates more than 2 standard deviations from the 30-day average" or "Focus on week-over-week change, not absolute values." Instructions shape the digest's commentary, not the underlying query. The agent runs a single, fixed query based on the metric you selected. It cannot run additional queries, pull in other metrics, or take actions. Instructions guide how the agent frames its summary: which comparisons to emphasize, what thresholds matter to you, and what language to use when describing shifts. **Analysis window.** Set how much history each digest analyzes. The options depend on the cadence you picked, or on the firing limit for a threshold trigger, and each has a sensible default. **5. Set up delivery** Digests can land in Slack, email, or both — you can add multiple email recipients and multiple Slack channels at the same time. Slack delivery requires the [Slack integration](/docs/features/slack-integration) to be configured for your project. Delivery is optional. With no channel configured, results only appear on the Automation's overview page. **6. Save** Save your configuration. Once the Automation has a name, a valid metric, and a trigger, saving activates it — your first digest arrives at the next cadence boundary, or the first time your threshold condition is met. You can pause, edit, or delete the Automation at any time. A paused Automation stays paused when you edit it, until you flip the **Activate** toggle back on. The Automation's overview page keeps a run history, including whether each digest was delivered. If a run fails, for example because the metric couldn't be queried, you'll see the reason there and in the same Slack channels or email inboxes the digest would have gone to, so you can fix the metric configuration. ### Break a KPI down by a property If you track a KPI across many segments — regions, fulfillment centers, products, accounts — you don't need one Automation per segment. Pick a single property to break the metric down by, and every digest ranks that property's segments for you. Each digest leads with the overall metric, then surfaces the **top 5 and bottom 5 performing segments**. So a daily monitor on Orders Completed broken down by `fulfillment_center_id` tells you both how order volume is doing overall and which centers are pulling ahead or falling behind — even on a day when the total looks unremarkable. Breakdowns work on any cadence, and the digest is delivered wherever your other KPI digests land. > [!NOTE] > > Set the breakdown in the breakdown field, not the **Instructions** field. Asking for "break down by location" in your instructions won't create a breakdown — and it's ambiguous which property you meant. Choosing the property explicitly guarantees the digest ranks the one you intended. ### Run when a threshold is crossed Not every metric needs a digest on a fixed cadence. Some you only want to hear about when something happens — Orders Completed drops below 1,000 in a day, or Signups falls more than 20% week over week. Pick **When a threshold is crossed** as the trigger and define the condition: the metric is above or below a value, crosses a value in either direction, or increases or decreases by more than a number or percentage compared with the previous hour, day, week, or month. The Automation checks the condition every hour, looking at the most recent period against the one before it. When it's met, the normal analysis runs over your full analysis window, so the digest explains the crossing in the context of the last few weeks or months rather than just the period that tripped it. The digest is the same one a scheduled run produces, except the summary leads with the rule that fired and the value that triggered it. To keep a noisy metric from messaging you every hour, set a firing limit so the Automation runs at most once per day, week, or month; the condition keeps being checked in between. If the metric has a breakdown, you can choose whether any segment meeting the condition should trigger a run, or only a specific one. ### What's in a digest * A short summary of what the metric did in the last window vs. baseline. * Any shifts the agent considers notable, with the agent's reasoning. * If you set a breakdown, the top 5 and bottom 5 performing segments for that property. * If a threshold triggered the run, the rule that fired and the value that met it. ## Manage Automations with Mixpanel Agent You can set up and manage Automations by asking [Mixpanel Agent](/docs/mixpanel-agent) in plain language, from anywhere the Agent is available. Ask it to: * **List** your Automations. This returns the Automations you own, not your teammates'. * **Inspect** one — its settings, trigger, analysis window, breakdown, and delivery. From an Automation's details page, the Agent picks up which one you mean from the page you have open. * **Create** a new one — metric, breakdown, trigger (a schedule or a threshold), analysis window, instructions, and delivery. * **Update** one — rename it, change the schedule or threshold condition, adjust the analysis window, add or change the breakdown, revise instructions, or change delivery. * **Activate** or **pause** it. * **Check run history** — when it last ran, and whether the run succeeded, failed, or partially completed. Both scheduled and manual runs are included. * **Delete** it. For example: *List my automations*, *Create a daily automation for Signups delivered to email at 9am*, *Alert me in Slack when Checkout Completed drops more than 20% week over week*, *Break my Orders Completed monitor down by fulfillment\_center\_id*, or *Show me the run history for my WAU monitor*. When you ask for a threshold, the Agent confirms the condition and how often it may fire before creating anything. When you ask for a breakdown, name the property explicitly. "Break it down by location" is ambiguous if your project has several location properties, and the Agent will ask which one you meant. **Run Now** is an action on the Automation's page in Mixpanel. The Agent can report on runs, but can't trigger one for you. > [!NOTE] > > Every change the Agent makes requires your approval. Creating, updating, activating, pausing, and deleting each surface an approval step showing exactly what will change, and nothing is applied until you approve it. > > Automations the Agent creates land as **Draft** — the Agent never activates one as part of creating it. Activating is a separate action with its own approval. > > Edits are scoped to what you asked for: approving a rename changes only the name, and leaves the metric, cadence, window, and delivery untouched. The one exception is delivery, which is replaced as a set rather than merged — asking to add a recipient replaces the existing delivery configuration. ## Limits * **Automations per user per project.** Free: 5, Growth: 10, Enterprise: 20. * **Metric types.** KPI Monitors support event metrics, custom events, funnels, retention, saved metrics, and formulas. One metric per Automation. * **Delivery channels.** Slack and email are available today * **Triggers.** Scheduled runs can be daily, weekly, or monthly. Threshold conditions are checked hourly and can fire at most once per day, week, or month. * **Analysis window.** The options available depend on the cadence you picked for scheduled triggers, or on the firing limit for threshold triggers. * **Breakdowns.** One property per Automation. Digests show the top 5 and bottom 5 segments; the number of segments isn't configurable yet. * **Time zone.** Schedules run in the project's time zone. There's no per-user local delivery time yet. > [!NOTE] > > Have feedback or want to help shape what's next for Agentic Automations? Reach out to your account manager and ask to be connected with our product team. # Boards Source: https://docs.mixpanel.com/docs/boards Collect your reports into a single view ![/Screen\_Shot\_2022-01-07\_at\_2.07.26\_PM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2022-01-07_at_2.07.26_PM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=ff3df9ee28e1b73ebecec10951839ae5) A Board is a collection of reports, text, and images or videos, which allow you to view all your most important metrics at a glance. Add Insights, Flows, Funnels, and Retention reports to a board to be able to track those metrics both regularly and simultaneously. Boards can also be created using the [Templates](/docs/boards/templates) feature. ## Use Cases Boards can be used to keep your whole company on top of your KPIs. Additionally, you can add text to your boards to help tell a compelling story, or highlight specific interpretations of the other reports on boards. Create personal boards or project boards and share them with your team to help you and your colleagues understand and stay on top of your metrics. [https://www.youtube-nocookie.com/embed/cOsqfBtGI5U](https://www.youtube-nocookie.com/embed/cOsqfBtGI5U) ## Quick Start ### Step 1: Navigating Boards Before creating a board of your own, it's best to explore existing boards within your Mixpanel project. There's a good chance that someone has already created a board that may be of interest to you. The best way to navigate to existing boards within your Mixpanel project is the directory on the left-hand side of the page. This directory makes it easy to access your most-used boards by organizing them into several sections: ![/11441973595156](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/11441973595156.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=8a3b3c2c345bcad94c85ac3a9735ce1c) **Favorites**: to favorite a board, click the "Favorite" button at the top right of that board. Once you've done so, it will appear in the favorites section at the top left of the board's page. **Pinned**: pinned boards are important boards for your organization. Mixpanel users with the [Admin or Owner roles](/docs/orgs-and-projects/roles-and-permissions#organization-roles) will be able to pin a board such that it appears in the Pinned section for every project member. **Your Boards**: any boards you create will appear in this section. To create a new board, click "+ New Board" at the top of the directory. Finally, you can search for all boards, or recently viewed boards, at the top of the directory. ### Step 2: Creating a new Board Once you've decided that you want to create a board of your own, on the Boards page, click "+ New Board" at the top of the left side directory. The new untitled board will be created immediately, but you may wish to give it a name. To do so, click the current title, then type the desired name. At this point, your empty board will look like this: ![/11442046149268](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/11442046149268.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=79b479723ad706bd546380abfae5939e) ### Step 3: Adding content to Boards There are 3 types of content that you can add to a board: 1. An existing report that has already been created 2. A new report that you can make from Insights, Funnels, Flows or Retention 3. A text or media card to give context to your board ![/11442000560788](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/11442000560788.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=611f92b8e481672a67a57dd1119ff2e9) There are a few ways to add an existing report to a board. You can either start on a board, and add reports to it directly, or start from a report and choose the boards to which the report should be added. * Starting from a board, adding a report can be done via the "Add" button near the top right of the board, or if the board is empty, from the center of the page. This will open a popup from which you can choose to create a new report of any type or add an existing report. * Starting from an existing report, adding the report to a board can be done via the board breadcrumb dropdown at the top left of the report, next to the report's title. Click into the dropdown, then select "Add to another Board." Choose your board, and a copy of the report will be added to it. * Starting from another board, select the overflow menu of a report you'd like to add. Select "Make a Copy" and then choose the board you would like to add it to. Note that adding an existing report always creates a [linked copy](/docs/boards/sharing-and-permission#linked-reports). Text cards support rich text formatting. After highlighting the text in a text card, you'll see a menu pop up where you can apply the following: * Font size (title, subtitle, text) * List type (bullets or ordered) * Bold, Highlight, Italic, Strikethrough, Underline * Quote block * Hyperlinks * Dividers Note that some options (ordered lists, quote blocks, underline, and dividers) are available in the "three dots" overflow menu on the right-hand side of the formatting popup. ![/Screen\_Shot\_2022-06-15\_at\_3.32.32\_PM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2022-06-15_at_3.32.32_PM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=cea56cf065b6393444c62d5ee4e5dae4) Media cards support local images and embedded videos. Media cards are able to be resized horizontally or vertically, similar to Report cards. ![/Screen\_Shot\_2022-08-17\_at\_10.56.02\_AM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2022-08-17_at_10.56.02_AM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=1c49d2d75f8703ad612dedf59d5ef91a) For images, the supported upload file types are PNG, JPG and GIF. GIFs will loop automatically. The upload limit is 5MB. For videos, the supported embedded video links are Vimeo, YouTube and Loom. In order for your team to be able to see uploaded videos, ensure that video settings are not set to private. See the following articles to understand video privacy settings: * [Vimeo's Video Privacy Explain](https://vimeo.com/blog/post/video-privacy-explained/) * [Share videos with unlisted links with Vimeo](https://vimeo.com/blog/post/share-unlisted-videos-with-private-links/) * [Change video privacy settings on YouTube](https://support.google.com/youtube/answer/157177?hl=en) * [How to use Loom's privacy settings](https://support.loom.com/hc/en-us/articles/360016527597-How-to-use-Loom-s-privacy-settings) ### Step 4: Arrange Board Content #### A Row-Based System Content is arranged within rows. To add a card (either a report or text) to a row, click the "+" button that appears on the left of a row when you hover over that row. ![/Screen\_Shot\_2022-06-29\_at\_11.49.22\_AM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2022-06-29_at_11.49.22_AM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=ec6f4f1c246107953d40f6bc9bc9ce78) To add a row, click the "+ Add Row" button below the last existing row in the board. ![/Screen\_Shot\_2022-06-29\_at\_11.49.58\_AM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2022-06-29_at_11.49.58_AM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=147a1b6e013ed8719e84aac9cedd66b6) #### Moving Cards To change the order of reports, simply click and drag any report to your desired position, via the gripper icon at the top right of the report. #### Resizing Cards Cards on a row will automatically expand to fill the width of that row, but once two or more cards are on the row, you can adjust each card's width by clicking and dragging the control between any two cards. Hover between the cards to surface the drag control. ![/Screen\_Shot\_2022-06-29\_at\_11.50.42\_AM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2022-06-29_at_11.50.42_AM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=5f4cfb59bac7597207ddf6d9ae42cd55) Up to four cards (either reports or text) can exist within a row, and the content in a row will automatically expand to fill the horizontal width of that row. Cards can be horizontally resized within a row, and will snap to positions 1/12th of the width of the row - the minimum width of a card is 3/12th, or one quarter of the width of the row. This makes it easy to fill a row with 1, 2, 3, or 4 cards of equal size. #### Resizing Rows Row heights can now be adjusted to either show more report content, or hide empty space. To vertically resize a row, click and drag the control under that row. Hover under the row to surface the control. ![/Screen\_Shot\_2022-06-29\_at\_11.51.48\_AM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2022-06-29_at_11.51.48_AM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=41edfacf30e63aadda62c17514546efe) A row's height is initially determined by the tallest card within that row. Text cards can be very short if they contain only one line of text, or very tall if they contain many lines. Meanwhile, reports always start at their minimum height but may warrant expansion in order to show more data (more bars on a bar chart, for example). A row will start life at the minimum possible height. ### Step 5: Board-wide Date Ranges and Filters Boards allow you to alter some aspects of the queries within each of the reports on that board, making it simple to ensure every report is showing results from a consistent set of data.  Both date ranges and filters can be added by clicking "Add Filter" at the top right of the board.  ![/Screen\_Shot\_2022-01-07\_at\_2.35.49\_PM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2022-01-07_at_2.35.49_PM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=45628568e3828ecec4ae908ec4ca2e06) The date ranges and filters applied to the board are temporary unless saved. This allows you to explore the data without altering the Board for other users. To make permanent changes to the board filters, use the Mixpanel [Pinned Filters](/changelogs/2025-01-10-pinned-filters), which can be accessed by clicking the overflow menu on the filter and then clicking "Edit". Note that changes are not saved automatically, so make sure to click the "Save" button on the right after editing. ![/Board\_Pinned\_Filters-Edit.png](https://mintcdn.com/mixpanel-edb78807/t0w2ecW2bO4mKfCm/images/Board_Pinned_Filters-Edit.png?fit=max\&auto=format\&n=t0w2ecW2bO4mKfCm\&q=85\&s=0cde4ab016d99678805cf6ba3381fc6f) #### **Board Dates** "Default" means each report uses its own saved date range. Choosing any other date range at the Board level sets all reports on that Board to use the same date. Use "Default" when you want reports to show different time windows (e.g., one report showing last 30 days, another showing last 60 days). Set a specific Board-level date range when you want all reports to use the same timeframe, such as from a product launch date. ## Board Subscriptions Board Subscriptions allow you to receive a snapshot of a board sent as an email or a slack message. Subscriptions allow members to share recent data with both project members and external audiences, providing quick and meaningful insight into a Mixpanel project. You must be a Project Owner, Admin, or Analyst to create a subscription. Subscriptions will send the board on a recurring schedule. You can choose a daily, weekly or monthly interval. Note that subscriptions only show the 8 reports that are on the top of a board. To create a Subscription: 1. Select **Subscribe** from the header at the top right of the board. You can see a list of existing subscriptions for the board here as well. Select "Create New". ![/subscribe1.png](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/subscribe1.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=917d74475ce0c3d1fa91370dc135feb3) 2. Fill out the resulting form, selecting the desired email recipients or Slack channel, as well as the sending frequency (daily, weekly, or monthly). ![/subscribe2.png](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/subscribe2.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=f0c3d7537f4f0502570c9e056d555a03) * Any email address will receive the email, whether or not they are internal or external to your organization * Private Slack Channels are not available at this time 3. Click "Subscribe". ### Seeing All Subscriptions ![/subscribe3.png](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/subscribe3.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=a17674f5cd0c420eda26a90a5b41814e) You can access this by clicking the "Subscribe" button at the top right of the board. Then select "View All". This gives you a view of all subscriptions across all users. ## TV Mode The **Enter TV Mode** option enables displaying a Board on a big screen (such as a TV in the office) where top-level company metrics / KPIs can be constantly monitored. The Board will auto-refresh every 10 minutes when in TV mode. ![image](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/boards-tv-mode.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=03fe27966d2a4142b679f45cd902933d) ## Deleting Boards To delete a Board, click the "..." button in the top-right of the UI, then select "Delete". Be aware that any reports that were saved to this Board any any [linked reports](/docs/boards/sharing-and-permission#linked-reports) will be also be deleted once the original Board is deleted. Learn more about how [Boards are used to manage sharing and permission](/docs/boards/sharing-and-permission) of reports. # Boards on Boards Source: https://docs.mixpanel.com/docs/boards/boards-on-boards Organize your analyses with nested Boards. For organizations on the enterprise plan, you can nest Boards within other Boards to organize your teams and analyses. > You must have an active **Enterprise** plan with Mixpanel to access this feature. ### How to nest Boards To place a Board on Board, you can: * Drag and drop directly from the side navigation. For permissions, see limitations below. ![nested.gif](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/nested.gif?s=b5328d35f4eed4f653a6fe76623c9503) * Use the “Move to” option, which is accessible from 3 locations: * From the side navigation, click on the 3 dots next to the desired Board name * From the current Board that is open, click on the 3 dots in the top right in the header menu ![move.gif](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/move.gif?s=c38038bbda68995cb198d570b9b5249d) * If a Board is already on a Board and you’d like to move it elsewhere, you can click on the 3 dots in the card menu of the nested Board ![moveee.gif](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/moveee.gif?s=b6c1c060bbb675b75d716821c2bcf9a7) To remove a Board from nesting, you can: * Use the “Move” button and select “Move out of all Boards.” * Drag the child Board out of the parent in the side navigation. ### Nesting limitations * The maximum depth of nesting allowed is 3 levels, meaning you can have a grandparent, parent, and child Board. * No cycles allowed. You cannot nest a Board under its own child Board. ### Permissions * You must have edit access to the parent Board in order to nest or remove another Board under it. This is similar to reports permissions - you cannot add or remove any report or text from a Board if you don’t have edit access. * Nesting a Board does not currently affect permissions. * This means parent Board permissions will not override the child Board’s permissions. * Board level permissions will only cascade for reports on a given Board. # Move Boards Source: https://docs.mixpanel.com/docs/boards/move-boards Reuse Boards across different projects ## Overview Move helps teams organize their work and easily replicate Boards across projects and organizations. Using Move, you can find a Board you want to copy, duplicate it, and move it to a different project. Let's take an example situation: 1. An organization has Project A and Project B that support different products and teams within the organization. 2. Team A has some fantastic Boards that have been well received by leadership, executives, and investors. 3. Team B would like to replicate these reports without having to build them all from scratch. This is where Move comes in. With the right permissions, Team A can move copies of their Boards to Team B's project, allowing Team B to fill in their events and be up and running quickly. **Please note: Moving boards from projects based in the US -> EU as well as EU -> US is unavailable at this time.** ### Turning Move Off and On > [!NOTE] > > To enable or disable the setting to move board, you will need an admin or own project role. Learn more about [Roles and Permissions](/docs/orgs-and-projects/roles-and-permissions). 1. Go to Project Settings 2. Select Moving Boards from the left hand menu 3. Select how freely you want boards to be able to be moved: not at all, within the organization, or between organizations. * Not at all: no Board can be moved to any other project, no matter the organization * Within organization: a Board can be moved to any other project in the same organization * Any organization: a Board can be moved to any other project, even one in a different organization This setting does not affect whether you can move a Board into a project, only whether you can move a Board out of a project. 4. On this page, you can also see who last updated the permissions and when. ![Move-screenshot.png](https://mintcdn.com/mixpanel-edb78807/YwnZf1T9eqEqTP5R/images/Move-screenshot.png?fit=max\&auto=format\&n=YwnZf1T9eqEqTP5R\&q=85\&s=5db03a3b6a526dd3ac30e1efcebee46d) ### Using Move ![Demo\_mv\_x\_proj.gif](https://mintcdn.com/mixpanel-edb78807/t0w2ecW2bO4mKfCm/images/Demo_mv_x_proj.gif?s=2cf316ad3bb5c4b536c4036d65876c88) Step 1: Go to the Board you wish to move. Step 2: Hover over the `Move to` option. Step 3a: Enterprise users: select "projects", then select the specific project that you want to move the board to. Once you've selected a project, then list will populate with Boards you can place the current Board in if you wish. Step 3b: Non-enterprise users: hover over the "Move To" option, and the project menu will appear immediately. From there, you can choose “Move to your Boards” or another location and select your choice. Step 3c: You can also use Move to use Boards from a demo project in your own. Get your free Mixpanel demo account and click [here](https://mixpanel.com/api/app/demo_project?show-demo-dataset-modal=true) to access the demo datasets. Once you're in, you can set up a new Board easily using a [template](/docs/boards/templates), or you can build a report from scratch. If you like what you see and want to use the analysis in your own project, you can click the button that says "Use this Board." You'll then select the project to which you want to move the board. Step 4: If there are events and properties used in the old project but not the new project, the affected reports will remain empty or say “no data” until new events and properties are selected. When a report can't populate, it will display one of two states: a faded out sample report or a “no data” status. * Charts that show "no data" occur when an event has been tracked in the last 30 days, but a filter or date range result in no data for the report. * For the sample report to appear, the report would have to be configured with an event that hasn't existed or at least hasn't been tracked in past 30 days. For example: a join membership club event happened 100 times yesterday, but 0 so far today. If you create a report for today, it will show “no data”. But if this is day one of the program and it has never been tracked before, it will show a dummy sample report. From this empty state, you can set up your new reports like any other report. **NOTE:** If you would like a version of the Board to stay in the parent project, duplicate it and move the new duplicate Board. # Public Boards Source: https://docs.mixpanel.com/docs/boards/public-boards Share analyses with stakeholders outside your company With Public Boards you can now share your favorite Mixpanel metrics across your entire organization — regardless of whether your teammates have a Mixpanel login or not. Show stakeholders your latest insights with the click of a button, collaborate cross-functionally in new, heightened ways, and make better product decisions, faster, with everyone's buy-in. Want to flex your data outside of your org? No problem. Share it with investors, agencies, customers, or post it on Twitter for all to see. Best of all, with optional password protection, your boards are only as public as you want them to be. #### Enabling/Disabling For Your Project Public Boards is **disabled** by default, meaning no one can make a board public without first enabling the feature in [Project Settings](https://mixpanel.com/settings/project). Only Project Owners can enable/disable this feature. Navigate to the Public Boards tab to enable Public Boards for the project: ![/public\_db\_settings\_view.png](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/public_db_settings_view.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=6c04a72fc6ecaa61a762d6b08ff606f2) ![/Screen\_Shot\_2021-07-27\_at\_10.48.08\_AM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2021-07-27_at_10.48.08_AM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=331d85c79064e2c52ea0e4549177d558) To disable, just click the "Disable for Project" button. It will turn off ALL currently publicly shared boards and will disallow the creation of any new ones. ![/Screen\_Shot\_2021-06-09\_at\_2.50.01\_PM.png](https://mintcdn.com/mixpanel-edb78807/LIWtWr4Am6t1wkkk/images/Screen_Shot_2021-06-09_at_2.50.01_PM.png?fit=max\&auto=format\&n=LIWtWr4Am6t1wkkk\&q=85\&s=1eeaee5ee2068383850eafb51ba0520f) ![/Screen\_Shot\_2021-06-09\_at\_2.51.08\_PM.png](https://mintcdn.com/mixpanel-edb78807/LIWtWr4Am6t1wkkk/images/Screen_Shot_2021-06-09_at_2.51.08_PM.png?fit=max\&auto=format\&n=LIWtWr4Am6t1wkkk\&q=85\&s=b55decdfb972740b6ac91975062eb3f7) #### Creating a Public Link If the Public Boards feature is enabled for your project, then you can create a Public Link from the Share Modal on the Boards page. All project users, except project consumers, with edit access to the board can make the board public. **Important Note:** Public Board Links are created with the context of the Data View in which the link is generated. Make sure to check the Data View you are currently in to ensure it is the one you want to share publicly. ![/Screen\_Shot\_2021-06-09\_at\_2.54.06\_PM.png](https://mintcdn.com/mixpanel-edb78807/LIWtWr4Am6t1wkkk/images/Screen_Shot_2021-06-09_at_2.54.06_PM.png?fit=max\&auto=format\&n=LIWtWr4Am6t1wkkk\&q=85\&s=16a25f93599a936d03e01aa8ee58acc5) ![/Screen\_Shot\_2021-06-09\_at\_2.57.00\_PM.png](https://mintcdn.com/mixpanel-edb78807/LIWtWr4Am6t1wkkk/images/Screen_Shot_2021-06-09_at_2.57.00_PM.png?fit=max\&auto=format\&n=LIWtWr4Am6t1wkkk\&q=85\&s=0b244ada2e81c44ffe93bcfdfea99fa9) **Free Plans:** As Free plans do not have full access to the Sharing Modal, it will look slightly different than that on Paid plans. To make a board public, also click the Share button and switch the "Make Public" toggle on (purple). #### Management of Public Board Links To get a view of all current Public Boards links, go to the Public Boards section in [Project Settings](https://mixpanel.com/settings/project). You'll see a list of all boards shared publicly, the Data View to which each Public Link is associated, creator and creation time of the Public Link, and the Public Link URL. You can disable the individual Public Links from this view. You can also disable Public Links at once by turning off the Public Boards feature for the project (see Enabling/Disabling For Your Project). ![/Screen\_Shot\_2021-06-09\_at\_2.59.53\_PM.png](https://mintcdn.com/mixpanel-edb78807/LIWtWr4Am6t1wkkk/images/Screen_Shot_2021-06-09_at_2.59.53_PM.png?fit=max\&auto=format\&n=LIWtWr4Am6t1wkkk\&q=85\&s=5ebbd85163e58afcbed28b1a1f9064eb) #### Password Protection For additional security, create a password that will be required for anyone viewing your public board. ![/Screen\_Shot\_2021-06-09\_at\_3.08.09\_PM.png](https://mintcdn.com/mixpanel-edb78807/LIWtWr4Am6t1wkkk/images/Screen_Shot_2021-06-09_at_3.08.09_PM.png?fit=max\&auto=format\&n=LIWtWr4Am6t1wkkk\&q=85\&s=c5dc0d2ebec3d4b7dc2b9233449cfbee) Go to the Share Modal > Public Board Details to manage the Public Board's password: ![/Screen\_Shot\_2021-06-09\_at\_3.06.54\_PM.png](https://mintcdn.com/mixpanel-edb78807/LIWtWr4Am6t1wkkk/images/Screen_Shot_2021-06-09_at_3.06.54_PM.png?fit=max\&auto=format\&n=LIWtWr4Am6t1wkkk\&q=85\&s=4b2865754fe9b552f45a5926e878d835) Check "Require Passcode" to enable password protection for the specific Public Link. The password will be shown only upon creation. If you forget the passcode, you will need to provide a new password. ![/Screen\_Shot\_2021-06-09\_at\_3.07.27\_PM.png](https://mintcdn.com/mixpanel-edb78807/LIWtWr4Am6t1wkkk/images/Screen_Shot_2021-06-09_at_3.07.27_PM.png?fit=max\&auto=format\&n=LIWtWr4Am6t1wkkk\&q=85\&s=f2cfa6057328f13a9d98c01721fb537e) ![/Screen\_Shot\_2021-06-09\_at\_3.08.45\_PM.png](https://mintcdn.com/mixpanel-edb78807/LIWtWr4Am6t1wkkk/images/Screen_Shot_2021-06-09_at_3.08.45_PM.png?fit=max\&auto=format\&n=LIWtWr4Am6t1wkkk\&q=85\&s=6045f9dc3e6742478edf37eb2d123c7f) Use the copy button next to the public URL if you want require passcode. Use the Embed Link button to copy the public URL with the passcode embedded. ![/Screen\_Shot\_2021-06-09\_at\_3.09.17\_PM.png](https://mintcdn.com/mixpanel-edb78807/LIWtWr4Am6t1wkkk/images/Screen_Shot_2021-06-09_at_3.09.17_PM.png?fit=max\&auto=format\&n=LIWtWr4Am6t1wkkk\&q=85\&s=dc1fa9e4f0432176b3303719298f6434) #### Embedding Public Boards Public Boards are embeddable in an iFrame, so you can add them to your docs (Notion, Coda, Confluence, etc.). If you are requiring a passcode for the Shared Link, please use the Embed Link. ![/Screenshot\_Capture\_-2021-05-06-\_13-31-57.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screenshot_Capture_-_2021-05-06_-_13-31-57.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=58145d9090f44bbefe90625780d86fa7) ![/Screenshot\_Capture\_-2021-05-06-\_13-31-32.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screenshot_Capture_-_2021-05-06_-_13-31-32.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=9df91250bae5919b07f86945a994b849) ![/embed.gif](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/embed.gif?s=a3c24cf0e643822f5579ed26e5ce646a) # Sharing Source: https://docs.mixpanel.com/docs/boards/sharing-and-permission Growth and Enterprise plan users can control who views and edits reports in a board > [!NOTE] > > Growth and Enterprise plan users can control who views and edits reports in a board. Free plan users have view and edit permissions for all boards and reports in a project. See our [pricing page](https://mixpanel.com/pricing/) for more details. ## Overview Reports are always saved to boards. When you save a report, you'll be prompted to save it to a specific board. In essence, the board now acts as a folder, with many potential purposes, including: * A centralized place to track numerous metrics related to a product launch * A chain of analyses digging into a particular behavior or issue * A set of draft reports you're working on This will make it easy to keep reports organized, and reduce time wasted recreating the same reports again and again. ## Sharing Every Boards is accessible by all project members. Board-level sharing settings control how Boards are surfaced in Mixpanel and who can edit. Sharing is done at the board level. All reports saved on a board inherit the same sharing settings of that board. To share a board, click the Share button at the top right of the board. ![/GIF3\_\_light\_.gif](https://mintcdn.com/mixpanel-edb78807/t0w2ecW2bO4mKfCm/images/GIF3__light_.gif?s=d1133f7e0a9a99dfea5e230cfd279170) You can set access for specific individuals, Teams, and everyone in the project. **Individuals and Teams Sharing:** * Viewers: Board discoverable in Mixpanel search. Any changes Viewers make will not be saved * Editors: Able to make and save changes to the Board **Project Sharing:** * Off: The Board does not surface in Mixpanel for users who are not Viewers or Editors of the Board. Note, even when project sharing is Off, any project member with the direct link can still view the Board * Viewer: Board discoverable in Mixpanel. Any changes Viewers make will not be saved * Editor: Able to make and save changes to the Board The **Copy URL** button copies a short link to a Board or report. Anyone with the link who has access to the project can open it. What they can do is always governed by the permissions above. ![/Screen\_Shot\_2021-11-08\_at\_11.01.00\_AM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2021-11-08_at_11.01.00_AM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=59a04c2a0f29c14a711acd1679d9592f) If a Board contains sensitive data, restrict access to the underlying data through [Data Views and Data Classification](https://docs.mixpanel.com/docs/data-governance/data-views-and-classification). Default settings for project sharing can be set by admins in Project Settings. ## Linked Reports Every report in Mixpanel has a board where it was originally saved to. This is called the original board. However, in the interest of being able to use the same report across a variety of boards and sharing the same insight across your team and company, Mixpanel has introduced the concept of a "linked report". A linked report is denoted by the arrow in the icon of the report. Any time an existing report is added to a board or a copy is made, a linked report is made. Any changes to the report will get reflected in all of the linked reports associated with the report. ![/Screen\_Shot\_2022-07-11\_at\_6.06.58\_PM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2022-07-11_at_6.06.58_PM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=7235fc5ee4b8e41a8944038ba93a230a) # Templates Source: https://docs.mixpanel.com/docs/boards/templates Generate a board using customizable templates Mixpanel’s Templates make it simple for anyone to get answers to important questions as soon as data is available in Mixpanel. Our templates create out-of-the-box and fully customizable Boards designed to guide you section by section. They help you better understand your user base and monitor metrics like adoption, retention, virality, and product impact. To get started, click the icon in the left-hand navigator to create a new Board, and select `Use a Template`. You’ll then select your desired template and click `Start from Template`. ## Adding Your Events The Company KPI template uses two events: “Sign Up” and “Value Moment.” * [Sign Up](https://developer.mixpanel.com/docs/plan-your-implementation#sign-up-event): Select the event where a new user—free or paid—is acquired by creating a new account. For products that do not include an account creation step, a similar “[Session Start](https://help.mixpanel.com/hc/en-us/articles/115004695223)” event can be used as a proxy. * [Value Moment](https://developer.mixpanel.com/docs/plan-your-implementation#value-moment-event): Select an event that indicates that a user is experiencing value in your product. For a social media platform, it could be creating a post; for a streaming service, it's watching a video; for e-commerce, it might be completing a purchase. The Lifecycle cohort analysis template uses one event: “Value Moment.” * [Value Moment](https://developer.mixpanel.com/docs/plan-your-implementation#value-moment-event): Select an event that indicates that a user is experiencing value in your product. For a social media platform, it could be creating a post; for a streaming service, it's watching a video; for e-commerce, it might be completing a purchase. The Feature Launch template uses four inputs, two of which are events: “Feature Name,” “Launch Date,” “New Feature,” and “Value Moment.” * Feature Name: Whatever you want to name your feature. It will be populated throughout the template so we recommend something on the shorter side. Including the feature name will help you better keep track of your Boards when you have multiple feature launches. * Launch Date: Choose the date your feature went live. Some reports show the percentage of active users engaging with the feature, so be aware that if you’re doing a partial rollout, those numbers might be skewed, as the report will be using your total active user base. * New Feature: Pick an event that captures the adoption of your new feature. For adding reviews to a streaming service, the event could be publishing a review. For e-commerce, it might be creating a “save for later” collection. * [Feature Value Moment](https://developer.mixpanel.com/docs/plan-your-implementation#value-moment-event): Select an event that indicates that a user is experiencing value in your feature. For a social media platform, it could be liking a new type of content; for a streaming service, it could be sharing a playlist; for e-commerce, it might be purchasing from the “save for later” collection. The AI Company KPI template uses several events and properties: * Sign Up: An event triggered the first time a user is identified in your system, typically upon account creation or registration. * Launch AI: An event triggered when a user first begins interacting with an AI feature, such as opening a chatbot interface or engaging a virtual assistant. * AI Prompt Sent: An event recorded each time a user submits a prompt or query to an AI system. Include the prompt content as a property. * AI Response Sent: An event triggered when the AI system sends a response back to the user. Include properties such as api token usage (API Tokens Used), estimated cost (API Cost), and latency (API Response Time). * API Error: An event that logs runtime errors encountered by the AI feature or its underlying APIs during user interaction. This should capture relevant error metadata for diagnostics. * User Feedback Submitted: An event triggered when a user provides feedback on an AI-generated response. Include properties for the Feedback Text and Sentiment, which could be structured (e.g., thumbs up/down) or unstructured (e.g., free-text). * AI Dismissed: An event triggered when a user ends their interaction with an AI feature, such as closing a chatbot or exiting an assistant interface. * [Conversion Event](https://developer.mixpanel.com/docs/plan-your-implementation#value-moment-event): Select an event that indicates that a user is experiencing value in your feature. For a social media platform, it could be liking a new type of content; for a streaming service, it could be sharing a playlist; for e-commerce, it might be purchasing from the “save for later” collection. For projects that have already been implemented and have data, you will select your events, which will enable the `Create` CTA, and your Board will be generated. For projects that do not have data, please refer to our [dev docs](https://developer.mixpanel.com/docs/plan-your-implementation) and [implementation](https://help.mixpanel.com/hc/en-us/categories/115001197206-Data-and-Implementation) resources. ## Key Metrics These templates monitor a number of metrics for you. A few are highlighted below. ### Engagement User engagement measures how users find value in a product or service. Engagement can be measured by a variety of activities such as clicks, shares, and more. Highly engaged users are more likely to lead to higher user growth because they are more likely to share the product or service with their network. Tracking engagement helps evaluate: * How many users are finding value in your product? * Who are your most engaged users? * What is your product’s activation rate? * What happens to users who don’t reach your product’s value moment? ### Retention Retention is the metric that shows whether your product has staying power. Retention measures how many people are coming back, which is also a key indicator that users are realizing value in your product. Tracking retention helps identify: * How many engaged users come back? * Who are your dormant users? ### Growth Growth is about finding people who need your product and showing them that your product can bring value to them. Tracking growth helps you answer: * How many new users are signing up? * Which channels are generating the most signups? * What is your DAU (Daily Active Users) and WAU (Weekly Active Users)? ### Adoption Feature adoption is when a customer actually uses your feature. It could be purchasing an add-on, leaving a review, saving a video to a collection, or even using a new template. Tracking your feature adoption helps you answer questions like: * How many users used the new feature this month? * What percentage of my users have used the new feature? * How many times do users use the new feature in a month? ### Product Impact Product impact metrics give you a full look at how your feature is helping or hurting your overall product. At the end of the day, every feature should be working to drive growth to the product. The product impact metric can help you evaluate: * Is this feature’s adoption driving product growth? * Is this feature’s engagement hurting another part of the product? * Is this feature increasing product retention? ### User Base The Lifecycle Cohort Analysis Template breaks down your user base into the parts that make up the active user calculation: * New users: user who performed the value moment action for the first time ever during the current period * Retained users: user who performed the value moment action this current period and the previous period * Resurrected users: user who has performed the value moment before, didn't perform it last period, but performed the value moment again this current period ## Other Examples In this section, you will find other example Boards built out in our demo data sets to highlight examples of how our most successful and data-mature customers monitor their implementation and drive adoption of Mixpanel across their organizations. The examples in this section are meant to be used as inspiration for additional Boards you can create to make sure your team is effectively monitoring your implementation as well as enabling end users to feel confident implementing and using Mixpanel. ### Implementation Monitoring & Data Governance This template is meant to be used largely by teams that implemented Mixpanel instrumentation and will be monitoring the data governance of the implementation on an on going basis. The two sections in the Board cover best practices for: * Monitoring the health of your implementation and nuances to look out for that could be a sign of poor implementation health. * Driving consistency in naming convention best practices and a better general understanding of how to manage data governance of your Mixpanel implementation [Implementation Monitoring & Data Governance Example Board Here](https://mixpanel.com/project/3018488/view/3536632/app/boards/#id=6664368) ![Implementation Monitoring and Data Governance](https://mintcdn.com/mixpanel-edb78807/2dQbP7q9Vb6iLUv1/images/6c21d6a2-bb33-4043-b762-6c4b64ccda1d.png?fit=max\&auto=format\&n=2dQbP7q9Vb6iLUv1\&q=85\&s=84f31cc69812eebab67c2e3c57344f40) ### Training Board for Champions to use to Educate Users This template is meant to be used by Mixpanel Champions looking to train their team on what metrics they can report on out of Mixpanel. The three main sections of the board are: * An overview of the Mixpanel Data Model and tips for how to familiarize yourself with your Mixpanel project * Summaries of each core Mixpanel report (Insights, Funnels, Flows, & Retention) and clear examples articulating which Mixpanel reports/features users can leverage given the type of metric on which they’re wanting to report. * Links to support articles so users can self-serve education on nuances of Mixpanel’s functionality [Training Board for Champions Example Here](https://mixpanel.com/project/3018488/view/3536632/app/boards#id=7198653) ![Training Board for Champions to use to Educate Users](https://mintcdn.com/mixpanel-edb78807/Y6MSfzF-TDZ89Tu0/images/1bf32c1d-1bc8-43e8-8efc-01c2ae56aea1.png?fit=max\&auto=format\&n=Y6MSfzF-TDZ89Tu0\&q=85\&s=cb9e0b39fb5beac73308809b8b5bb917) ### Data Troubleshooting Guide for End Users This template is meant to be used as a guideline for us to follow if we discover anything unusual about the data. The goal is that end users in Mixpanel are able to correctly identify whether there is an issue with the data or a misunderstanding in Mixpanel functionality, and if there is an issue, notify the appropriate team and individual. When we find something strange about the data, we can classify it as a **Mixpanel functionality question** or an **implementation issue**. Below are various examples of some common questions or issues that Mixpanel end users face - especially when they weren’t involved in the initial data design & implementation - and what can users do to troubleshoot * Is the property typecast to the wrong data type? * What does it mean that the property value is `(not set)`? * What are the properties available in each event? * Who should I talk to about reporting questions and Mixpanel UI misunderstandings? * Who should I report a data issue or bug to? [Data Troubleshooting Guide Example Here](https://mixpanel.com/project/3018488/view/3536632/app/boards#id=6664372) ![Data Troubleshooting Guide for End Users](https://mintcdn.com/mixpanel-edb78807/O5CFUc6kGJpeLxIg/images/ed65ef6a-b080-4aa8-a54b-598d8ac2f982.png?fit=max\&auto=format\&n=O5CFUc6kGJpeLxIg\&q=85\&s=0f24abc5d26af279219152aef78442ca) # Business Context Source: https://docs.mixpanel.com/docs/business-context Help your AI assistant understand your business Business Context is markdown text that AI assistants read through MCP to ground their answers in your organization's structure and goals. Add context at the organization level (who you are as a company) and at the project level (how a specific project is set up). When an AI assistant connected to your [Mixpanel MCP server](/docs/mcp) starts a session, it pulls the relevant business context first — so it knows your north star metric, what a "qualified user" means in your data, which project to default to, and the conventions your team uses. The result: less back-and-forth defining terms, more answers grounded in how you actually run your business. ## Levels of Context Mixpanel supports two levels of business context. AI assistants read whichever is relevant to the project they're working in. | Level | What to include | Who can edit | | - | - | - | | **Organization** | Company background, business model, north star metrics, customer segments, internal acronyms | Organization admins | | **Project** | Events, properties, naming conventions, key dashboards, team norms, default project hints | Project owners and admins | A typical setup uses both: org context tells the AI what business you're in, and project context tells it how this specific project tracks data. ## Edit Organization Context Organization-level context applies to every project in your org and is shared across everyone who connects via MCP. 1. **Open Organization Settings**, then go to **Settings → Org → AI Settings → Company Context**. 2. **Write your context** in the markdown editor. Aim for short, structured notes — what your business does, how you measure success, the language your team uses internally. 3. **Click Save.** The context becomes available to AI assistants on their next MCP session. ![Organization AI Settings page showing the Company Context option under Organization Context Documents](https://mintcdn.com/mixpanel-edb78807/p356OJWR_aYVIt6C/images/businessContextOrgSettingsAiSettings.png?fit=max\&auto=format\&n=p356OJWR_aYVIt6C\&q=85\&s=01cbd8c2a60624e2df995db5657ca7f9) > [!NOTE] > > Only **organization admins** can edit organization-level context. Other users in your org will see the context but won't be able to modify it. ## Edit Project Context Project-level context describes how an individual project is structured — its events, conventions, and the people working in it. 1. **Open the project** you want to add context to. 2. **Go to Settings → Project → AI Settings → Project Context**. 3. **Write your context** in the markdown editor. 4. **Click Save.** Project owners and admins, along with anyone assigned a Custom Role that includes the ability to edit project settings, can view and edit project context in Settings. Everyone else with project access has read-only access to it through the in-product Mixpanel AI or MCP. ## What to Include in Project Context Good project context covers what an AI assistant would otherwise have to guess at. Useful sections include: * **Product overview** — what the project tracks and the main user actions * **Event taxonomy** — naming conventions, what each major event represents * **Property conventions** — units, formats, what specific properties mean * **Key dashboards** — where to find canonical reports for common questions * **Team norms** — how you define active users, churned users, qualified leads, etc. * **Operating shortcuts** — "MCP usage data lives in the Infra Metrics project", "use the v2 cohort for marketing analyses" Keep it focused. AI assistants pull this context on every relevant request, so longer context means slower responses and higher token cost. ## Edit Context via MCP Any AI assistant connected to your [Mixpanel MCP server](/docs/mcp) can read and update business context using two tools: | Tool | Description | | - | - | | `Get-Business-Context` | Returns the business context for the organization, optionally combined with the context for a specific project. | | `Update-Business-Context` | Replaces the business context at the organization or project level. | Ask your AI assistant in plain language: * *"Add to project context: events prefixed with `srv_` are server-side. Client-side events have no prefix."* * *"Update org context to note that our north star metric is weekly active analyzers, not daily active users."* * *"What context do you have on this project? Suggest improvements based on what you've learned about the data so far."* ![Claude using the Get-Business-Context tool from the Mixpanel MCP integration to answer a question about which metrics to prioritize](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/businessContextMcpExample.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=7e99bde2c5969dc6d93f29dff949670f) > [!WARNING] > > Updating context via MCP performs a **full replace** — the new content overwrites whatever existed before. Other people on your team may have authored the current context, so always have your AI assistant confirm what's there before overwriting. > > `Update-Business-Context` will fail with a permission error if your account doesn't have edit access to the org or project you're updating. ## Limitations * **Markdown only** — context must be plain markdown text. Images, structured data, and links inside the context aren't fetched or rendered for the AI assistant. * **Full-replace updates** — `Update-Business-Context` overwrites the entire context at the level you target. There is no append or merge mode. * **Edit permissions** — organization context can only be edited by organization owners and admins. Project context can only be edited by project owners, admins, and custom roles with permission to edit project settings. Everyone with access can read organization context, including in Settings. Project context is readable by everyone with project access through the in-product Mixpanel AI or MCP, but viewing project context in Settings requires edit access to project settings. * **Size limit** — each context (organization and project) is capped at 50,000 characters. ## FAQ #### Who can read business context? Anyone in your organization with access to a project can read that project's context and the org context that applies to it through the in-product Mixpanel AI or MCP. Org context is also visible in Mixpanel Settings to everyone with access; viewing project context in Settings requires edit access to project settings. Permissions match your existing project permissions. #### Does business context get sent to my AI provider? Yes. When your AI assistant fetches business context via MCP, that content is sent to whichever AI provider you're using (Claude, ChatGPT, etc.) as part of the conversation. Avoid putting credentials, customer PII, or other sensitive information in your context. #### Can I generate project context automatically? Not yet from the in-product UI. For now, write context manually based on what your AI assistant most often needs to know about your project. #### How do I clear context? Either delete the text in the Settings editor and save, or ask your AI assistant to call `Update-Business-Context` with an empty string at the level you want to clear. #### How does Mixpanel Agent decide to use Organization or Project level context? Mixpanel Agent looks at both. Project context is meant to refine Organization context. If there are contradicting details in Project and Organization context, then Mixpanel Agent will give preference to Project context. If there are complementary details (e.g. Org defines terms, Project adds specifics), then the Agent uses both together. # Cohort Sync Source: https://docs.mixpanel.com/docs/cohort-sync Export Mixpanel cohorts to marketing, engagement, and ad platforms like Braze, Facebook Ads, and Google Ads, with one-time or dynamic syncs ## Overview Cohort Sync is a feature in Mixpanel that allows you to export dynamic groups of users (called [Cohorts](/docs/users/cohorts)) who meet specific behavioral or property-based criteria, to external tools and platforms. This enables you to seamlessly connect your analytics insights with marketing automation, engagement, and advertising platforms such as Braze, Facebook Ads, Google Ads, and more. With Cohort Sync, you can: * Automatically and continuously sync user cohorts to third-party destinations, ensuring that your external tools always have the most up-to-date audience segments. * Choose from various sync cadences, including one-time, scheduled (hourly or daily), and real-time syncs, depending on your use case and the requirements of the destination platform. * Use these synced cohorts for targeted messaging, re-engagement campaigns, lookalike audience creation, and personalized user experiences in downstream platforms. * Reduce manual effort and maintenance, as the sync process is automated and updates as users enter or exit the cohort in Mixpanel. The value of Cohort Sync lies in its ability to bridge analytics and action: you can quickly act on user insights by targeting the right users in the right channels, improving campaign effectiveness and operational efficiency. This integration is especially useful for marketing, product, and growth teams who want to leverage behavioral data for personalized outreach and engagement without manual data exports or engineering support ## Using Cohort Sync ### Establishing Connection Before you can use Cohort Sync to export Mixpanel cohorts, you must establish a connection between Mixpanel and your Cohort Sync destination. Mixpanel integrates natively with several third-party destinations (such as Segment and Braze). If you need to sync cohorts to a different destination, you can use Custom Webhooks to export cohort payloads to any destination of your choice. Refer to the Cohort Sync Destination Directory below for partner-specific setup guides, or use the Custom Webhooks guide to export cohorts to destinations without a native integration. > [card] [Cohort Sync Destinations Directory](/docs/cohort-sync/integrations) > [card] [Custom Webhooks](/docs/cohort-sync/webhooks) ### Initialize Cohort Sync Once a connection has been established between your Mixpanel project and your Cohort Sync destination/Webhooks, you can initialize a cohort sync export. The Destinations page is now the primary way to manage cohort syncs; the Lexicon flow is still available. > [tab] From the Destinations page (recommended) > > **1. Navigate to 'Data' in the nav bar and select 'Destinations'** > > **2. Find the connected destination in the list and click on it** > > **3. Click the 'Syncs' tab, then click 'Add Cohort Sync'** > > **4. Select the cohort you want to sync and configure the sync** > > Choose a one-time export or a recurring export. Learn more about the [types of syncs](/docs/cohort-sync/webhooks#sync). > [tab] From Lexicon > > **1. Navigate to Lexicon and select 'Cohorts' in the left-hand sidebar** > > **2. Click the "..." button next to the Cohort you want to sync, and select "Export to..."** > > **3. Select one of your connections to open the export modal** > > **4. Choose a one-time export or a recurring export** > > Learn more about the [types of syncs](/docs/cohort-sync/webhooks#sync). ## Limits > [!NOTE] > > Only customers on a paid plan can save cohorts; therefore, the cohort sync feature is available exclusively to paid plan customers. Each project is limited to 60 dynamic (recurring) cohort syncs across all destinations. This limit helps ensure that syncs are fast and reliable. We recommend pruning older unused syncs to stay within the limit. There are no limit on the number of cohorts for static, or 1-time, syncs. When exporting, each cohort is limited to 10 million users. We do this to keep syncs real-time and to avoid overloading downstream tools. If you exceed the limit, we recommend that you add a filter to the cohort to narrow the criteria, or break up the cohort into multiple cohorts and create multiple syncs. The exported user data is limited to the following properties: ```text theme={"system"} $distinct_id $first_name $last_name $partner_user_id $email $phone ``` If these properties are not present in your project, users might not be matched in the systems. If an integration partner doesn't use a property to match, it is dropped before ingestion. Please refer to the individual Cohort Sync Help Center pages for the behavior for specific partners. The email address and phone number properties will only show in the manual CSV exports for Google Ads and Facebook integrations. > [!NOTE] > > Exporting group-level cohorts (Group Analytics) is not currently supported. ## Troubleshooting Sometimes, you may find that the number of users shown in your cohort in Mixpanel does not reflect the number of users in the integration partner's interface. Please see below what could be causing this and how you can find out which users were successfully exported from Mixpanel. ### Discrepancies in user count If you see a discrepancy between the count of your users in a Mixpanel cohort and in the integration partner, the first thing to check is if all your users were eligible to be exported. To match users in both systems, we require a partner ID, e.g. `$braze_external_id` for Braze cohort exports. You can easily confirm this by querying for your cohort in the User report, then adding the filter `$braze_external_id` is set. This will show all eligible users that can be exported from Mixpanel to Braze. When accessing the "View in Explore" option, you will see the required partner ID added by default for the following integrations: ABTasty, Airship, Blitzllama, Braze, Clevertap, Flagship, Insider, Iterable, Kameleoon, LaunchDarkly, Leanplum, Moengage, OneSignal, Optimize, Pushwoosh, SalesforceMC, Segment, VWO, Xtremepush It is also added by default to any integration where the join key is not the \$distinct\_id. The added partner ID filter will show up as a [custom property](/docs/features/custom-properties) called "Defined Properties Required for Cohort Selection" whose properties will appear when hovering over the property: ![image](https://user-images.githubusercontent.com/13734965/233539618-3ac2c97e-d3fd-4c44-8dc3-847ecdfe50bb.png) ### Inspect exported cohorts via CSV download To find out which and how many users have been exported from your cohort to the integration partner, you can now download a CSV containing all users that have been exported. When accessing the cohort export overview by navigating to the integration in your Destinations page, then clicking on the cohort, you will be navigated to this overview: ![image](https://user-images.githubusercontent.com/13734965/233539646-5057fdb4-5c15-412a-8390-1bed8d44f136.png) You will find a summary of the total count of users exported and removed and a CSV download button. In the CSV, you can find the list of distinct\_ids of the users in the export and an operation column. This operation column can contain one of three values; add when the user profile was newly added to the cohort, remove when the user was removed from the cohort and no-op when the user remains in the cohort. In the column next to the distinct\_id, you will see the partner ID for that user. If the numbers between Mixpanel and the integration partner mismatch, you can confirm if a user has been exported by looking at the CSV file. ### Export is paused If you notice your cohorts are not being exported, you can view the reason for the pause in your Destinations page. When accessing the integration, you will see the status (either Active or Paused). If the status says Paused, you can hover over the Paused text to see the reason for the pause: ![image](https://user-images.githubusercontent.com/13734965/233539691-d36370b1-880a-4aa6-a64c-399175c02388.png) Some integrations have common pause reasons (e.g. [Facebook's authentication pause](/docs/cohort-sync/integrations/facebook-ads#troubleshooting-errors)). You can usually resolve the paused reason on your side by confirming the authorization for the integration is still valid, and dis- and reconnecting. ### View sync error To find more details on Failure errors, you can click in the Cohort within the Destinations page to display errors. 1. Under the integration section, select the cohort: ![image](https://user-images.githubusercontent.com/13734965/233539867-3bd94f9f-b50c-4939-9eb9-5879e0b2e8cf.png) 2. If an error is available, you will see the “View Error” button: ![image](https://user-images.githubusercontent.com/13734965/233539900-58b14423-bdfd-4fb7-98ff-17576d54a5d8.png) 3. Click on the “View Error” button to get more details. Currently the “View Error” button will only display if there is an error available. In the case that you do not see a “View Error” button but the sync did not finish successfully, you can reach out to the Support team to help get more details on the error. ### Delay in Sync If your recurring cohort syncs are taking more time than expected, we recommend creating multiple connections and spreading your syncs across them. Cohort syncs under one connection are executed in a sequential order; to increase parallelism, you should create multiple connections covering different types of sync. In general, if you see the cumulative user count of all cohorts synced under a connection breach \~5 million, we would recommend that you create a new connection. ![image](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/cohort_sync_delay.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=173ba5038757dce5de3736c0a50f5c06) # Partners: Build a Cohort Sync Integration with Mixpanel Source: https://docs.mixpanel.com/docs/cohort-sync/build-an-integration Partner guide to building a cohort sync integration with Mixpanel, covering sandbox setup, integration IDs, and API usage Building an integration with Mixpanel is a powerful way to provide value to your customers that also use Mixpanel. If your company is interested in becoming a Certified Technology Partner, building an integration is also the first step. ## Setting up a Sandbox Sign up for a [free Mixpanel account](https://mixpanel.com/pricing), which you can use as a sandbox when building and testing your integration. ## Create an Integration ID In order to properly understand API usage and provide you with resources as part of our Technology Partner Program, you must first define your **Integration ID** and pass it along when sending event data or calling Mixpanel’s APIs. Your Integration ID should be a string representing your company’s or solution’s name. If Mixpanel were a developer, our Integration ID would be “mixpanel”. Note: Always include your integration ID -- this will help customers better understand the source of their event data in Mixpanel. ### Event Tracking For event data, you will include your Integration ID as the `$source` property value. This can be added to the [Event Object](doc:data-model-deep-dive#anatomy-of-an-event) when using the [Ingestion API](/reference/ingestion-api): ```json theme={"system"} { “event”: “Sign up”, “properties”: { “distinct_id”: “123”, “time”: 1321499371, “$source”: “your_integration_id”, “token”: “” } } ``` ### API Usage If you choose to leverage our APIs for your integration, you must pass along your Integration ID with every API as the **X-Mixpanel-Integration-ID** header value. ```sh theme={"system"} curl --request GET \ --url https://mixpanel.com/api/app/projects/12345/schemas/event/my_event/1-0-0 \ --header ‘accept: application/json’ \ --header ‘X-Mixpanel-Integration-ID: your_integration_id’ ``` ## Integration Opportunities ### Connect to Mixpanel's EU Servers Give your customers the option to send data to [our EU servers](/reference/overview) when they activate your Mixpanel integration. ### Receive Cohort Syncs from Mixpanel Use this [webhook spec](/docs/cohort-sync/webhooks) to process inbound cohorts Mixpanel syncs to your product, allowing your customers to engage more effectively with the right users at the right time. **Note**: This spec is intended for partner SaaS companies looking to build integrations with Mixpanel. If you are yourself a Mixpanel customer looking to query on Cohorts, refer to the [cohorts query API](/reference/cohorts-list). ### Auto-populate Experiments If you are offering experiments or A/B tests to your customers, add support for [auto-populating our Experiments report](/docs/experiments) to your integration in order to reduce time-to-value for our mutual customers. ### Sync your Schemas Sync your internal data dictionary or tracking plan with Mixpanel using the [Lexicon Schemas API](/reference/lexicon-schemas-api). Schemas that you upload will be used to populate Lexicon and provide additional context for your data across the query UI. # Make your Integration Successful ### QA your Code For integrations sending events to Mixpanel, our [Events page](https://mixpanel.com/report/events) can be a great way to test if everything is working as expected. ### Document Your Integration Customer-facing documentation that explains, which use cases your integration helps to solve and how to set it up, will increase the utilization of your integration. ### Get Listed on mixpanel.com Finally, submit your integration to [create a listing](https://mixpanel.com/partners/integrations/get-listed/form) on our Integrations Directory and to let our customers discover your solution and the integration. # Destinations Source: https://docs.mixpanel.com/docs/cohort-sync/integrations Export your cohorts to a third-party tool > [!NOTE] > > This page highlights integrations that sends Mixpanel Cohorts to external destinations. Learn more about [integrations that imports data from other destinations into Mixpanel](/docs/tracking-methods/integrations) and [integrations that exports data from Mixpanel to data warehouses](/docs/data-pipelines/integrations/). These integrations allow you to send your [Cohorts](/docs/users/cohorts) to other destinations for audience targeting. You may review our complete integrations directory [here](https://mixpanel.com/partners/integrations). If you don't see what you're looking for [reach out to us](https://mixpanel.com/get-support). ## Featured Destinations > [card] [AB Tasty](/docs/cohort-sync/integrations/abtasty) > [card] [Airship](/docs/cohort-sync/integrations/airship) > [card] [Appcues](/docs/cohort-sync/integrations/appcues) > [card] [Apptimize](/docs/cohort-sync/integrations/apptimize) > [card] [Braze](/docs/cohort-sync/integrations/braze) > [card] [Chameleon](/docs/cohort-sync/integrations/chameleon) > [card] [CleverTap](/docs/cohort-sync/integrations/clevertap) > [card] [Facebook Ads](/docs/cohort-sync/integrations/facebook-ads) > [card] [Google Ads](/docs/cohort-sync/integrations/google-ads) > [card] [Insider](/docs/cohort-sync/integrations/insider) > [card] [Intercom](https://www.intercom.com/help/en/articles/299-import-your-mixpanel-contacts) > [card] [Iterable](/docs/cohort-sync/integrations/iterable) > [card] [Kameleoon](/docs/cohort-sync/integrations/kameleoon) > [card] [Leanplum](/docs/cohort-sync/integrations/leanplum) > [card] [Mailchimp](/docs/cohort-sync/integrations/mailchimp) > [card] [Marketo](/docs/cohort-sync/integrations/marketo) > [card] [MoEngage](/docs/cohort-sync/integrations/moengage) > [card] [mParticle](/docs/cohort-sync/integrations/mparticle) > [card] [OneSignal](/docs/cohort-sync/integrations/onesignal) > [card] [Salesforce Marketing Cloud](/docs/cohort-sync/integrations/salesforce-marketing-cloud) > [card] [Segment](/docs/cohort-sync/integrations/segment) > [card] [Taplytics](/docs/cohort-sync/integrations/taplytics) > [card] [VWO](/docs/cohort-sync/integrations/vwo) > [card] [WebEngage](/docs/cohort-sync/integrations/webengage) > [card] [Wingify](/docs/cohort-sync/integrations/wingify) > [card] [Xtremepush](/docs/cohort-sync/integrations/xtremepush) # AB Tasty Source: https://docs.mixpanel.com/docs/cohort-sync/integrations/abtasty Bidirectional data sync between Mixpanel cohorts and AB Tasty for targeted experimentation ## Overview The Mixpanel and AB Tasty integration provides a bidirectional data sync, allowing you to export Mixpanel cohorts to AB Tasty for precise experiment targeting and import AB Tasty experiment data into Mixpanel for comprehensive behavior analysis. This seamless exchange enhances your ability to analyze, segment, and personalize user experiences. ## Permissions To set up this integration, the following permissions are required: ### Mixpanel Permissions: * Service Account Access: You will need a Mixpanel Service Account with permissions to read and manage cohorts. * Project Token: Ensure you have access to the Mixpanel Project Token for the relevant project. ### AB Tasty Permissions: Admin Access: You need admin-level permissions in AB Tasty to configure and enable integrations. ## Enable the Integration ### Mixpanel Setup 1. Navigate to **Data** in the nav bar, then select **Destinations**. 2. Click **Add Destination**, select AB Tasty, and click Connect. 3. To set up the AB Tasty integration, you need to enter your account’s API Key. Copy and paste the API Key of your AB Tasty account. Click Continue. ### In AB Tasty 1. Access Integrations > Integration Hub. 2. Search for and select Mixpanel. 3. Click Setup connector. 4. Give a name to your connector so you can easily retrieve it. 5. Click Save and create connector. ## Export Cohorts from Mixpanel to AB Tasty To export the cohorts to AB Tasty, follow the steps below: > [tab] From the Destinations page (recommended) > > 1. Navigate to **Data** in the nav bar, then select **Destinations**. > 2. Find the AB Tasty destination in the list and click on it. > 3. Click the **Syncs** tab, then click **Add Cohort Sync**. > 4. Select the cohort you want to export and configure the sync (one-time or dynamic). Click **Start Sync**. > [tab] From Lexicon > > 1. Navigate to **Lexicon**, then select the **Cohorts** tab to view all of your cohorts. > 2. Select the cohort that you want to export. Click the three-dot icon on the right side of the cohort. > 3. Click Export to > AB Tasty. Select either one-time sync or dynamic sync. Click Start Sync. AB Tasty Documentation on cohorts exports from Mixpanel is [here](https://support.abtasty.com/hc/en-us/articles/7305491216924-Mixpanel) * Mixpanel sends the cohorts every 15 minutes in case of recurring exports * AB tasty pushes the abtasty\_visitor\_id to Mixpanel, and Mixpanel includes it in the cohort export. The abtasty\_visitor\_id is used to match the user. * For the cohorts to be used in AB Tasty’s segment builder (once exported from Mixpanel), we need to match at least one user i.e. empty cohorts will not be displayed in the segment builder. ## AB Tasty Events in Mixpanel Analyze your AB Tasty experiments in Mixpanel with a powerful, streamlined workflow. By creating two simple custom properties and configuring your project's Experiment Settings, you can access AB Tasty data in dropdowns, breakdowns, and experimentation reports. This one-time setup eliminates the need for complex, report-by-report data parsing and unlocks a more powerful and consistent way to measure the impact of your A/B tests. ### How AB Tasty Data Arrives When the integration is active, AB Tasty sends a single event to Mixpanel named `"Event"` for users exposed to a test. This event contains one property, `"AB Tasty"`, which holds a concatenated string of the campaign and variation IDs. For example: `[12345]My Homepage Test[67890]Variation B`. ### Step 1: Create Campaign and Variation Custom Properties Before configuring the Experiment Settings, you must first parse the campaign and variation names from the `"AB Tasty"` property into their own dedicated custom properties. Navigate to **Lexicon** in your Mixpanel project and create the two custom properties below. #### A. Campaign Custom Property ![Screenshot 2025-06-17 at 1 49 40 PM](https://github.com/user-attachments/assets/add85567-80d5-4a11-b05c-0934a5365b28) This property uses a REGEX function to extract the campaign name. 1. **Create a new Custom Property.** 2. Name it. `AB Tasty Campaign Name` is recommended, but the name does not need to exactly match this format. 3. Use the following formula: ```text theme={"system"} REGEX_EXTRACT(properties["AB Tasty"], "^\\[\\d+\\](.*?)(?=\\[\\d+\\])", 1) ``` 4. **Save** the property. > **How it works:** This formula reads the `"AB Tasty"` property and extracts only the text that exists *between* the first and second ID brackets (e.g., `[12345]` and `[67890]`). #### B. Variation Custom Property ![Screenshot 2025-06-17 at 1 49 16 PM](https://github.com/user-attachments/assets/fd48158a-a436-48bc-9d2b-f4cb9931f2e6) This property uses a nested SPLIT function to isolate the variation name. 1. **Create another new Custom Property.** 2. Name it. `AB Tasty Variant Name` is recommended, but the name does not need to exactly match this format. 3. Use the following formula: ```text theme={"system"} SPLIT(SPLIT(properties["AB Tasty"], "[", 3), "]", 1) ``` 4. **Save** the property. > **How it works:** This formula first splits the full string by the `[` character to isolate the end of the string, and then splits that result by the `]` character to capture only the variation name. ### Step 2: Configure Project Experiment Settings With your Custom Properties created, you can now tell Mixpanel how to recognize your AB Tasty experiments. ![image](https://github.com/user-attachments/assets/4384ed79-79d8-4035-8ffe-35550a0835e1) 1. Navigate to your **Project Settings**. 2. Scroll to the **Experiment Event Settings** section. 3. Define the mapping for your AB Tasty experiments: * **Experiment Event**: Select the `"Event"` event. * **Experiment Name**: Map this to your new custom property, `AB Tasty Campaign Name`. * **Variant Name**: Map this to your new custom property, `AB Tasty Variation Name`. 4. **Save** your settings. ### The Result: Powerful, Automated Analysis Once saved, Mixpanel will automatically process all incoming AB Tasty data according to your settings. You can now analyze your experiments without any further configuration. This provides several key advantages: * No more ad-hoc filtering or complex formulas in your reports. * Consistent, reliable analysis across all of your AB Tasty experiments. * Unlock the full power of Mixpanel's Experimentation features, including significance testing and impact on multiple goals. # Airship Source: https://docs.mixpanel.com/docs/cohort-sync/integrations/airship The Airship integration with Mixpanel allows users to export Mixpanel cohorts into Airship ## Overview The Airship integration with Mixpanel allows users to export Mixpanel cohorts into Airship. This updates the Mixpanel Tag Group in Airship, allowing you to target specific Mixpanel cohorts using Airship. Mixpanel cohorts can be exported to the Airship Tag Group once, or the cohort data can sync dynamically and update the Tag Group every 15 minutes. ## Permissions You must be a Mixpanel project admin to enable the Airship integration. If the setting below is enabled in Airship, you will see the error "Master secret required to set tags on Tag Group mixpanel" in Mixpanel. Work with Airship to disable this setting so Mixpanel can update the Airship tag group. ![Airship 1 Image](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/airship1.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=dd592aaca14abe30565a5776b7e1381d) ## Enable the Integration In order to integrate Airship with Mixpanel for anonymous mobile audience identification, you will first need to install both the [Airship SDK](https://docs.urbanairship.com/platform/) and Mixpanel SDK in your application. Once you have done so, follow these steps: 1. Navigate to **Data** in the nav bar, then select **Destinations**. Click **Add Destination**, then select Airship and enter the [Airship All Access Token and App Key](https://docs.airship.com/guides/messaging/user-guide/project/bearer-tokens/), which allows Mixpanel to send data to the correct Airship project. 2. Create a cohort in Mixpanel. 3. Create a Mixpanel [Tag Group within Airship](https://docs.urbanairship.com/guides/tag-groups-walkthrough/#tg-create-tag-group). **For this Integration, we require that you create a Tag Group Key called "mixpanel". Note that Tag Group Keys are case sensitive.** 4. Export the Cohort from Mixpanel, at which time Mixpanel will wait for a callback to ensure that the request to Airship was received. * A **one-time export** will add the new Airship tag to all users in the Mixpanel cohort at the time of the export. The new tag will be visible in Airship. * A **dynamic sync** will add or remove a tag for users in the cohort every 15 minutes until the sync is disconnected. This means that every 15 minutes, the tag in Airship will update to reflect the current status of the Mixpanel cohort. ## How does Mixpanel export data to Airship? **For one-time exports:** Mixpanel will send a static export of users who currently qualify for the cohort. This is exported to Airship as a Tag Group that allows you to create an audience to target users. You will be able to name the Tag Group that appears in Airship. These names will only be added to the Tag Group with the Group Key called “mixpanel” (Group Keys are case sensitive). *It is not recommended to use the same tag name for two static exports, as users who qualified at each time of export will be included in the tag within Airship.* **For dynamically syncing exports:** Every 15 minutes, Mixpanel will initiate a sync between the Mixpanel cohort and the Airship tag. At the time of the sync, Mixpanel will add the tag for newly-qualified users, and remove the tag for users who have exited the cohort. Users can move into and out of the cohort depending on if they meet the cohort criteria. Note that these tags only apply to the “mixpanel” Tag Group Key, which must be created within Airship. ## How are users matched between Airship and Mixpanel? > **Warning:** Projects using the [simplified ID merge system](/docs/tracking-methods/id-management#identity-merge-apis) must have the \$user\_id in Mixpanel match the user identifier in the partner service. Using any alternative partner properties to match users between tools may result in partner events not being attributed to the correct user in Mixpanel. Any partner properties mentioned in the below section are primarily applicable to projects on the original ID merge system. Users are matched between Airship and Mixpanel using the [Airship channel id](https://docs.airship.com/guides/airship/user-guide/channels-intro/#channel-ids). This value must be set as a Mixpanel user property named `$ios_urban_airship_channel_id` for iOS users or `$android_urban_airship_channel_id` for Android users. These values must match with the Airship channel id. The recommendation would be to insert code after the user authenticates that sends a `people.set` operation to the `$android_urban_airship_channel_id` and `$ios_urban_airship_channel_id` properties respectively as string values, so they are stored in the Mixpanel profile. This could be when they sign up (or just log in if they already had an account). By setting the property each time the user authenticates you would ensure users who have signed up previous to this code changes also have it. > **Note:** SDK versions older than Android v5.9.6, Swift: v2.10.4, and Objective-C: v3.9.2 automatically created these properties. This has since been removed in favor of them being set according to your user's flow. **Additionally**, exports will send all user profiles to match against [Airship's Named User system](https://docs.airship.com/guides/messaging/user-guide/audience/segmentation/named-users/), which handles cross-platform identification. If you would like to specify a value to match a Mixpanel user profile to a Named User, **you must add a user property, `$airship_named_user`**, which will be sent to attempt matching (note you must set this value, the Airship SDK will not automatically declare it). Users without `$airship_named_user` user properties will instead have their distinct\_id sent to Airship's Named User system - this route is intended for implementations where the same identifier value is used for both distinct\_id (Mixpanel) and named\_user\_id (Airship). Note that for customers using identity merge, Mixpanel will send the [canonical distinct ID](https://help.mixpanel.com/hc/en-us/articles/360041039771-Getting-Started-with-Identity-Management#individual-users), which may change over time. To ensure a consistent identifier is sent to Airship's Named User system, add the `$airship_named_user` property to the user's profile. ## Sending Mixpanel Cohorts to Airship To export cohorts to Airship, follow the steps below: > [tab] From the Destinations page (recommended) > > 1. Navigate to **Data** in the nav bar, then select **Destinations**. > 2. Find the Airship destination in the list and click on it. > 3. Click the **Syncs** tab, then click **Add Cohort Sync**. > 4. Select the cohort you want to export and enter the Airship Tag under which the export should be saved. Configure the sync and click **Save**. > [tab] From Lexicon > > 1. Navigate to **Lexicon**, then select the **Cohorts** tab to view all of your cohorts. > 2. Select your cohort and click **Export to... > Airship**. > > ![Airship 2 Image](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/airship2.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=36b8a0035726016d3b96bb021b9ec628) > > 3. Enter the Airship Tag under which the export should be saved. Click **Save**. ![Airship 3 Image](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/airship3.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=0f0661e135417bc1d9566a9f8839f5ff) 4. The tag will now be available for targeting within Airship. ![Airship 4 Image](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/airship4.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=56ed340047906264ba5f78833b861a79) ## FAQ ### Why does my Mixpanel Cohort display more users than in Airship? In order for a user to be exported to Airship, the user must have the necessary property set on the user profile. These properties are `$ios_urban_airship_channel_id`, `$android_urban_channel_id`, or `$airship_named_user`. ### Is there a limitation to the number of profiles that can be exported to Airship? 15 million profiles is the maximum number of profiles that can be exported to Airship. ### Airship Events into Mixpanel & MTU Exemptions You can export events from your Airship integration to Mixpanel to perform deeper analysis. For detailed instructions on how to do this, please refer to [Airship's integration documentation](https://docs.airship.com/partners/mixpanel/#set-up-a-mixpanel-rtds-integration-in-airship). Events coming from Airship are marked with the property `$source` to denote the source product. Mixpanel will exempt certain messaging outreach events from [MTU calculations](https://help.mixpanel.com/hc/en-us/articles/360001465686-Billing-for-Monthly-Tracked-Users#monthly-tracked-users-calculation), meaning you're free to send campaigns to dormant users without them counting towards MTU billing (only once a user engages with a message will they then be counted towards that tally). The following events are exempt from MTU calculations: * Airship Email Bounce * Airship Email Delay * Airship Email Delivery * Airship In-App Message Display * Airship Rich Delivery * Airship Send * Airship Send Rejected * Airship Unsubscribe * Airship SMS Delivered * Airship Email Injection # Appcues Source: https://docs.mixpanel.com/docs/cohort-sync/integrations/appcues Export Mixpanel cohorts to Appcues as custom segments for targeting flows, surveys, and walkthroughs ## Overview Export Mixpanel cohorts to Appcues to create custom segments that you can apply in your Appcues flows, surveys, and walkthroughs. Manage the Appcues integration from the Mixpanel Destinations page. Appcues also supports an integration to send messaging interactions to Mixpanel - for more details, see [the Appcues Mixpanel integration](https://docs.appcues.com/article/447-integrations-list#Mixpanel). ## Permissions You must be a Mixpanel project admin to enable the Appcues integration. ## Enable the Integration Follow these steps to enable the integration with Appcues: 1. Navigate to **Data** in the nav bar, then select **Destinations**. 2. Click **Add Destination**, select Appcues, and click **Connect**. ![Appcues 2 Image](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/appcues2.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=8e5be276421ed0aa804860869e8b753c) 3. The connection uses one credential to authorize, API Key. Supply an **API token** generated from your **Appcues settings page** to establish the connection. 4. The Appcues integration will show a **Connected** tag in the UI once the connection establishes. ## Matching Users between Appcues and Mixpanel Mixpanel only exports identified user profiles (users with at least 1 set profile properties) to match to Appcues - users without user profiles (i.e. anonymous users) will not export. The integration requires that you use the same system of identifiers for both tools, meaning the value you pass to `mixpanel.identify("internal_user_id")` will have the same value as you pass to `appcues.identify("internal_user_id")`. Appcues will attempt to match users from inbound cohorts based on their Mixpanel distinct\_id. ## Export a Cohort > [tab] From the Destinations page (recommended) > > 1. Navigate to **Data** in the nav bar, then select **Destinations**. > 2. Find the Appcues destination in the list and click on it. > 3. Click the **Syncs** tab, then click **Add Cohort Sync**. > 4. Select the cohort you want to export and configure the sync (one-time or dynamic). Click **Start Sync**. > [tab] From Lexicon > > 1. Navigate to **Lexicon**, then select the **Cohorts** tab to view all of your cohorts. > 2. Select the cohort that you want to export. Click on the three-dot icon on the right side of the cohort. > 3. Click Export to > Appcues. Select either one-time sync or dynamic sync. Click **Start Sync**. > > ![Appcues 3 Image](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/appcues3.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=baaa67ba0d4964704db6ee0366e5d984) ## Sync Types This integration supports two types of exports: one-time export and dynamic sync. When you generate a one-time export or dynamic sync, it overwrites the previous export with an updated export that reflects users who qualify for the cohort at the time of export. ### One-Time Export In a one-time export, Mixpanel sends Appcues a static export of users who currently qualify for the cohort. The cohort data will not be updated in Appcues after a one-time export. ### Dynamic Sync In dynamic sync, Mixpanel initiates sync between a cohort and Appcues every two hours. The exported cohort will be updated every day to reflect the most recent list of users in a cohort. ## Ideal vs. Non-Recommended Use Cases Because Dynamic syncs send cohorts at two-hour intervals, it is recommended to **avoid** using this integration for any tours requiring immediate identification and display (for example, onboarding guides that require user detection as soon as someone signs up). Appcues native targeting is still the preferred method in scenarios such as these. More ideal use cases are instead around tours and surveys where the tour isn't tied to a real-time lifecycle moment (for example, getting easy in-product feedback after engaging with a particular feature, or directing a power user to a new product improvement for a feature they have a history of using). ## Select the Segment in Appcues Once the export completes, you will see a Segment reflecting the set of users from your Mixpanel cohort in the Appcues Segment tab, under Custom Properties in the dropdown (e.g. "Volume Buyers"): ![Appcues 4 Image](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/appcues4.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=7b53d0a27ea54e24b21a5d57134d7781) ## Appcues events into Mixpanel Appcues offers the ability to forward tour interaction events to Mixpanel. For more detail, [please refer to the Appcues integration guide](https://docs.appcues.com/article/447-integrations-list#Mixpanel). # Apptimize Source: https://docs.mixpanel.com/docs/cohort-sync/integrations/apptimize Export Mixpanel cohorts to Apptimize groups for targeting, as a one-time export or a sync that updates every 15 minutes ## Overview The Apptimize integration allows users to export Mixpanel cohorts into Apptimize groups, allowing you to target specific users using Apptimize. Mixpanel cohorts can be exported to Apptimize one time, or sync and update every 15 minutes. ## Permissions You must be a Mixpanel project admin to enable the Apptimize integration. ## Enable the Integration Follow these steps to enable the integration with Apptimize: 1. Navigate to **Data** in the nav bar, then select **Destinations**. 2. Click **Add Destination**, select Apptimize, and click **Connect**. ![Apptimize 2 Image](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/apptimize2.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=7b3c64e6006810503e3f3a98d005b931) 3. You will need to provide an Apptimize Token (generated from the Apptimize dashboard) to authorize the connection. To generate an Apptimize token, go to the Tokens page on Apptimize Dashboard and click “New Token”. Give the token a memorable name and click Generate. ![Apptimize 3 Image](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/apptimize3.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=c397e03f727726409d1b0c9d474eca8f) 4. Use the Apptimize token to authorize the Mixpanel integration. ## Matching Users between Apptimize and Mixpanel > **Warning:** Projects using the [simplified ID merge system](/docs/tracking-methods/id-management#identity-merge-apis) must have the `$user_id` in Mixpanel match the user identifier in the partner service. Using any alternative partner properties to match users between tools may result in partner events not being attributed to the correct user in Mixpanel. Any partner properties mentioned in the below section are primarily applicable to projects on the original ID merge system. Mixpanel only exports identified user profiles (users with at least 1 set profile properties) to match to Apptimize - users without user profiles (i.e. anonymous users) will not export. The exported users are properly mapped in Apptimize automatically by the integration through the setting of `$apptimize_user_id` user property. This property is set automatically when both the Apptimize and Mixpanel SDKs are installed on the client. In addition, when our ingestion service detects calls setting this user property, Mixpanel will also auto-alias the value of `$apptimize_user_id` to the user's distinct\_id. This ensures that experiment data passed from Apptimize to Mixpanel still attributes to the correct user. > **Note:** Mixpanel users can be associated with Apptimize users manually by setting the \$apptimize\_user\_id in Mixpanel with the Apptimize.getPartnerID method available in the Apptimize SDK. Do this if ThirdPartyImporting is disabled in Apptimize or when using the Mixpanel Swift SDK, which does not support ThirdPartyImporting. It is important to note that the Apptimize.getParterID will return a modified variation of the customer user ID by prefixing "i\_" or "a\_" to represent if the ID is identified or anonymous, and will allow Apptimize to properly match users from Mixpanel cohorts. ## Export a Cohort > [tab] From the Destinations page (recommended) > > 1. Navigate to **Data** in the nav bar, then select **Destinations**. > 2. Find the Apptimize destination in the list and click on it. > 3. Click the **Syncs** tab, then click **Add Cohort Sync**. > 4. Select the cohort you want to export and configure the sync (one-time or dynamic). Click **Start Sync**. > [tab] From Lexicon > > 1. Navigate to **Lexicon**, then select the **Cohorts** tab to view all of your cohorts. > 2. Select the cohort that you want to export. Click on the three-dot icon on the right side of the cohort. > 3. Click Export to > Apptimize. Select either one-time sync or dynamic sync. Click Start Sync. ## Sync Types This integration supports two types of exports: one-time export and recurring syncs. When you generate a one-time export or recurring sync, it overwrites the previous export with an updated export that reflects users who qualify for the cohort at the time of export. ### One-Time Export In a one-time export, Mixpanel sends Apptimize a static export of users who currently qualify for the cohort. The cohort data will not be updated in Apptimize after a one-time export. ### Recurring Sync In recurring sync, Mixpanel initiates sync between a cohort and Apptimize every 15 minutes. The exported cohort will be updated every fifteen minutes to reflect the most recent list of users in a cohort. ## Observe the Audience in Apptimize Once the export completes, you will see your cohorts appear in your Apptimize Groups page. ![Apptimize 4 Image](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/apptimize4.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=e0be2677e3d0a536be7a9c600d81816b) # Braze Source: https://docs.mixpanel.com/docs/cohort-sync/integrations/braze The Mixpanel Braze integration exports Mixpanel Cohorts into Braze ## Overview The Mixpanel Braze integration exports Mixpanel Cohorts into [Braze](https://www.braze.com/). This allows you to send Braze campaign messages to targeted cohorts that are created in Mixpanel. You can also send your Braze events into Mixpanel to apply deeper analysis. ## Permissions You must be a Mixpanel project admin to enable the Braze integration. ### Required Credentials In order to set up the integration, you must use a Data Import Key and a Braze Instance URL to connect a Mixpanel instance with a Braze instance. A Braze project stores the Data Import Key and Braze Instance URL. You can find these two values in from within Braze. [Use the Braze documentation to learn how to obtain the Key and URL](https://www.braze.com/docs/partners/data_and_infrastructure_agility/analytics/mixpanel_for_currents/). ## Set Up the Integration Enter the Mixpanel project where the integration is to be performed, then: 1. Navigate to **Data** in the nav bar, then select **Destinations**. 2. Click **Add Destination**, then select **Braze**. Click **Connect**. > [!NOTE] > > If you set a User ID Property, it should be a Mixpanel user property that matches the Braze External ID. If you do not select one, Mixpanel will default to using the `$braze_external_id` property to match users between Braze and Mixpanel. See more about [matching users between Braze and Mixpanel](/docs/cohort-sync/integrations/braze#matching-mixpanel-and-braze-users). ![Braze 2 Image](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/braze2.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=dd13177f8cb39ad1e92c4c7f5f59c1d3) If you've set up a Connection already, you have the option of reconnecting the existing Connection. ![Braze 3 Image](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/braze3.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=ca7485a7e8fe9f64aaa2a5a220a4b1cb) You also have the option of adding a new Connection by clicking the dropdown on the left hand side of the row, and clicking "**+ Add Connection**". ![Braze 4 Image](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/braze4.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=7e8e1df9e70d12205cd155913d5caf44) 3. Enter the Data Import Key and select a Braze Instance. Note Braze hosts their application on [multiple clusters throughout the US and EU](https://www.braze.com/docs/partners/isv_partners/cohort_import/). ![Braze 5 Image](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/braze5.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=7ef8687ffec2d6381357249f52d19299) 4. Click **Continue** to complete the process. ## Export a Mixpanel Cohort to Braze To export a Mixpanel cohort, you must create a cohort. To export a Mixpanel cohort to Braze: > [tab] From the Destinations page (recommended) > > 1. Navigate to **Data** in the nav bar, then select **Destinations**. > 2. Find the Braze destination in the list and click on it. If you have multiple Connections, they will be differentiated by the Connection Name. > 3. Click the **Syncs** tab, then click **Add Cohort Sync**. > 4. Select the cohort to send to Braze and configure the sync (One-time export or Dynamic sync). Click **Begin Sync**. > [tab] From Lexicon > > 1. Navigate to **Lexicon**, then select the **Cohorts** tab to view all of your cohorts. > > ![Braze 6 Image](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/braze6.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=4351c2abbff360c99953dcefe9d05aa4) > > 2. Select the cohort to send to Braze. Select **Export to Braze**. If you have multiple Connections, they will be differentiated by the Connection Name in the parentheses after the Integration Name. > > ![Braze 7 Image](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/braze7.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=0ea5f79f9b16d291d4c2099ad9342fc1) > > 3. Select a One-time export or a Dynamic sync. Click Begin Sync. > > ![Braze 8 Image](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/braze8.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=2402598064f416ff1a1b137a0ce4b0f2) ## Use the Mixpanel Cohort to Create a Segment in Braze A new Braze segment can be built using a Mixpanel cohort after exporting a cohort from Mixpanel to Braze. In order to build a Braze Segment after importing a cohort: 1. Select **Segments** tab under **Engagement**. ![Braze 9 Image](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/braze9.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=28a4b244f19e79ea69c388502e099bcc) 2. Click **Create Segment**. ![Braze 10 Image](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/braze10.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=083b19c995e3436f9cf10f57ed4d57cf) 3. After naming the Segment, click Select Filter from the dropdown. ![Braze 11 Image](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/braze11.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=7d1e61615b20801cdd0f77365b2fb927) 4. Select "Mixpanel Cohorts". ![Braze 12 Image](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/braze12.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=bcfd6767526984c2a91baecaae1c0088) 5. Select the “includes” value from the dropdown. Click **Search for a value** from the dropdown. ![Braze 13 Image](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/braze13.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=1708f0975ce6240722c37cd9fc64a4a2) 6. The exported Mixpanel cohort is visible in the dropdown. Select the cohort. ![Braze 14 Image](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/braze14.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=60828f58e6636aef1968180845df7a43) 7. Click Save. ## Matching Mixpanel and Braze Users > [!WARNING] > > **Warning:** Projects using the [Simplified ID merge system](/docs/tracking-methods/id-management#identity-merge-apis) must have the `$user_id` in Mixpanel match the user identifier in the partner service. Using any alternative partner properties to match users between tools may result in partner events not being attributed to the correct user in Mixpanel. Any partner properties mentioned in the below section are primarily applicable to projects on the original ID merge system. In order to match Mixpanel users to ones on Braze's end, the user in Mixpanel should have a profile property named \$braze\_external\_id with the value you have assigned in Braze to the same user as [external\_user\_id](https://www.braze.com/docs/developer_guide/platform_integration_guides/legacy_sdks/ios/analytics/setting_user_ids/#suggested-user-id-naming-convention). The recommendation would be to insert code after the user authenticates that sends a `people.set` operation to the `$braze_external_id` property with the string value so it is stored in the Mixpanel profile. This could be when they sign up (or just log in if they already had an account). By setting the property each time the user authenticates you would ensure users who have signed up previous to this code changes also have it. If you are planning to also enable sending engagement events from Braze to Mixpanel, and the Braze external\_user\_id differs from the user\_id you identify the user with in Mixpanel, you can also alias the Braze external\_user\_id to the distinct\_id you identify users with after they authenticate. Often times, you use the same user ID for both the external\_user\_id in Braze, and the ID you identify with in Mixpanel, so in that case, aliasing would not be needed. > [!NOTE] > > SDK versions older than Android v5.9.6, Swift: v2.10.4, and Objective-C: v3.9.2 automatically created both the profile property and the alias mentioned above. This has since been deprecated due to possible ID management issues in some use cases, so on the SDK versions cited (or above), you should set the `$braze_external_id` profile property and alias when applicable. ## Braze Events into Mixpanel & MTU exemptions You can export events from your Braze integration to Mixpanel to perform deeper analysis. For detailed instructions on how to do this, please refer to [Braze’s Technology Partner’s documentation](https://www.braze.com/docs/partners/data_and_infrastructure_agility/analytics/mixpanel_for_currents/). Events coming from Braze are marked with the property `$partner_id`. Mixpanel will exempt certain messaging outreach events from MTU calculations, meaning you're free to send campaigns to dormant users without them counting towards MTU billing (only once a user engages with a message will they then be counted towards that tally). The following events are exempt from MTU calculations: * Canvas Entry * Email Send * Email Delivery * Email Bounce * Email Soft Bounce * Email Mark As Spam * Email Unsubscribe * Push Notification Send * Push Notification Bounce * Webhook Send * SMS Send * SMS Delivery * SMS Delivery Failure * SMS Rejection * SMS Send to Carrier ## Comparing Metrics Braze can be configured to push events to Mixpanel on actions ([review full list of events on Braze's docs](https://www.braze.com/docs/partners/data_and_infrastructure_agility/analytics/mixpanel_for_currents/#supported-currents-events)). A consideration to have is that both platforms can present measurements in different ways (although it's based on the same underlying data). For uniques specially, on the Mixpanel side, this is calculated based on the unique distinct\_id values (unique user IDs) that the events are related to. This can differ on Braze; as an example, unique email opens are measured on the unique number of users/devices that opened the message on a 7-day range (so a user opening the email twice, 2 weeks apart could be considered 2 uniques). You can reference Braze's calculations [on their docs](https://www.braze.com/docs/user_guide/message_building_by_channel/email/reporting_and_analytics/analytics_glossary#:~:text=The%20total%20number%20of%20delivered%20emails%20that%20have%20been%20opened%20by%20a%20single%20user%20or%20machine%20at%20least%20once.%20This%20is%20tracked%20over%20a%207%20day%20period%20for%20Email) to understand the differences you can see in reporting. # Chameleon Source: https://docs.mixpanel.com/docs/cohort-sync/integrations/chameleon Export Mixpanel cohorts to Chameleon to create custom segments for tours and surveys ## Overview Export Mixpanel cohorts to Chameleon to create custom segments that you can apply in your Chameleon tours, surveys, and launchers. Manage the Chameleon integration from the Mixpanel Destinations page. Chameleon also supports an integration to send messaging interactions to Mixpanel - for more details, see [Chameleon's Mixpanel integration](https://help.trychameleon.com/en/articles/1349054-mixpanel-integration-user-guide). ## Permissions You must be a Mixpanel project admin to enable the Chameleon integration. ## Enable the Integration Follow these steps to enable the integration with Chameleon: 1. Navigate to **Data** in the nav bar, then select **Destinations**. 2. Click **Add Destination**, select Chameleon, and click **Connect**. ![Chameleon 2 Image](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/chameleon2.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=36c022c69fdbfb1c1dbe7d7995b66f7e) 3. The connection uses one credential to authorize, "API Key". Supply an API key generated from the [Mixpanel-specific integration page within your Chameleon dashboard](https://app.trychameleon.com/settings/integrations/mixpanel) to establish the connection. 4. The Chameleon integration will show a **Connected** tag in the UI once the connection establishes. ## Matching Users Between Chameleon and Mixpanel Mixpanel only exports identified user profiles to match to Chameleon - users without user profile properties (i.e. anonymous users) will not export. The integration requires that you use the same system of identifiers for both tools, meaning the value you pass to `mixpanel.identify("internal_user_id")` will have the same value as you pass to `chmln.identify("internal_user_id")`. Chameleon will attempt to match users from inbound cohorts based on their Mixpanel distinct\_id. ## Export a Cohort > [tab] From the Destinations page (recommended) > > 1. Navigate to **Data** in the nav bar, then select **Destinations**. > 2. Find the Chameleon destination in the list and click on it. > 3. Click the **Syncs** tab, then click **Add Cohort Sync**. > 4. Select the cohort you want to export and configure the sync (one-time or dynamic). Click **Start Sync**. > [tab] From Lexicon > > 1. Navigate to **Lexicon**, then select the **Cohorts** tab to view all of your cohorts. > 2. Select the cohort that you want to export. Click on the three-dot icon on the right side of the cohort. > 3. Click Export to > Chameleon. Select either one-time sync or dynamic sync. Click **Start Sync**. > > ![Chameleon 3 Image](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/chameleon3.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=3f7263c5c3754e6c0a0c7b8a7df2ce5a) ## Sync Types This integration supports two types of exports: one-time export and dynamic sync. When you generate a one-time export or dynamic sync, it overwrites the previous export with an updated export that reflects users who qualify for the cohort at the time of export. ### One-Time Export In a one-time export, Mixpanel sends Chameleon a static export of users who currently qualify for the cohort. The cohort data will not be updated in Chameleon after a one-time export. ### Dynamic Sync In dynamic sync, Mixpanel initiates sync between a cohort and Chameleon every two hours. The exported cohort will be updated every day to reflect the most recent list of users in a cohort. ## Ideal vs. Non-Recommended Use Cases Because Dynamic syncs send cohorts at two-hour intervals, it is recommended to **avoid** using this integration for any tours requiring immediate display and instead use Chameleon's native targeting (for example, onboarding guides that require user detection as soon as someone signs up). More ideal use cases are instead around tours and surveys where the tour isn't tied to a real-time lifecycle moment (for example, getting easy in-product feedback after engaging with a particular feature, or directing a power user to a new product improvement for a feature they have a history of using). ## Select the Segment in Chameleon Once the export completes, you will see a Segment reflecting the set of users from your Mixpanel cohort in the Chameleon Segment tab (via the builder), selecting for "Mixpanel Cohorts" as the Segment filter (e.g. "Users who haven't hit a Value Moment"): ![Chameleon 4 Image](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/chameleon4.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=aa7e90d18c042d938e8928e6dffb0938) ## Chameleon events in Mixpanel Chameleon offers the ability to forward tour interaction events to Mixpanel. For more detail, [please refer to Chameleon's integration guide](https://help.trychameleon.com/en/articles/1349054-mixpanel-integration-user-guide). # CleverTap Source: https://docs.mixpanel.com/docs/cohort-sync/integrations/clevertap Export Mixpanel cohorts to CleverTap as custom segments for targeting campaigns and journeys ## Overview Export Mixpanel cohorts to CleverTap to create custom segments that you can apply in your CleverTap campaigns and journeys. Manage the CleverTap integration from the Mixpanel Destinations page. CleverTap also supports an integration to send events data to Mixpanel - for more details, [see the CleverTap Mixpanel integration](https://docs.clevertap.com/docs/mixpanel-export). ## Permissions You must be a Mixpanel project admin to enable the CleverTap integration. ## Enable the Integration To enable the integration with CleverTap: 1. Navigate to **Data** in the nav bar, then select **Destinations**. 2. Click **Add Destination**, select CleverTap, and click **Connect**. ![CleverTap 2 Image](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/clevertap2.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=eaf875382efcfe923e228c122481658a) 3. Specify a **Connector Name** and enter the CleverTap **Project ID**, **Passcode**, and **Data center** details to authorize the connection. 4. You can optionally select the user properties to export by clicking on the ***Edit Columns*** and selecting the user properties you wish to be included in the export. The default user properties that are exported can be found [here](/docs/cohort-sync#limits). 5. The CleverTap integration will show a **Connected** tag in the UI once the connection establishes. ## Matching Users between CleverTap and Mixpanel Mixpanel only exports identified user profiles to match to CleverTap - users without user profile properties (i.e. anonymous users) will not be exported. It is recommended to set a `$CleverTap_user_id` user property with the ID that you use to identify users in Mixpanel. CleverTap will use this property as the first option to match user profiles in CleverTap and include them in the segments. For more information on how CleverTap matches exported cohorts from Mixpanel, refer to [CleverTap's User Identity Management](https://docs.clevertap.com/docs/mixpanel-integration#user-identity-management). In addition, when our ingestion service detects calls setting this user property, Mixpanel will also auto-alias the value of `$CleverTap_user_id` to the user's distinct\_id. This ensures that messaging and experiment data passed from CleverTap to Mixpanel still attributes to the correct user. ## Export a Cohort To export a Cohort to CleverTap: > [tab] From the Destinations page (recommended) > > 1. Navigate to **Data** in the nav bar, then select **Destinations**. > 2. Find the CleverTap destination in the list and click on it. > 3. Click the **Syncs** tab, then click **Add Cohort Sync**. > 4. Select the cohort you want to export and configure the sync (one-time or dynamic). Click **Start Sync**. > [tab] From Lexicon > > 1. Navigate to **Lexicon**, then select the **Cohorts** tab to view all of your cohorts. > 2. Select the cohort that you want to export. Click on the three-dot icon on the right side of the cohort. > 3. Click **Export to > CleverTap**. Select either one-time sync or dynamic sync. Click **Start Sync**. ![CleverTap 3 Image](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/clevertap3.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=b6d6bac346dd57317954f500e272cf78) ## Sync Types This integration supports two types of exports: one-time export and recurring sync. When you generate a one-time export or recurring sync, it overwrites the previous export with an updated export that reflects users who qualify for the cohort at the time of export. ## Select the Segment in CleverTap Once the export completes, you will see a segment reflecting the set of users from your Mixpanel cohort in the CleverTap's Segments dashboard. The Type column under the Segments list page for the exported cohort is displayed as `Partner - Mixpanel`: ![CleverTap 4 Image](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/clevertap4.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=82cdbc568f970d54992f8bd5494b61a6) You can also refer to CleverTap's [Mixpanel Import (Cohort)](https://docs.clevertap.com/docs/mixpanel-integration) documentation. ## CleverTap Events into Mixpanel & MTU exemptions You can use events from your CleverTap integration to perform deeper analysis in Mixpanel. Events coming from CleverTap are marked with the property `$source`. Mixpanel will exempt certain messaging outreach events from MTU calculations, meaning you're free to send campaigns to dormant users without them counting towards MTU billing (only once a user engages with a message will they then be counted towards that tally). The following CleverTap events are exempt from MTU calculations: * Notification Sent * Notification Viewed * Notification Clicked * Push Impressions * Notification Replied * Push Unregistered * Control Group * Channel Unsubscribed * Reachable By * Notification Delivered * AB Experiment Rendered * AB Experiment Stopped * AB Experiment Rolled Out * Geocluster Entered * Geocluster Exited * Reply Sent * App Uninstalled * Webhook Delivered * State Transitioned * UTM Visited # Facebook Ads Source: https://docs.mixpanel.com/docs/cohort-sync/integrations/facebook-ads Export Mixpanel cohorts to Facebook Ads to use targeted advertisements in Facebook ## Overview Export Mixpanel cohorts to Facebook Ads to use targeted advertisements in Facebook. Manage the Facebook Ads integration from the Mixpanel Destinations page. The integration currently supports data from Mixpanel into Facebook Business. > You must have a Facebook Business account connected to [Business Manager](https://audience.42matters.com/blog/how-to-connect-your-facebook-ad-account-to-business-manager-to-use-custom-audiences) to use this integration. ## Permissions You must be a Mixpanel project admin to use the Facebook Ads data integration. ## Enable the Integration Follow these steps to enable the integration with Facebook Ads: 1. Navigate to **Data** in the nav bar, then select **Destinations**. 2. Click **Add Destination**, then select **Facebook Ads**. ![Facebook 2 Image](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/facebook2.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=c4a67f564977c4e847a47e5163130b3e) 3. Select your Facebook Ad Account ID and your connector name and also choose user property where you're storing device advertising ID (optional) ![Facebook Connector Image](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/facebook_connector.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=4a38d4a1d904fe0aa4dd7ed167913d40) 4. The Facebook Ads integration page will show a green export icon and details about the integration after it is connected. To disable the connector, select the **Facebook Ads** dropdown and click **Disconnect**. ## Export a Cohort To export a cohort to Facebook Ads: > [tab] From the Destinations page (recommended) > > 1. Navigate to **Data** in the nav bar, then select **Destinations**. > 2. Find the Facebook Ads destination in the list and click on it. > 3. Click the **Syncs** tab, then click **Add Cohort Sync**. > 4. Select the cohort you want to export and configure the sync (one-time or dynamic). Click **Start Sync**. > [tab] From Lexicon > > 1. Navigate to **Lexicon**, then select the **Cohorts** tab to view all of your cohorts. > 2. Select the cohort that you want to export. Click on the three dot icon on the right side of the cohort. > 3. Click **Export to Facebook**. Select either a one-time sync or a dynamic sync. Click **Start Sync**. > > ![Facebook 3 Image](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/facebook3.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=c572ef9f9ac10dc7ade2ab2855f9b4d6) ## Sync Types This integration supports two types of exports: one-time export and dynamic sync. When you generate a one-time export or a dynamic sync, it overwrites the previous export with an updated export that reflects users who qualify for the cohort at the time of export. ### One-Time Export In a one-time export, Mixpanel sends Facebook a static export of users who currently qualify for the cohort. The cohort data will not be updated in Facebook after a one-time export. ### Dynamic Sync In a dynamic sync, Mixpanel initiates a sync between a cohort and Facebook every two hours. The exported cohort will be updated every two hours to reflect the most recent list of users in a cohort. ## Select the Cohort in Facebook Ads You must log in to Facebook Business Manager to use the Mixpanel Cohort in Facebook Ads. Select the **Menu** in Facebook Business Manager top navigation. Click on **Audiences**. ![Facebook 4 Image](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/facebook4.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=b352ec5ad1945a010a41fd396dc551df) The Mixpanel Cohort is available in the Audience list. Cohorts are exported to Facebook Ads as `mixpanel__`. ## Data Requirement Meta uses *email addresses* as the primary identifier to match users in your cohort with users in their system. If an email address is not available, Meta may instead attempt to match using other identifiers such as a *phone number*, *first and last name*, or a *device advertising ID* (depending on your connection setup). To use this integration, each user profile must include either an *email address* or a *device advertising ID*. In addition to the email (if present), your system will send the following user profile properties (if available): first name, last name, phone number, advertising ID, and distinct\_id. No other user properties will be exported. If Meta is unable to match a cohort member with a user in their system, that member will be excluded from the resulting Meta audience. A lower count in the Meta audience compared to your cohort indicates that some users could not be matched. ## Troubleshooting Errors Below are some common blocking errors (e.g. Error Message: Invalid OAuth 2.0 Access Token) that may occur when authorizing or using this connection: #### Login Token Expired. Please disconnect and reconnect from the Destinations page. [Facebook tokens expire after 60 days of inactivity](https://developers.facebook.com/docs/facebook-login/auth-vs-data/). Users will have to log in again to resume the cohort exports. #### (#200) The current user can not update audience XXXXXXXXXXX Verify the permissions for the user who created the sync, and then disconnect and reconnect from the Destinations page. Disconnecting and Reconnecting will resume your existing exports. #### Error validating access token: The session has been invalidated because the user changed their password or Facebook has changed the session for security reasons. Facebook sometimes invalidates the access token if they detect suspicious activity. Disconnect and reconnect the Facebook connection with a new token from the Destinations page to resume syncs. #### Error validating access token: The user has not authorized application XXXXXXXXXX. The user setting up the integration should be using a Facebook business account and have an admin role - verify these two pieces and then attempt reconnecting the integration to resume your existing exports. #### To create or edit a Custom Audience made from a customer list, your admin needs to add this ad account to a business. Please follow the directions here - [https://www.facebook.com/business/help/910137316041095?id=420299598837059](https://www.facebook.com/business/help/910137316041095?id=420299598837059) #### To create or edit a saved audience with an uploaded customer list, please agree to the Custom Audience terms at [https://business.facebook.com/ads/manage/customaudiences/tos/?act=XXXXXXXXXXX](https://business.facebook.com/ads/manage/customaudiences/tos/?act=XXXXXXXXXXX). We generally force a window to accept the terms and conditions for the users. In rare instances where that doesn't work you can go to the above URL by replacing **XXXXXXXXXXX with your FB account ID**. Accept the terms there and then disconnect + reconnect the integration. #### Two factor authentication required. User have to enter a code from SMS or TOTP code generator to pass 2fac. Please disable two factor authentication and re-establish the connection from the Destinations page. #### (#2654) Customer List Audiences Are Not Available: Ad accounts owned by businesses new to Facebook Products can create customer file Custom Audiences after several weeks of following our policies. Please contact Facebook support to get this feature enabled for you. # Google Ads Source: https://docs.mixpanel.com/docs/cohort-sync/integrations/google-ads Export Mixpanel cohorts to Google Ads to use targeted advertisements in Google Search ## Overview Export Mixpanel cohorts to Google Ads to use targeted advertisements in Google Search. Manage the Google Ads integration from the Mixpanel Destinations page. The integration currently supports data from Mixpanel into a Google Ads account. ## Permissions You must be a Mixpanel project admin to use the Google Ads data integration. ## Enable the Integration Follow these steps to enable the integration with Google Ads: 1. Navigate to **Data** in the nav bar, then select **Destinations**. 2. Click **Add Destination**, select Google Ads, and click **Sign In with Google**. ![GoogleAds 2 Image](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/googleads2.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=ebb2669b3a92227a0861f106e5335453) 3. Enter your connector name, Google Customer ID and also choose user property where you’re storing device advertising ID (optional) ![GoogleAds Connector Image](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/googleads_connector.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=79b6e8927d95a703c50932a2635b2240) 4. The Google Ads integration page shows a green export icon and details about the integration after it is connected. ## Export a Cohort > [tab] From the Destinations page (recommended) > > 1. Navigate to **Data** in the nav bar, then select **Destinations**. > 2. Find the Google Ads destination in the list and click on it. > 3. Click the **Syncs** tab, then click **Add Cohort Sync**. > 4. Select the cohort you want to export and configure the sync (one-time or dynamic). Click **Start Sync**. > [tab] From Lexicon > > 1. Navigate to **Lexicon**, then select the **Cohorts** tab to view all of your cohorts. > > ![GoogleAds 3 Image](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/googleads3.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=37ceb1c743f09f8287f343e57ee01861) > > 2. Select the cohort that you want to export. Click on the three-dot icon on the right side of the cohort. > 3. Click **Export to Google Ads**. Select either one-time sync or dynamic sync. Click **Start Sync**. > > ![GoogleAds 4 Image](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/googleads4.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=149279a0eae8385ed44dabb655cc658a) ## Sync Types This integration supports two types of exports: one-time export and dynamic sync. When you generate a one-time export or dynamic sync, it overwrites the previous export with an updated export that reflects users who qualify for the cohort at the time of export. ### One-Time Export In a one-time export, Mixpanel sends Google Ads a static export of users who currently qualify for the cohort. The cohort data will not be updated in Google Ads after a one-time export. ### Dynamic Sync In dynamic sync, Mixpanel initiates sync between a cohort and Google Ads every two hours. The exported cohort will be updated every day to reflect the most recent list of users in a cohort. ## Select the Cohort in Google Ads You must log in to Google Business Manager to use the Mixpanel Cohort in Google Ads. Select the **Menu** in Google Business Manager’s top navigation. Click on **Tools & Settings** and launch Audience Manager. ![GoogleAds 5 Image](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/googleads5.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=cdb934f129eb27f8e702223d59cf3520) The Mixpanel Cohort is available under Audience Manager. Cohorts are exported to Google Ads as `mixpanel**`. ![GoogleAds 6 Image](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/googleads6.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=a4a635dbe7be77fd4e66a6374249c492) ## Data Requirements Google Ads matches users from your Mixpanel cohort to users in its system primarily using *email addresses*. If an email address is not available, Google Ads can instead attempt to match users using other identifiers — such as a *phone number*, *first and last name*, or a *device advertising ID*, depending on how you configure the connection. To use this integration, your Mixpanel user profiles must include either an *email address* or a *device advertising ID*. Along with those identifiers, Mixpanel also sends the following user properties (if available): first name, last name, phone number, advertising ID, and distinct\_id. No other user properties are exported. If Google Ads cannot match a cohort member with a user in its system, that member will be excluded from the Google Ads audience. A lower number of users in Google Audiences compared to your Mixpanel cohort means some users could not be matched. ## Troubleshooting Errors Below are some common blocking errors that may occur when authorizing or using this connection: **Advertiser needs to be on the allow-list to use remarketing lists created from advertiser uploaded data (e.g., Customer Match lists).** Google has to whitelist customers to use this feature. [This Google support article](https://support.google.com/adspolicy/answer/6299717?hl=en) contains more information. Cohort exports will remain paused until it is enabled. **No customer found for the provided customer id.** Please [use a valid customer id](https://support.google.com/google-ads/answer/1704344?hl=en). **The customer can't be used because it isn't enabled.** Please make sure the user setting the integrations has standard or admin access in the Google Ads account. **The user does not have permission to perform this action on the resource or call a method.** Please make sure the user setting the integrations has standard or admin access in the Google Ads account. **User doesn't have permission to access customer. Note: If you're accessing a client customer, the manager's customer id must be set in the 'login-customer-id' header. See [https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid](https://developers.google.com/google-ads/api/docs/concepts/call-structure#cid)** Please make sure the user setting the integrations has standard or admin access in the Google Ads account. **User in the cookie is not a valid Ads user.** Please make sure the user setting the integrations has standard or admin access in the Google Ads account. # Insider Source: https://docs.mixpanel.com/docs/cohort-sync/integrations/insider Export Mixpanel cohorts to Insider to create custom segments that you can apply in your Insider campaigns ## Overview Export Mixpanel cohorts to Insider to create custom segments that you can apply in your Insider campaigns. Manage the Insider integration from the Mixpanel Destinations page. ## Permissions You must be a Mixpanel project admin to enable the Insider integration. ## Enable the Integration 1. Navigate to **Data** in the nav bar, then select **Destinations**. 2. Click **Add Destination**, select Insider, and click **Connect**. > [!NOTE] > > If you set a User ID Property, it should be a Mixpanel user property that matches the email or phone number set in Insider. ![insider 2 Image](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/insider2.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=cdfebd63be1ccdae09f3b39ba0225410) 3. The Insider integration will show a **Connected** tag in the UI once the connection succeeds. ## Matching Users between Insider and Mixpanel Mixpanel only exports identified user profiles to match to Insider - users without user profile properties (i.e. anonymous users) will not export. Insider will use either the user's email (set via the `$email` user property) or phone number (set via the `$phone` user property) to match the Mixpanel user profile to Insider. As a result, not all exported profiles may match if these values are missing or differ from the emails and phone numbers stored on Insider. Note that exports are used solely for matching user identities between products - the integration will not send the full set of a user's profile properties to Insider, nor will it generate new users in Insider. ## Export a Cohort > [tab] From the Destinations page (recommended) > > 1. Navigate to **Data** in the nav bar, then select **Destinations**. > 2. Find the Insider destination in the list and click on it. > 3. Click the **Syncs** tab, then click **Add Cohort Sync**. > 4. Select the cohort you want to export and configure the sync (one-time or dynamic). Click **Start Sync**. > [tab] From Lexicon > > 1. Navigate to **Lexicon**, then select the **Cohorts** tab to view all of your cohorts. > 2. Select the cohort that you want to export. Click on the three-dot icon on the right side of the cohort. > 3. Click Export to > Insider. Select either one-time sync or dynamic sync. Click **Start Sync**. > > ![insider 3 Image](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/insider3.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=d90e2152d8970ec249ae8231c1e77e87) ## Sync Types This integration supports two types of exports: one-time export and dynamic sync. When you generate a one-time export or dynamic sync, it overwrites the previous export with an updated export that reflects users who qualify for the cohort at the time of export. ### One-Time Export In a one-time export, Mixpanel sends Insider a static export of users who currently qualify for the cohort. The cohort data will not be updated in Insider after a one-time export. ### Dynamic Sync In dynamic sync, Mixpanel initiates sync between a cohort and Insider every 15 minutes. The exported cohort will be updated every 15 minutes to reflect the most recent list of users in a cohort. ## Select the Custom Segment in Insider Once the export completes, you will see a custom segment reflecting the set of users from your Mixpanel cohort. (e.g. "7days-cart-abandoners") ![insider 4 Image](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/insider4.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=7271bfa02eddcaa9aac811f94baccecf) # Iterable Source: https://docs.mixpanel.com/docs/cohort-sync/integrations/iterable Export Mixpanel cohorts to Iterable to create user lists that you can target in your Iterable campaigns ## Overview Export Mixpanel cohorts to Iterable to create user lists that you can target in your Iterable campaigns. Manage the Iterable integration from the Mixpanel Destinations page. ## Permissions You must be a Mixpanel project admin to use the Iterable data integration. ## Enable the Integration 1. Navigate to **Data** in the nav bar, then select **Destinations**. 2. Click **Add Destination**, select Iterable, and click **Connect**. 3. The Iterable integration page will show a green export icon and details about the integration after it is connected. If you select the US or EU Iterable data center, data will be sent to the corresponding Iterable project. Note: Every Iterable API key is associated with a specific Iterable project, which means that it's also associated with a specific data center. Further reading: [https://support.iterable.com/hc/en-us/articles/360043464871-API-Keys#api-keys-projects-and-data-centers](https://support.iterable.com/hc/en-us/articles/360043464871-API-Keys#api-keys-projects-and-data-centers) To disable the connector, select the Iterable dropdown and click **Disconnect**. ## Export a Cohort > [tab] From the Destinations page (recommended) > > 1. Navigate to **Data** in the nav bar, then select **Destinations**. > 2. Find the Iterable destination in the list and click on it. > 3. Click the **Syncs** tab, then click **Add Cohort Sync**. > 4. Select the cohort you want to export and configure the sync (one-time or dynamic). Click **Start Sync**. > [tab] From Lexicon > > 1. Navigate to **Lexicon**, then select the **Cohorts** tab to view all of your cohorts. > 2. Select the cohort that you want to export. Click on the three-dot icon on the right side of the cohort. > 3. Click Export to > Iterable. Select either one-time sync or dynamic sync. Click **Start Sync**. > > ![iterable 3 Image](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/iterable3.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=12880feacecb1f79ca92e1f7fb2ab7d0) ## Sync Types This integration supports two types of exports: one-time export and dynamic sync. When you generate a one-time export or dynamic sync, it overwrites the previous export with an updated export that reflects users who qualify for the cohort at the time of export. ### One-Time Export In a one-time export, Mixpanel sends Iterable a static export of users who currently qualify for the cohort. The cohort data will not be updated in Iterable after a one-time export. ### Dynamic Sync In dynamic sync, Mixpanel initiates sync between a cohort and Iterable every fifteen minutes. The exported cohort will be updated every fifteen minutes to reflect the most recent list of users in a cohort. ## Select the Cohort in Iterable You must log in to Iterable to use the Mixpanel Cohorts to send campaigns. The Mixpanel Cohort is available in the Audience list. Mixpanel exports cohort data as `mixpanel__`. ![iterable 4 Image](https://mintcdn.com/mixpanel-edb78807/t0w2ecW2bO4mKfCm/images/Iterable4.png?fit=max\&auto=format\&n=t0w2ecW2bO4mKfCm\&q=85\&s=9b8eaf1875cd685f6632a9ffc3a0d758) ## Matching Users between Mixpanel and Iterable > **Warning:** Projects using the [simplified ID merge system](/docs/tracking-methods/id-management#identity-merge-apis) must have the `$user_id` in Mixpanel match the user identifier in the partner service. Using any alternative partner properties to match users between tools may result in partner events not being attributed to the correct user in Mixpanel. Any partner properties mentioned in the below section are primarily applicable to projects on the original ID merge system. The best way to match users from Mixpanel to Iterable is to grab the value displayed as `userId` in Iterable and store it as a profile property for the user in Mixpanel under the name `$iterable_user_id`. This also prevents Iterable from overwriting the Iterable User ID with the Mixpanel Distinct ID upon cohort sync from Mixpanel. For context, the value you should store as `$iterable_user_id` in the Mixpanel profile would look like this in Iterable: ![Iterable's user ID](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/iterable_user_id.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=6e08dc9022e0bfb504c3fce46de3ae0f) Iterable uses an email address to match users from the cohort with users from their system. The integration will fail if an email address is not sent. In order to use this integration, you must set email as a user profile property. ## Iterable Events into Mixpanel and MTU Exemptions Iterable offers the ability to send events from Iterable to Mixpanel to perform deeper analysis based on messaging data. For detailed instructions, please refer to [Iterable's integration documentation](https://support.iterable.com/hc/en-us/articles/208013936-System-Webhooks-). Events coming from Iterable are marked with the property "\$source" to denote the source product. Mixpanel will exempt certain messaging outreach events from MTU calculations, meaning you're free to send campaigns to dormant users without them counting towards MTU billing (only once a user engages with a message will they then be counted towards that tally). The following events are exempt from MTU calculations: * emailSend * emailBounce * emailComplaint * emailSendSkip * emailSubscribe * emailUnSubscribe * hostedUnsubscribeClick * inAppSend * inAppSendSkip * pushBounce * pushSend * pushSendSkip * smsBounce * smsReceived * smsSend * smsSendSkip * webPushSendSkip # Kameleoon Source: https://docs.mixpanel.com/docs/cohort-sync/integrations/kameleoon Export Mixpanel cohorts to Kameleoon to create custom segments that you can apply in your Kameleoon experiments ## Overview Export Mixpanel cohorts to Kameleoon to create custom segments that you can apply in your Kameleoon experiments. Manage the Kameleoon integration from the Mixpanel Destinations page. Kameleoon also supports an integration to send experiment data to Mixpanel - for more details, see [the Kameleoon Mixpanel integration](https://help.kameleoon.com/en/setting-up-mixpanel/). ## Permissions You must be a Mixpanel project admin to enable the Kameleoon integration. ## Enable the Integration 1. Navigate to **Data** in the nav bar, then select **Destinations**. 2. Click **Add Destination**, select Kameleoon, and click **Connect**. ![Kameleoon 2 Image](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/kameleoon2.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=0be956ec26b24baa86f22904539edc0c) 3. The connection uses one credential to authorize, "API Key". Supply an **API token** generated from your Kameleoon settings page to establish the connection. 4. The Kameleoon integration will show a **Connected** tag in the UI once the connection establishes. ## Matching Users Between Kameleoon and Mixpanel Mixpanel only exports identified user profiles to match to Kameleoon - users without user profile properties (i.e. anonymous users) will not export. The integration requires that you use the same system of identifiers for both tools, meaning the value you pass to `mixpanel.identify("internal_user_id")` will have the same value as you pass to Kameleoon when identifying a "visitor". Kameleoon will attempt to match users from inbound cohorts based on their Mixpanel distinct\_id. Additionally, if you're using Mixpanel's identity merge feature, you may want to provide a consistent identity value to deliver to Kameleoon (as Mixpanel's distinct\_id for a given user may change over time as the user's Canonical ID shifts). To provide a consistent user identifier to Kameleoon, **you may specify a user property**, `$kameleoon_mapping_id`, whose value is a string representing the user's consistent identifier (for example, an internal user ID). Mixpanel will also deliver this property to Kameleoon for user matching. ## Export a Cohort > [tab] From the Destinations page (recommended) > > 1. Navigate to **Data** in the nav bar, then select **Destinations**. > 2. Find the Kameleoon destination in the list and click on it. > 3. Click the **Syncs** tab, then click **Add Cohort Sync**. > 4. Select the cohort you want to export and configure the sync (one-time or dynamic). Click **Start Sync**. > [tab] From Lexicon > > 1. Navigate to **Lexicon**, then select the **Cohorts** tab to view all of your cohorts. > 2. Select the cohort that you want to export. Click on the three-dot icon on the right side of the cohort. > 3. Click Export to > Kameleoon. Select either one-time sync or dynamic sync. Click **Start Sync**. ## Sync Types This integration supports two types of exports: one-time export and dynamic sync. When you generate a one-time export or dynamic sync, it overwrites the previous export with an updated export that reflects users who qualify for the cohort at the time of export. ### One-Time Export In a one-time export, Mixpanel sends Kameleoon a static export of users who currently qualify for the cohort. The cohort data will not be updated in Kameleoon after a one-time export. ### Dynamic Sync In dynamic sync, Mixpanel initiates sync between a cohort and Kameleoon every two hours. The exported cohort will be updated every day to reflect the most recent list of users in a cohort. ## Select the Segment in Kameleoon Once the export completes, you will see a Segment reflecting the set of users from your Mixpanel cohort in Kameleoon's Segment editor, as custom data (e.g. "Song Sharers"): ![Kameleoon 3 Image](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/kameleoon3.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=05f1cba6f46de2e05a922e676d9fde2f) ## Kameleoon Data into Mixpanel Kameleoon offers the ability to forward experiment data to Mixpanel. For more detail, please refer to [the Kameleoon integration guide](https://help.kameleoon.com/en/setting-up-mixpanel/). # Leanplum Source: https://docs.mixpanel.com/docs/cohort-sync/integrations/leanplum Export Mixpanel cohorts to Leanplum to create custom audiences that you can apply in your Leanplum campaigns ## Overview Export Mixpanel cohorts to Leanplum to create custom audiences that you can apply in your Leanplum campaigns. Manage the Leanplum integration from the Mixpanel Destinations page. Leanplum also supports an integration to send messaging interactions to Mixpanel - for more details, see [Leanplum's Mixpanel integration](https://docs.leanplum.com/docs/mixpanel-feed). ## Permissions You must be a Mixpanel project admin to enable the Leanplum integration. ## Enable the Integration 1. Navigate to **Data** in the nav bar, then select **Destinations**. 2. Click **Add Destination**, select Leanplum, and click **Connect**. ![Leanplum 2 Image](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/leanplum2.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=66bcc9b525b2f8f72a10fd668eac1aff) 3. The connection uses a Basic Authorization Username/Password system. You will need to provide two credentials to authorize the connection: * Username: Leanplum App ID * Password: Leanplum API Secret You can find these values in your Leanplum settings page, and under the Mixpanel section in "Partner Integrations". 4. The Leanplum integration will show a **Connected** tag in the UI once the connection succeeds. ## Matching Users Between Leanplum and Mixpanel > **Warning:** Projects using the [simplified ID merge system](/docs/tracking-methods/id-management#identity-merge-apis) must have the `$user_id` in Mixpanel match the user identifier in the partner service. Using any alternative partner properties to match users between tools may result in partner events not being attributed to the correct user in Mixpanel. Any partner properties mentioned in the below section are primarily applicable to projects on the original ID merge system. Mixpanel only exports identified user profiles to match to Leanplum - users without user profile properties (i.e. anonymous users) will not export. If you use a different system of user identifiers for Mixpanel's distinct\_id as compared to Leanplum's user ID, the user's Mixpanel profile must contain a user property, `$leanplum_user_id`, whose value is a string representing that person's user ID in Leanplum. Use this joining key if your user identifiers in Mixpanel are different from the identifiers used in Leanplum (for example, if you identify Mixpanel users on internal user ID, but identify Leanplum users on device ID). In addition, when our ingestion service detects calls setting this user property, Mixpanel will also auto-alias the value of `$leanplum_user_id` to the user's distinct\_id. This ensures that messaging data passed from Leanplum to Mixpanel still attributes to the correct user. If you use the same system of user identifiers in both tools, meaning a user has the same ID string in both products, you do **not** have to declare `$leanplum_user_id`. The users' Mixpanel distinct\_id will still be sent in the cohort export, and Leanplum will attempt to match users on this value instead. Note that exports are used solely for matching user identities between products - the integration will not send the full set of a user's profile properties to Leanplum. ## Export a Cohort > [tab] From the Destinations page (recommended) > > 1. Navigate to **Data** in the nav bar, then select **Destinations**. > 2. Find the Leanplum destination in the list and click on it. > 3. Click the **Syncs** tab, then click **Add Cohort Sync**. > 4. Select the cohort you want to export and configure the sync (one-time or dynamic). Click **Start Sync**. > [tab] From Lexicon > > 1. Navigate to **Lexicon**, then select the **Cohorts** tab to view all of your cohorts. > 2. Select the cohort that you want to export. Click on the three-dot icon on the right side of the cohort. > 3. Click Export to > Leanplum. Select either one-time sync or dynamic sync. Click Start Sync. > > ![Leanplum 3 Image](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/leanplum3.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=d9850dcb313998ac59e7a5150bbc5ddd) ## Sync Types This integration supports two types of exports: one-time export and dynamic sync. When you generate a one-time export, it overwrites the previous export with an updated export that reflects users who qualify for the cohort at the time of export. In case of dynamic sync, we compute a diff of users added and removed from the cohort's current state compared to the cohort state present on Leanplum and send the diff over to Leanplum to apply these changes. ### One-Time Export In a one-time export, Mixpanel sends Leanplum a static export of users who currently qualify for the cohort. The cohort data will not be updated in Leanplum after a one-time export. ### Dynamic Sync In dynamic sync, Mixpanel exports the cohort to Leanplum every 15 minutes. The exported cohort will be updated every 15 minutes to reflect the most recent list of users in a cohort. ## Select the Audience in Leanplum Once the export completes, you will see an Audience reflecting the set of users from your Mixpanel cohort. (e.g. "Recent Signups who haven't hit a Value Moment") ![Leanplum 4 Image](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/leanplum4.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=e82677015c590d768a8a2c88a812b1bb) ## Leanplum events into Mixpanel & MTU exemptions Leanplum offers the ability to forward campaign interaction events to Mixpanel. For more detail, [please refer to Leanplum's integration guide](https://docs.leanplum.com/docs/mixpanel-feed). Events coming from Leanplum are marked with the property `$source` to denote the source product. Mixpanel will exempt certain messaging outreach events from MTU calculations, meaning you're free to send campaigns to dormant users without them counting towards MTU billing (only once a user engages with a message will they then be counted towards that tally). The following events are exempt from MTU calculations: * (Leanplum) Campaign Enter * (Leanplum) Push Notification Send * (Leanplum) Push Notification Bounce * (Leanplum) Email Send * (Leanplum) Email Delivered * (Leanplum) Email Bounce * (Leanplum) Email Marked as spam * (Leanplum) Email Unsubscribed * (Leanplum) A/B test # Mailchimp Source: https://docs.mixpanel.com/docs/cohort-sync/integrations/mailchimp Export Mixpanel cohorts to Mailchimp to create custom audiences that you can apply in your Mailchimp campaigns ## Overview Export Mixpanel cohorts to Mailchimp to create custom audiences that you can apply in your Mailchimp campaigns. Manage the Mailchimp integration from the Mixpanel Destinations page. ## Permissions You must be a Mixpanel project admin to enable the Mailchimp integration. ## Enable the Integration The Mailchimp integration requires initial configuration through your Mailchimp account. Refer to [Mailchimp's documentation for information on authorizing the connection](https://mailchimp.com/help/connect-disconnect-mixpanel/). Follow these steps to enable the integration with Mailchimp: 1. Navigate to **Data** in the nav bar, then select **Destinations**. 2. Click **Add Destination**, select Mailchimp, and click **Connect**. ![mailchimp 2 Image](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/mailchimp2.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=1b3bfe36da65d12da330dc4a1bb678e8) You will need to provide an API key (referred to as an Authorization token in Mailchimp) to authorize the connection. Mailchimp will provide this token during the integration initialization flow. 3. The Mailchimp integration will show a **Connected** tag in the UI once the connection succeeds. ## Matching Users between Mailchimp and Mixpanel > **Warning:** Projects using the [simplified ID merge system](/docs/tracking-methods/id-management#identity-merge-apis) must have the `$user_id` in Mixpanel match the user identifier in the partner service. Using any alternative partner properties to match users between tools may result in partner events not being attributed to the correct user in Mixpanel. Any partner properties mentioned in the below section are primarily applicable to projects on the original ID merge system. Mixpanel only exports identified user profiles to match to Mailchimp - users without user profile properties (i.e. anonymous users) will not export. In order to match an exported Mixpanel user to Mailchimp, the user's Mixpanel profile must contain a user property, `$email`, whose value is a string representing that user's email address. ## Export a Cohort > [tab] From the Destinations page (recommended) > > 1. Navigate to **Data** in the nav bar, then select **Destinations**. > 2. Find the Mailchimp destination in the list and click on it. > 3. Click the **Syncs** tab, then click **Add Cohort Sync**. > 4. Select the cohort you want to export and configure the sync (one-time or dynamic). Click **Start Sync**. > [tab] From Lexicon > > 1. Navigate to **Lexicon**, then select the **Cohorts** tab to view all of your cohorts. > 2. Select the cohort that you want to export. Click on the three-dot icon on the right side of the cohort. > 3. Click **Export to > Mailchimp**. Select either one-time sync or dynamic sync. Click **Start Sync**. > > ![mailchimp 3 Image](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/mailchimp3.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=2aba62656344c87e82d5c5d8f258203c) ## Sync Types This integration supports two types of exports: one-time export and dynamic sync. When you generate a one-time export or dynamic sync, it overwrites the previous export with an updated export that reflects users who qualify for the cohort at the time of export. ### One-Time Export In a one-time export, Mixpanel sends Mailchimp a static export of users who currently qualify for the cohort. The cohort data will not be updated in Mailchimp after a one-time export. ### Dynamic Sync In dynamic sync, Mixpanel initiates sync between a cohort and Mailchimp every 2 hours. The exported cohort will be updated every two hours to reflect the most recent list of users in a cohort. ## Observe the Audience in Mailchimp Once the export completes, you will see updates in your Mailchimp dashboard reflecting your synced audience: ![mailchimp 4 Image](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/mailchimp4.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=eda94f58e1681598da6cd64d059936f2) ## MTU exemptions Events coming from Mailchimp are marked with the property "\$source" equal to "mailchimp". Mixpanel will exempt certain messaging outreach events from MTU calculations, meaning you're free to send campaigns to dormant users without them counting towards MTU billing (only once a user engages with a message will they then be counted towards that tally). The following events are exempt from MTU calculations: * Mailchimp - Opened Campaign * Mailchimp - Clicked Campaign Url * Mailchimp - Sent To * Mailchimp - Unsubscribed * Mailchimp - Bounced # Marketo Source: https://docs.mixpanel.com/docs/cohort-sync/integrations/marketo Export Mixpanel cohorts to Marketo to target email campaigns, as a one-time push or a sync that refreshes every two hours ## Overview The Marketo integration with Mixpanel is a turn-key integration that allows users to export Mixpanel cohorts into Marketo. The integration enables Marketo email campaigns to target users based on Mixpanel cohort data. The cohort export can happen once, or can be configured to dynamically update a Marketo Custom Field every two hours. ## Permissions You must be a Mixpanel project admin to use the Marketo data integration. ## Enable the Integration In order to setup your Mixpanel and Marketo Integration, you must be an Admin in both Marketo and your Mixpanel project. To set up the integration: 1. Input your[Marketo credentials](http://developers.marketo.com/rest-api/authentication/) (Client ID, Client Secret, Rest URL) in the Mixpanel integration setup flow. Remove "identity" from the url so its rest endpoint when setting up the integration looks like: [https://051-pvi-353.mktorest.com/](https://051-pvi-353.mktorest.com/) 2. Create a Mixpanel Custom Field in Marketo. **This Custom Field should be set as a boolean type**. Read the [Marketo Documentation](https://docs.marketo.com/display/public/DOCS/Create+a+Custom+Field+in+Marketo) for additional information on how to set up a Custom Field. 3. The new Custom Field will update to 'True', allowing you to target users based on the Mixpanel cohort criteria. ## Sending a Mixpanel Cohort to Marketo To send a Mixpanel Cohort to Marketo: 1. Create a [Custom Field in Marketo](https://docs.marketo.com/display/public/DOCS/Create+a+Custom+Field+in+Marketo) for each cohort that you plan to export. 2. Export the cohort from Mixpanel: > [tab] From the Destinations page (recommended) > > 1. Navigate to **Data** in the nav bar, then select **Destinations**. > 2. Find the Marketo destination in the list and click on it. > 3. Click the **Syncs** tab, then click **Add Cohort Sync**. > 4. Select the cohort you want to export and configure the sync. > [tab] From Lexicon > > 1. Navigate to **Lexicon**, then select **Cohorts** to view all cohorts. > > ![Marketo 1 Image](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/marketo1.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=a0144839f73e3651863f41ae56e48598) > > 2. Select the cohort that you want to export. Click on the three-dot icon on the right side of the cohort. 3. Copy and paste the field name associated with the cohort you want to export into Marketo. 4. After exporting your cohort to Marketo, the custom field name for all matched users will be set to True. ## Sync Types This integration supports two types of exports: one-time export and dynamic sync. ### One-Time Exports The Custom Field will automatically be updated to 'True', allowing you to target users based on this criteria. ### Dynamic Syncs The Custom Field will be updated every two hours to reflect the status of the Mixpanel cohort. The Custom Field will be set to 'True' or 'False' to reflect the movement of any users in to or out of a Mixpanel cohort. ## FAQ ### Exporting the Same Cohort to Marketo It is possible to export the same cohort to Marketo more than once, however each export will require a new custom field within Marketo. Mixpanel disallows exporting to the same custom field so that the custom field you have created in Marketo is up-to-date with only the latest export. ### Why is the cohort user count larger in Mixpanel than in Marketo? In order to export a user to Marketo using Cohorts, the user must have the special user profile property \$email set on their user profile. If this property is not set on a user’s profile, they will not be exported to Marketo. ### How does Mixpanel handle users that exist within Mixpanel, but not in Marketo? If the user within Mixpanel has the \$email user profile property, a new lead will be created in Marketo with the \$email user profile property value and the designated custom field will be set to True. ### Is there a limitation to the number of profiles that can be exported to Marketo? The maximum cohort size exportable is 30 million profiles. ### Does Mixpanel export other profile properties to Marketo besides the user's email address? No. At this time, Mixpanel will only export the \$email profile property. # Moengage Source: https://docs.mixpanel.com/docs/cohort-sync/integrations/moengage Export Mixpanel cohorts to MoEngage to create custom segments that you can apply in your MoEngage campaigns ## Overview Export Mixpanel cohorts to MoEngage to create custom segments that you can apply in your MoEngage campaigns. Manage the MoEngage integration from the Mixpanel Destinations page. # Permissions You must be a Mixpanel project admin to enable the MoEngage integration. ## Enable the Integration 1. Navigate to **Data** in the nav bar, then select **Destinations**. 2. Click **Add Destination**, select MoEngage, and click **Connect**. > [!NOTE] > > If you set a User ID Property, it should be a Mixpanel user property that matches the MoEngage External ID. If you do not select one, Mixpanel will default to using the `$moengage_user_id` property to match users between MoEngage and Mixpanel. See more about [matching users between MoEngage and Mixpanel](/docs/cohort-sync/integrations/moengage#matching-users-between-moengage-and-mixpanel). ![Moengage 2 Image](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/moengage2.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=80caf6171e0038e7b056c39f17dc6190) 3. The connection uses a Basic Authorization Username/Password system. You will need to provide two credentials to authorize the connection: * Username: MoEngage APP ID * Password: MoEngage API Key You will additionally provide one credential to authorize the cohort exports: * MOE-APPKEY: MoEngage APP ID You can find these values in your MoEngage settings page - note that MoEngage App ID is used in both the Username and MOE-APPKEY fields. ![Moengage 3 Image](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/moengage3.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=878a4d41fea4977cc1bec989f5dec832) 4. The MoEngage integration will show a **Connected** tag in the UI once the connection succeeds. ## Matching Users between MoEngage and Mixpanel > [!WARNING] > > **Warning:** Projects using the [Simplified ID merge system](/docs/tracking-methods/id-management#identity-merge-apis) must have the `$user_id` in Mixpanel match the user identifier in the partner service. Using any alternative partner properties to match users between tools may result in partner events not being attributed to the correct user in Mixpanel. Any partner properties mentioned in the below section are primarily applicable to projects on the original ID merge system. Mixpanel only exports identified user profiles to match to MoEngage - users without user profile properties (i.e. anonymous users) will not export. If the values you provide for users' distinct\_id differ from the values used for MoEngage's Unique ID, the user's Mixpanel profile must contain a user property, `$moengage_user_id`, whose value is a string representing that user's Unique ID in MoEngage. Exports will include this joining key to match the corresponding Unique ID in MoEngage. In addition, when our ingestion service detects calls setting this user property, Mixpanel will also auto-alias the value of `$moengage_user_id` to the user's distinct\_id. This ensures that messaging data passed from MoEngage to Mixpanel still attributes to the correct user. Note that exports are used solely for matching user identities between products - the integration will not send the full set of a user's profile properties to MoEngage, nor will it generate new user profiles in MoEngage. ## Export a Cohort To export a cohort to MoEngage: > [tab] From the Destinations page (recommended) > > 1. Navigate to **Data** in the nav bar, then select **Destinations**. > 2. Find the MoEngage destination in the list and click on it. > 3. Click the **Syncs** tab, then click **Add Cohort Sync**. > 4. Select the cohort you want to export and configure the sync. Click **Start Sync**. > [tab] From Lexicon > > 1. Navigate to **Lexicon**, then select the **Cohorts** tab to view all of your cohorts. > 2. Select the cohort that you want to export. Click on the three-dot icon on the right side of the cohort and click **Export to MoEngage**. > 3. Click **Start Sync**. ## Sync Types This integration supports two types of exports: one-time export and dynamic sync. When you generate a one-time export or dynamic sync, it overwrites the previous export with an updated export that reflects users who qualify for the cohort at the time of export. ### One-Time Export In a one-time export, Mixpanel sends MoEngage a static export of users who currently qualify for the cohort. The cohort data will not be updated in MoEngage after a one-time export. ### Dynamic Sync In dynamic sync, Mixpanel initiates sync between a cohort and MoEngage every 15 minutes. The exported cohort will be updated every 15 minutes to reflect the most recent list of users in a cohort. ## Select the Custom Segment in MoEngage Once the export completes, you will see a custom segment reflecting the set of users from your Mixpanel cohort (e.g. "Power Users"): ![Moengage 6 Image](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/moengage6.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=bbd8747852573dc289372eaa85e8e8db) ## MoEngage Events into Mixpanel & MTU exemptions You can use events from your MoEngage integration to perform deeper analysis in Mixpanel. Events coming from MoEngage are marked with the property `$source`. Mixpanel will exempt certain messaging outreach events from MTU calculations, meaning you're free to send campaigns to dormant users without them counting towards MTU billing (only once a user engages with a message will they then be counted towards that tally). The following MoEngage events are exempt from MTU calculations: * Card Sent * Card Delivered * Connector Sent * Email Sent * Email Deferred * Email Delivered * Email Dropped * Email Bounced * Email Soft Bounced * Notification Received Android * Notification Sent iOS * NOTIFICATION\_RECEIVED\_IOS\_MOE * Notification Received Web * SMS Sent * SMS Delivered * User Entered Flow * User Exited Flow # mParticle Source: https://docs.mixpanel.com/docs/cohort-sync/integrations/mparticle Export Mixpanel cohorts to mParticle through a Feed input, creating a cohort membership user attribute you can use to build Audiences ## Overview This integration allows you to export Mixpanel Cohorts to [mParticle Feeds](https://docs.mparticle.com/guides/feeds/) to create [Audiences](https://docs.mparticle.com/guides/segmentation/audiences/overview/). This integration creates a user attribute in mParticle to represent cohort membership, which you can use to build or trigger [Audiences](https://docs.mparticle.com/guides/segmentation/audiences/overview/). By syncing your behavioral segments to mParticle, you can leverage Mixpanel’s deep analysis to power personalized experiences, targeted messaging, and audience suppression across the hundreds of downstream destinations supported by the mParticle CDP. ## Permissions * **Mixpanel:** You must be a Mixpanel project admin to enable the mParticle integration. * **mParticle:** You must have the necessary permissions in mParticle to create a Feed input and retrieve API credentials. ## Enable the Integration This connection requires setup on both mParticle and Mixpanel. ### mParticle Setup 1. Log into your mParticle workspace. 2. Navigate to **Data Platform > Setup > Inputs**. 3. Select the **Feed** input type and search for **Mixpanel Cohorts**. ![mParticle 1 Image](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/mparticle1.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=1c29e95010c8f67cbe6d8113ebaf130c) * Set Input Protection Level to Only Update Profiles to ensure only existing profiles can be updated and no new profiles will be created from cohort syncs. 4. Save and copy your **Webhook URL**. ![mParticle 2 Image](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/mparticle2.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=ffc3c47a7f6efca55aac909735f5806a) ### Mixpanel Setup Mixpanel uses your mParticle API token to send data to the following endpoint: `https://inbound.mparticle.com/v1/pdf/mixpanelcohorts/{{customer_api_token}}` 1. Navigate to **Data** in the nav bar, then select **Destinations**. 2. Click **Add Destination**, select **mParticle**, click **Connect**, and paste your **mParticle Webhook URL** into the box. 3. Click **Continue** to establish the connection. ![mParticle 5 Image](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/mparticle5.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=55c26725632b3db0c06b957ebffed270) *** ## Export a Cohort To export a Mixpanel cohort to mParticle: > [tab] From the Destinations page (recommended) > > 1. Navigate to **Data** in the nav bar, then select **Destinations**. > 2. Find the mParticle destination in the list and click on it. > 3. Click the **Syncs** tab, then click **Add Cohort Sync**. > 4. Select the cohort you wish to export. > 5. Select the sync type: > > * **One-Time Export:** A static snapshot of the cohort is sent immediately. > * **Recurring (Dynamic) Sync:** Mixpanel will automatically update the audience in mParticle as users enter or exit the criteria. > 6. Click **Start Sync**. > [tab] From Lexicon > > 1. Navigate to **Lexicon**, then select the **Cohorts** tab to view all of your cohorts. > 2. Find the cohort you wish to export, click the **three-dot overflow menu (...)**, and select **Export to... > mParticle**. > 3. Select the sync type: > > * **One-Time Export:** A static snapshot of the cohort is sent immediately. > * **Recurring (Dynamic) Sync:** Mixpanel will automatically update the audience in mParticle as users enter or exit the criteria. > 4. Click **Start Sync**. > > ![mParticle 6 Image](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/mparticle6.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=3c4a7c72915faaa5ade089584da33287) *** ## Sync Types ### One-Time In this sync, Mixpanel sends mParticle a static set of users who currently qualify for the cohort. The audience membership will not be updated in mParticle after this export. ### Dynamic (Recurring) In a dynamic sync, Mixpanel initiates a sync every 15 minutes. Mixpanel sends "diffs" (adds and removes) to ensure that the user’s Audience membership in mParticle reflects their current state in Mixpanel. *** ## Setting \$mparticle\_user\_id in Mixpanel If you find that Mixpanel Cohorts are not properly matching again mParticle Cohorts, this is most likely because the primary identifier in mParticle is not set in Mixpanel’s user profiles. This is easy to connect using one of the two below methods ### Set \$mparticle\_user\_id as a User Attribute via SDK (Recommended for Developers) To ensure \$mparticle\_user\_id appears as a specific property on the user profile, you can manually set it as a user attribute in your app's code. Since mParticle forwards all user attributes to Mixpanel (if "Include User Attributes" is enabled), this is the most reliable method. Web SDK Example: ```js theme={"system"} const currentUser = mParticle.Identity.getCurrentUser(); if (currentUser) { const mpid = currentUser.getMPID(); currentUser.setUserAttribute("$mparticle_user_id", mpid); } ``` iOS (Swift) Example: ```swift theme={"system"} if let currentUser = MParticle.sharedInstance().identity.currentUser { currentUser.setUserAttribute("$mparticle_user_id", value: currentUser.mpid.stringValue) } ``` ### Use mParticle Rules (No-Code) If you cannot change your app's code, you can use mParticle Rules to automatically map the MPID to a user attribute before it is sent to Mixpanel. Go to Data Plan > Rules in mParticle. Create a new Rule for the Mixpanel Output. Use the rule to copy the mpid from the batch level into the user\_attributes object as \$mparticle\_user\_id. Logic: `batch.user_attributes['$mparticle_user_id'] = batch.mpid;` Once the rule is active, every event sent to Mixpanel will include this attribute, and mParticle will update the Mixpanel People profile accordingly. ### Recommended Configuration Settings For these connections methods to work as intended, ensure these toggles are active in your Mixpanel Connection Settings in mParticle: Use Mixpanel People: Must be True (to enable user profiles). Include User Attributes: Must be True (to ensure the custom \$mparticle\_user\_id attribute is forwarded). Create Profile Only If Logged In: Set to True (typically we will only want profile + cohorts based on known/authenticated users) *** ## How the Sync Works ### Identity Mapping To ensure users are correctly matched in mParticle, Mixpanel maps identifiers in the following order of priority: 1. `$mparticle_user_id`: If this property exists on the Mixpanel user profile, it will be used as the primary identifier. 2. `$distinct_id`: If `$mparticle_user_id` is not present, Mixpanel falls back to the standard `$distinct_id`. ### Data Format Mixpanel sets a user attribute in mParticle to represent cohort membership. This allows you to build or trigger [Audiences](https://docs.mparticle.com/guides/segmentation/audiences/overview/) within mParticle based on these attributes. When a user enters a cohort, Mixpanel sends an update to set the attribute to `true`: ```json theme={"system"} { "user_attributes": { "": true } } ``` When a user exits the cohort, Mixpanel updates the attribute to `false`: ```json theme={"system"} { "user_attributes": { "": false } } ``` *** ## Verifying in mParticle Once the export begins, you can verify the data flow in mParticle: ### Generic validation 1. Navigate to **Data Platform > Trends** (or Live Stream if you are using dev data). 2. Select your Mixpanel input feed in the inputs dropdown to see of user profile updates received from the mixpanel cohort sync. ![mParticle 3 Image](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/mparticle3.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=46baab33037edf122b4132913b52e763) ### User specific validation (requires org setup and user permission for user profile lookup) 1. In your Mixpanel cohort grab the Mparticle User id 2. Go to mParticle > Customer 360 > User Profiles and search the user ![mParticle 4 Image](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/mparticle4.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=64f2d98046ddbbf9ce3daf25fda4b2bc) 3. Check that the user has a user attribute with the name of your cohort. *** ## Troubleshooting ### Discrepancies in User Count The most common cause for mismatched user counts is missing identifiers. If a user in the Mixpanel cohort does not have an `$mparticle_user_id` or a valid `$distinct_id` that matches a record in mParticle, the sync will not be able to update that user. To check for eligible users in Mixpanel: 1. Go to the **Users** report. 2. Filter for your cohort. 3. Add a filter to check if `$mparticle_user_id` is set. This shows the maximum number of users likely to match via the primary ID. ### Export is Paused If your sync is marked as **Paused** in the Mixpanel Destinations page, hover over the status to see the error. This is usually caused by an invalid webhook url or a connection issue with the mParticle endpoint. You can typically resolve this by disconnecting and reconnecting the integration with a fresh API token. # OneSignal Source: https://docs.mixpanel.com/docs/cohort-sync/integrations/onesignal Export Mixpanel cohorts to OneSignal to create custom segments that you can apply in your OneSignal campaigns ## Overview Export Mixpanel cohorts to OneSignal to create custom segments that you can apply in your OneSignal campaigns. Manage the OneSignal integration from the Mixpanel Destinations page. OneSignal also supports an integration to send messaging interactions to Mixpanel - for more details, see [OneSignal's Mixpanel integration](https://documentation.onesignal.com/docs/mixpanel). ## Permissions You must be a Mixpanel project admin to enable the OneSignal integration. Additionally, you must have a paid OneSignal plan to use the integration. If you attempt to sync cohorts while on a free OneSignal plan, you will receive the following error: "App may not submit cohort updates from Mixpanel". ## Enable the Integration Follow these steps to enable the integration with OneSignal: 1. Navigate to **Data** in the nav bar, then select **Destinations**. 2. Click **Add Destination**, select OneSignal, and click **Connect**. > [!NOTE] > > If you set a User ID Property, it should be a Mixpanel user property that matches the OneSignal External ID. If you do not select one, Mixpanel will default to using the `$onesignal_user_id` property to match users between OneSignal and Mixpanel. See more about [matching users between OneSignal and Mixpanel](/docs/cohort-sync/integrations/onesignal#matching-users-between-onesignal-and-mixpanel). ![OneSignal 2 Image](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/onesignal6.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=6af4ad66b223e44301fa7c920e83ba32) 3. You will need to provide two credentials to authorize the connection: **API Key and App ID**. You can find these values in your **OneSignal settings** page. The OneSignal integration will show a **Connected** tag in the UI once the connection succeeds. ## Matching Users between OneSignal and Mixpanel > [!WARNING] > > **Warning:** Projects using the [Simplified ID merge system](/docs/tracking-methods/id-management#identity-merge-apis) must have the `$user_id` in Mixpanel match the user identifier in the partner service. Using any alternative partner properties to match users between tools may result in partner events not being attributed to the correct user in Mixpanel. Any partner properties mentioned in the section below are primarily applicable to projects on the original ID merge system. Mixpanel only exports identified user profiles to match to OneSignal - users without user profile properties (i.e., anonymous users) will not export. To match an exported Mixpanel user to OneSignal, the user’s Mixpanel profile must contain a user property, `$onesignal_user_id`. The value of this property is a string representing that user’s External User ID in OneSignal. OneSignal recommends using External User ID, as it’s a cross-platform user identifier and allows for OneSignal’s email capabilities. In your implementation, reference your External User ID from OneSignal’s SDK and set the user property `$onesignal_user_id` on the user’s Mixpanel profile. User profiles without this user property will **not** export to OneSignal - it is a requirement for user matching. In addition, when our ingestion service detects calls setting this user property, Mixpanel will also auto-alias the value of `$onesignal_user_id` to the user's distinct\_id. This ensures that messaging data passed from OneSignal to Mixpanel continues to be attributed to the correct user. ## Export a Cohort To export a cohort to OneSignal: > [tab] From the Destinations page (recommended) > > 1. Navigate to **Data** in the nav bar, then select **Destinations**. > 2. Find the OneSignal destination in the list and click on it. > 3. Click the **Syncs** tab, then click **Add Cohort Sync**. > 4. Select the cohort you want to export and configure the sync (one-time or dynamic). Click **Start Sync**. > [tab] From Lexicon > > 1. Navigate to **Lexicon**, then select the **Cohorts** tab to view all of your cohorts. > 2. Select the cohort that you want to export. Click on the three-dot icon on the right side of the cohort and click **Export to OneSignal**. > > ![OneSignal 4 Image](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/onesignal4.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=fafa7fb3014b1fc9c0b841c57ee46ee5) ## Sync Types This integration supports two types of exports: one-time export and dynamic sync. When you generate a one-time export or dynamic sync, it overwrites the previous export with an updated export that reflects users who qualify for the cohort at the time of export. ### One-Time Export In a one-time export, Mixpanel sends OneSignal a static export of users who currently qualify for the cohort. The cohort data will not be updated in OneSignal after a one-time export. ### Dynamic Sync In dynamic sync, Mixpanel initiates sync between a cohort and OneSignal every fifteen minutes. The exported cohort will be updated every fifteen minutes to reflect the most recent list of users in a cohort. ## Select the Segment in OneSignal Once the export completes, you will see a Segment reflecting the set of users from your Mixpanel cohort: ![OneSignal 5 Image](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/onesignal5.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=3fb0ff9ba2cf6b6c2857edb9c96854e4) ## OneSignal Events into Mixpanel & MTU exemptions OneSignal offers the ability to forward campaign interaction events to Mixpanel. For more detail, [please refer to OneSignal's integration guide](https://documentation.onesignal.com/docs/mixpanel). Events coming from OneSignal are marked with the property `$source`. Because OneSignal's event structure follows Mixpanel's naming convention for messaging events, it will have the same exemptions outlined in the MTU calculation guide for which events do not count towards MTU tallies. Message delivery events will not count towards a user being in MTU counts, while message engagement events will. The following OneSignal events are exempt from MTU calculations: * \$app\_open (App Opened from Push) * \$campaign\_delivery (Message Sent) * \$campaign\_received (Message Received) * \$campaign\_open (Message Opened) # Salesforce Marketing Cloud Source: https://docs.mixpanel.com/docs/cohort-sync/integrations/salesforce-marketing-cloud Export Mixpanel cohorts to Salesforce Marketing Cloud (SFMC) Data Extensions, with a one-time installed-package setup and recurring syncs ## Overview This integration lets you export cohorts from Mixpanel to Salesforce Marketing Cloud (SFMC). Once the one-time setup process is done, it's easy to sync cohorts on a recurring basis entirely from the Mixpanel UI. ## Permissions You must be a Mixpanel project admin to enable the SFMC integration. ## Enable the Integration This process will require setup on both SFMC and Mixpanel. ### SFMC Setup 1. Navigate to **Setup → Apps → Installed packages**. Then create a package with with a Scope that provides **read/write access to DataExtensions**. Keep track of the following information (highlighted above) -- it will be useful to connect Mixpanel to SFMC: * **Client Id** * **Client Secret** * **Subdomain** ![SFMC 1 Image](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sfmc1.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=a39578fcf2a6a83f0c25e675914023f5) 2. Navigate to **Audience Builder → Contact Builder → Data Extensions** to Create a New Data Extension. ![SFMC 2 Image](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sfmc2.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=a830fff969bd499cd6b74a998856c3ee) 3. Create a new **Data Extension** with a primary key of the name **SubscriberKey**. The key type for most use-cases will stay as **Text** and size of 250 characters unless you are selecting email or phone number as the id in which you can find corresponding data types. This field will contain ids that map to the unique user property in Mixpanel. ![SFMC 3 Image](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sfmc3.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=ec8eb503cd3b8e1eacf216d1d3b7125f) 4. Note the **External Key** (underlined below) for setup on Mixpanel. ![SFMC 4 Image](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sfmc4.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=73133197e079f0dbbdf1a184292c47e5) ### Mixpanel Setup 1. Navigate to **Data** in the nav bar, then select **Destinations**. 2. Click **Add Destination**, select Salesforce Marketing Cloud, and click **Connect**. The following details are needed: * **Data Extension External Key** * An optional user property (distinct\_id will be used by default). This will sync to the SubscriberKey field * **client\_id**, **client\_secret**, **subdomain** ![SFMC 6 Image](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sfmc6.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=dc5608bf902e62cf7979cd9b1f5b2898) 3. The SFMC integration will show a **Connected** tag in the UI once the connection succeeds. ## Matching Users between SFMC and Mixpanel You can select any user property to sync to SFMC as the subscriber key. Once the user ID is set you cannot change it later as this can cause corruption in the Data Extension. If you absolutely need to change this field, you should recreate the Data Extension. User profiles without the above selected user property will **not** export to SFMC - it is a requirement for user matching. ## Export a Cohort To export a cohort from Mixpanel to SFMC: > [tab] From the Destinations page (recommended) > > 1. Navigate to **Data** in the nav bar, then select **Destinations**. > 2. Find the Salesforce Marketing Cloud destination in the list and click on it. > 3. Click the **Syncs** tab, then click **Add Cohort Sync**. > 4. Select the cohort you want to export and configure the sync (one-time or dynamic). Click **Start Sync**. > [tab] From Lexicon > > 1. Navigate to **Lexicon**, then select the **Cohorts** tab to view all of your cohorts. > > ![SFMC 7 Image](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sfmc7.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=33e86a71804b75f7eb601e0d57b4b8c5) > > 2. Select the cohort that you want to export. Click on the three-dot icon on the right side of the cohort. > 3. Click Export to > SFMC. Select either one-time sync or dynamic sync. Click **Start Sync**. > > ![SFMC 8 Image](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sfmc8.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=69936a52f051306b17f00b48eee39864) ## Sync Types This integration supports two types of exports: one-time export and dynamic sync. ### One-Time Export In a one-time export, Mixpanel sends SFMC a static export of users who currently qualify for the cohort. The cohort data will not be updated in SFMC after a one-time export. ### Dynamic Sync In dynamic sync, Mixpanel initiates sync between a cohort and SFMC every 15 minutes. The exported cohort will be updated every 15 minutes to reflect the most recent list of users in a cohort. ## Data Extension in SFMC The cohort data will be exported to the SFMC Data Extension that was set up above. New cohorts are added as property fields to the data extension. ![SFMC 9 Image](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sfmc9.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=3ecb285e1679fb953ed4d00c6ca8bf55) Each record in the Data Extension is a user and its properties show the membership of this user in different cohorts. ![SFMC 10 Image](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sfmc10.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=1d4b90c7f0004f906b78c44829e2ad26) # Segment Source: https://docs.mixpanel.com/docs/cohort-sync/integrations/segment Export Mixpanel cohorts to Segment with a Mixpanel Cohorts source and write key, so you can target users across Segment destinations ## Overview This integration allows you to export Cohorts of users from Mixpanel to Segment so that you can better target users across many downstream connections. ## Permissions You must be a Mixpanel project admin to enable the Segment integration. ## Enable the Integration This connection requires set up on both Segment and Mixpanel. ### Segment Setup The connection requires a Segment Write Key. You can obtain this key via Segment's UI: 1. Log into your Segment workspace and click **Sources** under **Connections** in the menu bar on the left. 2. Click **Add Source** button on the right side above the sources table. 3. Search for **Mixpanel Cohorts**, select and hit next ![Segment 1 Image](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/segment1.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=9e1b93a32ccbc0a180845a2909ad6b02) 4. Create a Mixpanel Cohorts source. ![Segment 2 Image](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/segment2.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=7e613e65119dffd29f4cfc6d0628ef95) 5. Copy the **Write Key** displayed there. ![Segment 3 Image](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/segment3.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=ae2d8b65b63e09c73d9c14aaf2660aa2) ### Mixpanel Setup We will use the Write Key from Segment to enable the connection in Mixpanel. 1. Navigate to **Data** in the nav bar, then select **Destinations**. 2. Click **Add Destination**, select Segment, click **Connect**, and paste the **Write Key** that you generated in Segment. > [!NOTE] > > If you set a User ID Property, it should be a Mixpanel user property that matches the Segment User ID. ![Segment 5 Image](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/segment5.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=9e26571db3b21916a0f02832db27d73d) 3. Click **Continue** to complete the process. ## Export a Cohort To export a Mixpanel cohort into Segment. > [tab] From the Destinations page (recommended) > > 1. Navigate to **Data** in the nav bar, then select **Destinations**. > 2. Find the Segment destination in the list and click on it. > 3. Click the **Syncs** tab, then click **Add Cohort Sync**. > 4. Select the cohort you want to export and configure the sync (one-time or dynamic). Click **Start Sync**. > [tab] From Lexicon > > 1. Navigate to **Lexicon**, then select the **Cohorts** tab to view all of your cohorts. > 2. Select the overflow menu on cohort that you want to export and click Export to... → Segment. > > ![Segment 6 Image](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/segment6.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=bce8e68b33307266569ec9a576fd5a8c) > > 3. Select either one-time sync or dynamic sync, Click **Start Sync**. ## Sync Types There are two types of sync: one-time and dynamic. When you generate a one-time export or dynamic sync, it overwrites the previous export with an updated export that reflects users who qualify for the cohort at the time of export. ### One-Time In this sync, Mixpanel sends Segment the static set of users who currently qualify for the cohort. The cohort data will not be updated in Segment after a one-time export. ### Dynamic In dynamic sync, Mixpanel initiates sync between a cohort and Segment every 15 minutes. The exported cohort will be updated every 15 minutes to reflect the most recent list of users in a cohort. ## Verifying in Segment Once the export completes, you can open the debugger on the source you created in Segment above and you'll see "identify" calls flowing in for each user that has been added or removed from the cohort. ![Segment 7 Image](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/segment7.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=a88b50d20383ca13686e81526d715b17) Mixpanel sets a property on the user's profile in Segment indicating whether they are currently part of the cohort. We send the following identify call to Segment when a user enters the cohort: ```json theme={"system"} { "type": "identify", "traits": { "Mixpanel - ": true, }, "userId": "user@email.com" // we use the distinct_id property here } ``` We send the following when a user exits the cohort: ```json theme={"system"} { "type": "identify", "traits": { "Mixpanel - ": false, }, "userId": "user@email.com" // we use the distinct_id property here } ``` # Taplytics Source: https://docs.mixpanel.com/docs/cohort-sync/integrations/taplytics Export Mixpanel cohorts to Taplytics as custom segments for targeting experiments and feature flags ## Overview Export Mixpanel cohorts to Taplytics to create custom segments that you can apply in your Taplytics experiments, feature flags, and more. Manage the Taplytics integration from the Mixpanel Destinations page. Taplytics also supports an integration to send experiment data to Mixpanel - for more details, [see the Taplytics Mixpanel integration](https://docs.taplytics.com/docs/guides-integrations-for-ios#mixpanel). ## Permissions You must be a Mixpanel project admin to enable the Taplytics integration. ## Enable the Integration To enable the integration with Taplytics: 1. Navigate to **Data** in the nav bar, then select **Destinations**. 2. Click **Add Destination**, select Taplytics, and click **Connect**. ![Taplytics 2 Image](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/taplytics2.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=5d966acca5164be6679edf474503d2d6) 3. The connection uses one credential to authorize, **API Key**. Supply an API token generated from your **Taplytics settings page** to establish the connection. 4. The Taplytics integration will show a **Connected** tag in the UI once the connection establishes. ## Matching Users between Taplytics and Mixpanel Mixpanel only exports identified user profiles to match to Taplytics - users without user profile properties (i.e. anonymous users) will not export. The integration requires that you use the same system of identifiers for both tools, meaning the value you pass to `mixpanel.identify("internal_user_id")` will have the same value as you pass to Taplytics when specifying `userId` to your Taplytics API calls. Taplytics will attempt to match users from inbound cohorts based on their Mixpanel distinct\_id. ## Export a Cohort To export a Cohort to Taplytics: > [tab] From the Destinations page (recommended) > > 1. Navigate to **Data** in the nav bar, then select **Destinations**. > 2. Find the Taplytics destination in the list and click on it. > 3. Click the **Syncs** tab, then click **Add Cohort Sync**. > 4. Select the cohort you want to export and configure the sync (one-time or dynamic). Click **Start Sync**. > [tab] From Lexicon > > 1. Navigate to **Lexicon**, then select the **Cohorts** tab to view all of your cohorts. > 2. Select the cohort that you want to export. Click on the three-dot icon on the right side of the cohort. > 3. Click **Export to > Taplytics**. Select either one-time sync or dynamic sync. Click **Start Sync**. ![Taplytics 3 Image](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/taplytics3.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=c974454264ab145fe292f3a9d58df8d4) ## Sync Types This integration supports two types of exports: one-time export and dynamic sync. When you generate a one-time export or dynamic sync, it overwrites the previous export with an updated export that reflects users who qualify for the cohort at the time of export. ### One-Time Export In a one-time export, Mixpanel sends Taplytics a static export of users who currently qualify for the cohort. The cohort data will not be updated in Taplytics after a one-time export. ### Dynamic Sync In dynamic sync, Mixpanel initiates sync between a cohort and Taplytics every two hours. The exported cohort will be updated every day to reflect the most recent list of users in a cohort. ## Select the Segment in Taplytics Once the export completes, you will see a Segment reflecting the set of users from your Mixpanel cohort in Taplytics's Segment editor, as custom data (e.g. "Beta Users"): ![Taplytics 4 Image](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/taplytics4.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=d8d84cffed4a52fbf17f173b4911484a) # VWO Source: https://docs.mixpanel.com/docs/cohort-sync/integrations/vwo Export Mixpanel cohorts to VWO to create custom segments that you can apply in your VWO experiments ## Overview > [!NOTE] > > VWO's cohort sync integration is rebranding under Wingify. New setups should use the [Wingify destination](/docs/cohort-sync/integrations/wingify), which sends cohorts to Wingify's endpoints and matches users on `$wingify_user_id`. This VWO destination remains available for existing connections. Export Mixpanel cohorts to VWO to create custom segments that you can apply in your VWO experiments. Manage the VWO integration from the Mixpanel Destinations page. VWO also supports an integration to send experiment data to Mixpanel - for more details, see [the VWO Mixpanel integration](https://help.vwo.com/hc/en-us/articles/900004226426). ## Permissions You must be a Mixpanel project admin to enable the VWO integration. ## Enable the Integration To enable the integration: 1. Navigate to **Data** in the nav bar, then select **Destinations**. 2. Click **Add Destination**, select VWO, and click **Connect**. ![VWO 2 Image](https://mintcdn.com/mixpanel-edb78807/hlEuYugIN20vBJ1j/images/vwo2.png?fit=max\&auto=format\&n=hlEuYugIN20vBJ1j\&q=85\&s=fac16caa2a6693e3204decc61136b467) 3. The connection uses one credential to authorize, **API Key**. Supply an API token generated from your **VWO settings page** to establish the connection. 4. The VWO integration will show a **Connected** tag in the UI once the connection establishes. ## Matching Users between VWO and Mixpanel > **Warning:** Projects using the [simplified ID merge system](/docs/tracking-methods/id-management#identity-merge-apis) must have the `$user_id` in Mixpanel match the user identifier in the partner service. Using any alternative partner properties to match users between tools may result in partner events not being attributed to the correct user in Mixpanel. Any partner properties mentioned in the below section are primarily applicable to projects on the original ID merge system. Mixpanel only exports identified user profiles with the user property `$vwo_user_id` to match to VWO - users without user profile properties (i.e. anonymous users) will not export. The value of this property should equal a matching User ID in VWO. If you have the VWO SDK present in your application, it will automatically declare the `$vwo_user_id` property on users' Mixpanel profiles. If the VWO SDK is not on your application, you can declare the user properties either through Mixpanel's own SDKs or HTTP API. VWO will attempt to match users from inbound cohorts based on the value seen on `$vwo_user_id`. In addition, when our ingestion service detects calls setting this user property, Mixpanel will also auto-alias the value of `$vwo_user_id` to the user's distinct\_id. This ensures that experiment data passed from VWO to Mixpanel still attributes to the correct user. ## Export a Cohort To export a Cohort to VWO: > [tab] From the Destinations page (recommended) > > 1. Navigate to **Data** in the nav bar, then select **Destinations**. > 2. Find the VWO destination in the list and click on it. > 3. Click the **Syncs** tab, then click **Add Cohort Sync**. > 4. Select the cohort you want to export and configure the sync (one-time or dynamic). Click **Start Sync**. Do note: VWO has a 15MB export limit for profiles in the cohort. > [tab] From Lexicon > > 1. Navigate to **Lexicon**, then select the **Cohorts** tab to view all of your cohorts. > 2. Select the cohort that you want to export. Click on the three-dot icon on the right side of the cohort. > 3. Click **Export to > VWO**. Select either one-time sync or dynamic sync. Click **Start Sync**. Do note: VWO has a 15MB export limit for profiles in the cohort. > > ![VWO 3 Image](https://mintcdn.com/mixpanel-edb78807/hlEuYugIN20vBJ1j/images/vwo3.png?fit=max\&auto=format\&n=hlEuYugIN20vBJ1j\&q=85\&s=974c4b5c1f7f230ec00a600b45c56164) ## Sync Types This integration supports two types of exports: one-time export and dynamic sync. When you generate a one-time export or dynamic sync, it overwrites the previous export with an updated export that reflects users who qualify for the cohort at the time of export. ### One-Time Export In a one-time export, Mixpanel sends VWO a static export of users who currently qualify for the cohort. The cohort data will not be updated in VWO after a one-time export. ### Dynamic Sync In dynamic sync, Mixpanel initiates sync between a cohort and VWO every two hours. The exported cohort will be updated every day to reflect the most recent list of users in a cohort. # Webengage Source: https://docs.mixpanel.com/docs/cohort-sync/integrations/webengage Export Mixpanel cohorts to WebEngage to create custom segments that you can apply in your WebEngage campaigns ## Overview Export Mixpanel cohorts to WebEngage to create custom segments that you can apply in your WebEngage campaigns. Manage the WebEngage integration from the Mixpanel Destinations page. ## Permissions You must be a Mixpanel project admin to enable the WebEngage integration. ## Enable the Integration To enable the integration: 1. Navigate to **Data** in the nav bar, then select **Destinations**. 2. Click **Add Destination**, select WebEngage, and click **Connect**. 3. Enter the [WebEngage API Key](https://docs.webengage.com/docs/rest-api-getting-started#getting-your-credentials) from your WebEngage dashboard. ![Webengage 2 Image](https://mintcdn.com/mixpanel-edb78807/hlEuYugIN20vBJ1j/images/webengage2.png?fit=max\&auto=format\&n=hlEuYugIN20vBJ1j\&q=85\&s=47c4ff1f7788daa23552839198ff2e71) 4. The WebEngage integration will show a **Connected** tag in the UI once the connection succeeds. ## Matching Users between WebEngage and Mixpanel Mixpanel only exports identified user profiles to match to WebEngage - users without user profile properties (i.e. anonymous users) will not export. The exported users are properly mapped in WebEngage's system only if the resolved distinct\_id in Mixpanel and the User ID in WebEngage have the same value. If no match is found, WebEngage will create new user profiles for the users exported from Mixpanel. ## Export a Cohort To export a Mixpanel Cohort to WebEngage: > [tab] From the Destinations page (recommended) > > 1. Navigate to **Data** in the nav bar, then select **Destinations**. > 2. Find the WebEngage destination in the list and click on it. > 3. Click the **Syncs** tab, then click **Add Cohort Sync**. > 4. Select the cohort you want to export and configure the sync (one-time or dynamic). Click **Start Sync**. > [tab] From Lexicon > > 1. Navigate to **Lexicon**, then select the **Cohorts** tab to view all of your cohorts. > 2. Select the cohort that you want to export. Click on the three-dot icon on the right side of the cohort. > 3. Click **Export to WebEngage**. Select either one-time sync or dynamic sync. Click **Start Sync**. > > ![Webengage 3 Image](https://mintcdn.com/mixpanel-edb78807/hlEuYugIN20vBJ1j/images/webengage3.png?fit=max\&auto=format\&n=hlEuYugIN20vBJ1j\&q=85\&s=4cdc1d4328b54bb8161a5cff6d9524c2) ## Sync Types This integration supports two types of exports: one-time export and dynamic sync. When you generate a one-time export or dynamic sync, it overwrites the previous export with an updated export that reflects users who qualify for the cohort at the time of export. ### One-Time Export In a one-time export, Mixpanel sends WebEngage a static export of users who currently qualify for the cohort. The cohort data will not be updated in WebEngage after the one-time export is complete. ### Dynamic Sync In dynamic sync, Mixpanel initiates sync between a cohort and WebEngage every 30 minutes. The exported cohort will be updated every 30 minutes to reflect the most recent list of users in a cohort. ![Webengage 4 Image](https://mintcdn.com/mixpanel-edb78807/hlEuYugIN20vBJ1j/images/webengage4.png?fit=max\&auto=format\&n=hlEuYugIN20vBJ1j\&q=85\&s=fa89990fbb00db889a5755f2156456db) # Wingify Source: https://docs.mixpanel.com/docs/cohort-sync/integrations/wingify Export Mixpanel cohorts to Wingify (formerly VWO) as custom segments for your experiments ## Overview Export Mixpanel cohorts to Wingify to create custom segments that you can apply in your Wingify experiments. Manage the Wingify integration from the Mixpanel Destinations page. > [!NOTE] > > Wingify was formerly known as VWO. If you set up cohort exports before the rebrand, you may still be using the [VWO destination](/docs/cohort-sync/integrations/vwo), which remains available for existing connections. ## Permissions You must be a Mixpanel project admin to enable the Wingify integration. ## Enable the Integration To enable the integration: 1. Navigate to **Setting** in the nav bar, then select **Destinations**. 2. Click **Add Destination**, search Wingify and click. 3. In the **Connect to Wingify** modal, fill in the required fields: * **Connector Name** - a name to identify this connection in Mixpanel. * **API Key** - your Wingify API key. * **Where is your Wingify's visitor data stored?** - select the datacenter that matches your Wingify account. This sets the regional endpoint Mixpanel exports your cohorts to. 4. Click **Continue**. The Wingify integration will show a **Connected** tag in the UI once the connection establishes. ## Matching Users between Wingify and Mixpanel > **Warning:** Projects using the [simplified ID merge system](/docs/tracking-methods/id-management#identity-merge-apis) must have the `$user_id` in Mixpanel match the user identifier in the partner service. Using any alternative partner properties to match users between tools may result in partner events not being attributed to the correct user in Mixpanel. Any partner properties mentioned in the below section are primarily applicable to projects on the original ID merge system. Mixpanel only exports identified user profiles that have the `$wingify_user_id` property, whose value should equal a matching User ID in Wingify (anonymous users will not export); the Wingify SDK sets this property automatically, or you can declare it through Mixpanel's own SDKs or HTTP API. ## Export a Cohort To export a Cohort to Wingify: > [tab] From the Destinations page (recommended) > > 1. Navigate to **Setting** in the nav bar, then select **Destinations**. > 2. Find the Wingify destination in the list and click on it. > 3. Click **Add Cohort Sync**. > 4. Select the cohort you want to export and configure the sync (one-time or dynamic). Click **Create Sync**. > [tab] From Lexicon > > 1. Navigate to **Lexicon**, then select the **Cohorts** tab to view all of your cohorts. > 2. Click on the three-dot icon on the right side of the cohort that you want to export. > 3. Click **Export to > Wingify**. Select either one-time sync or dynamic sync. Click **Begin Sync**. > > ![Wingify Export from Lexicon Image](https://mintcdn.com/mixpanel-edb78807/iO1bqNNrL3qngmYW/images/wingify-lexicon-export.png?fit=max\&auto=format\&n=iO1bqNNrL3qngmYW\&q=85\&s=1806378af6edc9ea2fc7de6ae9ecc642) ## Activate the Cohort in Wingify > [!WARNING] > > Exporting a cohort from Mixpanel only sends the cohort **name** to Wingify. No user membership data is ingested, and the cohort cannot be used for targeting, until you import it in Wingify using the steps below. After you start a sync, complete the setup in Wingify: 1. In Wingify, open the **Mixpanel** integration, go to the **Config** tab, and find your connection by its connector name. Click its **Cohorts Synced** link, then click **Add cohort** and select the cohort Mixpanel exported by its name. 2. Once added, Wingify begins ingesting the cohort's members and the segment becomes available for experiment targeting. This manual import step is required by Wingify's design and is not a Mixpanel limitation. To verify the import, open **Settings > Accounts > Attributes List** in Wingify, where the cohort appears with **Source: Mixpanel** once the next sync completes. To check a specific user, open the cohort's three-dot menu, select **Test**, and enter that user's `$wingify_user_id`. The cohort's members are only searchable after you have imported it and the next sync has finished. ## Sync Types This integration supports two types of exports: one-time export and dynamic sync. When you generate a one-time export or dynamic sync, it overwrites the previous export with an updated export that reflects users who qualify for the cohort at the time of export. ### One-Time Export In a one-time export, Mixpanel sends Wingify a static export of users who currently qualify for the cohort. The cohort data will not be updated in Wingify after a one-time export. ### Dynamic Sync In dynamic sync, Mixpanel initiates sync between a cohort and Wingify every two hours. The exported cohort will be updated to reflect the most recent list of users in a cohort. # Xtremepush Source: https://docs.mixpanel.com/docs/cohort-sync/integrations/xtremepush Combine Mixpanel behavioral analytics with Xtremepush attribution and engagement data ## Overview The Xtremepush integration allows you to combine behavioral analytics with attribution and engagement data for targeted and relevant customer communication. Export Mixpanel cohorts to Xtremepush, as a one-off or via automated, scheduled imports, to use as part of your segmented campaign sends. All cohorts are synced into Xtremepush as a matching list so they are simple to find afterwards. Import Xtremepush Campaign engagement data to Mixpanel dashboards for richer understanding of your customers behavior across all channels. ## Permissions You must be a Mixpanel project admin to enable the Xtremepush integration. ## Enable the Integration To enable the integration: 1. Navigate to **Data** in the nav bar, then select **Destinations**. 2. Click **Add Destination**, select Xtremepush, and click **Connect**. 3. The Xtremepush integration will show a **Connected** tag in the UI once the connection succeeds. ## Matching Users between Xtremepush and Mixpanel Mixpanel only exports identified user profiles to match to Xtremepush - users without user profile properties (i.e. anonymous users) will not export. Xtremepush uses a given user's distinct\_id to match the Mixpanel user profile to Xtremepush. As a result, not all exported profiles may match if these values are missing or differ from the emails and phone numbers stored on Insider. Note that exports are used solely for matching user identities between products - the integration will not send the full set of a user's profile properties to Xtremepush, nor will it generate new users. ## Export a Cohort You can export a cohort to Xtremepush from the Cohorts report. > [tab] From the Destinations page (recommended) > > 1. Navigate to **Data** in the nav bar, then select **Destinations**. > 2. Find the Xtremepush destination in the list and click on it. > 3. Click the **Syncs** tab, then click **Add Cohort Sync**. > 4. Select the cohort you want to export and configure the sync (one-time or dynamic). Click **Start Sync**. > [tab] From Lexicon > > 1. Navigate to **Lexicon**, then select the **Cohorts** tab to view all of your cohorts. > 2. Select the cohort that you want to export. Click on the three-dot icon on the right side of the cohort. > 3. Click **Export to Xtremepush**. Select either one-time sync or dynamic sync. Click **Start Sync**. ## Sync Types This integration supports two types of exports: one-time export and dynamic sync. When you generate a one-time export or dynamic sync, it overwrites the previous export with an updated export that reflects users who qualify for the cohort at the time of export. ### One-Time Export In a one-time export, Mixpanel sends Xtremepush a static export of users who currently qualify for the cohort. The cohort data will not be updated in Xtremepush after a one-time export. ### Dynamic Sync In dynamic sync, Mixpanel initiates sync between a cohort and Xtremepush every two hours. The exported cohort will be updated every two hours to reflect the most recent list of users in a cohort. ## Select the Custom Segment in Xtremepush Once the export completes, you will see a custom segment reflecting the set of users from your Mixpanel cohort (e.g. "7days-cart-abandoners"): ## Xtremepush Events into Mixpanel & MTU exemptions You can use events from your Xtremepush integration to perform deeper analysis in Mixpanel. Events coming from Xtremepush are marked with the property `$source`. Mixpanel will exempt certain messaging outreach events from MTU calculations, meaning you're free to send campaigns to dormant users without them counting towards MTU billing (only once a user engages with a message will they then be counted towards that tally). The following Xtremepush events are exempt from MTU calculations: * xp.message.send.batch (EVENT\_MESSAGE\_SEND\_BATCH) * xp.message.delivery (EVENT\_MESSAGE\_DELIVERY) * xp.message.bounce (EVENT\_MESSAGE\_BOUNCE) * xp.message.open (EVENT\_MESSAGE\_OPEN) * xp.message.click (EVENT\_MESSAGE\_CLICK) * xp.message.unsubscribe (EVENT\_MESSAGE\_UNSUBSCRIBE) * xp.message.complaint (EVENT\_MESSAGE\_COMPLAINT) # Syncing cohorts to a custom webhook Source: https://docs.mixpanel.com/docs/cohort-sync/webhooks Mixpanel lets you sync cohorts to a custom webhook URL that you provide through the Destinations page Mixpanel lets you sync cohorts to a custom webhook URL that you provide through the Destinations page. After you establish a sync, Mixpanel sends the full cohort to the URL and then sends incremental updates that include users who enter or exit the cohort since the previous sync. This capability allows you to export cohorts to destinations that do not have a [native Mixpanel integration](/docs/cohort-sync/integrations). ## Prerequisites * A paid Mixpanel plan * A Mixpanel project * A webhook server. You can create a dummy webhook for testing purposes using [webhook.site](https://webhook.site/). * The webhook server should send back events to Mixpanel to track actions like 'Message sent', etc. (This is optional, but customers who need this have to implement it themselves) Customers can follow the naming convention mentioned in our [pricing documentation](/docs/pricing) to avoid certain events from being considered for MTU tallies. ## Setting up the webhook via our UI To create a new Custom Webhook destination: 1. Navigate to **Data** in the nav bar, then select **Destinations**. 2. Click **Add Destination**, select **Webhook**, and click **Connect**. 3. Provide a name for the connection and the URL of your webhook server. Optionally, enable Basic Authentication for calls to the webhook URL. ![image](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/screen_shot_webhook_cohorts.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=bf09a788904a39ea5964fa201580d7c6) From this point onward, you can sync any cohort to this connection. ### Initialize a Cohort Sync to the Webhook > [tab] From the Destinations page (recommended) > > 1. Navigate to **Data** in the nav bar, then select **Destinations**. > 2. Find the Webhook destination in the list and click on it. > 3. Click the **Syncs** tab, then click **Add Cohort Sync**. > 4. Select the cohort you want to sync and configure the sync. > [tab] From Lexicon > > 1. Navigate to **Lexicon**, then select the **Cohorts** tab. > 2. Click the three-dot menu next to the cohort you want to sync and select **Export to... > Webhook**. > 3. Choose a one-time export or a recurring sync, then click **Start Sync**. ### Exported Properties Mixpanel will automatically include `email`, `mixpanel_distinct_id`, `first_name`, and `last_name` to identify the user. If you need to add extra properties, feel free to add them in the `Properties to Export` field, where we populate some pre-existing fields for you to choose. ## Webhook Format Our webhook format has the following structure in the body of a `POST` request: * **action**: The action defines the type of message we are sending. It will be one of: * `members`: All members of the cohort, sent the first time the cohort is being synced or to refresh the cohort if there are any intermediate errors. When you get this message, replace the users you have in the cohort with the copy provided by us. * `add_members`: A diff consisting of users who have entered the cohort since the last sync. * `remove_members`: A diff consisting of users who have exited the cohort since the last sync. * **parameters** * **mixpanel\_project\_id**: the ID for the Mixpanel project that produced this cohort. * **mixpanel\_cohort\_id**: unique identifier of the cohort. * **mixpanel\_cohort\_name**: The cohort name, editable via the Mixpanel UI. * **mixpanel\_cohort\_description**: The cohort description, editable via the Mixpanel UI. * **mixpanel\_session\_id**: An identifier for this export. Mixpanel sends large cohorts over multiple messages; mixpanel\_session\_id uniquely identifies a set of requests that correspond to the same export. * **page\_info**: An object containing “total\_pages”, i.e., the number of total messages for the given session ID, and “page\_count”, the index of which page this message is (e.g., message 6 of 10, in the example below). You may use this value to know if/when you’ve collected the full set of messages for an export. * **members**: The list of users being added or removed from the cohort. We include `email`, `mixpanel_distinct_id`, `first_name`, and `last_name` to help identify the user. You may [specify additional properties](/docs/cohort-sync/webhooks#exported-properties) during setup. You can download the Swagger spec [here](https://mxpnl.notion.site/Cohort-Webhook-Yaml-17d35e8ca78245fdbfa0aa4fcbb56596). ```json theme={"system"} { "action": "members", "parameters": { "mixpanel_project_id": "{mixpanel_project_id}", "mixpanel_cohort_name": "{mixpanel_cohort_name}", "mixpanel_cohort_id": "{mixpanel_cohort_id}", "mixpanel_cohort_description": "description", "mixpanel_session_id": "mixpanel_session_id", "page_info": { "total_pages": 10, "page_count": 6 }, "members": [ { "email": "string", "mixpanel_distinct_id": "string", "first_name": "string", "last_name": "string", "phone_number": "xxx-xxx-xxxxx" }, { "email": "string", "mixpanel_distinct_id": "string", "first_name": "string", "last_name": "string", "phone_number": "xxx-xxx-xxxxx" } ] } } ``` ## Expected Response Format We expect a JSON response of the following shape. * **action**: Must match the action we sent. * **status**: Must be either `success` or `failure`. * **error**: Only expected on failure. * **message**: details about the error. * **code**: an HTTP status code. ```json theme={"system"} { "action": "add_members", "status": "success", // or failure "error": { "message": "some error message; this will be displayed in our UI", "code": 400 // an HTTP status code } } ``` ## Sync Cohorts are synced once every 30 minutes. The batch size is set to 1000 users per call to `add_members` or `remove_members`. ### Full Sync Full syncs are only performed when: * We sync the cohort for the first time. * We store the snapshot of the cohort state for the last successful sync for 3 days. If your webhook server is down (returns a 429 or 5XX error) for more than 3 days, the snapshot expires, and we do a full sync. Subsequent syncs include only differences in membership since the previous successful sync in order to preserve bandwidth, through a [diffing](/docs/cohort-sync/webhooks#diffing) mechanism. ### Diffing Every time we perform a successful sync to your webhook, we store a snapshot of the cohort as of that time. This snapshot is valid for 3 days. Subsequent syncs use the last successful snapshot of the cohort to compute the number of users added and removed (the diff). We send this diff to your webhook via the `add_members` and `remove_members` calls. ### Example Webhook Sync Scenario Consider A, B, C, D, E, and F as users. The sync interval is 30 minutes. T represents the time when the sync is created in our UI. `add_members(...)` indicates a call to the webhook to add members. `remove_members(...)` indicates a call to remove members. * **T**: `add_members(A, B, C, D)` | `remove_members()` * **T+10mins**: B, D leave the cohort * **T+20mins**: E, F join the cohort * **T+30mins**: `add_members(E, F)` | `remove_members(B, D)` * \<...No cohort changes...> * **T+1h**: `add_members()` | `remove_members()` calls are made to the customer webhook ### Failed Syncs We pause syncs when your server returns a non-transient error (400, 401, 403, 404). Please use the appropriate HTTP status code to indicate a non-transient error; this helps avoid added load. We record failed syncs in our UI and display the error message returned in the response from your webhook server (see the `error.message` field in the sample response above). A notification email is sent to all users who have set up cohort syncs when the syncs pause due to an error. We retry syncs 5 times over 60 secs with exponential backoff in response to 5xx and 429 status codes. After this point, we will wait until the next scheduled sync to retry. #### Diffs After Failed Syncs When a sync fails, we do not update the cohort snapshot. The next sync performed will recompute the diff based on the last successful snapshot (until 3 days have passed, at which point we will attempt to sync the full cohort). This ensures that the state of the cohort will converge to what Mixpanel has. ## FAQ **Does page\_count in the requests start from 0 or 1?** The page\_count starts from 1. **Are users within the cohort re-synced when webhook calls fail or there is an internal failure?** Even though we just sync a diff of users for each cohort, there can be failures that occur mid-sync. In a case like this, we don't have a mechanism to keep track of users that were already synced for a cohort when the failure occurs in between the sync process, so we start the sync from the top again. This can cause issues like users being synced again. **What can go wrong for custom webhooks when users are synced again after failure scenarios?** For example, if these users are set up for some action upon arrival, this failure and recovery could trigger a duplicate action for the same user. This can be fixed on the custom webhook server-side by keeping track of users who have already been targeted with the action. This way, during failure and recovery scenarios of cohort syncs, duplicate actions for the same users can be avoided. **How are actions tracked in Mixpanel?** The actions are not automatically tracked in Mixpanel as they occur on the customer-side webhook server. Customers have to explicitly track events back to Mixpanel in order to use them on the Mixpanel platform. **How can I edit a webhook's URL after creating it?** It's not possible at this moment to edit a webhook's URL; the only available action via UI is to disconnect it. **How can I delete/remove a webhook from the Destinations page?** It's not possible at this moment to delete or remove a webhook from your project's Destinations page; the only available action via UI is to disconnect it. # Community Source: https://docs.mixpanel.com/docs/community Connect with other Mixpanel users and get support > [card] [Slack Community](https://community.mixpanel.com/) > [card] [Guidelines](/docs/community/guidelines) # Guidelines Source: https://docs.mixpanel.com/docs/community/guidelines Community guidelines and terms of use for the Mixpanel Slack Community, including posting rules and enforcement You can join our Slack Community [here](https://www.mixpanel.com/community-slack)! ## General guidelines Mixpanel, Inc. (“Mixpanel”) provides the Mixpanel Community (“the Community”) to you as a place to share new product ideas, ask questions, plan your analytics strategy, find technical solutions, and learn how to use Mixpanel. While we want this to be a transparent community with free-flowing discussion, we do have some guidelines. 1. ID yourself. When creating an account, please edit your profile to include your company, title, and a photo (if you can). Try to use your Mixpanel @business address so the Community can better identify you. 2. Become a power user. Have the answer to someone’s question? Jump in and share your knowledge. There is no stigma in being a “know-it-all” here. In fact, we encourage it! 3. One you, one account. Please create only one account per person. Don’t misrepresent yourself (e.g., lie about your identity, affiliations, or age). Don’t pretend to be someone that you’re not, or intentionally give misleading or false information. 4. Keep it clean. Cursing, harassment, threatening language, violent content, nudity, and sexually explicit obscene material or the like are not permitted in the Community. 5. No spam. We have zero tolerance for it. Posted content should be related to sharing knowledge about Mixpanel. Don’t post irrelevant content. 6. No selling. If it is relevant to the conversation, you are free to share information about products and services that you love. However, do not use the Community to prospect or link out to your website for commercial or promotional purposes or for political campaigning. 7. Ownership/Confidentiality. Do not post content that you do not have the right to publish. Additionally, do not post information that is confidential or that may be considered “Customer Content” under Mixpanel’s Terms of Use or separate Master Services Agreement. 8. Privacy. Do not post other people's personal information, such as phone numbers, private email addresses, physical addresses, credit card numbers, Social Security/National Identity numbers, or passwords. Your use of the Community is subject to Mixpanel’s Privacy Statement. 9. No bullying, harassment, or trolling. We do not tolerate bullying, harassment, or trolling. This means any habitual badgering, or intimidation targeted at a specific person or group of people or trying to get a rise out of someone for the sake of it. 10. No hate speech. Don’t post any content that demeans, defames, or promotes discrimination on the basis of race, ethnicity, national origin, religion, sexual identity or orientation, gender identity or expression, disability, or veteran status. ## What happens if someone breaks the rules? While Mixpanel does not regularly review posted content, if you violate these guidelines, Mixpanel may take whatever action Mixpanel determines, in its sole discretion, is appropriate in response, including, but not limited to: removing the offending content, suspending your account, terminating your account, or even notifying law enforcement. If your account is terminated for violating these Community Terms of Use, you may not use the Community again. Please take these guidelines seriously and honor them in the spirit in which they are intended. We’ll do our best to enforce them consistently and fairly, and ultimately we’ll try to do what we think is best in each situation. To report inappropriate behavior or content, please write to [community@mixpanel.com](mailto:community@mixpanel.com). ## Copyright Infringement If you believe that work belonging to you has been copied onto the Community without your permission, please review Mixpanel’s DMCA Copyright Policy and notify us at [legal@mixpanel.com](mailto:legal@mixpanel.com). ## Legal Notices By posting content to the Community, you grant Mixpanel any license necessary, including any sublicense rights, to use, reproduce, modify, adapt, publish, translate, create derivative works from, distribute, and display such content in connection with the Community or Mixpanel’s legitimate business purposes. The majority of the content in the Community is user-generated. Such third-party content is the sole responsibility of the person originating the content. The Community does not control and is not responsible for this third-party material. Mixpanel and its suppliers will not be liable or responsible in any way for any content on the Community, including, but not limited to, any accuracy, reliability, usefulness, or errors or omissions in any content, nor will they be liable for any losses or damages of any kind, including indirect, incidental, special, consequential or exemplary damages. For the avoidance of doubt, use and provisioning of Mixpanel’s services are subject to separate terms, such as Mixpanel’s Terms of Use. In case of a discrepancy between these Community Terms of Use and those separate terms, the separate terms will prevail, provided, for clarity, that content posted to the Community does not constitute generally available documentation provided by Mixpanel. As of Sept 12th, 2023, Mixpanel is piloting the use of a chatbot powered by [kapa.ai](https://kapa.ai) in the Mixpanel Slack Community. [kapa.ai](https://kapa.ai)'s chatbot generates responses to your questions automatically by leveraging [OpenAI LLC's](https://openai.com/) generative AI model, trained using Mixpanel's Docs. Your questions and answers to the @kapa.ai will be processed by [Kapa.ai](https://kapa.ai) and [Open.ai](https://openai.com/). # Data Governance Source: https://docs.mixpanel.com/docs/data-governance Index of Mixpanel data governance tools: Lexicon, data views and classification, data standards, event approval, volume monitoring, and clean-up Mixpanel has an extensive suite of data monitoring and management tools, take a look below: > [card] [Lexicon - Data Dictionary](/docs/data-governance/lexicon) > [card] [Data Views & Classification](/docs/data-governance/data-views-and-classification) > [card] [Data Standards](/docs/data-governance/data-standards) > [card] [Event Approval](/docs/data-governance/event-approval) > [card] [Data Volume Monitoring](/docs/data-governance/data-volume-monitoring) > [card] [Data Clean-Up](/docs/data-governance/data-clean-up) # AI-Powered Data Governance Source: https://docs.mixpanel.com/docs/data-governance/ai-powered-data-governance Mixpanel uses AI to help you keep your project clean and well-governed with less manual effort Mixpanel uses AI to help you keep your project clean and well-governed with less manual effort. Instead of hunting through Lexicon by hand, these capabilities proactively surface issues in your data and let you resolve them in bulk. > [!NOTE] > > AI-Powered Data Governance is available to organizations on an **Enterprise** plan that have Mixpanel's AI features (Mixpanel Agent) enabled in your organization settings. See our [pricing page](https://mixpanel.com/pricing/) for more details. ## Merge suggestions Over time, the same concept often ends up tracked under several names — `Add to Cart`, `add_to_cart`, and `addToCart`, or `from_date` and `from-date`. These duplicates clutter Lexicon, split your data across reports, and make analysis harder. Merge suggestions automatically discover these potential duplicates in your project for you, so you don't have to hunt for them by hand. Mixpanel groups near-duplicate **events** and **event properties** together and suggests a single canonical name for each group, so you can clean them up in bulk instead of merging one pair at a time. > [!NOTE] > > Merge suggestions cover events and event properties only — user (profile) properties cannot be merged at this time. To review and apply merge suggestions: 1. Open [Lexicon](/docs/data-governance/lexicon) and click **Tidy Up**, then **Reduce clutter**. ![Tidy Up entry point in Lexicon](https://mintcdn.com/mixpanel-edb78807/KKKh0wKk1j0Su3ZW/images/data-governance/merge-suggestions-tidy-up.png?fit=max\&auto=format\&n=KKKh0wKk1j0Su3ZW\&q=85\&s=2f404d48d11a039f8f8b7867ced009b6) 2. The **Merge Duplicate Events and Properties** window opens, listing the suggested groups of duplicates in two sections — Events and Event Properties. ![Merge suggestions modal listing duplicate events and properties](https://mintcdn.com/mixpanel-edb78807/KKKh0wKk1j0Su3ZW/images/data-governance/merge-suggestions-modal.png?fit=max\&auto=format\&n=KKKh0wKk1j0Su3ZW\&q=85\&s=9fe626f16db258cd1c5e4d37b08b81ac) 3. Review the suggestions. **Every group is selected by default.** Each group shows the near-duplicate names it found and the canonical name they'll merge into. To change the canonical name or drop a name from a group, edit the group before submitting. 4. Uncheck any group you don't want to merge, or use **Select all** / **Deselect all** to adjust the whole list at once. 5. Click **Merge Duplicates** to submit. > [!WARNING] > > Submitting is a single batch action: **selected groups are merged, and every unselected group is dismissed** so it won't be suggested again. If you want to keep a suggestion for later, leave the window without submitting rather than deselecting it. Merging behaves exactly like a [manual Lexicon merge](/docs/data-governance/lexicon#merging-data) — the underlying raw data is unaffected, and a merge can be undone from Lexicon. As with any merge, update any reports or custom events that referenced the old names afterward, and note that [Autocapture](/docs/tracking-methods/autocapture) events cannot be merged. Merging requires the same permission as a manual merge. ## Automated Metadata Enrichment Raw event names rarely explain themselves. `btn_clk_add_crt` means something to the engineer who instrumented it and little to anyone else, including Mixpanel Agent and MCP, which rely on Lexicon to understand your data. Writing a display name and description for every event takes time, so most projects have gaps. Mixpanel can now fill them for you. With this update, you can: * **Fill every gap in one action**: From Lexicon → Tidy Up → Fill in the blanks, Mixpanel generates a display name and description for each event missing one and applies them across your project. * **Get names that fit your data**: Suggestions draw on the event name, sample property values, and your project's Business Context, and follow your naming convention when Data Standards is enabled. * **Keep what you wrote**: Enrichment only fills gaps. Events with an existing display name or description keep what you gave them. * **See what changed**: Every enriched field is recorded in the event's history, attributed to the user who ran the fill, marked as AI-applied, and written to your audit log like any other Lexicon edit. The same fill is available to agents over MCP via the Fill-Event-Metadata tool and inside Mixpanel Agent. This release covers events. Property enrichment is next. # Data Clean-Up Source: https://docs.mixpanel.com/docs/data-governance/data-clean-up Clean up messy or problematic project data with merge suggestions, Lexicon spot checks, event blocking, and data deletion ## Types of data clean-up Usually, data "clean-up" comes in two primary forms: 1. Cleaning up data mess that accumulates naturally over time 2. Deleting problematic data stemming from acute issues (e.g. implementation bugs, bot traffic, PII) In this page, we'll help you address both forms of data clean-up ## 1. Cleaning up data when it naturally gets messy Even if you start with strong data governance and best practices about how to structure your data, data can get messy over time (e.g. as your product expands or is updated, or as new data governance owners move on). In this section, we will look at tips and tricks on how to clean up messy data when it gets out of hand. ### Automatically find duplicates with merge suggestions If you're on an Enterprise plan with AI features enabled, Mixpanel can automatically discover duplicate events and event properties for you and merge them in bulk. See [AI-Powered Data Governance → Merge suggestions](/docs/data-governance/ai-powered-data-governance#merge-suggestions). ### Leverage Lexicon for a quick spot check #### Blocking events that are not queried [Lexicon](/docs/data-governance/lexicon) is our data dictionary in Mixpanel, and is where project owners and admins can add / manage descriptions for all events and properties to organize your data. * Order by volume descending. Are your users querying events with large volume? If not, you might want to think about blocking these events. Blocking events means that they will no longer be ingested in Mixpanel. This is especially helpful for apps, since you don’t need to release new app versions and wait for users to download the latest versions for the code change to take effect (we still recommend that you clean up the code on the backend though!). * Sometimes, customers may still want these large volume events because they rely on them downstream (via data pipelines). But if you’re not querying the events in Mixpanel itself, you shouldn’t send it in - if you’re on the [events plan](/docs/pricing#monthly-events-calculation), this increases your utilization; also, this clutters up the UI for users who don’t need to see it there. You could hide the event in the UI in Lexicon, but our recommended approach is to not send this data into Mixpanel at all. * If you’re leveraging our SDKs and want to continue doing so for ease of leveraging our ID management and default properties, an alternative is to route events from [Mixpanel’s SDKs via a proxy in your own domain](/docs/tracking-methods/sdks/javascript). This way, you get to push the events required for backend analyses directly into your warehouse, and send only the events users query in our UI to Mixpanel #### Cleaning up display names and adding descriptions for events It’s always helpful to add descriptions to your events so users know where they are triggered. If you’re an owner or admin, you can add the descriptions directly on the UI itself. You could also export the data into a CSV, update the description there, then import it back into Lexicon if it’s easier to clean up that way. If you leverage Segment, mParticle, or Avo.app, you can use that to import your event names and descriptions that way too. If you use Figma to identify your events, some customers add their links to the event descriptions as well. #### Adding tags to events [https://www.youtube-nocookie.com/embed/BeW5n9srpQ0](https://www.youtube-nocookie.com/embed/BeW5n9srpQ0) ### Using custom events to combine or filter events [https://www.youtube-nocookie.com/embed/YjlTAaHlUuQ](https://www.youtube-nocookie.com/embed/YjlTAaHlUuQ) ### Cleaning up user profiles If you want to clean up old user profile properties that are no longer being used, you can use our [Engage API](/reference/profile-delete-property) to remove these old user properties. We also provide a ‘people\_unset’ method in the Mixpanel-utils Library [here](https://github.com/mixpanel/mixpanel-utils#unset-properties). ## 2. Deleting problematic data Data Deletion allows you to delete noisy or sensitive data from your Mixpanel project, helping you maintain the integrity of your analytics project, and preserve a clear view of user behavior. You might find this useful if you: * accidentally send Personal Identifiable Information (PII) in a property * have implementation issues leading to duplicated data * experience bot traffic issues that clutter an important event In addition to permanently deleting the chosen data from our servers, we will immediately hide the data in your project so your users don’t accidentally view or analyze incorrect/sensitive data. Unlike [**Hiding Events**](https://mixpanel.com/blog/now-you-can-hide-events-and-properties/) or [**Data Views**](/docs/data-governance/data-views-and-classification), Data Deletion affects your entire project, and can allow you to remove a subset of problematic events from an otherwise useful event. ### Is data deletion right for my problem? Data Deletion is a severe action with permanent consequences. Thus, we recommend it only in a few scenarios: | Scenario | Recommendation | | - | - | | Bot attack sent spam events I don’t want to consider in my analysis | Yes, use Data Deletion with targeted event property filters to delete spam event data. | | Due to an implementation issue, duplicate events were ingested | Yes, use Data Deletion with targeted event property filters to delete duplicate event data. | | Due to an implementation issue, events were sent with wrong timestamp | Yes, use Data Deletion with targeted event property filters to delete affected data, and then re-upload with corrected timestamps. Please refer to our 'Reminders with ETL Approach' section on this page as you proceed | | We have sensitive data that we accidentally ingested that we legally cannot have and need to urgently delete | Yes, use Data Deletion with targeted event property filters to delete events with sensitive data. You can then re-upload data without sensitive PII data included. Please refer to our 'Reminders with ETL Approach' section on this page as you proceed | | I no longer want an event/ property entirely, as it’s no longer relevant to my team | No, we recommend you actually use [Dropping and Hiding Data](/docs/data-governance/lexicon#dropping-and-hiding-data) instead, as these will hide the events from your team, without using up your limited Data Deletion requests. | | I don’t need to legally delete some events with sensitive data, but I don’t want some of my users to be able to see the sensitive data | No, we recommend you use [Mark Properties as Classified](/docs/data-governance/data-views-and-classification#mark-properties-as-classified-data) to remove the data from the analysis experience for certain user types, while keeping accessible for other users. | | I want to delete data associated with a specific distinct ID | No, we recommend you use our [Distinct ID Deletion API](/reference/create-deletion), as Data Deletion does not support Distinct ID as a filtering criteria | ### Who can use Data Deletion? You can use the Data Deletion tool in these scenarios: * Your Mixpanel role is Owner or Admin * Your data does not extend beyond the past 180 days (event time, not ingestion time) * Your event volumes are below 5 billion events per month, any month over the trailing 3 months * Your project has not had more than 10 deletes over the past calendar month ### How to use > [!WARNING] > > Data Deletion is irreversible. Exercise caution when using this feature. ![image](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/data-deletion1.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=d9b622a9c125c5b7093c7a375ecf9282) Once you've identified the problematic data, and confirmed you want to delete: 1. Navigate to the **Lexicon > Data Governance > Data Deletion** 2. Click ‘Request an Event Deletion’ 3. Select which event you want to delete 4. Select time range (event time cannot be more than 180 days in the past) 5. Add any Event property filters if needed 6. Validate in the preview that the right data is being deleted 7. Submit deletion request Data Deletion will be **permanent and irreversible** in 7 days after submitting. Until that time, you may undo the action. Ensure that you carefully review and confirm your selections before proceeding. During this intermediate 7 day period, we will automatically hide the data in your Deletion request from your users, so they don’t accidentally analyze incorrect or sensitive data. ### Undoing data deletion You may undo Data Deletion requests **for only 7 days after submitting**, after which deletions become permanent. To do so, take the following steps: ![image](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/data-deletion2.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=2dd995d072e638b7cd24b225303a5b2c) 1. Navigate to the **Lexicon > Data Governance > Data Deletion** 2. Locate the Deletion request you wish to undo in the table 3. Click ‘Undo’ button in the Deletion Data column > [!WARNING] > > While the deletion becomes permanent after 7 days, the process to fully clean the data from the storage can take up to 30 days total. During this time, said data will not appear in reports, or formatted API queries, but might appear in raw exports while it's being fully removed ### Reminders with ETL approach * For projects created prior to 1 Jan 2023 offset your timestamps * If your project was created prior to 1 Jan 2023, you cannot just clean the data you don't want and re-import it. Your data is stored in project time, so you need to adjust the offset before importing * Don’t forget to regenerate \$insert\_id’s when you ETL * When you submit a deletion request, we hide your data immediately from your project to reduce any privacy concerns. We call this “soft deletion”, an interim phase before our “hard deletion” kicks in (where your data is permanently deleted from our servers) so that you can review the impact of your changes and undo when necessary. If you re-import data while the data is soft deleted **with the same \$insert\_id**, our deduplication systems may keep the old (deleted) event and toss the new event. Since this data is soft-deleted, your re-import won’t reflect the data as imported. Thus, when the ETL is done, you should regenerate the \$insert\_id value if possible, to avoid this possible collision ### Frequently asked questions ***How does Data Deletion impact billing?*** Billing behavior for successfully deleted events depends on your plan: * Legacy event timestamp billing — Deleted events are excluded from the current month's usage calculation. * Ingestion timestamp billing — Deleted events are still counted toward your usage for the month. ***Do you support property deletion?*** Not as of now. If you have events with properties you want to delete, you should do an Extract, Transform, Load approach. The goal would be to run a raw export on the event and then delete the bad imported data. Once this data has been transformed, re-import the data into the project. Then, call this event something slightly different and then hide the original one Please refer to 'Reminders with ETL Approach' section as you proceed, and submit feedback (accessible in-app with our help menu) if this is a blocker for you and your team ## 3. Drop Filters Drop Filters let you stop unwanted events from being ingested and stored into Mixpanel going forward. Where [Data Deletion](#2-deleting-problematic-data) addresses *past* problematic data, Drop Filters address it *proactively* — events matching your filter rules are dropped at ingestion and never stored, never queried, and never counted. You might find this useful if you: * Have **unwanted events** (e.g. test or staging events) leaking into your production project * Are dealing with **noisy events** that clutter your project without adding analytical value * Have **malformed or deprecated events** you no longer intend to send > [!NOTE] > > Drop Filters only affect events going forward. To remove data already in your project, use [Data Deletion](#2-deleting-problematic-data). ### Who can use Drop Filters? * Only Owners have permission to create drop filters and drop data. ### Supported filter criteria A Drop Filter targets a specific event, narrowed by one or more property values. Every filter must include: * **Event name** — the event you want to filter (required) * **Event property** — at least one property on that event to filter by (required) * **Property values** — one or more values for that property (required) You can combine multiple criteria within a single filter to target precisely the events you want to drop. Only events matching the event name *and* the specified property values will be dropped. Filtering by event name alone is not supported with drop filters. To drop a full event by event name with no property filters, go to Lexicon and add a Dropped tag to the event. ### How to use > [!WARNING] > > Dropped events are not stored and cannot be recovered. Review your filter carefully before saving. Filters are active within 10 minutes after creation and while drop filters can be deleted, the data dropped while they were active cannot be recovered unless sent to Mixpanel again. ![image](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/drop-filter-1.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=8d11f0cd508477f1c25ecccdf0abc6a7) 1. Navigate to **Lexicon > Data Governance > Data Drop And Deletion** 2. Click **Create Drop Filter** 3. Select the event you want to drop 4. Add property + value conditions to narrow the filter 5. Save the filter ![image](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/drop-filter-2.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=6c09e6876e3b9076882565f90f8dee76) Once saved, the filter takes effect on all newly ingested events. Existing data in your project is unaffected. ### Editing or removing a Drop Filter To stop dropping events, locate the filter in **Lexicon > Data Governance > Data Drop And Deletion** and delete it. Events sent after that point will be ingested normally. ![image](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/drop-filter-3.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=46a18e49c732a7e43129aaf5297f6e31) > [!WARNING] > > A project can currently contain up to 15 Drop Filters. ### Dropping a full event To drop an entire event, locate the event in Lexicon under the **Events** tab. Select the event and under ***Status*** toggle on ***Blocked***. Fully dropped events have a status of ***Blocked*** on lexicon while events dropped with drop filters have a status of ***Filtered*** > [!NOTE] > > Mixpanel-defined events (those prefixed with `$`, such as `$experiment_started`) can't be dropped, with the sole exception of `$opt_in`. This applies to both drop filters and fully dropping an event in Lexicon (the Block status). ### Frequently asked questions ***How do Drop Filters impact billing?*** Dropped events are not ingested, so they do not count toward your event volume usage. ***Can I recover events that were dropped?*** No. Dropped events are discarded at ingestion and cannot be recovered. If you need historical analysis on these events, disable the filter first and re-send the data. ### Other resources * [Event Approval](/docs/data-governance/event-approval) * [Recovering from a hot shard](/docs/tracking-best-practices/hot-shard-limits) # Data Standards Source: https://docs.mixpanel.com/docs/data-governance/data-standards Keep Your Data Clean and Consistent > [!NOTE] > > Customers on an Enterprise plan can access the Data Standards feature. See our [pricing page](https://mixpanel.com/pricing/) for more details. ## Overview Data Standards is a Data Governance feature that helps organizations enforce naming and metadata standards on events ingested into Mixpanel. This helps improve event consistency, easy navigation, and user trust in using data for analysis. This feature evaluates your event metadata against predefined standards and assigns a "Compliancy" status to each event. This status is visible in Lexicon, helping admins and analysts quickly identify and correct non-compliant events. ## Enabling Data Standards To define data standards, organizations can navigate to the Data Standards tab in Lexicon. There, they can configure rules such as: | Rule | Description | | - | - | | **Naming conventions** | Events must follow a required syntax (e.g., snake\_case, camelCase). | | **Descriptions** | All events must include a description. | | **Ownership** | Events must have an assigned owner. | | **Rich media uploads** | Events should have relevant media assets uploaded (like Figma or app screenshots). | ## Viewing Compliancy Status in Lexicon For every event in your project, Mixpanel will automatically evaluate against your defined data standards. The compliancy status is displayed in Lexicon, allowing Data Governors to: * Identify compliant and non-compliant events at a glance. * Filter / sort events based on their compliancy status. * Take corrective actions by updating metadata directly within Lexicon. ## Additional Notes * The feature will check the standard against the Display Name if set. If no Display Name is set, it will check against the tracked event name * Only Project Admins or Owners can define data standards. * This feature is only available on Enterprise plans. * We will soon be adding automated actions to be applied when Data Standards are violated. Please reach out to your Account Manager if you're interested in getting early access to these tools. # Data Views & Classification Source: https://docs.mixpanel.com/docs/data-governance/data-views-and-classification Filter team access to your data within a project > [!NOTE] > > Users on a Growth plan or above can access the Data View and Data Classification features. See our [pricing page](https://mixpanel.com/pricing/) for more details. ## Data Views Overview Data views allow you to manage data access for a group of users within a single Mixpanel project. [Project Owners and Admins](/docs/orgs-and-projects/roles-and-permissions#permissions) can create and edit data views and determine access for privacy and productivity purposes. ### Use Cases **Teams or Functional Areas** You have a Mixpanel project that contains all of your data. Engineering, Marketing, Support, and various product teams all use Mixpanel on a regular basis. Each team can have a data view filtering for relevant data. **Separate Customer Data from Internal User Data** Create a data view for customer data by excluding data tracked by your internal users/employees. Create another data view for just your internal users. By doing this, you no longer have to remember to add cohorts or filters each time you create a Board, Report, or Cohort. **Regions or Geo-Based Teams** For a global organization with multiple offices, regional teams might need access to data from only their region. E.g., the marketing team in the Asia region would like to target only Asian customers and should not have access to US customers' data. **Verified Data Only** Teams that want to closely manage events that are included in all their analysis can either include or exclude the specific events in the data view's definition. **Specific Platform/App Version** Engineering or Product teams working on a specific version can use data views to target specific versions of the app or platform version(s) to be included in the analysis. ### Create a data view To create a new data view, navigate to the **Data Views** tab in **Project Settings** and click the **+ Create Data View** button in the top-right of the data views settings. Finally, add a name and description to your data view and click **Save**. Important: the name of the data view **cannot** exceed 255 characters. ![Create Data View](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/create-data-view.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=bfbff925f785521772b97ed5e2b0cc5e) Click on your new data view to see an overview of its details, review or update filters, and manage access at the individual or team level. ### Manage Data Views Navigate to **Project Settings** and select **'Data Views'** from the left-hand menu. ![Project Settings](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/manage-data-view.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=dd149dfac1a398f4bb120197bc8be75b) ![Manage Data View Project Settings](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/manage-data-view-project-settings.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=be0097be2d947f9b34a647b7e80377b6) #### Default Data View All projects have a global data view called “All Project Data”. This data view has no filters and gives users access to all the data in a project. The global data view in a project is equivalent to a Mixpanel project without data views. The “All Project Data” view starts as the default data view of a project for any new users added to the project. You can decide which data view you want to set as default by checking the box next to the workspace's name and selecting **Set Default**. ![Manage Data View Project Settings](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/set-default-data-view.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=2b76f80937230dfb4b3348384a1d9e9a) ### Manage Visibility and Editing Controls The **Overview** tab is accessible to all Admins and Owners in the project, and displays details about the data view, including the name, description, editing controls, visibility, creator name, date created, and URL to access it. Editing Controls settings: * Select **Restricted** to prevent other Admins from editing the data view settings and filters. * Select **Unrestricted** to allow Admins to edit the view's settings and filters. Visibility settings: * Select **Public** to allow project members to discover your data view in the Data View library. All project members can also self-join a data view that is public. * Select **Private** to prevent project members from seeing your data view in the library and self-joining. Project members who are added to a private data view will be able to see it. After the Editing Controls and Visibility options are set after creating the data view, they can only be changed by its creator or a Project Owner. ![Data Views Overview](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/data-view-overview.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=88fddd53d0b1cbf1c2764c29ba88ec17) #### Manage Data View Filters Filters determine what data is accessible within a data view. ![Data Views Filters](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/manage-data-view-filters.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=e495a4bf50f74f4cfb072ad902fd779e) You can apply multiple event, event property, and user profile property filters to a data view. #### Add Users or Teams Click **+ Add User** to add individual project members to your data view. The modal only shows users that are part of your project. You can remove users from your data view by selecting the box next to their name and clicking Remove to the left above the user list. Click on the **Teams** tab to add or remove teams from a data view. Add a team to a data view to indicate that any project member in the team should have access to it. If you set up your Identity Provider to connect to Mixpanel with Single Sign-On, you can define which project members are assigned to which teams. If you set up certain teams with access to specific projects and data views, you can streamline your member onboarding to a Mixpanel project. This helps control who has access to what data at scale. ### Data View Library Click on the name of your project in the upper-left corner, and then on "Data View Library". This option allows you to see the data views you have joined, to create new data views, and to join other public views. Private data views that you have not been invited to will not show up here. ![Data View Library Nav](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/data-view-library.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=5d1faba10db7f263d40db80619903713) ![Data View Library](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/data-view-library2.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=2074c4097c83c7ba0101a7fd491ea66a) ### Experience Data Views as a User You can see the name of the data view that you are currently in by looking at the upper-left corner next to the project name. A message banner will also notify you when you enter a data view if it has a filter. ### Saved Content in Data Views The saved content you create in Mixpanel is not contained to the data view in which it was created. For example, you can view a report you made in one data view in any of the other views you have access to. The results of a report or board will change depending on the data view you have selected. ### Data Views Limits The following are limitations to be aware of when using data views: * JQL features are only available in the ‘All Project Data’ data view. * Any Mixpanel APIs that use Project Token or Secret (e.g., Export API) work at a project level and not at the data view level. That said, any APIs that use OAuth (e.g., Query API) do work at the data view level. * Lexicon shows events and properties filtered based on the data view you have selected. However, if you edit an event or property in Lexicon in one data view, the changes will persist across the project. All data views will be impacted. * Applying any user profile property filter will remove the ability to analyze by all group identifiers except user. ## Data Classification > Please see the [Changes to Classified Data Access](/docs/orgs-and-projects/roles-and-permissions#changes-to-classified-data-access-april-2026) section in the [Roles & Permissions](/docs/orgs-and-projects/roles-and-permissions) article for the latest information about marking and managing properties and user access to them. ### Analysis Experience for Users who Cannot View Properties Marked as Classified Data Users who **can't** view classified properties **can** see which specific properties are marked as classified in Lexicon. Users who can't view properties marked as Classified Data cannot use such properties as filters or breakdowns. **Boards** If a report contains a classified event or property and a user **without** the 'Can View' option tries to open it, they will see the following warning: ![Sensitive Data Warning](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sensitive-data.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=45de79998d1c0f3bff817460569b184a) Users who cannot view classified data can click on a board's card to access the full report and determine what properties are preventing them from viewing a report. **Analysis Reports (Insights, Funnels, Flows, and Retention)** Classified properties won't be visibly different when building a report, but if used by a user without the 'Can View' option enabled, the following warning will be displayed: ![Analysis Reports Warning](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/analysis-reports.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=863b913bee0466c9e04db4922cfd53a8) # Data Volume Monitoring Source: https://docs.mixpanel.com/docs/data-governance/data-volume-monitoring Get notified about drastic changes in event volume > [!NOTE] > > Customers on an Enterprise can access the Data Volume Monitoring feature. See our [pricing page](https://mixpanel.com/pricing/) for more details. ## Overview Data Volume Monitoring is a Data Governance feature for organizations that want to monitor for implementation issues with events being sent to their Mixpanel project. The feature is a project-level setting for Enterprise accounts that watches for sudden, drastic changes in event volume and notifies admins so they can take corrective action. ### Enabling Data Volume Monitoring For New Enterprise Customers (starting December 2025 onwards): Data Volume Monitoring is automatically enabled by default on all new enterprise projects. You can configure the notification settings or disable the feature following the instructions below. To configure Data Volume Monitoring, navigate to the Lexicon page, go to the left-hand menu under Data Governance, and click the Data Volume Monitoring section. When enabling this setting, input email addresses or aliases to be notified when a spike or drop is detected. This will be gated to project admin and owner email addresses. Admins can also set up a Slack channel to be notified when a spike or drop is detected. Notifications are sent once per day. If multiple spikes or drops are found for a project within one day, we will batch the notifications so you will get at most 2 per day per project. Only Project Admins or Owners can enable this setting, and it's only available on Enterprise plans. ![data-volume-monitoring-settings](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/data-governance/data-volume-monitoring-settings.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=070cf0ea7a60d5f871c8896ca89825c6) ### Notes * Data Volume Monitoring begins as soon as it is enabled, but it may take 24 hours to run for the first time * We will check once a day as long as Data Volume Monitoring is enabled * By default, we inspect event volume for the previous day (a 1-day "look-back"), but you can select a 2-day "look-back" to compensate for ingestion delay * We use up to 24 months of event volume history to determine an "expected" range * We analyze up to 1,000 of most-active events which have volume of 100+ for at least half of the last month * Volume needs to be at least 50% higher or lower than the expected range for a change in volume to generate a notification # Event Approval Source: https://docs.mixpanel.com/docs/data-governance/event-approval Review unexpected events before they are visible > [!NOTE] > > Customers on an Enterprise can access the Event Approval feature. See our [pricing page](https://mixpanel.com/pricing/) for more details. ## Overview Event Approval is a Data Governance feature for organizations that want visibility and control over all new events sent to their Mixpanel project. The feature is a project-level setting that hides new events by default and notifies admins when those new events come in, so they can then mark them as visible for everyone to see. ### Enabling Event Approval To enable Event Approval, navigate to Lexicon, scroll to Event Approval under the Data Governance section, and click the Event Approval toggle. When enabling this setting, input email addresses or aliases to be notified when a new event is ingested. Admins can also set up a Slack channel to be notified when a new event is ingested. You can also enable new property detection, which will notify the same email addresses or Slack channels about new properties detected on new and existing events. Notifications are sent once per day. If multiple events are implemented in a project within one day, the notification will batch all these events. Only Project Admins or Owners can enable this setting, and it's only available on Enterprise plans. ![event-approval-settings](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/event-approval-settings.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=560ef9e4db2e4d49245bb535831da4a2) ### Lexicon Workflow When an admin receives a notification that new events have been ingested, they can click the "View New Events" button, which will take them to a Lexicon view of hidden events. New events will have a "Pending" status and be sorted to the top of the list. From there, an admin can take actions such as marking the event as visible, adding a description, or a tag. Events will be given a status of "Pending" as long as the following criteria are met: * It hasn’t been modified * It is hidden * It was created within the last 30 days If new property detection is enabled, notifications will also include a "View New Properties" button, which will take them to a Lexicon view of new properties. Properties will have a "Pending" status as long as the following criteria are met: * It was created within the last 30 days ### Additional Notes * Please note that all [custom properties](/docs/features/custom-properties) will **not** be marked as "Pending" * Event Approval is not available for projects with > 3000 hidden events and will be auto-disabled if projects exceed this limit # Lexicon Source: https://docs.mixpanel.com/docs/data-governance/lexicon Describe your events and data using a dictionary ## Overview [https://www.youtube-nocookie.com/embed/lAToFlwXHEU](https://www.youtube-nocookie.com/embed/lAToFlwXHEU) Lexicon is a data dictionary that stores descriptions of events and their properties. Project owners and admins can add/manage descriptions for all events and properties and organize data for clarity and discoverability. Event and property definitions help your entire team understand what your data means, so everyone stays on the same page. To open Lexicon, select the **Data** tab on the left-hand navigation menu, and then select **Lexicon**. When you open Lexicon, you'll see two sections: Tracked Data 1. Events 2. Event Properties 3. Profile Properties Saved Definitions 1. Cohorts 2. Custom Events 3. Custom Event Properties 4. Custom Profile Properties 5. Lookup Tables 6. Metrics 7. Behaviors > [!NOTE] > > "Saved Definitions" was previously labeled "Computed Data" in Lexicon. ### Events Events are actions a user performs in your application or website. ![Lexicon Events](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/lexicon-events-with-em.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=0fa960c601cb66ac4672c90a83f7a2f1) This table contains descriptions for each field in the “Events” view. | Field | Description | | - | - | | Event Name | The database name of the event. Status Icons indicate whether the event is hidden or visible in the Mixpanel project | | Display Name | The event name that displays in the Mixpanel interface. | | Description | The information that describes the event, such as what triggers it or what properties are sent with it. | | 30-Day Volume | The total number of events that users fired in the last 30 days. | | 30-Day Queries | The total number of UI queries that project members executed in the last 30 days. Includes queries from selecting events in reports, viewing reports, and queries in "Users" and "Events" tabs. Excludes dashboard views. | | Last Queried | The user that last used this event in the Mixpanel UI. | | First Queried | The user that first used this event in the Mixpanel UI. | | Owners | The user(s) that are points-of-contact for this event. | | Status | Whether this event is Pending, Visible, Hidden, Blocked, or Merged. | ### Event Properties Event properties describe details about events, such as distinct\_id or browser. This table contains descriptions for each field in the “Event Properties” view. | Field | Description | | - | - | | Name | The database name of the property. | | Display Name | The property name that displays in the Mixpanel interface. | | Description | The information that describes the property, such as what events it is sent with. | | Example Value | What is an example value of this property. | | Events With Property | The total number of events that contain this property in the last 30 days. | | Queries | The total number of UI queries that project members executed in the last 30 days. Includes queries from selecting events in reports, viewing reports, and queries in "Users" and "Events" tabs. Excludes dashboard views. | | Status | Indicates whether the property is visible or hidden from the Mixpanel interface. Also indicates if the property is blocked, merged, or marked as sensitive. | Lexicon contains property definitions for the default properties that Mixpanel’s client-side libraries automatically send with each event across web and mobile platforms. ![Lexicon Event Properties](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/lexicon-default-properties.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=b2af3d0a7bca6505d34299fad5f44a9c) ### Profile Properties Profile properties describe details about your users, such as username or email address. This table contains descriptions for each field in the “Profile Properties” view. | Field | Description | | - | - | | Name | The database name of the property. | | Display Name | The property name that displays in the Mixpanel interface. | | Description | The information that describes the property, such as what events it is sent with. | | Example Value | What is an example value of this property. | | Status | Indicates whether the property is visible or hidden from the Mixpanel interface. Also indicates if the property is blocked, merged, or marked as sensitive. | | Users With Property | The total number of profiles that contain this property. | | Queries | The total number of UI queries that project members executed in the last 30 days. Includes queries from selecting events in reports, viewing reports, and queries in "Users" and "Events" tabs. Excludes dashboard views. | If you have Group Analytics enabled, you will see a dropdown on the Profile Properties tab that will let you select any Group Types that you may have configured. The default selection will be "User Profiles" which correspond to User properties. ![Lexicon Profile Properties](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/lexicon-group-analytics-GIF.gif?s=797c27e23a90ca62967444021d796286) ### Cohorts [Cohorts](/docs/users/cohorts) are groups of users that share a certain set of properties or who perform a similar sequence of events. You can create cohorts based on user properties, events, and other criteria to analyze user behavior and engagement. ### Custom Events [Custom Events](/docs/features/custom-events) are events and properties you combine into one event to use in Mixpanel reports. The fields for custom events are “Name”, “Description”, "Definition", "30 Day Queries", "Last Queried" and “Created” (defined above). ### Custom Event Properties and Custom Profile Properties [Custom properties](/docs/features/custom-properties) combine existing properties into new ones on the fly using a simple, Excel-like formula language. When you save a custom property so your team can reuse it across reports, it appears in Lexicon as a saved definition. * **Custom Event Properties** can reference both event and user profile properties in their formula. * **Custom Profile Properties** can reference only user profile properties. Click into a definition to review its formula, description, and query volume. See [Custom Properties](/docs/features/custom-properties) for how to create, save, and share them. ### Lookup Tables [Lookup Tables](/docs/data-structure/lookup-tables) in your project are listed in your Lexicon. Click into a Lookup Table definition to export the underlying CSV, replace the Lookup Table with a new CSV, and see which properties are linked. ### Metrics and Behaviors The **Metrics** page in your Lexicon documents your saved metrics and [Formulas](/docs/reports/insights#formulas). Saved [Funnels/Retention Behaviors](/docs/features/saved-metrics-and-behaviors) in your project are documented here as well. Review these to get an overview of existing definitions you can quickly leverage in your own analysis. ## Renaming Properties After you ingest raw data into a project, you cannot rename it. However, you can change the display names of events, event properties, and user profile properties to control how they appear in the UI. The system dynamically renders these display names on the front end and does not modify the underlying data in the project’s data store or affect how the data appears in exports. ## Filtering Events, Custom Events, and Properties Lexicon provides several options for you to filter your events, custom events, event properties, and profile properties. You can filter by visible or hidden events, blocked events, merged events, tags, your defined events, autotracked events, and default Mixpanel events. These filtering options help you arrive at the most useful data to analyze your performance. ![Lexicon Filtering](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/lexiconFiltering.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=29ecf57165684e5f69f988621777f5aa) ## Viewing Query Volumes for Events and Properties In each view, you can see the total UI and API queries in the last 30 days for any of these data types and sort by them. This data lets you easily discover the parts of your implementation that are most valuable and the parts that are not being used. You can use this information to determine which events and properties you should block. ![Lexicon Query Volumes](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/thirtyDayMetrics.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=7819484e7c35c1703ccce16e6bcf66ff) ## Blocking Data > [!NOTE] > > Only project owners may block and unblock data from the Lexicon. Learn more about [Roles and Permissions](/docs/orgs-and-projects/roles-and-permissions). In Lexicon, you can intercept and block incoming events or properties. Mixpanel won't store any **new data** for the event or property you select to block. **Warning: You cannot recover event data after you block it.** When an event is blocked, all events of that type that have previously been ingested (before blocking it) will still show in the interface. Only project owners can block events and properties. **Note: It takes a few hours for Mixpanel to process the blocked event.** Sample use cases for blocking events and properties are: **Sensitive data:** If you accidentally send sensitive data, such as passwords or credit card information, you can block the event or property with that data and prevent it from being stored in Mixpanel servers. **Cost and Time Efficiency:** Being able to block events and properties that are no longer useful directly from Lexicon is easier and more efficient than having to implement changes to your code base. **Better Organization:** Events and properties that are no longer useful can cause a cluttered Mixpanel project. Blocking unnecessary events and properties optimizes your code for a clean and streamlined project implementation. **Blocking Events** > [!NOTE] > > Previously, Block was called "Drop" in Lexicon. Events that formerly showed a "Dropped" status now show a "Blocked" status. By blocking an event, you can intercept and block incoming events. Mixpanel will not store any new data for the event you select to block. > [!NOTE] > > Mixpanel-defined events (those prefixed with `$`, such as `$experiment_started`) can't be blocked, with the sole exception of `$opt_in`. To block an event in Lexicon: 1. Select an event to block. The Block icon appears. ![Lexicon Block Events](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/lexicon-block-event.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=4b37a1821969b12741f706b45554d245) 2. Click Block. A “Confirm blocking your event(s)” warning indicates you cannot recover the data associated with the event. ![Lexicon Block Events Warning](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/lexicon-block-event-warning.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=9f57b187a05a4e1529262c6e2b75ee19) 3. Click Block. The status of the event indicates **Blocked**. **Unblocking Events** You can unblock events and properties when you decide you need them again. To unblock an event: 1. Select a blocked event. The “Status” column indicates if an event is blocked. ![Lexicon Unblock Events](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/lexicon-unblock-event.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=2d2e967a2377f9e9e86cb2c18ce56e93) 2. Click **Unblock**. The “Status” column no longer contains “Blocked”. **Blocking Properties** By blocking a property, you can intercept and block an incoming property. Mixpanel won’t store any new data for the property you select to block. To block a property in Lexicon: 1. Select a property to block. The Block icon appears. ![Lexicon Block Properties](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/lexicon-block-property.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=7259c44078ab9dcdb05f5c48a739a8b5) 2. Click **Block**. A warning indicates that you cannot recover the data that you choose to block. Click Block to confirm. The status of the property will indicate Blocked. **Unblocking Properties** 1. Select a blocked property. The “Status” column indicates if a property is blocked. ![Lexicon Unblock Properties](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/lexicon-unblock-property.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=9e14cd17e5da34119d069cb8144ce819) 2. Click **Unblock**. The “Status” column no longer contains “Blocked”. ## Hiding Data > [!NOTE] > > You must have an admin or owner project role to hide and unhide data from the Lexicon. Learn more about [Roles and Permissions](/docs/orgs-and-projects/roles-and-permissions). In Lexicon, you can hide any events or properties. Unlike [blocking data](/docs/data-governance/lexicon#blocking-data), hiding data does not affect data ingestion; any events/properties that are hidden will continue to be ingested in your project and count toward your data allowance. A hidden entity will not be indexed in your event/properties menu in the query builder. Any [inactive events and properties](/docs/tracking-best-practices/debugging#inactive-events-and-properties) will also be hidden. Hidden events will be excluded from your query results. For example, it will not be included in "All Events" and won't appear as an intermediate step in your [Flows report](/docs/reports/flows). Hiding data is useful for preventing not-so-commonly used entities from cluttering your events/properties menu, or to prevent certain events from being considered in your reports. If you wish to use a hidden entity in your report, you may manually select the entity by searching in the events/properties menu and then clicking "Show Hidden Events/Properties" to reveal the hidden entity. **Hiding Events and Properties** To hide an event or property: 1. Select one or more visible events, event properties, or profile properties. The “Hide” icon appears. You can check the “Status” field to determine whether an event or property is visible or hidden. ![Lexicon Hide Events](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/hide-events.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=38e8610df5b7d9d120d2965e294ccfff) 2. Select **Hide**. A message appears to allow you to confirm hiding the event(s). After you select **Hide**, the event or property status changes to “Hidden”. ![Lexicon Hide Events Warning](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/lexicon-hide-events2.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=9dfed0154fac75ddf035f05969f8fbc8) Another option for hiding an event, property, or property value is to let it inactivate until it is hidden in report dropdown menus. Mixpanel’s report dropdown menus hide events that have not been fired within the last 30 days. Event properties and property values that have not been sent to your project in 28 days are hidden from dropdown menus. **Show Events and Properties** To show an event or property: 1. Select one or more hidden events, event properties, or profile properties. The “Unhide” icon appears. You can check the “Status” field to determine whether an event or property is visible or hidden. 2. Select **Unhide**. After you select **Unhide**, the event or property status changes to “Visible”. ![Lexicon Show Events and Properties](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/show-events-and-properties.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=6523195dd0aabde620686d79fc65556e) ## Merging Data > [!NOTE] > > In Lexicon, only project owners can merge events and event properties. Learn more about [Roles and Permissions](/docs/orgs-and-projects/roles-and-permissions). Let's suppose your iOS app sends an event named “Purchase”, and your Android app sends an event named “purchase item”. Even though both events have the same function, you have to individually select them every time you build a report. By merging “Purchase” and “purchase item” into a single event named “Purchase”, you would no longer need to query each event separately since Mixpanel would recognize both “Purchase” and “purchase item” as a unique event. Being able to merge events can help streamline your implementation, reduce your costs by eliminating redundant events being sent to Mixpanel, and simplify report analysis because you’re only using optimal events and properties. Do note however that user profile properties cannot be merged at this time. > [!NOTE] > > [Autocapture](/docs/tracking-methods/autocapture) events cannot be merged. These events are displayed using preset labels such as “\[Auto] Page View” and “\[Auto] Element Click”. **Merging Events** To merge events: 1. Select the events to merge. The “Merge” icon appears. 2. Click Merge. The “Merge Events” window appears. It shows the events you selected and explains that merging the selected events combines them into a single event, which does not affect the raw data. ![Lexicon Merge Events](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/lexicon-merge-events.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=2c984ee53d09dbc9fc9fadba0db2ea9b) 3. In the “MERGE SELECTED EVENTS INTO…” section, specify which event Mixpanel should consider as the new unique event. 4. Click **Merge**. The merged event appears and the “Status” column indicates “Merged”. **Unmerge Events** To unmerge events: 1. Select the merged event to unmerge. The “Unmerge” icon appears. ![Lexicon Unmerge Events](https://mintcdn.com/mixpanel-edb78807/hlEuYugIN20vBJ1j/images/unmerge-events.png?fit=max\&auto=format\&n=hlEuYugIN20vBJ1j\&q=85\&s=dedcfc86bb3e782a01e6c28f10ff75a0) 2. Click Unmerge. The merged event appears as the original two distinct events. **Merging Properties** To merge properties: 1. Select the properties to merge. The “Merge” icon appears. 2. Click Merge. The “Merge Properties” window appears. It shows the properties you selected and explains that merging the selected properties combines them into a single property, which does not affect the raw data. ![Lexicon Merge Events](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/merge-properties.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=b975d716f1e69a61236c264f736c889d) 3. In the “MERGE SELECTED PROPERTIES INTO…” section, specify which property Mixpanel should recognize as the newly merged property name. 4. Click **Merge**. The merged property appears and the “Status” column indicates “Merged”. **Unmerge Properties** To unmerge properties: 1. Select the merged property to unmerge. The “Unmerge” icon appears. ![Lexicon Unmerge Events](https://mintcdn.com/mixpanel-edb78807/hlEuYugIN20vBJ1j/images/unmerge-properties.png?fit=max\&auto=format\&n=hlEuYugIN20vBJ1j\&q=85\&s=d77790f99125df69e5c00b7152bcdaee) 2. Click Unmerge. The merged property appears as the original two distinct properties. ## Verify Data > [!NOTE] > > Customers on an Enterprise can access the Verified Data feature. See our [pricing page](https://mixpanel.com/pricing/) for more details. Verified Data in Mixpanel allows designated project owners and admins to add Verified badges to certain Events, Behaviors, Formulas, Custom Events, and Cohorts. This signals to other users within your project that this data has been vetted and can be confidently used for analysis and reporting. By providing a clear distinction between vetted and non-vetted data, it becomes easier for teams to adopt Mixpanel, knowing they are using the right events. **How it Works** 1. Navigate to Lexicon 2. Go to any event, behavior, formula, custom event, or cohort 3. In the top right corner, click the Verify button 4. Now, whenever end users are creating reports, or browsing data in Lexicon, they will see a Verified icon next to this data item. ![verifyButton](https://mintcdn.com/mixpanel-edb78807/hlEuYugIN20vBJ1j/images/verifyButton.png?fit=max\&auto=format\&n=hlEuYugIN20vBJ1j\&q=85\&s=9866f8beea4b2a280e661c9e6c3b524f) ## Session Replay in Event Metadata Event metadata across Query Builder, Lexicon, and Event pages now automatically includes relevant Session Replays when available. **How it works:** When viewing event details, Session Replays that captured the specific event will appear in the metadata panel. This applies to: * Individual event inspection in Query Builder * Event definitions in Lexicon * Event detail views on dedicated Event pages **Requirements:** This feature is available to accounts with Session Replay enabled. No additional configuration is needed—relevant replays will automatically appear when present. **What you'll see:** Session Replay thumbnails and links will display alongside standard event properties. Click any replay to view the full session context surrounding that event. This enhancement provides immediate visual context for event analysis without requiring manual correlation between Events and Session Replay data. For Session Replay setup and configuration, see our [Session Replay documentation](/docs/session-replay). ## Export and Import Lexicon Data Mixpanel supports exporting and importing Lexicon data dictionaries. Project owners, admins, and analysts can click **Export** in Lexicon to receive a CSV file via email that contains the events and properties, and/or user profile properties data from a project. ![Lexicon Export](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/lexiconExport.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=beec23d27218bac614f13f869600f3c2) In the Export panel, you can select: * Events & Properties and/or * User Profile Properties The requester will receive an email with a link to download a single CSV file. This link remains active for 14 days. Each CSV file can contain up to 5,000 events, 2,000 properties per event, and 2,000 user profile properties. The numbers in the CSV export may not match exactly with the numbers in the Mixpanel UI. This is because the numbers in the Lexicon UI only include queries made from the Mixpanel UI, whereas the numbers in the CSV export include queries made from the Mixpanel public API in addition to the queries made from the UI. ### CSV Import Project owners and admins can export a CSV of their Lexicon changes, make changes, and import that CSV back into Lexicon. When you export your Lexicon Data into a CSV file, you can make modifications, add events and/or properties, and import them into Lexicon. To import CSV files, they must be in the exported CSV format, otherwise the file will be rejected: ![Lexicon CSV Import Format](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/lexicon-csv-import-format.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=f6fba64f651f373a82e5987d1d1a3242) Once you've made your modifications, you can directly import the CSV file into Lexicon: * Select your CSV file * Review Events, Event Properties, and/or User Profile Properties * Import into Lexicon Event and property descriptions and metadata (hidden, blocked, sensitive, etc) that are already in Lexicon will be overwritten by descriptions and metadata for matching event and property names. By default, any event and property descriptions for events that are not imported will remain unchanged unless you check the option to overwrite your entire data dictionary during import. ### Segment Import When importing a data dictionary from Segment Protocols using the Segment Config API, you will be asked for your Segment Token and Segment Workspace. You can find your Segment Token by going to your Segment dashboard: Settings > Access Management > Tokens You can use an existing Token, or create a new token with a Token Role of Workspace Owner. For the Segment Workplace value, we recommend using the Slug name located in the Segment dashboard: Settings > General Settings. Once you have your Segment Token & Workspace, head over to Lexicon and select Import from Segment. * Enter your Token & Workspace * Select the Plan you want to import from Segment * Review the Events and Profile Properties that will be imported * Import your Segment Plan into Lexicon ### Avo.app Import To import your data dictionary from Avo.app, you will need to enable an integration with Mixpanel. The following information would be necessary to complete this integration from Avo.app: * Mixpanel Project ID (`https://mixpanel.com/project/[Mixpanel Project ID]/...`) * Mixpanel Service Account Username & Secret (Owner or Admin role required) To publish your Avo data dictionary to Lexicon, click the "Publish to Lexicon" button in the integration interface. Click [here](https://www.avo.app/docs/publishing/integrations) for more information on integrating Avo.app with Lexicon. ### mParticle Import When importing a data dictionary from mParticle, navigate to your Data Plan and select Download Plan Version from the upper right menu. * Click Import on the top right-hand side of Lexicon * Select mParticle * Select the downloaded JSON file from mParticle Data Plans * Review Events, Event Properties, and User Profile Properties to be imported. * Import data into Lexicon ## Lexicon Schemas API Mixpanel provides a suite of API endpoints for you to Retrieve, Create, and Delete your data dictionary in Lexicon. To use these APIs, check out our [API reference docs](/reference/lexicon-schemas-api). ### Lexicon UI vs Lexicon Schemas API The payload returned from the Lexicon Schemas API is most likely not an exact match of the Lexicon as seen in your project's UI. This is because the Lexicon Schemas are a subset of the data that appears in Lexicon UI. The Lexicon UI contains entities that were sent to your project within the last 30 days or have an associated Lexicon Schema. A Lexicon Schema is created when one of the following takes place: 1. When a schema is created through the Lexicon Schema API 2. When a new entity is imported to your Lexicon via CSV import 3. When metadata about an entity is added via the UI (such as adding description, hiding/showing, adding tags, etc.) When using the Lexicon Schema API to export, only entities that have a Schema are exported. Entities that are seen in your Lexicon UI that were sent within the last 30 days without a Schema will not be reflected in the Lexicon Schema payload. To export all of your entities from the Lexicon, please use the [CSV export method](/docs/data-governance/lexicon#export-and-import-lexicon-data), which will export everything as seen in the UI, which includes recently sent entities and all entities with a Schema. ## Lexicon Event Details Mixpanel provides a variety of tools to make it easier for teams to better understand what specific events mean. | Field | Description | | - | - | | Name | The database name of the event. | | Display Name | The event name that displays in the Mixpanel interface. | | Description | The information that describes the event, such as what triggers it or what properties are sent with it. | | Status | The event is either hidden or visible in the Mixpanel project. | | Tags | Allows your team to categorize events by different themes. | | Platforms | Allows your team to categorize which platforms this event is fired in. | | Owners | Allows your team to assign a point-of-contact to events in case team members have follow-up questions about an event. (Only available on the Enterprise Plan) | | First Tracked | The earliest date a given event was tracked, within the past two years. If the event was first tracked more than two years ago, that earlier date won't be reflected here. | | Image | Allows your team to upload a JPG, PNG, or GIF that helps to describe the event. This will show up throughout the platform wherever the event appears. | # Data Pipelines Overview Source: https://docs.mixpanel.com/docs/data-pipelines Continuously export Mixpanel data to a cloud storage bucket or data warehouse with the Data Pipelines add-on, including destination setup and the free trial > [!WARNING] > > If you already did setup older version of pipelines via the API and want to manage it, go to docs [here](/docs/data-pipelines/old-pipelines). > [!NOTE] > > Customers on an Enterprise or Growth plan can access Data Pipeline as an add-on package. See our [pricing page](https://mixpanel.com/pricing/) for more details. Data Pipelines is a feature that continuously exports data from your Mixpanel project to a Cloud Storage bucket or Data Warehouse of your choice. This feature is ideal for those who wish to perform SQL analysis on Mixpanel data within their own environment. Setting up Data Pipelines involves two main steps: 1. Configuring your destination to accept data writes from Mixpanel. 2. Creating data pipelines through the **Destinations** page in the UI. We offer a 30-day free trial of the Data Pipelines add-on. For details on activation, refer to the [FAQ](#how-does-the-free-trial-work). ## Step 1: Configuring Your Destination The configuration process varies depending on the type of destination you choose: Cloud Storage or Data Warehouse. ### Cloud Storage JSON pipelines export data as JSON files to a cloud storage bucket, providing a straightforward method for data handling. For specific configuration instructions, see our guides for each storage destination: * [AWS S3](/docs/data-pipelines/integrations/aws-s3) * [Google Cloud Storage](/docs/data-pipelines/integrations/gcp-gcs) * [Azure Blob Storage](/docs/data-pipelines/integrations/azure-blob-storage) Data is exported to the following structured paths in your bucket: * Events: `//mp_master_event////` * User profiles: `//mp_people_data/` * Identity mappings: `//mp_identity_mappings_data/` ### Data Warehouse JSON Pipelines also facilitate data export into tables, creating schemas that are inferred from your event data. For detailed setup guides per destination, see: * [BigQuery](/docs/data-pipelines/integrations/bigquery) * [Databricks](/docs/data-pipelines/integrations/databricks) * [Redshift Spectrum](/docs/data-pipelines/integrations/redshift-spectrum) * [Snowflake](/docs/data-pipelines/integrations/snowflake) ## Step 2: Creating the Pipeline > [!NOTE] > > To create and manage a Data Pipeline, you must have an admin or owner project role. Learn more about [Roles and Permissions](/docs/orgs-and-projects/roles-and-permissions). After configuring your destination to accept data exported from Mixpanel, we must initiate the pipeline from the Mixpanel UI. After configuring your destination, initiate the data export in the **Destinations** page on your Mixpanel project -> **Create Pipeline** -> fill in the necessary configurations. You can choose different data sources, including events, people and identity, and other advanced options. See [Data Pipelines](/docs/data-pipelines/json-pipelines) for more details. **1. Click the settings button and select Destinations** ![create\_pipeline1](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/create_pipeline1.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=dafecd59dca60c6397bea03b48b19445) **2. Select the provider of your warehouse destination, and click "+ Create Pipeline"** ![create\_pipeline2](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/create_pipeline2.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=1f980eeef7991438952a68e658afc5bc) **3. Provide the details of your destination to create the pipeline** ![create\_pipeline3](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/create_pipeline3.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=2affd1abf3106a906800cab0ef660d1b) ## FAQ ### Managing Existing Pipelines To delete, pause, or unpause a JSON pipeline: 1. Go to the **Destinations** page 2. Find the pipeline you want to manage 3. Click the **3-dot** menu on the right side of the pipeline 4. Select **Delete Pipeline**, **Pause Pipeline**, or **Unpause Pipeline** as needed Note: JSON pipelines can only be managed through the UI, not via the data pipelines API. ### Backfilling Historical Data You can schedule an initial backfill when creating a pipeline. This ensures that historical data is also exported to the data warehouse. Note that the `from_date` value must be within 6 months in the past. The completion time for a backfill depends on the number of days and the amount of data in the project. Larger backfills can take up to multiple weeks. ### Viewing Pipeline Configuration To check a pipeline's configuration: 1. Go to the **Destinations** page 2. Either: * Click on the pipeline name to view the configuration at the top of the page, or * Click the **3-dot** menu and select **View Configuration** ### Why does the number of events in Mixpanel not match the number of exported events to my destination? Discrepancies between the event counts in Mixpanel and those exported to your destination can occur for several reasons: * **Data Sync**: If [Events Data Sync](/docs/data-pipelines/json-pipelines#events-data-sync) is not enabled or is unsupported for your pipeline, this could prevent some data from being exported. * **Data Delay**: Late-arriving data may take up to one day to sync from Mixpanel to your destination, leading to temporary discrepancies. * **Hidden Events**: Mixpanel exports all events, including those hidden in the Mixpanel UI via Lexicon. To reconcile differences in counts, check if the events in your destination include those hidden in the Mixpanel UI. * **Timezone Differences**: Data is exported to your warehouse in UTC, whereas data displayed in Mixpanel is in your project's timezone. ### What timezone is the data exported in? The data is exported in UTC timezone. You’ll need to convert it to your project’s timezone when running queries in your warehouse. Please refer to [this page](/docs/data-pipelines/common-sql-queries) for some common SQL queries. ### How can I count events exported by Mixpanel in the warehouse? Counting events can be slightly different for each warehouse, since we use different partitioning methods. Here are examples for [BigQuery](/docs/data-pipelines/integrations/bigquery#get-the-number-of-events-each-day) and [Snowflake](/docs/data-pipelines/integrations/snowflake#get-the-number-of-events-each-day). ### How does the free trial work? Mixpanel offers a 30-day free trial of the Data Pipelines, allowing you to create one pipeline per data source for each project. **Trial limitations**: * Exports are scheduled daily only. * Data synchronization feature is not available. * Only one pipeline can be created per data source per project. * Backfilled data is limited to one day before the creation date of the pipeline. ### Why can’t I delete my trial pipeline? You can’t delete a trial pipeline in Mixpanel — this is intentional. Each project is limited to one trial pipeline per data source, and keeping it prevents deleting/recreating trials to bypass limits. It also serves as a record that the trial has been used. Even after you upgrade to a paid Data Pipelines package, the trial pipeline remains visible and cannot be removed. This is a policy decision to preserve the integrity of the trial program, not a technical constraint. ### What is Active Pipeline Limit Each project can have two recurring pipelines and one date-ranged backfill pipeline active. Multiple pipelines cannot write to the same destination or for the same date range in a destination. Recurring pipelines must have different frequencies. To maintain optimal performance across our services, we limit the number of concurrently running pipeline steps to one per project. This approach ensures that each job, including those involving substantial backfills, waits its turn, preventing any single project from monopolizing resources and thus promoting fair scheduling among all customers. ### Is it possible to specify when pipeline exports run? No. Hourly pipelines are targeted to run 30 minutes past the hour to be exported, and daily pipelines are targeted to run 30 minutes past the day to be exported (e.g., 00:30 AM) in the project’s timezone. For example, a project in the Pacific timezone with a daily events pipeline will start the export for data from 5/22 on 5/23 00:30 AM PT. Please note that the [24-hour SLA](/docs/data-pipelines#what-is-the-service-level-agreement) applies. ### What is the Service Level Agreement? Our Service Level Agreement (SLA) stipulates a latency policy for exported events of up to 24 hours end-to-end, with an additional 24-hour allowance for late-arriving data. **Note**: Mixpanel classifies late data as any data point or user profile update that reaches Mixpanel servers more than two hours after the end of the export window. Late-arriving event data is exported only for pipelines that have **sync** enabled. For hourly pipelines, data that arrives on time is expected to be exported within 24 hours from the moment it is ingested by Mixpanel. For daily pipelines, this 24-hour period begins at the start of the next calendar day based on project time (e.g., data ingested on January 1st is scheduled to be exported from the start of January 2nd midnight to the end of the day on January 3rd). Data arriving late is handled during a daily sync process the following day after ingestion, provided sync is enabled. For instance, if data for January 1st arrives on January 3rd, it would be exported in the sync run on January 4th. ### What should I set for the Account Name and Storage Integration when creating a Snowflake pipeline? The Account Name should be set to your unique account identifier, e.g., "example1234.us-west-2", while the Storage Integration should be set to the name of the storage integration you created in Snowflake Eg. "MIXPANEL\_EXPORT\_STORAGE\_INTEGRATION". ### What happens to late-arriving data? For [incremental JSON pipelines](/docs/data-pipelines/json-pipelines#incremental-pipelines), late-arriving data will be exported as it's ingested. However, that is not the case for Raw and Schematized pipelines without [sync](/docs/data-pipelines/json-pipelines#events-data-sync) enabled — manual intervention will be needed to export late-arriving data into your data warehouse. ### Can I change the destination of an existing pipeline? No, you cannot. If you need to change the destination, you would need to create a new pipeline. # Common SQL Queries Source: https://docs.mixpanel.com/docs/data-pipelines/common-sql-queries Example SQL for Data Pipelines exports: deduplicated daily event counts, unique users with ID resolution, top events by volume, and finding duplicates ### Total daily count with deduplication logic and timezone adjustment Events exported via pipelines (i.e. raw exports) can contain duplicates. Deduplication should be performed using 4 event properties: `event_name`, `time`, `distinct_id`, and `insert_id` (docs [here](/reference/event-deduplication)). This is an example of a total daily count, converted to a specific timezone and deduplicated. ```sql theme={"system"} SELECT DATE(time, 'America/Los_Angeles') AS event_date, COUNT(DISTINCT CONCAT(event_name, time, distinct_id, insert_id)) AS event_count, FROM `.mp_master_event` WHERE DATE(time, 'America/Los_Angeles') >= '2025-08-01' AND DATE(time, 'America/Los_Angeles') < '2025-09-16' GROUP BY 1 ORDER BY 1 ASC ``` ### Unique user count with user ID resolution Raw events may contain the original `distinct_id` associated with the user at the time of the event instead of the final canonical `distinct_id` for the user after authentication. The `mp_identity_mappings_data_view` contains mappings of the original `distinct_id`s to the resolved ones (i.e. canonical `distinct_id`s). You can use this mapping to make sure that the unique users calculations account for ID management and therefore more accurate. ```sql theme={"system"} SELECT DATE(time, 'America/Los_Angeles') AS event_date, COUNT(DISTINCT resolved_user_id) AS unique_users FROM ( SELECT time, IFNULL(id_mappings.resolved_distinct_id, events.distinct_id) AS resolved_user_id FROM `.mp_master_event` AS events LEFT JOIN `.mp_identity_mappings_data_view` AS id_mappings ON events.distinct_id = id_mappings.distinct_id WHERE DATE(time, 'America/Los_Angeles') >= '2025-08-01' AND DATE(time, 'America/Los_Angeles') < '2025-09-16' ) GROUP BY 1 ORDER BY 1 ASC ``` ### Top 20 events by volume ```sql theme={"system"} SELECT event_name, COUNT(*) AS event_count FROM `.mp_master_event` WHERE DATE(time, 'America/Los_Angeles') >= '2025-08-01' AND DATE(time, 'America/Los_Angeles') < '2025-09-16' GROUP BY 1 ORDER BY 2 DESC LIMIT 20 ``` ### Querying duplicate events Raw exported events can contain duplicates. You can use these 4 event properties to identify duplicates: `event_name`, `time`, `distinct_id`, and `insert_id` (docs [here](/reference/event-deduplication)). This is an example of a query you can use to identify duplicate events in your raw data. ```sql theme={"system"} SELECT *, COUNT(*) OVER (PARTITION BY event_name, time, distinct_id, insert_id ) AS dup_group_size FROM `.mp_master_event` WHERE DATE(time, 'America/Los_Angeles') >= '2025-08-01' AND DATE(time, 'America/Los_Angeles') < '2025-09-16' QUALIFY dup_group_size > 1 ORDER BY DATE(time, 'America/Los_Angeles'), event_name, time ``` # Data Pipeline Integrations Source: https://docs.mixpanel.com/docs/data-pipelines/integrations Export your Mixpanel data to a data warehouse > [!NOTE] > > Customers on an Enterprise or Growth plan can access Data Pipeline as an add-on package. See our [pricing page](https://mixpanel.com/pricing/) for more details. These integrations allow you to send your Mixpanel data into a data warehouse. ## Featured Integrations > [card] [AWS S3](/docs/data-pipelines/integrations/aws-s3) > [card] [Azure Blob Storage](/docs/data-pipelines/integrations/azure-blob-storage) > [card] [BigQuery](/docs/data-pipelines/integrations/bigquery) > [card] [Databricks](/docs/data-pipelines/integrations/databricks) > [card] [Google Cloud Storage](/docs/data-pipelines/integrations/gcp-gcs) > [card] [Redshift Spectrum](/docs/data-pipelines/integrations/redshift-spectrum) > [card] [Snowflake](/docs/data-pipelines/integrations/snowflake) # AWS S3 Source: https://docs.mixpanel.com/docs/data-pipelines/integrations/aws-s3 Export Mixpanel events and people data to an AWS S3 bucket with JSON Pipelines, including cross-account role permission setup > [!NOTE] > > Customers on an Enterprise or Growth plan can access Data Pipeline as an add-on package. See our [pricing page](https://mixpanel.com/pricing/) for more details. Mixpanel allows you to export events and people data into AWS S3 through [Json Pipelines](/docs/data-pipelines) ## Setting S3 Permissions Before detailing the steps necessary to configure permissions, it's important to note that you need to create your AWS S3 bucket. Mixpanel supports various configurations to securely manage your data on AWS S3. For resource access, Mixpanel utilizes AWS cross-account roles. This section details the necessary permissions Mixpanel requires based on your S3 bucket configuration. ### Step 1: Create Data Modification Policy To export data from Mixpanel to AWS S3, assign the following data modification permissions. Use the following policy, replacing `` with the name of your bucket: ```json theme={"system"} { "Version": "2012-10-17", "Statement": [ { "Sid": "MixpanelS3AccessStatement", "Effect": "Allow", "Action": [ "s3:PutObject", "s3:GetObject", "s3:ListBucket", "s3:DeleteObject" ], "Resource": ["arn:aws:s3:::", "arn:aws:s3:::/*"] } ] } ``` ### Step 2: Server-Side Encryption (optional) Mixpanel ensures data transfer to your S3 bucket over a TLS encrypted connection. To secure your data at rest in S3, enable [Server-Side Encryption (SSE)](https://docs.aws.amazon.com/AmazonS3/latest/dev/serv-side-encryption.html), which offers two options: **Encryption with Amazon S3-Managed Keys (SSE-S3)** and **Encryption with AWS KMS-Managed Keys (SSE-KMS)** #### Encryption with Amazon S3-Managed Keys (SSE-S3) This option encrypts your data at rest using the AES-256 algorithm, with keys managed by S3. To enable this, select `AES` from the **Encryption** dropdown menu when creating pipelines. #### Encryption with AWS KMS-Managed Keys (SSE-KMS) For encryption with AWS KMS, you have the option to use either the default `aws/s3` key or your own custom keys. * Using the Default Key Simply select `KMS` from the **Encryption** dropdown menu and leave the `KMS Key ID` field empty when creating your pipeline. * Using Custom Key 1. Select `KMS` from the **Encryption** dropdown menu and enter your custom key's ARN in the `KMS Key ID` field. 2. Create an IAM policy allowing Mixpanel to use your KMS key, as shown in the JSON snippet below. Replace `` with your key's ARN: ```json theme={"system"} { "Version": "2012-10-17", "Statement": [ { "Sid": "MixpanelKmsStatement", "Effect": "Allow", "Action": [ "kms:Decrypt", "kms:Encrypt", "kms:GenerateDataKey", "kms:ReEncryptTo", "kms:GenerateDataKeyWithoutPlaintext", "kms:DescribeKey", "kms:ReEncryptFrom" ], "Resource": "" } ] } ``` ### Step 3: Create Access Role After establishing the necessary policies, create a cross-account IAM Role to attach policies you've created: * Go to the **IAM** service on the AWS console. * Select **Roles** in the sidebar and click **Create role**. * On the trusted entity page, choose **AWS Account**, then click **Another AWS account**, and enter `485438090326` for the **Account ID** and click **Next**. * On the permissions page, locate and attach the policies you created in previous steps (data modification and, if applicable, KMS). * On the review page, provide a name and description for this role and click **Create role**. To ensure secure operations, limit the trust relationship to the Mixpanel export user: * Return to the **IAM** service, select **Roles**, and locate the role you just created. * In the **Trust relationships** tab, click **Edit trust policy**. * Update the trust relationship with the following JSON, replacing `` with your Mixpanel project token. ```json theme={"system"} { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::485438090326:user/mixpanel-export" }, "Action": "sts:AssumeRole", "Condition": { "StringEquals": { "sts:ExternalId": "" } } } ] } ``` * Click **Update policy** and save. This setup utilizes an external ID to prevent [the confused deputy problem](https://docs.aws.amazon.com/IAM/latest/UserGuide/confused-deputy.html), enhancing the security of cross-account access as Mixpanel interacts with AWS using your project token. ### Step 4: Provide Mixpanel with S3 Details Refer to [Step 2: Creating the Pipeline](/docs/data-pipelines/#step-2-creating-the-pipeline) to create data pipeline via UI. It is essential to provide specific details to ensure that Mixpanel can accurately direct the data exports to your S3 bucket: * **Bucket**: Specify the S3 bucket where Mixpanel data should be exported. * **Region**: Indicate the AWS region where your S3 bucket is located. * **Role**: Provide the AWS Role ARN that Mixpanel should assume when writing to your S3, e.g., `arn:aws:iam:::role/example-s3-role`. * **Encryption (optional)**: Specify the type of at-rest encryption used by the S3 bucket. * **KMS Key ID (optional)**: If using KMS encryption, you can provide the custom key ID that you wish to use. > [!NOTE] > > If you'll query this data through Glue or Redshift Spectrum and your account uses AWS Lake Formation, see [Setting Glue Permissions](/docs/data-pipelines/integrations/redshift-spectrum#setting-glue-permissions) for the additional Lake Formation grants you'll need. ## Supported AWS Regions `US-EAST-1, US-EAST-2, US-WEST-1, US-WEST-2, AP-NORTHEAST-1, AP-NORTHEAST-2, AP-NORTHEAST-3, AP-SOUTHEAST-1, AP-SOUTHEAST-2, AP-SOUTH-1, CA-CENTRAL-1, CN-NORTH-1, CN-NORTHWEST-1, EU-CENTRAL-1, EU-NORTH-1, EU-WEST-1, EU-WEST-2, EU-WEST-3, SA-EAST-1, ME-SOUTH-1` # Azure Blob Storage Source: https://docs.mixpanel.com/docs/data-pipelines/integrations/azure-blob-storage Export Mixpanel events and people data to Azure Blob Storage with JSON Pipelines, using a service principal for authentication > [!NOTE] > > Customers on an Enterprise or Growth plan can access Data Pipeline as an add-on package. See our [pricing page](https://mixpanel.com/pricing/) for more details. Mixpanel allows you to export events and people data directly into an Azure Blob Storage instance through [Json Pipelines](/docs/data-pipelines). ## Setting Blob Storage Permissions To enable Mixpanel to write data to your Azure Blob Storage, specific permissions need to be set up because Azure authentication mechanisms do not support cross-account access. You will need to provide Mixpanel with Azure credentials linked to your Blob Storage container. ### Step 1: Create a Service Principal Start by creating a ***Service Principal*** in your Azure Active Directory. This can be done using the Azure CLI with the following command (with `"redacted"` output). This command generates credentials in JSON format. Ensure you securely handle the output as it contains sensitive information. ```shell theme={"system"} $ az ad sp create-for-rbac --sdk-auth { "clientId": "redacted", "clientSecret": "redacted", "subscriptionId": "redacted", "tenantId": "redacted", "activeDirectoryEndpointUrl": "https://login.microsoftonline.com", "resourceManagerEndpointUrl": "https://management.azure.com/", "activeDirectoryGraphResourceId": "https://graph.windows.net/", "sqlManagementEndpointUrl": "https://management.core.windows.net:8443/", "galleryEndpointUrl": "https://gallery.azure.com/", "managementEndpointUrl": "https://management.core.windows.net/" } ``` ### Step 2: Assign Role to Service Principal Next, navigate to the Blob Storage container you wish to use, and assign the `"Storage Blob Data Contributor"` role to the newly created Service Principal. ### Step 3: Provide Mixpanel with Access Details Refer to [Step 2: Creating the Pipeline](/docs/data-pipelines/#step-2-creating-the-pipeline) to create data pipeline via UI. You need to provide specific details to enable authentication and data export to Azure Blob Storage. For authentication, supply the `Client Id`, `Client Secret`, and `Tenant Id`. These credentials are crucial for Mixpanel to operate as the Service Principal and ensure secure authentication without exposing broader Azure resources. Additionally, to define the export destination, you must provide the `Storage Account` and `Container Name`. These details identify the exact location within Azure where your data will be exported. # BigQuery Source: https://docs.mixpanel.com/docs/data-pipelines/integrations/bigquery Export Mixpanel data to a customer-managed Google BigQuery dataset with JSON Pipelines, including permissions and table design > [!NOTE] > > Customers on an Enterprise or Growth plan can access Data Pipeline as an add-on package. See our [pricing page](https://mixpanel.com/pricing/) for more details. This guide describes how Mixpanel exports your data into a customer-managed [Google BigQuery](https://cloud.google.com/bigquery/) dataset. ## Design ![image](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/230698685-c02cb9a1-d66f-42a7-8063-8e78b79e7b1f.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=e3501a0813a4f083a22454f4c480cca8) For events data, we create a single table called `mp_master_event` and store all external properties inside the `properties` column in JSON type. Users can extract properties using JSON functions. See [Query Data](#query-data) for more details. For user profiles and identity mappings, we create new tables `mp_people_data_*` and `mp_identity_mappings_data_*` with a random suffix every time and then update views `mp_people_data_view` and `mp_identity_mappings_data_view` accordingly to use the latest table. Always use the views instead of the actual tables, as we do not immediately delete old tables, and you may end up using outdated data. Export logs are maintained in the `mp_nessie_export_log` table within BigQuery. This table provides detailed information such as export times, date ranges (from date & to date), and the number of rows exported. This data allows for effective monitoring and auditing of the data export processes. > **Important:** Please do not modify the schema of tables generated by Mixpanel. Altering the table schema can cause the pipeline to fail to export due to schema mismatches. ## Setting BigQuery Permissions Please follow these steps to share permissions with Mixpanel and create json pipelines. ### Step 1: Create a Dataset Create a dataset in your BigQuery to store the Mixpanel data. ![image](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/230698727-1216833e-8321-46de-a388-8b554a00938c.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=f7fa46185817d4a11da67f0f25106c12) ### Step 2: Grant Permissions to Mixpanel > **Note:** If your organization uses [domain restriction constraint](https://cloud.google.com/resource-manager/docs/organization-policy/restricting-domains) you will have to update the policy to allow Mixpanel domain `mixpanel.com` and Google Workspace customer ID: `C00m5wrjz`. Mixpanel requires two permissions to manage the dataset: **BigQuery Job User** * Navigate to **IAM & Admin** in your Google Cloud Console. * Click **+ ADD** to add principals * Add new principal `export-upload@mixpanel-prod-1.iam.gserviceaccount.com` and set the role as `BigQuery Job User` * Click the **Save** button. ![image](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/230698732-4dadbccf-1eeb-4e64-a6c7-8926eb49e5cc.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=a11740f0fe0ac6f8b086af59e7dc9166) **BigQuery Data Owner** * Go to **BigQuery** in your Google Cloud Console. * Open the dataset intended for Mixpanel exports. * Click on **Sharing** and **Permissions** in the drop down. * In the Data Permissions window, click on **Add Principal** * Add new principal `export-upload@mixpanel-prod-1.iam.gserviceaccount.com` and set the role as `BigQuery Data Owner`, and save. ![image](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/230698735-972aedb5-1352-4ebc-82c4-ef075679779b.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=b07ee1e92ca29f639fe9252dae727d59) ### Step 3: Provide Necessary Details for Pipeline Creation Refer to [Step 2: Creating the Pipeline](/docs/data-pipelines/#step-2-creating-the-pipeline) to create data pipeline via UI. You need to provide specific details to enable authentication and data export to BigQuery. * **GCP project ID**: The project ID where BigQuery dataset is present * **Dataset name**: Dataset created on the GCP project to which Mixpanel needs to export data * **GCP region**: The region used for BigQuery ## Partitioning Data in the events table `mp_master_event` is partitioned based on the [`_PARTITIONTIME` pseudo column](https://cloud.google.com/bigquery/docs/querying-partitioned-tables#ingestion-time_partitioned_table_pseudo_columns) and in the project timezone. Note: `TIMEPARTITIONING` should not be updated on the table. It will cause your export jobs to fail. Create a new table/view from this table for custom partitioning. ## Query Data This section provides examples of how to query data exported to BigQuery. Refer to [BigQuery docs](https://cloud.google.com/bigquery/docs/reference/standard-sql/json_functions#json_value) for more details about using JSON functions to query properties. ### Get the Number of Events Each Day To verify the completeness of the export process, use the following SQL query to count events per day: ```sql theme={"system"} SELECT _PARTITIONTIME AS pt, COUNT(*) FROM `..mp_master_event` WHERE DATE(_PARTITIONTIME) <= "2024-05-31" AND DATE(_PARTITIONTIME) >= "2024-05-01" GROUP BY pt ``` ### Query identity mappings When querying the identity mappings table, prioritize using the `resolved_distinct_id` over the non-resolved `distinct_id` whenever it is available. If a `resolved_distinct_id` is not available, you should revert to using the `distinct_id` from the existing people or events table. Below is an example query that utilizes the identity mappings table. This query counts the number of events for each unique user in San Francisco within a specific date range. ```sql theme={"system"} SELECT CASE WHEN mappings.resolved_distinct_id IS NOT NULL THEN mappings.resolved_distinct_id WHEN mappings.resolved_distinct_id IS NULL THEN events.distinct_id END AS resolved_distinct_id, COUNT(*) AS count FROM `..mp_master_event` events INNER JOIN `..mp_identity_mappings_data_view` mappings ON events.distinct_id = mappings.distinct_id AND JSON_VALUE(properties,'$."$city"') = "San Francisco" AND DATE(events._PARTITIONTIME) <= "2024-05-31" AND DATE(events._PARTITIONTIME) >= "2024-05-01" GROUP BY resolved_distinct_id LIMIT 100 ``` This query demonstrates how to effectively use conditional logic and JSON functions within BigQuery to analyze user behavior based on geographic location. Additional filters on event properties can be added to refine the analysis, allowing for more detailed insights into specific user actions or behaviors. ## Supported GCP Regions for BigQuery `US, US_CENTRAL_1, US_EAST_1, US_WEST_1, US_WEST_2, US_EAST_4, NORTH_AMERICA_NORTHEAST_1, SOUTH_AMERICA_EAST_1, EU, EUROPE_NORTH_1, EUROPE_WEST_2, EUROPE_WEST_3, EUROPE_WEST_4, EUROPE_WEST_6, ASIA_SOUTH_1, ASIA_EAST_1, ASIA_EAST_2, ASIA_NORTHEAST_1, ASIA_NORTHEAST_2, ASIA_NORTHEAST_3, ASIA_SOUTHEAST_1, ASIA_SOUTHEAST_2, AUSTRALIA_SOUTHEAST_1` ### VPC Service Controls IP allowlists are [not supported](https://docs.cloud.google.com/vpc-service-controls/docs/use-access-levels#limitations_of_using_access_levels_with) for BigQuery because Mixpanel's infrastructure runs on GCP, and inter-project communication in Google Cloud routes through internal Google IPs rather than public IPs. Instead, configure an ingress rule to allow access based on other attributes such as the project or service account. The Mixpanel project is `745258754925` for US, `848893383328` for EU, and `1054291822741` for IN. The service account is `export-upload@mixpanel-prod-1.iam.gserviceaccount.com`. # Databricks Source: https://docs.mixpanel.com/docs/data-pipelines/integrations/databricks Export Mixpanel data to Databricks using Unity Catalog Managed Volumes, supported on AWS, GCP, and Azure > [!NOTE] > > Customers on an Enterprise or Growth plan can access Data Pipeline as an add-on package. See our [pricing page](https://mixpanel.com/pricing/) for more details. Export your Mixpanel data to Databricks using Unity Catalog Managed Volumes. This integration supports all Databricks clouds (AWS, GCP, and Azure). ## Design Mixpanel exports data to the customer's Databricks workspace using Unity Catalog Managed Volumes. We first load the data into a single-column (VARIANT type) raw data table, then create a view to expose all properties as typed columns. ### Supported Features * **Cross-cloud Support**: Works with Databricks on AWS, GCP, or Azure * **Date Clustering**: Raw tables use liquid clustering on `event_date` for efficient date-based queries * **Static IP Addresses**: Supports IP allowlisting for secure connections ### IP Allowlist Mixpanel Data Pipelines supports static IP addresses for Databricks connections when IP restrictions are configured on your Databricks workspace. If you are using network policies to restrict access to your instance, you might need to add the following IP addresses to the allowed list: **US** ```text theme={"system"} 34.31.112.201 35.184.21.33 35.225.176.74 ``` **EU** ```text theme={"system"} 34.147.68.192 35.204.164.122 35.204.177.251 ``` **IN** ```text theme={"system"} 34.47.224.29 34.93.42.83 35.244.19.238 ``` ## Prerequisites Before setting up the integration, ensure you have: * A Databricks workspace with Unity Catalog enabled * A SQL Warehouse (Serverless recommended for best performance and cost) * Admin permissions in your Databricks workspace to create Service Principals ## Set Export Permissions ### Step 1: Create a Service Principal (or use existing one) A Service Principal is a Databricks identity that Mixpanel will use to access your workspace. 1. In your Databricks workspace, navigate to **Settings** → **Identity and access** → **Service principals** 2. Click **Add service principal** 3. Click **Add new** 4. Note the **Application ID** - you'll need this later ### Step 2: Generate OAuth Secret 1. Click on the Service Principal you just created 2. Navigate to the **Secrets** tab 3. Click **Generate secret** and enter lifetime (730 days recommended) 4. Copy the **Secret value** immediately - it won't be shown again 5. Store it securely - you'll need it for Mixpanel configuration ### Step 3: Create new Catalog (or use existing ones) and Schema > [!NOTE] > > Creating a new catalog requires the `CREATE CATALOG` privilege, which is a metastore-level permission. Contact your **metastore admin** or **account admin** to grant this privilege. > [!NOTE] > > If you are using an existing shared catalog, contact the **catalog owner** or a **metastore admin** to grant the following privileges: > > ```sql theme={"system"} > GRANT USE CATALOG ON CATALOG TO ``; > GRANT CREATE SCHEMA ON CATALOG TO ``; > GRANT MANAGE ON CATALOG TO ``; > ``` Create a dedicated catalog and schema for Mixpanel data. You can run SQL under SQL Editor or Catalog Explorer. ```sql theme={"system"} -- Create Catalog CREATE CATALOG IF NOT EXISTS mixpanel_export; -- Create schema CREATE SCHEMA IF NOT EXISTS mixpanel_export.json_pipelines; ``` ### Step 4: Grant Permissions to Service Principal Grant the Service Principal required permissions to operate within the catalog. ```sql theme={"system"} GRANT USE CATALOG ON CATALOG mixpanel_export TO ``; GRANT USE SCHEMA ON SCHEMA mixpanel_export.json_pipelines TO ``; GRANT CREATE TABLE ON SCHEMA mixpanel_export.json_pipelines TO ``; GRANT CREATE VOLUME ON SCHEMA mixpanel_export.json_pipelines TO ``; ``` **For Metastore Privilege Version 1.1+**, additionally grant "CREATE VIEW" on schema: * **Version 1.0**: privilege `CREATE TABLE` covers both tables and views * **Version 1.1+**: Separate `CREATE VIEW` privilege required ```sql theme={"system"} -- Check your metastore privilege version by PrivilegeModelVersion DESCRIBE METASTORE; GRANT CREATE VIEW ON SCHEMA mixpanel_export.json_pipelines TO ``; ``` #### Why These Permissions? * `USE CATALOG`: Required to access the catalog * `USE SCHEMA`: Required to access objects in the schema * `CREATE TABLE`: Create raw tables to store event data * `CREATE VOLUME`: Create temporary volumes for uploading files * `CREATE VIEW`: Create views with typed columns (metastore v1.1+ only) **Note**: The Service Principal automatically becomes the **owner** of all objects it creates (tables, views, volumes), which grants it full permissions (SELECT, MODIFY, READ FILES, WRITE FILES, etc.) on those objects. No additional grants needed. ### Step 5: Grant SQL Warehouse Access The Service Principal needs permission to use the SQL Warehouse to execute queries. 1. In your Databricks workspace, navigate to **SQL Warehouses** 2. Click on your SQL Warehouse (or create one if needed) 3. Go to the **Permissions** tab 4. Click **Add** or **Grant permissions** 5. Search for your Service Principal by Application ID (from Step 1) 6. Select permission level: **Can use** (minimum required) 7. Click **Save** **Why this is needed**: SQL Warehouses have their own access control separate from data permissions. Even with all catalog/schema/table permissions, the Service Principal cannot execute queries without warehouse access. ### Step 6: Get SQL Warehouse Connection Details 1. In the same SQL Warehouse, go to the **Connection details** tab 2. Note the following values: * **Server hostname**: e.g., `abc123.cloud.databricks.com` * **HTTP Path**: e.g., `/sql/1.0/warehouses/xyz789` **Recommendation**: Use a Serverless SQL Warehouse for: * Fast startup (\~3 seconds) * Auto-scaling * Pay-per-use pricing * No idle cluster costs ### Step 7: Configure Mixpanel Integration Refer to [Step 2: Creating the Pipeline](/docs/data-pipelines/#step-2-creating-the-pipeline) to create data pipeline via UI. You'll need to provide: * **Server Hostname** (from Step 6) * **HTTP Path** (from Step 6) * **Catalog** (from Step 3, e.g., `mixpanel_export`) * **Schema** (from Step 3, e.g., `json_pipelines`) * **Service Principal ID** (Application ID from Step 1) * **Service Principal Secret** (from Step 2) ## Clustering Raw tables are clustered by the `event_date` column, which is computed in your project's timezone during data load. This clustering significantly improves query performance when filtering by date. ## Data Schema Mixpanel creates a raw table and a view with typed columns: **Raw Table Columns** (`mp_master_event_raw`): * `DATA` (VARIANT) - Contains the complete event JSON * `event_date` (DATE) - Computed from event time in your project's timezone **View Columns** (`mp_master_event`): * `user_id` (STRING) * `time` (TIMESTAMP) * `properties` (VARIANT) - All event properties as semi-structured data * `insert_id` (STRING) * `event_name` (STRING) * `distinct_id` (STRING) * `device_id` (STRING) * `event_date` (DATE) ## Queries > [!NOTE] > > Remember to grant necessary permissions to any user who wants to query the table > > ```sql theme={"system"} > GRANT USE CATALOG ON CATALOG mixpanel_export TO ``; > GRANT USE SCHEMA ON SCHEMA mixpanel_export.json_pipelines TO ``; > GRANT SELECT ON SCHEMA mixpanel_export.json_pipelines TO ``; > ``` Databricks supports a VARIANT type that can store semi-structured JSON data. Use the `::` syntax to extract and cast properties from VARIANT columns. ### Basic event query ```sql theme={"system"} SELECT count(*) FROM mixpanel_export.json_pipelines.mp_master_event WHERE event_name = 'sign up'; ``` ### Query nested properties ```sql theme={"system"} SELECT event_name, time, distinct_id, properties:button_name::STRING AS button_name, properties:product:category::STRING AS product_category, properties:price::DOUBLE AS price FROM mixpanel_export.json_pipelines.mp_master_event WHERE event_name = 'Purchase' AND properties:product:category::STRING = 'Electronics'; ``` ### Getting the number of events per day ```sql theme={"system"} SELECT event_date, count(*) as event_count FROM mixpanel_export.json_pipelines.mp_master_event WHERE event_date >= '2024-01-01' AND event_date <= '2024-01-31' GROUP BY event_date ORDER BY event_date; ``` ### Efficient date filtering Use the `event_date` column for best performance: ```sql theme={"system"} SELECT event_name, time, distinct_id, properties:button_name::STRING AS button_name FROM mixpanel_export.json_pipelines.mp_master_event WHERE event_date BETWEEN '2024-01-01' AND '2024-01-31' AND event_name = 'Purchase' ORDER BY time DESC; ``` ## Costs * **Delta tables**: Billed by your cloud provider (AWS S3, GCP GCS, or Azure ADLS) via Databricks * **Managed volumes**: Temporary storage cleaned up after each export * **Compute**: SQL Warehouse usage during COPY INTO operations # Google Cloud Storage Source: https://docs.mixpanel.com/docs/data-pipelines/integrations/gcp-gcs Mixpanel supports exporting events and people data directly to Google Cloud Storage (GCS) via Json Pipelines Mixpanel supports exporting events and people data directly to Google Cloud Storage (GCS) via [Json Pipelines](/docs/data-pipelines). ## Setting GCS Permissions To facilitate data export to Google Cloud Storage, proper permissions need to be configured to allow Mixpanel access to your GCS bucket. ### Step 1: Assign Roles to Service Account on Bucket You must grant the `Storage Object Admin` role to the service account `export-upload@mixpanel-prod-1.iam.gserviceaccount.com` for the bucket you are creating or intend to reuse. This role allows Mixpanel to manage storage objects on your behalf. To assign this role: * Navigate to the **Cloud Storage** in your Google Cloud Console and select the GCS bucket you have created or plan to reuse * Click on the **PERMISSIONS** tab and select **GRANT ACCESS** * In the new principals field, add `export-upload@mixpanel-prod-1.iam.gserviceaccount.com` and then select `Storage Object Admin` from the role dropdown menu * Confirm the assignment by clicking the **SAVE** button. This process ensures that the specified service account has the necessary permissions to efficiently manage and handle the data exported to your GCS bucket. ### Step 2: Provide Mixpanel with GCS Details Refer to [Step 2: Creating the Pipeline](/docs/data-pipelines/#step-2-creating-the-pipeline) to create data pipeline via UI. You need to provide the following details to ensure Mixpanel can accurately direct the data exports to your GCS: * Bucket: The GCS bucket to export Mixpanel data to * Region: The GCS region for the bucket ## Supported GCS Regions `NORTHAMERICA-NORTHEAST1, US-CENTRAL1, US-EAST1, US-EAST4, US-WEST1, US-WEST2, SOUTHAMERICA-EAST1, EUROPE-NORTH1, EUROPE-WEST1, EUROPE-WEST2, EUROPE-WEST3, EUROPE-WEST4, EUROPE-WEST6, ASIA-EAST1, ASIA-EAST2, ASIA-NORTHEAST1, ASIA-NORTHEAST2, ASIA-NORTHEAST3, ASIA-SOUTH1, ASIA-SOUTHEAST1, AUSTRALIA-SOUTHEAST1` # AWS Redshift Spectrum Source: https://docs.mixpanel.com/docs/data-pipelines/integrations/redshift-spectrum Export Mixpanel data to S3 and query it with AWS Redshift Spectrum through AWS Glue Data Catalog schemas > [!NOTE] > > Customers on an Enterprise or Growth plan can access Data Pipeline as an add-on package. See our [pricing page](https://mixpanel.com/pricing/) for more details. Mixpanel's JSON pipelines enable direct export of your Mixpanel data into an S3 bucket, facilitating the use of Redshift Spectrum for querying. ## Design ![image](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/dad7fe54-caf6-4952-bedc-90da7a4650da.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=a38a190d0ad7100c54159c8d3c2d8444) Mixpanel exports data to your S3 bucket and simultaneously updates the necessary schema in the AWS Glue Data Catalog. This allows seamless integration with [Redshift Spectrum](https://docs.aws.amazon.com/redshift/latest/dg/c-getting-started-using-spectrum.html) for querying your data. ## Setting S3 Permissions See [Setting S3 Permissions](/docs/data-pipelines/integrations/aws-s3#setting-s3-permissions) ## Setting Glue Permissions [AWS Glue](https://aws.amazon.com/glue/) provides a robust data catalog service that facilitates seamless access to S3 data across various AWS services. Mixpanel writes and updates schemas in your Glue instance, ensuring that new data becomes quickly available. This section details configuring Glue permissions to manage the exported data in S3. ### Step 1: Create Glue Database * Navigate to the **AWS Glue** service on the AWS console. Make sure you are in the same region as your S3 exported data. * Click **Databases** in the sidebar, then **Add database**. * Name your database and click **Create database**. ![image](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/230698403-de71ee8f-03c2-4528-abd7-94be5a5d1e30.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=5841d29304c4131c55b981736cb67340) ### Step 2: Create Data Modification Policy Mixpanel partitions the Glue table by default if it has the proper AWS permissions. The partition key type and name are `string` and `mp_date` respectively and the partition values are dates in the **UTC timezone** e.g. `2024-05-01`. To enable partitioning in Glue, the policy must include partition-related permissions. To enable Mixpanel to manage partitions (e.g., `mp_date`) and schemas in Glue, you need to grant specific AWS permissions: * Go to the **IAM** service on the AWS console. * Click **Policies** in the sidebar and then **Create policy**. * Under the **JSON** tab, input the following policy to manage tables and partitions: ```json theme={"system"} { "Version": "2012-10-17", "Statement": [ { "Sid": "MixpanelGlueAccessStatement", "Effect": "Allow", "Action": [ "glue:GetDatabase", "glue:CreateTable", "glue:GetTable", "glue:GetTables", "glue:GetTableVersions", "glue:UpdateTable", "glue:DeleteTable", "glue:GetPartition", "glue:CreatePartition", "glue:DeletePartition", "glue:UpdatePartition", "glue:BatchCreatePartition", "glue:GetPartitions", "glue:BatchDeletePartition", "glue:BatchGetPartition" ], "Resource": "*" } ] } ``` * Click **Next** and name the policy and **Create policy**. Note that AWS does not support granular resources when granting Glue access. So you will have to use \* (asterisk) in the Resources field until AWS can support more granular resources. ### Step 3: Create Access Role * Go to the **IAM** service on the AWS console. * Select **Roles** in the sidebar and click **Create role**. * On the trusted entity page, choose **AWS Account**, then click **Another AWS account**, and enter `485438090326` for the **Account ID**. * On the permissions page, locate and attach the policies you created in Step 2. * On the review page, provide a name and description for this role and click **Create role**. To ensure secure operations, limit the trust relationship to the Mixpanel export user: * Return to the **IAM** service, select **Roles**, and locate the role you just created. * In the **Trust relationships** tab, click **Edit trust policy**. * Update the trust relationship with the following JSON and click **Update policy**. ```json theme={"system"} { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::485438090326:user/mixpanel-export" }, "Action": "sts:AssumeRole", "Condition": {} } ] } ``` > [!WARNING] > > If your Glue Data Catalog is governed by [AWS Lake Formation](https://docs.aws.amazon.com/lake-formation/latest/dg/what-is-lake-formation.html), the IAM permissions above are not sufficient on their own. Lake Formation enforces its own permission layer, so you'll also need to grant the Mixpanel Glue role permissions inside Lake Formation: `CREATE_TABLE` on the Glue **database**, plus a **Data location** permission on your registered S3 export path. Grant these at the database and data-location level, not only on the table. ## Setting Redshift Spectrum Permissions This section outlines the necessary steps for configuring permissions to allow Mixpanel to create external schemas in Redshift Spectrum. ### Step 1: Create Policy Create a policy in IAM with the necessary permissions to enable Mixpanel to interact with Redshift Spectrum, Glue Data Catalog, and S3. Replace `` with your actual S3 bucket name: ```json theme={"system"} { "Version": "2012-10-17", "Statement": [ { "Sid": "MixpanelRedshiftAccessStatement", "Effect": "Allow", "Action": [ "redshift-data:GetStatementResult", "redshift-data:DescribeStatement", "redshift-data:BatchExecuteStatement", "redshift-data:ExecuteStatement", "redshift-serverless:GetCredentials", "redshift-serverless:GetWorkgroup", "redshift:GetClusterCredentialsWithIAM", "redshift:GetClusterCredentials" ], "Resource": "*" }, { "Sid": "MixpanelGlueAccessStatement", "Effect": "Allow", "Action": [ "glue:GetDatabase", "glue:GetDatabases", "glue:GetTable", "glue:GetTables", "glue:GetPartition", "glue:GetPartitions" ], "Resource": "*" }, { "Sid": "MixpanelS3AccessStatement", "Effect": "Allow", "Action": ["s3:GetObject", "s3:ListBucket", "s3:PutObject", "s3:DeleteObject"], "Resource": ["arn:aws:s3:::", "arn:aws:s3:::/*"] } ] } ``` ### Step 2: Create Access Role * Go to the **IAM** service on the AWS console. * Select **Roles** in the sidebar and click **Create role**. * On the trusted entity page, choose **AWS Account**, then click **Another AWS account**, and enter `485438090326` for the **Account ID**. * On the permissions page, locate and attach the policies you created in Step 1. * On the review page, provide a name and description for this role and click **Create role**. To ensure secure operations, limit the trust relationship to the Mixpanel export user: * Return to the **IAM** service, select **Roles**, and locate the role you just created. * In the **Trust relationships** tab, click **Edit trust policy**. * Update the trust relationship with the following JSON and click **Update policy**. ```json theme={"system"} { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::485438090326:user/mixpanel-export", "Service": "redshift.amazonaws.com" }, "Action": "sts:AssumeRole" } ] } ``` ### Step 3: Associate Access Role to Redshift Once you've established the IAM role that enables Mixpanel to access both the external Data Catalog and Amazon S3, it's essential to link this role with your Amazon Redshift Serverless instance. Use the steps below, and refer to [IAM in Redshift Serverless](https://docs.aws.amazon.com/redshift/latest/mgmt/serverless-iam.html) for additional details: * Go to **Amazon Redshift** service on the AWS console * Select Redshift Serverless and access the Namespace configuration for an existing workgroup * Under **Security and encryption** tab, click **Manage IAM roles** * Use the **Manage IAM roles** dropdown to select **Associate IAM roles** and then attach the role you created in Step 2. ### Step 4: Create Redshift Database Create a new Redshift database or utilize an existing one. Here is how to create a new Redshift database: ![image](https://mintcdn.com/mixpanel-edb78807/zIwFvUafFSjAERSV/images/48198342-27dc-43b1-bab8-434b31f97e34.png?fit=max\&auto=format\&n=zIwFvUafFSjAERSV\&q=85\&s=cdaca64a59afaf66c831b85499bfb936) ![image](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/0867f1d8-3649-4f9e-b0d2-9a3b73cfbe97.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=d557be10e3d1e1449f86bee073b01a4b) ### Step 5: Grant Privilege to Database User To enable Mixpanel's external schema creation for pipeline operations, grant the `CREATE` privilege to the federated database user associated with the IAM role. AWS recommends using [federated identity](https://docs.aws.amazon.com/redshift/latest/mgmt/authorization-fas-spectrum.html) for Redshift resource management, leveraging your organization's identity system (e.g., AWS IAM) for authentication and authorization. > **Important:** Do not manually create `IAMR:xxx` users via SQL commands. Redshift automatically generates a corresponding database user with the `IAMR:` prefix upon the first connection using the IAM role. Follow these steps to grant the `CREATE` privilege: * Go to the **CloudShell** service on the AWS console and assume the IAM role. Replace `` with the full ARN of the role you created in Step 2. ```bash theme={"system"} aws sts assume-role --role-arn --role-session-name MixpanelSession ``` * If you get an **"AccessDenied"** error, your current AWS CLI role can't assume the Mixpanel role. To fix this, edit the Mixpanel role's trust policy to allow your current role to assume it. If you're using SSO, add this to the trust policy, replacing `` with your AWS account ID: ```json theme={"system"} { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::485438090326:user/mixpanel-export", "Service": "redshift.amazonaws.com" }, "Action": "sts:AssumeRole" }, { "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam:::root" }, "Action": "sts:AssumeRole" } ] } ``` * Configure AWS CLI with the temporary credentials. ```bash theme={"system"} aws configure set aws_access_key_id "" aws configure set aws_secret_access_key "" aws configure set aws_session_token "" ``` * Run this command in your terminal, replacing the placeholders with your actual values, and trigger the db user `IAMR:` creation in Redshift. ```bash theme={"system"} aws redshift-data execute-statement \ --workgroup-name \ --database \ --sql "SELECT 1;" ``` * Grant `CREATE` privilege. Click **Query data** in the Amazon Redshift console to open **Query Editor v2**. Connect using appropriate credentials and run the following SQL commands, replacing `` and `` with your actual values: ```sql theme={"system"} -- Check if the IAMR user has been created SELECT * FROM pg_user WHERE usename LIKE 'IAMR:'; -- If you see your IAMR user in the results, proceed with the following commands GRANT CREATE ON DATABASE "" TO "IAMR:"; -- Should return true if the privilege was successfully granted SELECT HAS_DATABASE_PRIVILEGE('IAMR:', '', 'CREATE'); ``` ## Provide Necessary Details for Pipeline Creation Refer to [Step 2: Creating the Pipeline](/docs/data-pipelines/#step-2-creating-the-pipeline) to create data pipeline via UI. It is essential to provide specific details to Mixpanel: **S3** * **Bucket**: S3 bucket where Mixpanel data should be exported. * **Region**: AWS region where your S3 bucket is located. * **Role**: AWS Role ARN that Mixpanel should assume when writing to your S3, e.g., `arn:aws:iam:::role/example-s3-role`. * **Encryption (optional)**: Specify the type of at-rest encryption used by the S3 bucket. * **KMS Key ID (optional)**: If using KMS encryption, you can provide the custom key ID that you wish to use. **Glue** * **Database**: Glue database to which the schema needs to be exported. * **Region**: AWS region where your Glue Database is created. * **Role**: AWS Role ARN that needs to be assumed for updating glue, e.g., `arn:aws:iam:::role/example-glue-role`. **Redshift** * **Workgroup Arn**: Workgroup ARN for Redshift Serverless. * **Database**: Redshift database where the external schema is created. * **Region**: AWS region where your Redshift is located. * **Role**: AWS Role ARN that Mixpanel should assume when creating schema to your database, e.g., `arn:aws:iam:::role/example-redshift-role`. ## Queries To query data in external schema created by Mixpanel, you need to ask admin to grant schema **USAGE** privilege to the federated database user. ```sql theme={"system"} GRANT USAGE ON SCHEMA "mp_json_export" TO "IAM:"; ``` Once the pipelines are successfully executed and you have necessary privilege, you can begin querying nested JSON data within the `properties` column in Redshift through the **Query Editor**. Here's an enhanced example query that retrieves the `distinct_id` of users from San Francisco: ```sql theme={"system"} SET json_serialization_enable TO true; SELECT distinct_id FROM "your-database"."mp_json_export"."mp_master_event" WHERE json_extract_path_text(properties, '$city') = 'San Francisco' LIMIT 10; ``` For more detailed guidance on querying nested JSON data and using JSON functions in Redshift, you can review the official documentation on [querying nested data](https://docs.aws.amazon.com/redshift/latest/dg/serializing-complex-JSON.html) and [JSON functions](https://docs.aws.amazon.com/redshift/latest/dg/JSON_EXTRACT_PATH_TEXT.html). ## Supported AWS Regions `US-EAST-1, US-EAST-2, US-WEST-1, US-WEST-2, AP-SOUTH-1, AP-NORTHEAST-1, AP-NORTHEAST-2, API-NORTHEAST-3, AP-SOUTHEAST-1, AP-SOUTHEAST-2, CA-CENTRAL-1, CN-NORTH-1, CN-NORTHWEST-1, EU-CENTRAL-1, EU-WEST-1, EU-WEST-2, EU-WEST-3, EU-NORTH-1, SA-EAST-1, ME-SOUTH-1` # Snowflake Source: https://docs.mixpanel.com/docs/data-pipelines/integrations/snowflake Export Mixpanel data into a Snowflake dataset with JSON Pipelines, including role setup, storage integration, and IP restrictions > [!NOTE] > > Customers on an Enterprise or Growth plan can access Data Pipeline as an add-on package. See our [pricing page](https://mixpanel.com/pricing/) for more details. This guide describes how Mixpanel data is exported into a Snowflake dataset. Create a pipeline to export your Mixpanel data into Snowflake. Once an export job is scheduled, Mixpanel exports data to Snowflake on a recurring basis. ## Design Mixpanel exports data to your database. We first load the data into a single-column raw (VARIANT type) data table. Then, we create a view to expose all properties as columns. ### IP Restrictions Mixpanel Data Pipelines supports static IP addresses for Snowflake connections when IP restrictions are configured on your Snowflake instance. If you are using [Snowflake Network policy](https://docs.snowflake.com/en/user-guide/network-policies) to restrict access to your instance, you might need to add the following IP addresses to the allowed list: **US** ```jsx theme={"system"} 34.31.112.201 35.184.21.33 35.225.176.74 ``` **EU** ```jsx theme={"system"} 34.147.68.192 35.204.164.122 35.204.177.251 ``` **IN** ```jsx theme={"system"} 34.47.224.29 34.93.42.83 35.244.19.238 ``` ## Set Export Permissions ### Step 1: Create a Role and Grant Permissions Create a role (`MIXPANEL_EXPORT_ROLE` as an example) and grant access on your database, schema, warehouse to the role. Replace ``, ``, `` with actual names. ```sql theme={"system"} CREATE ROLE MIXPANEL_EXPORT_ROLE; GRANT ALL ON DATABASE TO ROLE MIXPANEL_EXPORT_ROLE; GRANT ALL ON SCHEMA . TO ROLE MIXPANEL_EXPORT_ROLE; GRANT USAGE ON WAREHOUSE TO ROLE MIXPANEL_EXPORT_ROLE; GRANT OPERATE ON WAREHOUSE TO ROLE MIXPANEL_EXPORT_ROLE; GRANT MONITOR ON WAREHOUSE TO ROLE MIXPANEL_EXPORT_ROLE; ``` ### Step 2: Create a Storage Integration Mixpanel stages exported data in a GCS bucket (`gcs://mixpanel-export-pipelines-`) before loading it into your warehouse. This bucket is created and managed by Mixpanel — you do *not* need to create it yourself. To allow Mixpanel to load data from this bucket into your Snowflake warehouse, create a GCS storage integration and grant it to the role. Replace `` with your Mixpanel project ID. ```sql theme={"system"} CREATE STORAGE INTEGRATION MIXPANEL_EXPORT_STORAGE_INTEGRATION TYPE = EXTERNAL_STAGE STORAGE_PROVIDER = 'GCS' ENABLED = TRUE STORAGE_ALLOWED_LOCATIONS = ("gcs://mixpanel-export-pipelines-"); GRANT USAGE ON INTEGRATION MIXPANEL_EXPORT_STORAGE_INTEGRATION TO MIXPANEL_EXPORT_ROLE; ``` ### Step 3: Authenticate the User Refer to [Step 2: Creating the Pipeline](/docs/data-pipelines/#step-2-creating-the-pipeline) to create a data pipeline via the UI. We provide two different authentication methods: password and key-pair. In the example, create a user with either a password or public key and then grant the role to the user. You can find the public key in the Snowflake pipeline creation UI. If you already have a user, change the fields and grant the role. password authentication ```sql theme={"system"} CREATE USER MIXPANEL_EXPORT_USER PASSWORD='' DEFAULT_ROLE=MIXPANEL_EXPORT_ROLE; ALTER USER MIXPANEL_EXPORT_USER SET PASSWORD=''; GRANT ROLE MIXPANEL_EXPORT_ROLE TO USER MIXPANEL_EXPORT_USER; ``` key-pair based authentication ```sql theme={"system"} CREATE USER MIXPANEL_EXPORT_USER RSA_PUBLIC_KEY='' DEFAULT_ROLE=MIXPANEL_EXPORT_ROLE; ALTER USER MIXPANEL_EXPORT_USER SET RSA_PUBLIC_KEY=''; GRANT ROLE MIXPANEL_EXPORT_ROLE TO USER MIXPANEL_EXPORT_USER; ``` ## Partitioning The data in the raw tables is clustered based on the `time` column in the project's timezone. To be exact, we use `CLUSTER BY (TO_DATE(CONVERT_TIMEZONE('UTC','', TO_TIMESTAMP(DATA:time::NUMBER)))` where `TIMEZONE` is the Mixpanel project's timezone. ## Queries A query is a request for data results. You can perform actions on the data, such as combine data from different tables; add, change, or delete table data; and perform calculations. Snowflake supports an Object type that can store JSON objects and arrays. Mixpanel exposes array and object top-level properties as Object columns in the view. Here is an example of how you can query the raw table when using one table for all the events. `DB_NAME` and `SCHEMA_NAME` should be replaced by your Snowflake database and schema name. ```sql theme={"system"} SELECT count(*) FROM ..MP_MASTER_EVENT_RAW WHERE DATA:event_name::string = 'sign up'; ``` Here is an example of how you can query the view when using one table for all the events: ```sql theme={"system"} SELECT count(*) FROM ..MP_MASTER_EVENT WHERE event_name = 'sign up'; ``` ### Getting the number of events in each day You will need this if you suspect the export process is not exporting all the events you want. As the time column in the tables is in UTC timezone, you first need to convert that to your Mixpanel project timezone, and then, get the number of events for each day. The following query will do that for you. ```sql theme={"system"} SELECT TO_DATE(CONVERT_TIMEZONE('UTC','', time)) as ttime, count(*) FROM ..MP_MASTER_EVENT WHERE ttime>=TO_DATE('2021-12-03') AND ttime<=TO_DATE('2024-09-01') GROUP BY ttime ORDER BY ttime; ``` This example returns the number of events in each day in your project timezone. `PROJECT_TIMEZONE`, `DB_NAME` and `SCHEMA_NAME` should be replaced by your Mixpanel project timezone and your snowflake database and schema name. ### Querying the identity mapping table When using the ID mappings table, you should use the **resolved** `distinct_id` in place of the non-resolved `distinct_id` whenever present. If there is no **resolved** `distinct_id`, you can then use the `distinct_id` from the existing people or events table. Below is an example SQL query that references the ID mapping table to count the number of events in a specific date range for each unique user in San Francisco. ```sql theme={"system"} SELECT COALESCE(mappings.resolved_distinct_id, events.distinct_id) AS resolved_distinct_id, COUNT(*) AS count FROM ..MP_MASTER_EVENT events FULL OUTER JOIN ..MP_IDENTITY_MAPPINGS_DATA mappings ON events.distinct_id = mappings.distinct_id AND events.properties:"$city"::STRING = 'San Francisco' AND TO_DATE(CONVERT_TIMEZONE('UTC','', events.time)) >= TO_DATE('2020-04-01') AND TO_DATE(CONVERT_TIMEZONE('UTC','', events.time)) <= TO_DATE('2024-09-01') GROUP BY COALESCE(mappings.resolved_distinct_id, events.distinct_id) LIMIT 100; ``` # JSON Pipelines Source: https://docs.mixpanel.com/docs/data-pipelines/json-pipelines Export Mixpanel data to supported data warehouses or object storage with JSON Pipelines, keeping properties in JSON format > [!NOTE] > > Customers on an Enterprise or Growth plan can access Data Pipeline as an add-on package. See our [pricing page](https://mixpanel.com/pricing/) for more details. JSON Pipeline is designed to export your Mixpanel data to supported data warehouses or object storage solutions. We maintain all properties in a high-level JSON format under the `properties` key for both events and user profile data. This documentation is intended for users with intermediate or advanced knowledge of databases and familiarity with Amazon Web Services, Google Cloud Platform, or Snowflake technology. ## Create JSON Pipelines Follow the instructions here in the [Overview](/docs/data-pipelines). ## Destination and Date Range Restrictions To prevent data duplication and conflicts, the system enforces the following rule: **you cannot create multiple event pipelines that export to the same destination with overlapping date ranges**. For example, if you already have a pipeline exporting to BigQuery dataset "my\_dataset" for dates January 1-31, you cannot create another pipeline exporting to the same dataset with dates January 15 - February 15, as the January 15-31 period would overlap. This constraint ensures data integrity and prevents duplicate exports to the same destination tables or storage locations. ## Data Sources Output Json pipelines support three different data sources: events, people, and identity. We aggregate all events and user profiles properties under the `properties` key to facilitate easier querying of every row with conditions. In addition to consolidating all event and user profiles properties under the `properties` key, we export several common properties across all records. This standardization facilitates simpler and more consistent querying conditions. Below are examples of the output structure in **BigQuery** The following are examples of the output in **BigQuery** for each data source pipeline. Note that different warehouses may have different corresponding types, but the names will be the same. ### Events | name | Type | description | | :- | :- | :- | | device\_id | STRING | Unique ID used to track a device while the user remains anonymous | | distinct\_id | STRING | Unique ID for the user who triggered the event | | event\_name | STRING | Name of the event | | insert\_id | STRING | Unique ID used to deduplicate events that are sent multiple times | | properties | JSON | JSON object containing all the properties associated with the event | | time | TIMESTAMP | Timestamp marking when the event occurred | | user\_id | STRING | Unique ID used to track a user across different devices when identified | ### User Profiles | name | Type | description | | :- | :- | :- | | distinct\_id | STRING | Unique ID for the user | | properties | JSON | JSON object containing all user properties | ### Identity Mappings | name | Type | description | | :- | :- | :- | | distinct\_id | STRING | Unique ID for the user who triggered the event | | resolved\_distinct\_id | STRING | Unique ID of the user after merging | ## Events Data Sync Events Data Sync is enabled by default when creating JSON pipelines to ensure data consistency. This feature automatically detects data changes as soon as they are ingested and appends new files for new/late data to your storage/warehouses, helping keep the data fresh and minimizing missing data points. Event data can fall out of sync between Mixpanel's datastore and the export destination due to several causes: * Late data can arrive multiple days later due to a mobile client being offline. * The import API can add data to previous days. * Delete requests related to GDPR can cause deletion of events and event properties. **Important limitations**: Data sync does not guarantee syncing GDPR Data Deletions. It is recommended to implement a strategy to remove all records of GDPR Deleted Users in your data warehouse. ## Backfill Historical Events You can schedule an initial backfill when creating events pipeline to ensure that historical data is also exported to the destination. Use the `from_date` parameter to specify the date from which you want to export historical data. Note that the `from_date` must be no more than 6 months in the past. The completion time for a backfill depends on the number of days and the volume of data in the project. Larger backfills can take several weeks. ## Export Frequency Mixpanel supports hourly and daily exports, with daily being the default. ## People Data Support User profiles are exported to a single table or directory named `mp_people_data`. Since user profiles are mutable, the data in the table is replaced with the latest user profiles each time an export occurs, based on the chosen schedule (daily or hourly). ## User Identity Resolution Exports from projects with [ID merge enabled](/docs/tracking-methods/id-management/migrating-to-simplified-id-merge-system) will need to use the identity mapping table to replicate the user counts seen in UI reporting. Mixpanel resolves multiple identifiers for an individual into one identifier for reporting unique user counts. [Learn how Mixpanel resolves IDs](/docs/tracking-methods/id-management/identifying-users-simplified#mechanism). Pipelines export event data as they appear when Mixpanel ingests them. Data sent before an alias event carries the original user identifier, not the resolved one. Use the identity mappings table to accurately count unique users. This will allow you to recreate the identity cluster that Mixpanel creates. Note: Use the `resolved_distinct_id` from the identity mappings table instead of the non-resolved `distinct_id` when available. If there is no resolved `distinct_id`, use the `distinct_id` from the existing people or events table. Examples of querying the identity mapping table are available for [BigQuery](/docs/data-pipelines/integrations/bigquery#query-identity-mappings) and [Snowflake](/docs/data-pipelines/integrations/snowflake#query-identity-mappings). ## Incremental Pipelines As of 10 September 2025, all JSON pipelines in all regions (US/EU/IN) have been migrated to our improved incremental pipeline export system. Schematized pipelines will be migrated to this same export system soon. **What is affected?** * **Events pipelines with sync enabled only**: This improvement only affects event pipelines that have sync enabled. People and identity mapping pipelines remain unchanged. **Benefits** * **Elimination of data sync delays**: No more waiting for daily sync processes to detect and fix data discrepancies. * **Complete data export**: All events are exported without the risk of missing late-arriving data. Late-arriving events are automatically exported regardless of how late they arrive, eliminating the previous 10-day sync window restriction. **Changes you may notice** * **Event count display**: The event count shown per task in the UI now represents the total events processed per batch rather than events exported per day or per hour. Since each batch can span multiple days, this number may appear different from before. * **Backfill process**: When a new pipeline is created, it will complete the full historical backfill first before starting regular processing. For example, if you create a pipeline on January 15th at 11 AM with a backfill from January 1st, the system will first export all events that arrived in Mixpanel before around January 15th 11 AM as the initial backfill, then begin processing any new events that arrive after around January 15th 11 AM, regardless of which date those events are for. Existing pipelines will have the last 10 days backfilled as part of the migration and then the new incremental behavior will start. * **Storage location file structure changes**: Previous behavior of sync would replace files for a day when the day was re-synced. No sync means Mixpanel will no longer coalesce files for days when sync runs so files are no longer updated/removed. Incremental pipelines will instead add a new file with events seen in each day for each run of the pipeline meaning more small files are expected. * **Pipelines logs reset**: Once your pipeline is migrated, the logging available in the UI will be reset so past jobs log lines will no longer be available. Only the new incremental jobs will be visible going forward. * **Predicable deletion behavior**: In rare cases, the sync functionality meant that Mixpanel could re-sync days for which data was deleted, allowing the pipeline to also remove that data from your data warehouse. Sync keeping your warehouse in line with deletions was not guaranteed behavior however. The removal of sync means this unreliable behavior has been removed and as such, warehouse data owners are responsible for the deletion of all data on the warehouse side. * **More pre-shuffled distinct IDs in data**: The faster export and removal of late syncs for data can lead to more events exported with their original `distinct_id` as opposed to the resolved identifier seen in Mixpanel after we’ve shuffled the data. These discrepancies are expected in pipelines on both the old and new behavior, and can be resolved using the [ID mappings table exported from identity pipelines](/docs/data-pipelines/json-pipelines#user-identity-resolution). ## FAQs ### Why is sync not available for People and Identity pipelines? The sync feature is designed for events to keep the exported data up-to-date with changes that occur in Mixpanel (e.g. late-arriving data). For People and Identity pipelines, the data is re-exported in full in each export for profiles and identity mappings, which means that it's always up-to-date and does not require the sync feature. For that reason, you would not be able to enable sync for People and Identity pipelines — there is simply no use for it. ### How are GDPR deletions handled? GDPR deletions do not automatically cascade deletions to data warehouses via pipelines. When a user is deleted from Mixpanel via the GDPR deletion API, this deletion is reflected in Mixpanel’s own storage, but the deletion does not propagate to data that has already been exported to data warehouses via pipelines. To keep your synced warehouse data GDPR compliant, you will need to implement a process to delete the corresponding user and event data from your warehouse when a GDPR deletion occurs in Mixpanel. ### Can I configure my pipeline to export data into a subfolder or prefix within my bucket? No, Mixpanel’s JSON pipeline configuration does not currently support custom subfolders or prefixes. Data is exported into predefined structured paths that are automatically generated by Mixpanel. For example, event data is exported to the following path: `//mp_master_event////` This structure is created by Mixpanel and cannot be customized at the moment. ### Can I export only a subset of events or properties with JSON pipelines? No, all events and properties are exported as they are ingested into Mixpanel. It’s not possible to filter for events and properties to include or exclude in your data pipeline exports. However, it is possible to whitelist events to export and filter by properties if you’re using our older pipelines created via API (Raw and Schematized). ### Why isn’t my hourly pipeline running exactly every hour? With incremental pipelines, the next export iteration begins after the previous one completes rather than on a fixed schedule. This ensures we export all data completely without the risk of cutting off late-arriving events. While your pipeline is configured for “hourly” export, the actual run time will vary based on how long each iteration takes to process. ## Change Log > [accordion] 2025-09-29: Sync Enabled by Default for JSON Pipelines > > Removed sync toggle from JSON pipeline creation UI. All new JSON pipelines now have incremental sync enabled by default to ensure data consistency without requiring manual configuration. > > **Impact**: New JSON pipelines automatically include sync functionality - no longer optional through UI toggle. > [accordion] 2025-08-14: Incremental Export Deployed for US Pipelines > > We have deployed the Incremental Export Improvement for newly created pipelines with US data residency. > > The rollout of these updates to existing pipelines in US residency is scheduled for the near future. Your pipeline will automatically transition to the new system when ready. Your data quality and completeness remain the same; only the processing method has improved. > [accordion] 2025-06-26: Introducing Incremental Export for Event Pipelines > > We're rolling out an improved pipeline system to improve the efficiency and reliability of your data exports. We're deploying these improvements for newly created pipelines in our EU and IN data residency. New pipelines in projects with US residency and migrating existing pipelines in all regions will follow after. Your pipeline will automatically transition to the new system when ready. Your data quality and completeness remain the same - only the processing method has improved. # Data Pipelines Source: https://docs.mixpanel.com/docs/data-pipelines/old-pipelines Deprecated API-managed Data Pipelines that continuously export Mixpanel events to a cloud storage bucket or data warehouse ## Overview > [!NOTE] > > Customers on an Enterprise or Growth plan can access Data Pipeline as an add-on package. See our [pricing page](https://mixpanel.com/pricing/) for more details. > [!WARNING] > > This version of managing pipelines via API is Deprecated going forward. For the customers who earlier used these APIs to create and manage can continue using it. Otherwise, go to the Integrations page in Mixpanel to create and manage pipelines via UI and go to [docs](/docs/data-pipelines) for more info. Data Pipelines continuously exports the events in your Mixpanel project to a cloud storage bucket or data warehouse of your choice. It's useful if you want to analyze Mixpanel events using SQL in your own environment. Using Data Pipelines requires 2 steps: 1. Configuring your destination to allow Mixpanel to write to it. 2. Telling Mixpanel to start exporting your data to that destination using the Pipelines API. We offer a 30-day free trial of the Data Pipelines add-on. See the [FAQ](#free-trial) for how to enable it. ## Step 1: Configuring your destination Configuration depends on the type of Pipeline you want to set up. ### Raw Raw Pipelines export events as JSON to a cloud storage bucket. This is the simplest approach. See our configuration guides for each raw destination: * [Amazon Web Services](/docs/data-pipelines/old-pipelines/integrations/raw-aws-pipeline) * [Google Cloud Storage](/docs/data-pipelines/old-pipelines/integrations/raw-gcs-pipeline) * [Azure Blob Storage](/docs/data-pipelines/old-pipelines/integrations/raw-azure-pipeline) Upon successful creation of a pipeline, events will be exported to the following locations: * Hourly: `//////` * Daily: `//////full_day` An empty `complete` file will be written in the finished hour or day prefix to indicate that the export is complete. The absence of this file means there is an ongoing export for that hour or day. ### Schematized Schematized Pipelines export events into tables with schemas generated by Mixpanel, inferred from your event history. There are two types of schemas, which you can configure: * Monoschema: A single table for all events in which you have the event name as the column and one column per property. * Multischema: One table per event name with the properties of that event as columns. See our configuration guides for each schematized destination: * [BigQuery](/docs/data-pipelines/old-pipelines/integrations/schematized-bigquery-pipeline) * [Snowflake](/docs/data-pipelines/old-pipelines/integrations/schematized-snowflake-pipeline) * [Amazon Web Services](/docs/data-pipelines/old-pipelines/integrations/schematized-aws-pipeline) * [Google Cloud Storage](/docs/data-pipelines/old-pipelines/integrations/schematized-gcs-pipeline) * [Azure Blob Storage](/docs/data-pipelines/old-pipelines/integrations/schematized-azure-pipeline) The [Schematized Pipeline reference](/docs/data-pipelines/old-pipelines/schematized-export-pipeline) goes into the details of schematization and the output format. ## Step 2: Creating the Pipeline Once you’ve configured your destination, you need to tell Mixpanel to start exporting to that destination. You can do this with our [Create Pipeline API](/reference/create-warehouse-pipeline). You can create the Pipeline directly from our developer docs UI. > [!NOTE] > > Note that the Service Account must have an Admin or Owner role in order to authenticate the request. Limits: * For event export pipelines (`data_source: events`) in each Mixpanel project, we support at most two recurring pipelines (`to_date` is empty) and one non-recurring pipeline (has a `to_date` that is the ending date of the export window). * Note that `from_date` must also be no more than 6 months from the date the pipeline is created. ## FAQ **1. Why are some events or properties not exported to the destination?** This normally happens when you have thousands of unique event names or property names, which is usually an implementation mistake (eg: including a UUID in the event or property name). This causes the export process to exceed table or column limits in the destination. Mixpanel itself imposes a limit of 10K unique properties in your schema after transformation rules have been applied. Any projects exceeding this limit will have their pipelines paused until the issue can be remediated. If you notice an error in your pipelines around exceeding this limitation, please try to identify a regex selector that selects some properties you would like to filter out of your schema and reach out to our support team for assistance. **2. Why does the number of events in Mixpanel not match the number of exported events to my destination?** This can happen for a few reasons: * [Data Sync](/docs/data-pipelines/old-pipelines/schematized-export-pipeline#data-sync) is not enabled or not supported for your pipeline. * Data Delay: It can take up to 1 day for late arriving data to be synced from Mixpanel to your destination. * Hidden Events: Mixpanel exports all events to your destination, even ones that are hidden in the UI via Lexicon. We recommend checking whether the count in your destination is mostly due to events that have been hidden in the Mixpanel UI. **3. What timezone is used for my event exports?** The timestamp for exported events from your pipeline will be in the UTC timezone. For projects created before 1 Jan 2023, the raw event timestamps are transformed from Project Timezone to UTC. For projects after 1 Jan 2023, raw event data is stored in UTC. Learn more about [managing timezones here](/docs/orgs-and-projects/managing-projects#manage-timezones-for-projects). **4. How can I count events exported by Mixpanel in the warehouse?** Counting events can be slightly different for each warehouse, since we use different partitioning methods. Here are examples for [BigQuery](/docs/data-pipelines/old-pipelines/integrations/schematized-bigquery-pipeline#getting-the-number-of-events-in-each-day) and [Snowflake](/docs/data-pipelines/old-pipelines/integrations/schematized-snowflake-pipeline#getting-the-number-of-events-in-each-day). ## Free Trial Mixpanel offers a 30-day trial version of the Data Pipelines. The trial allows for one data export pipeline per project to be created. Simply pass `trial=true` to our API to create a trial pipeline. Trial limitations: * Export scheduling is daily only. * Data sync is unavailable. * You can only create one pipeline per project. * Backfilled data will only include one day prior to the creation date. * Pipelines will, by default, include both event and user data (not available for raw pipelines). * The pipeline cannot filter by event name. * The “Create Pipeline” parameters will default to the values highlighted to list in the [parameters table](/reference/create-warehouse-pipeline#create-warehouse-pipeline). # Data Pipeline Integrations Source: https://docs.mixpanel.com/docs/data-pipelines/old-pipelines/integrations Directory of raw and schematized Data Pipeline integrations that export Mixpanel data to cloud storage and data warehouses > [!NOTE] > > This page highlights integrations that send Mixpanel data to data warehouses. Learn more about [integrations that import data from other destinations into Mixpanel](/docs/tracking-methods/integrations) and [integrations that export cohorts for audience targeting](/docs/cohort-sync/integrations). These integrations allow you to send your [raw data](/docs/data-pipelines#raw) and [schematized data](/docs/data-pipelines#schematized) to your cloud storage bucket or data warehouse. You may review our complete integrations directory [here](https://mixpanel.com/partners/integrations). If you don't see what you're looking for [reach out to us](https://mixpanel.com/get-support). ## Raw Pipelines > [card] [Raw AWS Pipeline](/docs/data-pipelines/old-pipelines/integrations/raw-aws-pipeline) > [card] [Raw Azure Pipeline](/docs/data-pipelines/old-pipelines/integrations/raw-azure-pipeline) > [card] [Raw GCS Pipeline](/docs/data-pipelines/old-pipelines/integrations/raw-gcs-pipeline) ## Schematized Pipelines > [card] [Schematized AWS Pipeline](/docs/data-pipelines/old-pipelines/integrations/schematized-aws-pipeline) > [card] [Schematized Azure Pipeline](/docs/data-pipelines/old-pipelines/integrations/schematized-azure-pipeline) > [card] [Schematized BigQuery Pipeline](/docs/data-pipelines/old-pipelines/integrations/schematized-bigquery-pipeline) > [card] [Schematized GCS Pipeline](/docs/data-pipelines/old-pipelines/integrations/schematized-gcs-pipeline) > [card] [Schematized Snowflake Pipeline](/docs/data-pipelines/old-pipelines/integrations/schematized-snowflake-pipeline) # Raw AWS Pipeline Source: https://docs.mixpanel.com/docs/data-pipelines/old-pipelines/integrations/raw-aws-pipeline Set up a raw export pipeline from Mixpanel to an AWS S3 bucket, including bucket permissions and pipeline creation > [!NOTE] > > Customers on an Enterprise or Growth plan can access Data Pipeline as an add-on package. See our [pricing page](https://mixpanel.com/pricing/) for more details. To set up a raw export pipeline to an S3 bucket from Mixpanel, you must configure S3 to receive the exported data, then [create a pipeline](/reference/create-warehouse-pipeline) to export the data. The following document summarizes the steps to edit S3 bucket permissions so that it accepts the Mixpanel export. Consult [AWS documentation](https://docs.aws.amazon.com/AmazonS3/latest/gsg/GetStartedWithS3.html) for any AWS specific tasks, such as creating an [S3 bucket](https://docs.aws.amazon.com/AmazonS3/latest/userguide/creating-bucket.html) and editing [permissions](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html). To prepare S3 for the incoming data you must: 1. Create an S3 bucket. 2. Give Mixpanel the required permissions to write to the bucket. ## S3 Bucket Permissions Mixpanel supports a wide range of configurations to secure and manage your data on S3. To access resources, the pipeline uses AWS cross-account roles. This section highlights the permissions you must give Mixpanel depending on the configuration of the target S3 bucket. ## Data Modification Policy All exports from Mixpanel to AWS require that you create a new data modification policy, or add the following permissions to an existing data modification policy. Replacing `` and `` with your bucket name and chosen sid before inserting this JSON: ```json JSON Example with Variables theme={"system"} { "Version": "VERSION", "Statement": [ { "Sid": "", "Effect": "Allow", "Action": [ "s3:PutObject", "s3:GetObject", "s3:ListBucket", "s3:DeleteObject" ], "Resource": [ "arn:aws:s3:::", "arn:aws:s3:::/*" ] } ] } ``` ## Server-Side Encryption Mixpanel always sends data to your S3 bucket on a TLS encrypted connection. To secure your data at rest on S3, you can enable [Server-Side Encryption (SSE)](https://docs.aws.amazon.com/AmazonS3/latest/dev/serv-side-encryption.html). There are two options when using SSE: Encryption with Amazon S3-Managed Keys (SSE-S3) and Encryption with AWS KMS-Managed Keys (SSE-KMS) ### Encryption with Amazon S3-Managed Keys (SSE-S3) This setting on your bucket encrypts data at rest using the AES-256 algorithm that uses keys managed by S3. If you are using this type of SSE, you only need to configure your pipeline by passing the `s3_encryption=aes` parameter when calling the Mixpanel Data Warehouse Export API. See [AWS S3 and Glue Parameters](/reference/create-warehouse-pipeline). ### Encryption with AWS KMS-Managed Keys (SSE-KMS) For S3 buckets, you can pick a default key named `aws/s3`. If you opt to use the default key you need to configure your pipeline by passing `s3_encryption=kms` and `s3_kms_key_id=` when calling the Mixpanel Data Warehouse Export API or you can choose to use your own custom keys for encrypting the contents of your bucket In either case you will need to allow Mixpanel to use the key to encrypt the data properly as it is written to your bucket. To achieve this, create an IAM policy that gives permission to Mixpanel to use the KMS key. Use the following JSON snippet and replace `` and `` with your custom key's (or aws managed default CMK's) ARN and chosen sid: ```json JSON Example with Variables theme={"system"} { "Version": "VALUE", "Statement": [ { "Sid": "", "Effect": "Allow", "Action": [ "kms:Decrypt", "kms:Encrypt", "kms:GenerateDataKey", "kms:ReEncryptTo", "kms:GenerateDataKeyWithoutPlaintext", "kms:DescribeKey", "kms:ReEncryptFrom" ], "Resource": "" } ] } ``` You must configure your pipeline by passing `s3_encryption=kms` and `s3_kms_key_id=` when calling the Mixpanel Data Warehouse Export API. ## S3 Access Role After creating the policies in the sections above, you must create a cross account IAM Role to assign the policies to the role. * Go to the \_AWS IAM \_service on the console. * Click **Roles** in the sidebar. * Click **Create Role**. * Select \*\*Other AWS Accounts \*\*on the trust policy page and enter "485438090326" for the account ID. * In the *Permissions* page, find and select the policies you created above. * In the \_Review \_page, enter a name and description for the role and click **Save**. Next, limit the trust relationship to the Mixpanel export user to ensure only Mixpanel has the ability to assume this specific role. * Navigate to the *AWS IAM* service in the console. * Click **Roles** in the sidebar. * Find and click the role you just created. * Navigate to the *Trust Relationships* tab. * Click **Edit trust relationship**. * Replace the contents with the following JSON: ```json theme={"system"} { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::485438090326:user/mixpanel-export" }, "Action": "sts:AssumeRole", "Condition": {} } ] } ``` ## Using AWS External ID Amazon introduced the use of external id for cross-account access because of [the confused deputy problem](https://docs.aws.amazon.com/IAM/latest/UserGuide/confused-deputy.html). As Mixpanel uses cross account access to export data, you can make use of this feature to make the data transfer more secure. Mixpanel uses your project token as external ID when talking to AWS. In order to enable this, you simply need to edit the trust relationship you created as part of the previous step and add a condition to check the passed external id is in fact your Mixpanel project token. So, the final JSON for your trust relationship would be: ```json theme={"system"} { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::485438090326:user/mixpanel-export" }, "Action": "sts:AssumeRole", "Condition": { "StringEquals": { "sts:ExternalId": "" } } } ] } ``` ## Use The Data Pipelines API After permissions have been granted, use the [Data Pipelines API](/reference/create-warehouse-pipeline) to create the pipeline. Here is an example request: ```sh cURL Example with Values theme={"system"} curl https://data.mixpanel.com/api/2.0/nessie/pipeline/create \ -u API_SECRET: \ -d type="s3-raw" \ -d from_date="2019-08-10" \ -d s3_bucket="example-s3-export" \ -d s3_region="us-west-2" \ -d s3_prefix="test" \ -d s3_role="arn:aws:iam:::role/example-s3-role" \ -d s3_encryption="aes" \ ``` # Raw Azure Pipeline Source: https://docs.mixpanel.com/docs/data-pipelines/old-pipelines/integrations/raw-azure-pipeline Set up a raw export pipeline from Mixpanel to Azure Blob Storage using service principal credentials > [!NOTE] > > Customers on an Enterprise or Growth plan can access Data Pipeline as an add-on package. See our [pricing page](https://mixpanel.com/pricing/) for more details. To set up a raw export pipeline to Azure Blob Storage from Mixpanel, you must first give Mixpanel permission to write to Azure. Next you can [create a pipeline](/reference/create-warehouse-pipeline) to export the data. Mixpanel then uploads the data to Azure Blob Storage on a recurring basis. The following document summarizes the steps to configure Azure permissions so that it accepts the Mixpanel export, and provides an example request to create the pipeline. ## Edit Mixpanel Permission Since the Azure authentication mechanisms do not allow for cross-account access, you must provide Azure credentials to use with their Blob storage container. To achieve this, Mixpanel uses Service Principals created in your Azure Active Directory deployment. To create a Service Principal, use the Azure command line tool and run the following command (with redacted output): ```shell theme={"system"} $ az ad sp create-for-rbac --sdk-auth { "clientId": "redacted", "clientSecret": "redacted", "subscriptionId": "redacted", "tenantId": "redacted", "activeDirectoryEndpointUrl": "https://login.microsoftonline.com", "resourceManagerEndpointUrl": "https://management.azure.com/", "activeDirectoryGraphResourceId": "https://graph.windows.net/", "sqlManagementEndpointUrl": "https://management.core.windows.net:8443/", "galleryEndpointUrl": "https://gallery.azure.com/", "managementEndpointUrl": "https://management.core.windows.net/" } ``` If the above step is successful, go to the Azure. Navigate to a blob storage container of your choice and assign the “Storage Blob Data Contributor” to the Service Principal from above. Mixpanel needs the clientId, clientSecret, and tenantId to access the blob container as the Service Principal. You must provide the blob account name, container name, and (optional) path prefix you want to choose for the export. You can share the Service Principal’s credentials over the TLS encrypted API at the time that you create your Mixpanel to Azure pipeline. ## Use the Data Pipelines API After permissions have been granted, use the [Data Pipelines API](/reference/create-warehouse-pipeline) to create the pipeline. Here is an example request: ```sh cURL theme={"system"} curl https://data.mixpanel.com/api/2.0/nessie/pipeline/create \ -u API-SECRET: \ --data type="azure-raw" \ --data from_date="2021-02-02" \ --data storage_account="test-storage-account" \ --data container_name="test-container-name" \ --data client_id="test-client-id" \ --data client_secret="test-secret" \ --data tenant_id="test-tenant-id" ``` # Raw GCS Pipeline Source: https://docs.mixpanel.com/docs/data-pipelines/old-pipelines/integrations/raw-gcs-pipeline Set up a raw export pipeline from Mixpanel to a Google Cloud Storage bucket, with permissions and an example API request > [!NOTE] > > Customers on an Enterprise or Growth plan can access Data Pipeline as an add-on package. See our [pricing page](https://mixpanel.com/pricing/) for more details. To set up a raw export pipeline to Google Cloud Storage (GCS) from Mixpanel, you must configure GCS to receive the exported data, then [create a pipeline](/reference/create-warehouse-pipeline) to export the data. The following document summarizes the steps to edit GCS permissions so that it accepts the Mixpanel export, and provides an example request to create the pipeline. ## Configure GCS to Accept Mixpanel Data Create a destination bucket, or use an existing one. `export-upload@mixpanel-prod-1.iam.gserviceaccount.com` needs to be given a "Storage Object Admin" role on the bucket you are creating or intending to reuse for this purpose. ## Use the Data Pipelines API After permissions have been granted, use the [Data Pipelines API](/reference/create-warehouse-pipeline) to create the pipeline. Here is an example request: ```sh cURL theme={"system"} curl https://data.mixpanel.com/api/2.0/nessie/pipeline/create \ -u API_SECRET: \ -d type="gcs-raw" \ -d from_date="2019-08-10" \ -d gcs_bucket="example-gcs-export" \ -d gcs_prefix="dwe" \ -d gcs_region="us-east-2" ``` # Schematized AWS Pipeline Source: https://docs.mixpanel.com/docs/data-pipelines/old-pipelines/integrations/schematized-aws-pipeline Export schematized Mixpanel data to an S3 bucket and query it with Redshift Spectrum and AWS Glue > [!NOTE] > > Customers on an Enterprise or Growth plan can access Data Pipeline as an add-on package. See our [pricing page](https://mixpanel.com/pricing/) for more details. Mixpanel's [Schematized Export Pipeline](/docs/data-pipelines/old-pipelines/schematized-export-pipeline) lets you export your Mixpanel data directly into an S3 bucket, allowing the use of Glue to query it. To set up the Mixpanel AWS pipeline, you must configure AWS to receive the exported data, then [create a pipeline](/reference/create-warehouse-pipeline) to export the data. ## Design ![image](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/230698348-abb2656e-fe2a-4d9c-ad61-8f80793e9c07.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=813fd8eb97158cd65b0141fa58fc9e22) Mixpanel applies [transformation rules](/docs/data-pipelines/old-pipelines/schematized-export-pipeline#transformation-rules) to make the data compatible with data warehouses and then transfers the transformed data to your S3 bucket. You can then choose to use a Glue crawler to create the schema out of the transformed data or let Mixpanel to directly create the schema in your glue database. Having the data and the glue schema in place, you can use SQL with multiple AWS products, including [Amazon Athena](https://aws.amazon.com/athena/) and [Redshift Spectrum](https://docs.aws.amazon.com/redshift/latest/dg/c-getting-started-using-spectrum.html), to query the imported data. We recommend the use of [Spectrum](https://docs.aws.amazon.com/redshift/latest/dg/c-getting-started-using-spectrum.html) and [Glue](https://aws.amazon.com/glue/) to query the imported data. > **Important:** Please do not modify the schema of glue tables generated by Mixpanel. Altering the table schema can cause the pipeline to fail to export due to schema mismatches. ## Exporting Mixpanel Data to Redshift Spectrum The following summarizes the steps to export Mixpanel data to an S3 bucket. Consult [AWS documentation](https://docs.aws.amazon.com/AmazonS3/latest/gsg/GetStartedWithS3.html) for AWS specific tasks, such as creating an [S3 bucket](http://google.com) and [permissions](https://docs.aws.amazon.com/AmazonS3/latest/dev/using-with-s3-actions.html). To prepare S3 for the incoming data: 1. Create a S3 bucket. 2. Give Mixpanel the required permissions to write to the bucket. 3. Configure Glue as shown below. ### S3 Bucket Permissions Mixpanel supports a wide range of configurations to secure and manage your data on S3. To access resources, the pipeline uses AWS cross-account roles. This section highlights the permissions you must give Mixpanel depending on the configuration of the target S3 bucket. ### Data Modification Policy All exports from Mixpanel to AWS require that you create a new data modification policy, or add the following permissions to an existing data modification policy. Replacing `` with your bucket name before inserting this JSON: ```json theme={"system"} { "Version": "2012-10-17", "Statement": [ { "Sid": "SomeSidYouChoose", "Effect": "Allow", "Action": [ "s3:PutObject", "s3:GetObject", "s3:ListBucket", "s3:DeleteObject" ], "Resource": [ "arn:aws:s3:::", "arn:aws:s3:::/*" ] } ] } ``` #### Server-Side Encryption Mixpanel always sends data to your S3 bucket on a TLS encrypted connection. To secure your data at rest on S3, you can enable [Server-Side Encryption (SSE)](https://docs.aws.amazon.com/AmazonS3/latest/dev/serv-side-encryption.html). There are two options when using SSE: Encryption with Amazon S3-Managed Keys (SSE-S3) and Encryption with AWS KMS-Managed Keys (SSE-KMS) ##### Encryption with Amazon S3-Managed Keys (SSE-S3) This setting on your bucket encrypts data at rest using the AES-256 algorithm that uses keys managed by S3. If you are using this type of SSE, you only need to configure your pipeline by passing the `s3_encryption=aes` parameter when calling the Mixpanel Data Pipelines API. See [AWS S3 and Glue Parameters](/reference/create-warehouse-pipeline). ##### Encryption with AWS KMS-Managed Keys (SSE-KMS) You have a choice of keys if you use the Key Management Service (KMS). For S3 buckets, you can pick a default key named `aws/s3`. If you opt to use the default key you don’t need any further configuration on AWS, and only need to configure your pipeline by passing `s3_encryption=kms` when calling the Mixpanel Data Pipelines API. If you choose to use your own custom keys for encrypting the contents of your bucket, you will need to allow Mixpanel to use the key to encrypt the data properly as it is written to your bucket. To achieve this, create an IAM policy that gives permission to Mixpanel to use the KMS key. Use the following JSON snippet and replace `` with your custom key’s ARN: ```json theme={"system"} { "Version": "2012-10-17", "Statement": [ { "Sid": "SomeSidYouChooseAgain", "Effect": "Allow", "Action": [ "kms:Decrypt", "kms:Encrypt", "kms:GenerateDataKey", "kms:ReEncryptTo", "kms:GenerateDataKeyWithoutPlaintext", "kms:DescribeKey", "kms:ReEncryptFrom" ], "Resource": "" } ] } ``` You must configure your pipeline by passing `s3_encryption=kms` and `s3_kms_key_id=` when calling the Mixpanel Data Pipelines API. #### S3 Access Role After creating the policies in the sections above, you must create a cross account IAM Role to assign the policies to the role. * Go to the \*AWS IAM \*service on the console. * Click **Roles** in the sidebar. * Click **Create Role**. * Select \*\*Other AWS Accounts \*\*on the trust policy page and enter "485438090326" for the account ID. * In the *Permissions* page, find and select the policies you created above. * In the \*Review \*page, enter a name and description for the role and click **Create Role**. Next, limit the trust relationship to the Mixpanel export user to ensure only Mixpanel has the ability to assume this specific role. * Navigate to the *AWS IAM* service in the console. * Click **Roles** in the sidebar. * Find and click the role you just created. * Navigate to the *Trust Relationships* tab. * Click **Edit trust relationship**. * Replace the contents with the following JSON: ```json theme={"system"} { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::485438090326:user/mixpanel-export" }, "Action": "sts:AssumeRole", "Condition": {} } ] } ``` #### Using AWS External ID Amazon introduced the use of external id for cross-account access because of [the confused deputy problem](https://docs.aws.amazon.com/IAM/latest/UserGuide/confused-deputy.html). As Mixpanel uses cross account access to export data, you can make use of this feature to make the data transfer more secure. Mixpanel uses your project token as external ID when talking to AWS. In order to enable this, you simply need to edit the trust relationship you created as part of the previous step and add a condition to check the passed external id is in fact your Mixpanel project token. So, the final JSON for your trust relationship would be: ```json theme={"system"} { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::485438090326:user/mixpanel-export" }, "Action": "sts:AssumeRole", "Condition": { "StringEquals": { "sts:ExternalId": "" } } } ] } ``` #### Glue Configurations [Glue](https://aws.amazon.com/glue/) offers a data catalog service that will facilitate access to the S3 data from other services on your AWS account. This section describes how to connect Glue to the exported data in S3. You can select either of the following options: * Configure Glue for Mixpanel direct export (recommended) * Configure Glue to use crawlers. Note: If you use Athena with Glue and want to enable partitioning, you must choose **parquet** as the data\_format for your pipeline ##### Configuring Glue for Mixpanel Direct Export Mixpanel can write and update a schema in your Glue instance as soon as new data is available. To get more information about the table schemas, please see [Schema](/docs/data-pipelines/old-pipelines/schematized-export-pipeline#schema). To set this up: 1. Create a Glue database. * In the AWS console, go to "Glue". (Make sure you are in the same region as your S3 exported data). * Click **Databases** in the sidebar. * Click **Add Database**. * Enter a database name and click **Create**. ![image](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/230698403-de71ee8f-03c2-4528-abd7-94be5a5d1e30.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=5841d29304c4131c55b981736cb67340) 2. Create an IAM policy. * Go to the "AWS IAM" service on the console. * Click **Policies** in the sidebar. * Click **Create Policy** on the top of the screen. * In the new screen, click the \*\*JSON \*\* tab. * Paste the following policy: ```json theme={"system"} { "Version": "2012-10-17", "Statement": [ { "Sid": "MixpanelGlueAccessStatement", "Effect": "Allow", "Action": [ "glue:GetDatabase", "glue:CreateTable", "glue:GetTables", "glue:GetTableVersions", "glue:UpdateTable", "glue:DeleteTable", "glue:GetTable" ], "Resource": "*" } ] } ``` * Click **Review Policy** and give the policy a name in the next screen. * Click \*\*Create Policy \*\*to save. Note: AWS does not support granular resources when granting Glue access. So you will have to use \* (asterisk) in the Resources field until AWS can support more granular resources. 3. Create an IAM Role and assign the Policy you created in Step 2. * Go to the "AWS IAM" service on the console. * Click **Roles** in the sidebar. * Click **Create Role**. * Select **Other AWS Accounts** on the trust policy page and enter "485438090326" for the account ID. * In the "Permissions" page, find and select the policy you created in Step 2. * In the Review page, enter a name and description for the role and click **Create Role**. 4. Limit the trust relationship to the Mixpanel export user. * Navigate to the "AWS IAM" service in the console. * Click **Roles** in the sidebar. * Find and click the role you created in Step 3. * Navigate to the "Trust Relationships" tab. * Click **Edit trust relationship**. * Replace the contents with the following JSON: ```json theme={"system"} { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "AWS": "arn:aws:iam::485438090326:user/mixpanel-export" }, "Action": "sts:AssumeRole", "Condition": {} } ] } ``` * Save the contents. ![image](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/230698416-039e4357-f8f3-4c9a-bba9-c6b0a16311b6.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=a8d3b9171616c504912f2e935e97abca) > [!WARNING] > > If your Glue Data Catalog is governed by [AWS Lake Formation](https://docs.aws.amazon.com/lake-formation/latest/dg/what-is-lake-formation.html), the IAM permissions above are not sufficient on their own. Lake Formation enforces its own permission layer, so you'll also need to grant the Mixpanel Glue role permissions inside Lake Formation: `CREATE_TABLE` on the Glue **database**, plus a **Data location** permission on your registered S3 export path. Grant these at the database and data-location level, not only on the table. ##### Configuring Table Partitions in Glue Mixpanel partitions the Glue table by default if it has the proper AWS permissions. The partition key type and name are `string` and `mp_date` respectively and the partition values are dates in the project timezone e.g. `2021-02-03`. To enable partitioning in Glue, the Glue Data Modification Policy must include the following actions: ```text theme={"system"} "glue:GetPartition", "glue:CreatePartition", "glue:DeletePartition", "glue:UpdatePartition", "glue:BatchCreatePartition", "glue:GetPartitions", "glue:BatchDeletePartition", "glue:BatchGetPartition" ``` ##### Configuring Glue to Use Crawlers You can configure Glue to crawl the S3 bucket with Mixpanel data. Glue crawlers are convenient because they automatically extract the schema from the data files and update the Glue schema. This convenience, however, can also pose issues, such as: * The run time of the crawlers could be out of sync with Mixpanel’s export schedule. As a result, it can prevent you from using your data as soon as new properties are available. * The time column is interpreted as an integer. As a result, it is more difficult to perform timestamp operations. * When using the one table per event schema option, Glue crawlers can merge data from multiple events in one table based on similarity. To avoid these issues, Mixpanel can write and update a schema in your Glue instance as soon as new data is available. Follow [these instructions](/docs/data-pipelines/old-pipelines/integrations/schematized-aws-pipeline#configuring-glue-for-mixpanel-direct-export) to enable Mixpanel to write your data catalog to AWS Glue. To use crawlers, you must point the crawler to the top level folder with your Mixpanel project ID. For more details to configure Glue to use crawlers, see [Cataloging Tables with a Crawler](https://docs.aws.amazon.com/glue/latest/dg/add-crawler.html). #### Setting up Redshift When the data catalog and table definitions are available in Glue through either of the aforementioned means, you can connect your Redshift cluster to the catalog and query it from Redshift. [AWS documentation](https://docs.aws.amazon.com/redshift/latest/dg/c-using-spectrum.html) walks through the process in detail. The following is an overview of the process. To properly configure Redshift: 1. Create an IAM role with read access to Glue and the S3 bucket containing your Mixpanel data. 2. Assign that role to your Redshift cluster. 3. After you insert your role and the database name in the following SQL query, run it as cluster admin: ```sql theme={"system"} CREATE EXTERNAL SCHEMA mixpanel FROM DATA CATALOG DATABASE '' -- defined when you configured Glue IAM_ROLE '' -- this is the ARN for the role with access to Glue+S3 CREATE EXTERNAL DATABASE IF NOT EXISTS; ``` You only need to connect Redshift to Glue once. As the Mixpanel pipeline exports more data to your bucket and Glue catalog, you will automatically have access to all the new data and schema changes. You can also join data stored in Redshift with Mixpanel data available in S3 through the external schema. ## Queries You can query data with a single table schema or with a multiple table schema in Redshift Spectrum. To get more information about the table schemas, please see [Schema](/docs/data-pipelines/old-pipelines/schematized-export-pipeline#schema). To query a single table schema, use this snippet. ```sql theme={"system"} SELECT count(*) FROM mixpanel.mp_master_event WHERE mp_event_name = “” ``` To query a multiple table schema, use this snippet. ```sql theme={"system"} SELECT count(*) FROM mixpanel.mp_master_event WHERE mp_event_name = “” ``` `CLEANED_EVENT_NAME` is the transformed event name based on [transformation rules](/docs/data-pipelines/old-pipelines/schematized-export-pipeline#transformation-rules). #### Nested and Repeated Fields [Redshift Spectrum](https://docs.aws.amazon.com/redshift/latest/dg/c-using-spectrum.html) does not support nested and repeated fields. Mixpanel exports array and object properties as a string. You can use built in functions to convert the string to JSON at query time. # Schematized Azure Pipeline Source: https://docs.mixpanel.com/docs/data-pipelines/old-pipelines/integrations/schematized-azure-pipeline Export schematized Mixpanel events and people data to Azure Blob Storage for querying with SQL > [!NOTE] > > Customers on an Enterprise or Growth plan can access Data Pipeline as an add-on package. See our [pricing page](https://mixpanel.com/pricing/) for more details. Mixpanel’s Azure Blob Export is one type of [Schematized Export Pipeline](/docs/data-pipelines/old-pipelines/schematized-export-pipeline) that exports Mixpanel events and people data and imports them into an Azure Blob storage instance. Azure Export enables the use of SQL to query your event data, either for expressing new types of queries or for joining against other data already present in your data environment. ## Integration Set Up In order to export data to Azure Blob Storage, you must first give Mixpanel permission to write to Azure. Next you can [create a pipeline](/reference/create-warehouse-pipeline) to export the data. Mixpanel then uploads the data to Azure Blob Storage on a recurring basis. The data is a slightly transformed version of the raw data stored in Mixpanel. Please see [transformation rules](/docs/data-pipelines/old-pipelines/schematized-export-pipeline#transformation-rules) to understand how the data is transformed. ## Edit Mixpanel Permission Since the Azure authentication mechanisms do not allow for cross-account access, you must provide Azure credentials to use with their Blob storage container. To achieve this, Mixpanel uses Service Principals created in your Azure Active Directory deployment. To create a Service Principal, use the Azure command line tool and run the following command (with redacted output): ```shell theme={"system"} $ az ad sp create-for-rbac --sdk-auth { "clientId": "redacted", "clientSecret": "redacted", "subscriptionId": "redacted", "tenantId": "redacted", "activeDirectoryEndpointUrl": "https://login.microsoftonline.com", "resourceManagerEndpointUrl": "https://management.azure.com/", "activeDirectoryGraphResourceId": "https://graph.windows.net/", "sqlManagementEndpointUrl": "https://management.core.windows.net:8443/", "galleryEndpointUrl": "https://gallery.azure.com/", "managementEndpointUrl": "https://management.core.windows.net/" } ``` If the above step is successful, go to the Azure. Navigate to a blob storage container of your choice and assign the “Storage Blob Data Contributor” to the Service Principal from above. Mixpanel needs the `clientId`, `clientSecret`, and `tenantId` to access the blob container as the Service Principal. You must provide the blob account name, container name, and (optional) path prefix you want to choose for the export. You can share the Service Principal’s credentials over the TLS encrypted API at the time that you create your Mixpanel to Azure pipeline. # Schematized BigQuery Pipeline Source: https://docs.mixpanel.com/docs/data-pipelines/old-pipelines/integrations/schematized-bigquery-pipeline Export schematized Mixpanel data to a Google BigQuery dataset, including partitioning and identity mapping views > [!NOTE] > > Customers on an Enterprise or Growth plan can access Data Pipeline as an add-on package. See our [pricing page](https://mixpanel.com/pricing/) for more details. This guide describes how Mixpanel exports your data to a [Google BigQuery](https://cloud.google.com/bigquery/) dataset. ## Design > [!WARNING] > > Mixpanel exports data into customer-managed BigQuery. Mixpanel-hosted BigQuery is no longer supported for new pipelines. ![image](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/230698685-c02cb9a1-d66f-42a7-8063-8e78b79e7b1f.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=e3501a0813a4f083a22454f4c480cca8) As part of the export pipeline, a new dataset `mixpanel_nessie_day_partitioned_` will be created if the customer chose to export into Mixpanel managed BigQuery or a dataset should be created with appropriate permissions on customer-managed BigQuery and provide us with a name. We also apply [transformation rules](/docs/data-pipelines/old-pipelines/schematized-export-pipeline#transformation-rules) to make the data compatible with data warehouses. For user profile and identity mappings tables, we create a new table with a random suffix every time and then will update the `mp_people` and `mp_identity_mappings` views accordingly to use the latest table. You should always use the views and should refrain from using the actual tables as we don't delete the old tables immediately and you may be using an old table. > **Important:** Please do not modify the schema of bigquery tables generated by Mixpanel. Altering the table schema can cause the pipeline to fail to export due to schema mismatches. ## Partitioning The data in the tables is partitioned based on [`_PARTITIONTIME` pseudo column](https://cloud.google.com/bigquery/docs/querying-partitioned-tables#ingestion-time_partitioned_table_pseudo_columns) and in project timezone. Note: TIMEPARTITIONING shouldn't be updated on the table. It will fail your export jobs. Create a new table/view from this table for custom partitioning. ## Queries You can query data with a single table schema or with a multiple table schema in BigQuery. To get more information about the table schemas, please see [Schema](/docs/data-pipelines/old-pipelines/schematized-export-pipeline#schema). To query a single table schema, use this snippet. ```sql theme={"system"} SELECT count(*) FROM mixpanel_nessie_day_partitioned_.mp_master_event WHERE mp_event_name = “” ``` To query a multiple table schema, use this snippet. ```sql theme={"system"} SELECT count(*) FROM mixpanel_nessie_day_partitioned_. ``` `CLEANED_EVENT_NAME` is the transformed event name based on [transformation rules](/docs/data-pipelines/old-pipelines/schematized-export-pipeline#transformation-rules). #### Getting the number of events in each day You will need this if you suspect the export process is not exporting all the events you want. As the tables are partitions using [`_PARTITIONTIME` pseudo column](https://cloud.google.com/bigquery/docs/querying-partitioned-tables#ingestion-time_partitioned_table_pseudo_columns) and in project timezone, you can use to following query to get the number of events per day in an easy and fast way: ```sql theme={"system"} SELECT _PARTITIONTIME AS pt, COUNT(*) FROM `mixpanel_nessie_day_partitioned_.mp_master_event` WHERE DATE(_PARTITIONTIME) <= "2021-12-03" AND DATE(_PARTITIONTIME) >= "2021-12-01" GROUP BY pt ``` This example returns the number of events in each day in project timezone for a monoschema export pipeline and an example date range. You can adjust the query for multischema by putting the right table name in the query. #### Querying the identity mapping table When using the ID mappings table, you should use the **resolved** `distinct_id` in place of the non-resolved `distinct_id` whenever present. If there is no resolved `distinct_id`, you can then use the `distinct_id` from the existing people or events table. Below is an example SQL query that references the ID mapping table to count number of events in a specific date range for each unique user in San Francisco : ```sql theme={"system"} SELECT CASE WHEN m.resolved_distinct_id IS NOT NULL THEN m.resolved_distinct_id WHEN m.resolved_distinct_id IS NULL THEN e.distinct_id END as resolved_distinct_id, COUNT(*) AS count FROM mixpanel_nessie_day_partitioned_.mp_master_event e FULL OUTER JOIN mixpanel_nessie_day_partitioned_.mp_identity_mappings_data_view m ON e.distinct_id = m.distinct_id AND mp_city="San Francisco" AND DATE(e._PARTITIONTIME) <= "2021-12-03" AND DATE(e._PARTITIONTIME) >= "2021-12-01" GROUP BY resolved_distinct_id LIMIT 100 ``` Counting number of times a user has done a specific behavior is also possible by adding more filters on event properties. You can adjust the query for multischema by putting the right table name in the query. ## Exporting into Customer managed BigQuery (Recommended) We recommend exporting Mixpanel data into customer-managed BigQuery, for this the customer needs to follow these steps. 1. Create a dataset in their BigQuery ![image](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/230698727-1216833e-8321-46de-a388-8b554a00938c.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=f7fa46185817d4a11da67f0f25106c12) 2. Give Mixpanel the necessary permissions to export into this dataset. > **Note:** If your organization uses [domain restriction constraint](https://cloud.google.com/resource-manager/docs/organization-policy/restricting-domains) you will have to update the policy to allow Mixpanel domain `mixpanel.com` and Google Workspace customer ID: `C00m5wrjz`. We need two permissions to manage the dataset. **BigQuery Job User** * Go to **IAM \&Admin** in your Google Cloud Console. * Click **+ ADD** to add principals * Add new principal "[export-upload@mixpanel-prod-1.iam.gserviceaccount.com](mailto:export-upload@mixpanel-prod-1.iam.gserviceaccount.com)" and set role as "BigQuery Job User", and save. ![image](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/230698732-4dadbccf-1eeb-4e64-a6c7-8926eb49e5cc.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=a11740f0fe0ac6f8b086af59e7dc9166) **BigQuery Data Owner** * Go to **BigQuery** in your Google cloud Console. * Open the dataset you want mixpanel to export to. * Click on **sharing** and **permissions** in the drop down. * In the Data Permissions window click on **Add Principal** * Add new principal "[export-upload@mixpanel-prod-1.iam.gserviceaccount.com](mailto:export-upload@mixpanel-prod-1.iam.gserviceaccount.com)" and set role as "BigQuery Data Owner", and save. ![image](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/230698735-972aedb5-1352-4ebc-82c4-ef075679779b.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=b07ee1e92ca29f639fe9252dae727d59) 3. You need to pass this dataset and gcp project id as params when you [create your pipeline](/reference/create-warehouse-pipeline) # Schematized GCS Pipeline Source: https://docs.mixpanel.com/docs/data-pipelines/old-pipelines/integrations/schematized-gcs-pipeline Export schematized, transformed Mixpanel data to a Google Cloud Storage bucket via the Data Pipelines API > [!NOTE] > > Customers on an Enterprise or Growth plan can access Data Pipeline as an add-on package. See our [pricing page](https://mixpanel.com/pricing/) for more details. The Google Cloud Storage schema pipeline exports [transformed data](/docs/data-pipelines/old-pipelines/schematized-export-pipeline#transformation-rules) to a GCS bucket. This can be useful in case you want to export Mixpanel data into your own BigQuery instance. To set up a schematized export pipeline to Google Cloud Storage (GCS) from Mixpanel, you must configure GCS to receive the exported data, then [create a pipeline](/reference/create-warehouse-pipeline) to export the data. The following document summarizes the steps to edit GCS permissions so that it accepts the Mixpanel export, and provides an example request to create the pipeline. ## Configure GCS to Accept Mixpanel Data Create a destination bucket, or use an existing one. `export-upload@mixpanel-prod-1.iam.gserviceaccount.com` needs to be given a "Storage Object Admin" role on the bucket you are creating or intending to reuse for this purpose. ## Use the Data Pipelines API After permissions have been granted, use the [Data Pipelines API](/reference/create-warehouse-pipeline) to create the pipeline. Here is an example request: ```sh cURL Example with Values theme={"system"} curl https://data.mixpanel.com/api/2.0/nessie/pipeline/create \ -u API_SECRET: \ -d type="gcs-schema" \ -d from_date="2019-08-10" \ -d gcs_bucket="example-gcs-export" \ -d gcs_prefix="dwe" \ -d schema_type="multischema" \ -d gcs_region="us-east-2" ``` # Schematized Snowflake Pipeline Source: https://docs.mixpanel.com/docs/data-pipelines/old-pipelines/integrations/schematized-snowflake-pipeline Export schematized Mixpanel data into a Snowflake dataset, with role, storage integration, and user setup steps > [!NOTE] > > Customers on an Enterprise or Growth plan can access Data Pipeline as an add-on package. See our [pricing page](https://mixpanel.com/pricing/) for more details. This guide describes how Mixpanel data is exported into a [Snowflake](https://docs.snowflake.net/manuals/user-guide-getting-started.html) dataset. [Create a pipeline](/reference/create-warehouse-pipeline) to export your Mixpanel data into Snowflake. Once an export job is scheduled, Mixpanel exports data to Snowflake on a recurring basis. ## Design > [!WARNING] > > Mixpanel exports data into customer-managed Snowflake. Mixpanel-hosted Snowflake (Data Sharing) is no longer supported for new pipelines. Only password-based authentication is supported via the API; key-pair authentication is not available. Mixpanel stages exported data in a GCS bucket before loading it into your Snowflake warehouse. You need to set up a role, storage integration, and user in your Snowflake account before creating a pipeline. ## Set Export Permissions ### Step 1: Create a Role and Grant Permissions Create a role (`MIXPANEL_EXPORT_ROLE` as an example) and grant access on your database, schema, warehouse to the role. Replace ``, ``, `` with actual names. ```sql theme={"system"} CREATE ROLE MIXPANEL_EXPORT_ROLE; GRANT ALL ON DATABASE TO ROLE MIXPANEL_EXPORT_ROLE; GRANT ALL ON SCHEMA . TO ROLE MIXPANEL_EXPORT_ROLE; GRANT USAGE ON WAREHOUSE TO ROLE MIXPANEL_EXPORT_ROLE; GRANT OPERATE ON WAREHOUSE TO ROLE MIXPANEL_EXPORT_ROLE; GRANT MONITOR ON WAREHOUSE TO ROLE MIXPANEL_EXPORT_ROLE; ``` ### Step 2: Create a Storage Integration Mixpanel stages exported data in a GCS bucket (`gcs://mixpanel-export-pipelines-`) before loading it into your warehouse. This bucket is created and managed by Mixpanel - you do *not* need to create it yourself. To allow Mixpanel to load data from this bucket into your Snowflake warehouse, create a GCS storage integration and grant it to the role. Replace `` with your Mixpanel project ID. ```sql theme={"system"} CREATE STORAGE INTEGRATION MIXPANEL_EXPORT_STORAGE_INTEGRATION TYPE = EXTERNAL_STAGE STORAGE_PROVIDER = 'GCS' ENABLED = TRUE STORAGE_ALLOWED_LOCATIONS = ("gcs://mixpanel-export-pipelines-"); GRANT USAGE ON INTEGRATION MIXPANEL_EXPORT_STORAGE_INTEGRATION TO MIXPANEL_EXPORT_ROLE; ``` ### Step 3: Authenticate the User Create a user with a password and grant the role to the user. If you already have a user, change the fields and grant the role. ```sql theme={"system"} CREATE USER MIXPANEL_EXPORT_USER PASSWORD='' DEFAULT_ROLE=MIXPANEL_EXPORT_ROLE; ALTER USER MIXPANEL_EXPORT_USER SET PASSWORD=''; GRANT ROLE MIXPANEL_EXPORT_ROLE TO USER MIXPANEL_EXPORT_USER; ``` For Snowflake export, we first load the data into a single-column raw (VARIANT type) data table. This data will be a [transformed version](/docs/data-pipelines/old-pipelines/schematized-export-pipeline#section-transformation-rules) of the raw data stored in Mixpanel. Then, we create a view to expose all properties as columns. The view name is the cleaned version of the event name and the raw table name is always the view name suffixed with `_raw`. For example, for `signup` event, you will have a `signup_raw` table and a `signup` view. Please see [Schema](/docs/data-pipelines/old-pipelines/schematized-export-pipeline#schema) for general information about the schemas in Schematized Export Pipelines. ## Partitioning The data in the raw tables is clustered based on `time` column but in project's timezone. To be exact, we use `CLUSTER BY (TO_DATE(CONVERT_TIMEZONE('UTC','', TO_TIMESTAMP(DATA:time::NUMBER)))` where `TIMEZONE` is the Mixpanel project's timezone. ## Queries Mixpanel recommends you place all events into a single table to make querying easier. To get more information about the table schemas, please see [Schema](/docs/data-pipelines/old-pipelines/schematized-export-pipeline#schema). A query is a request for data results. You can perform actions on the data, such as combine data from different tables; add, change, or delete table data; and perform calculations. Snowflake supports a VARIANT type that can store JSON objects and arrays. Mixpanel exposes array and object top-level properties as VARIANT columns in the view. Here is an example of how you can query the raw table when using one table for all the events: ```sql theme={"system"} SELECT count(*) FROM mixpanel.mp_master_event_raw WHERE data:mp_event_name::string = “Signup”; ``` Here is an example of how you can query the view when using one table for all the events: ```sql theme={"system"} SELECT count(*) FROM mixpanel.mp_master_event WHERE mp_event_name = “Signup”; ``` Here is an example of how you can query the raw table when using multiple tables for the events: ```sql theme={"system"} SELECT count(*) FROM mixpanel.signup_raw WHERE data:distinct_id::string = “1”; ``` Here is an example of how you can query the view when using multiple tables for the events: ```sql theme={"system"} SELECT count(*) FROM mixpanel.signup WHERE distinct_id = “1”; ``` ### Getting the number of events in each day You will need this if you suspect the export process is not exporting all the events you want. As time column in the tables is in UTC timezone, you first need to convert that to your Mixpanel project timezone, and then, get the number of events for each day. The following query will do that for you. ```sql theme={"system"} SELECT TO_DATE(CONVERT_TIMEZONE('UTC','', time)) as ttime, count(*) FROM ""."PUBLIC"."MP_MASTER_EVENT" WHERE ttime>=TO_DATE('2021-12-03') AND ttime<=TO_DATE('2021-12-07') GROUP BY ttime ``` This example returns the number of events in each day in project timezone for a monoschema export pipeline and an example date range. `PROJECT_TIMEZONE` and `DB_NAME` should be replaced by your Mixpanel project timezone and your snowflake database name. You can adjust the query for multi-schema by putting the right table name in the query. ### Querying the identity mapping table When using the ID mappings table, you should use the **resolved** `distinct_id` in place of the non-resolved `distinct_id` whenever present. If there is no resolved `distinct_id`, you can then use the `distinct_id` from the existing people or events table. Below is an example SQL query that references the ID mapping table to count number of events in a specific date range for each unique user in San Francisco ```sql theme={"system"} SELECT CASE WHEN m.resolved_distinct_id IS NOT NULL THEN m.resolved_distinct_id WHEN m.resolved_distinct_id IS NULL THEN e.distinct_id END as resolved_distinct_id, COUNT(*) AS count FROM ""."PUBLIC"."MP_MASTER_EVENT" e FULL OUTER JOIN ""."PUBLIC"."MP_IDENTITY_MAPPINGS_DATA" m ON e.distinct_id = m.distinct_id AND mp_city="San Francisco" AND TO_DATE(CONVERT_TIMEZONE('UTC','', e.time)) >= TO_DATE("2020-04-01") AND TO_DATE(CONVERT_TIMEZONE('UTC','', e.time)) <= TO_DATE("2020-04-03") GROUP BY resolved_distinct_id LIMIT 100 ``` Counting number of times a user has done a specific behavior is also possible by adding more filters on event properties. You can adjust the query for multi-schema by putting the right table name in the query. # Schematized Export Pipeline Source: https://docs.mixpanel.com/docs/data-pipelines/old-pipelines/schematized-export-pipeline Overview of the schematized export pipeline, which transforms Mixpanel data for supported warehouses and object storage > [!NOTE] > > Customers on an Enterprise or Growth plan can access Data Pipeline as an add-on package. See our [pricing page](https://mixpanel.com/pricing/) for more details. Schematized Export Pipeline is designed to export your Mixpanel data into supported data warehouses or object storage solutions. We first transform the events and user profile data in Mixpanel to be ready to be loaded into the supported data warehouses using [transformation rules](#transformation-rules). For object storage solutions, we only add the mapping of original property names to the column names to the bucket. For data warehouses, we add the schema and time-based partitions to the tables to make the queries easier to write and more efficient. This documentation targets users with intermediate or advanced knowledge of databases and knowledge of Amazon Web Services, Google Cloud Platform, or Snowflake technology. ## Mixpanel Schematized Export Pipeline Overview You must first configure your destination to accept the data before you can export data from Mixpanel to that destination. For additional information on configuring the Mixpanel export for different destinations, see: * [BigQuery](/docs/data-pipelines/old-pipelines/integrations/schematized-bigquery-pipeline) * [Snowflake](/docs/data-pipelines/old-pipelines/integrations/schematized-snowflake-pipeline) * [Amazon Web Services](/docs/data-pipelines/old-pipelines/integrations/schematized-aws-pipeline) * [Google Cloud Storage](/docs/data-pipelines/old-pipelines/integrations/schematized-gcs-pipeline) * [Azure Blob Storage](/docs/data-pipelines/old-pipelines/integrations/schematized-azure-pipeline) After configuring the destination, you can [create a pipeline](/reference/create-warehouse-pipeline) to export the data. After configuring the destination and creating a pipeline with the API, you can begin to query Mixpanel data from the destination warehouse or storage bucket. This opens up the use of SQL use from within Google Bigquery, Snowflake, and Amazon Redshift Spectrum. ## Data Sources Mixpanel can export both events and user data. Mixpanel supports hourly and daily exports (daily is the default). The event data that is exported using the schematized export pipeline is the same data exported from the [Raw Data Export API](/reference/raw-event-export#raw-event-export). The user data that is exported using the schematized export pipeline is the same data exported from the [Query API Engage Endpoint](/reference/engage-query#engage-query). In order to ensure a performant service for all customers, certain steps of the pipelines are limited to 1 pipeline per project running at a time. For example, a project with multiple jobs would have one wait for the other to complete certain steps before proceeding. In this way, something like a large backfill for one customer does not take priority over other customers, and keeps scheduling more fair. In addition, customers are limited to 1 date-range based pipeline creation per 24 hours. A date-range based pipeline is one that has a `from_date` and `to_date` that are both in the past, and uses `events` as the data type. #### Backfilling Historical Data You can schedule an initial backfill when creating a pipeline. This ensures that historical data is also exported to the data warehouse. Use the `from_date` parameter to specify the date you want to use to export historical data. Note that the `from_date` must be no more than 6 months in the past. The completion time for a backfill depends on the number of days and the amount of data in the project. Larger backfills can take up to multiple weeks. ## User Data Support User data is exported to a single table named `mp_people_data` (user data is accessible as a view of `mp_people_data` in BigQuery). Since user profiles are mutable, the data in the table is replaced every time an export happens based on the schedule (daily or hourly) with the latest user profiles. ## User Identity Resolution Exports from projects with [ID merge enabled](/docs/tracking-methods/id-management#identity-merge-apis) will need to use the identity mapping table to replicate the user counts seen in UI reporting. When ID merge is enabled, Mixpanel assigns multiple identifiers to an individual. Mixpanel resolves these into one identifier, and uses that for reporting unique user counts. Read more about how Mixpanel resolves IDs [here](/docs/tracking-methods/id-management/identifying-users-simplified#example-user-flows). Pipelines export event data as they appear when Mixpanel ingests them. This means exported event data before sending alias event has the original user identifier, **not** the resolved identifier. Use the identity mappings table to accurately count unique users. This will allow you to recreate the identity cluster that Mixpanel creates. Mixpanel automatically exports the ID mapping table when you create a people export pipeline from a project with ID merge enabled. Note: When using the ID mappings table, you should use the **resolved** `distinct_id` in place of the non-resolved `distinct_id` whenever present. If there is no resolved `distinct_id`, you can then use the `distinct_id` from the existing people or events table. } Examples of how to do this are available for [BigQuery](/docs/data-pipelines/old-pipelines/integrations/schematized-bigquery-pipeline#querying-the-identity-mapping-table) and [Snowflake](/docs/data-pipelines/old-pipelines/integrations/schematized-snowflake-pipeline#querying-the-identity-mapping-table). ## Service Level Agreement The policy for latency on exported events is 24 hours end to end, plus an additional 24 hours for late-arriving data. **Note**: Mixpanel defines late data as any data point or user profile update that reaches Mixpanel servers later than two hours after the end of the export window. Late-arriving event data is only exported for pipelines with sync enabled. For hourly pipelines, data that arrived on time would be exported in up to 24 hours from the time that Mixpanel ingests the data. For daily pipelines, the 24 hours would be counted from the start of the next calendar day in project time (ex: data ingested on Jan 1st is scheduled to be imported starting Jan 2nd at midnight and before midnight on Jan 3rd). Data that arrived late is exported during a sync process daily (if sync is enabled), the next day after the data is ingested. As an example, data for Jan 1st that arrived on Jan 3rd (a couple of days late) would be exported/synced in the sync run from Jan 4th. ## Data Sync Event data stored in Mixpanel’s datastore and event data in the data warehouse can fall out of sync. The discrepancy can be attributed to several different causes: * Late data can arrive multiple days later due to a mobile client being offline. * The import API can add data to previous days. * Delete requests related to GDPR can cause deletion of events and event properties. Mixpanel is able to detect any changes in your data with the granularity of a day and replaces the old data with the latest version both in object storage and data warehouse, if applicable. Data sync helps keep the data fresh and minimizes missing data points. Do Note: Data sync does not fully guarantee syncing GDPR Data Deletions and will only sync data for days up to 10 days in the past. It is recommended to implement a strategy to remove all records of GDPR Deleted Users in your data warehouse. Additionally, we start checking for late arriving data 24 hours after the data for a day is exported. It may take more than 2 days for the data in the destination to be in sync with the data in Mixpanel. ## Transformation Rules Some characters are not legal for table or column names, or when collisions can occur in the dataset. Mixpanel cleans, or transforms, the data to account for this. This section provides the rules on how Mixpanel cleans data. #### Table and Column Names Mixpanel applies these rules for table and column names: * Special characters and whitespaces are replaced with `_`(underscore). * Letters are converted to lowercase. * Maximum name length is 128 characters (The name is truncated after 128 characters.) * Properties that start with a `$` (dollar sign) have a prefix of `mp_`. * Properties that conflict with reserved keywords are prefixed with `res_`. * When there are multiple types for the same property name, we append suffix `_` (e.g., `_string`, \`\_number) to the column names to differentiate them. #### Naming Conflicts There are several naming transformations that happen as a result of character conflicts. Capitalized letters are converted to lower case. Any duplicate strings has a numeric value appended to them to differentiate. For example if values “XY” and “Xy” are sent in: * Both are transformed to “xy”. * If “Xy” is sent in after "XY", it becomes “xy\_1”. * Any subsequent “xy” values inherit incremental numeric values (i.e. xy\_2, xy\_3, etc.). #### Type Conflicts Mixpanel transforms values to resolve type conflicts. If a property value is passed with a particular data type and is passed subsequently with a different data type, then the new data type appends to the property name. For example, if “X” appears with type INT first, then subsequently appears as type STRING (or VARCHAR), then the property name will be transformed to "x\_string" with a data type of string. #### New Properties New properties that were not present in previous imports will append to the old rows with a `NULL` value. ## Property Mappings Because of the transformation rules, sometimes it can be hard to know the mappings between original and transformed event and property names. In case you are exporting the schematized data to an object storage or you are exporting to a data warehouse but providing your own intermediate object storage, we export these mappings to `///schema/` under `events.json`, `people.json` and `identities.json`. ## Schema This section describes how Schematized Export Pipeline creates the schema for the exported data. Event data and user data are loaded into separate tables. User profile data is loaded into one table, whereas events can be loaded into either a single table for each event or one table for all events. #### Common Properties Regardless of whether you're using a single table or multiple tables, the following properties will be always present in the schema: | name | type | description | | :- | :- | :- | | time | int | The timestamp representing when the event occurred. | | distinct\_id | string | The unique ID of the user who triggered the event. | For a single table schema, you will also have an extra property for event name: | name | type | description | | :- | :- | :- | | mp\_event\_name | string | the name of the event | Please note that the types in the above tables are generic. The exact type can be different based on your export destination. #### Limits The schema for each table cannot exceed 9500 unique properties. If a tables schema reaches this limit all new properties added to the schema will be included in a JSON like property called `mp_properties`. | name | type | pipeline destination | | :- | :- | :- | | mp\_properties | json | BigQuery | | mp\_properties | object | Snowflake | | mp\_properties | json-like string | AWS Glue | | mp\_properties | json-like string | GCS | | mp\_properties | json-like string | Azure | #### Using One Table for All Events In this schema, all your Mixpanel data exists in a single table. Mixpanel recommends a single table schema because it makes querying simpler. If you select the single table schema, the export pipeline creates a \*mp\_master\_event \*table. The table has one column per unique property name across all events in the history of the dataset. Suppose you have an event with a `purchase_amount` property and one with a `referrer` property, the table will have a *purchase\_amount* column and a *referrer* column. Events that don’t have a property contain a NULL value in that column. For examples of one table for all events, see [One Table for All Events](#one-table-for-all-events). #### Using One Table for Each Event Each Mixpanel event exists in a single table. This schema is a useful workaround for limitations in the number of columns that are allowed in a S3 table. If you select the multi-table option, Mixpanel creates one table per unique event name. Each table is named for the event. For example, if you have an event called `signup` there will be a table named *signup*. Each table for each event has one column per unique property name across all events in the history of the dataset. For an example of one table for each event, see [One Table for Each Event](#one-table-for-each-event). > [!NOTE] > > One table for each event is not available during the trial period. #### Table Example Here is an example dataset to view different schema options in either one table for all events or one table for each event. ```json theme={"system"} { “event”: “Signup”, “properties”: { “plan”: “free”, “browser”: “chrome”, “distinct_id”: 1, “time”: 123 } } { “event”: “Purchase”, “properties”: { “product_id”: “123”, “browser”: “chrome”, “distinct_id”: 1, “time”: 124 } } { “event”: “Signup”, “properties”: { “plan”: “paid”, “browser”: “firefox”, “ab_test”: 1, “distinct_id”: 2, “time”: 125 } ``` ##### One Table for All Events Single table: *mixpanel\_events* | mp\_event\_name | time | distinct\_id | plan | browser | product\_id | ab\_test | | :- | :- | :- | :- | :- | :- | :- | | “Signup” | 123 | 1 | "free" | "chrome" | NULL | NULL | | “Purchase” | 124 | 1 | NULL | "chrome" | 123 | NULL | | “Signup” | 125 | 2 | "paid" | "firefox" | NULL | 1 | ##### One Table for Each Event Two tables: *signup \_and \_purchase* Table: *signup* | time | distinct\_id | plan | browser | ab\_test | | :- | :- | :- | :- | :- | | 123 | 1 | "free" | "chrome" | NULL | | 125 | 2 | "paid" | "firefox" | 1 | Table: *purchase* | time | distinct\_id | browser | product\_id | | :- | :- | :- | :- | | 124 | 1 | "chrome" | 123 | # Data Structure Source: https://docs.mixpanel.com/docs/data-structure Index of Mixpanel's data model: events, properties, user profiles, group analytics, lookup tables, and the property reference > [card] [All about our Data Model](/docs/data-structure/concepts) > [card] [Events & Properties](/docs/data-structure/events-and-properties) > [card] [User Profiles](/docs/data-structure/user-profiles) > [card] [Group Analytics](/docs/data-structure/group-analytics) > [card] [Lookup Tables](/docs/data-structure/lookup-tables) > [card] [Property Reference](/docs/data-structure/property-reference) # Data Model Source: https://docs.mixpanel.com/docs/data-structure/concepts How events, user profiles, group profiles, and lookup tables fit together in Mixpanel's data model, and how each is joined for analysis ## Overview Mixpanel data is stored and isolated within a [project](/docs/orgs-and-projects/managing-projects). At this time, you cannot query data across multiple projects. Mixpanel supports a few different categories of data that can be used for analysis: events, user profiles, group profiles, and lookup tables. In data warehouse parlance, events make up the fact table while user profiles, group profiles, and lookup tables are dimension tables. ![Data Model Overview](https://mintcdn.com/mixpanel-edb78807/t0w2ecW2bO4mKfCm/images/Data_Model_Overview.png?fit=max\&auto=format\&n=t0w2ecW2bO4mKfCm\&q=85\&s=22265f0a4a6f5646b6cdd6d4f36cdfc0) | Types | Description | | - | - | | **Events** | Events describe actions that take place within your product. An event contains properties that describe the action. Events can also be joined with user profiles, group profiles, and lookup tables to enrich the data. [Learn more about event properties](/docs/data-structure/events-and-properties) | | **User Profiles** | A user profile is a key/value store that holds state about a user. User profiles are joined to events on `event.distinct_id = user_profile.distinct_id`. [Learn more about profile properties](/docs/data-structure/user-profiles) | | **Group Profiles** | A group profile is a key/value store that holds state about members of your group. Group profiles are joined to Events on your chosen *group key*. For example, if you create a new group key for `company_id` your events will be joined on `event.company_id = group_profile.company_id`. [Learn more about group analytics](/docs/data-structure/group-analytics) | | **Lookup Tables** | A lookup table is a key/value store that holds state about an entity. Lookup tables are joined to events (and other profiles) on your chosen join key. For example, if you create a lookup table for "Songs" and specify the join key as `song_id`, your events will be joined on `event.song_id = lookup_table.song_id`. [Learn more about lookup tables](/docs/data-structure/lookup-tables) | ### Event Property vs User Profile Property An event property is a detail about an event. Event properties are incredibly important, as they provide the necessary context about events to ensure valuable analytics. Properties also facilitate the dissection of data, allowing for more detailed insight into event-driven data. Once tracked, events and their properties are immutable, meaning they cannot be changed. Profile Properties give you detail about a certain user overall. In other words, Profile Properties describe your users as they exist in this moment. A user profile property could be a static value, such as a first name, or be something more likely to change, like the date of last login or the number of songs a user has played. For example, while an Event Property or Super Property tells you whether a user had a paid or free account over time when a user did specific actions, a Profile Property would simply show you currently if they are paid or free. ## Example Imagine you work on a music streaming product and you want to answer questions like: * What are the most popular songs and artists this week? * What is the distribution of number of songs played per week by user? * Which experiment performed better in an A/B test to drive a higher conversion rate from Free to Premium accounts? You want to analyze uniques by both users *and* accounts so you create a group key for `account_id`. You also want to augment your events with details about songs being played so you create a "Songs" lookup table and specify the join key as `song_id`. Your data model will look like this: ![Data Model Example](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/datamodel.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=0528c90094d858b132ba020cc060efa2) Your Mixpanel data is made up of **events** and **profiles**, each of which is comprised of **properties**. Events are data points in a time-series database. Profiles are key-value stores. ## Anatomy of an Event The following event represents the fact that user `john.doe@gmail.com` played the song\_id of `0wwPcA6wtMf6HUMpIRdeP7` on Tuesday, September 29, at 2020 8:42:11 PM GMT on a machine with IP 203.0.113.9. ```json theme={"system"} { // The name of your event "event": "Played Song", // A dictionary of properties to hold metadata about your event "properties": { // The Mixpanel token associated with your project. You can find your Mixpanel token // in the project settings dialog in the Mixpanel app. Events without a valid token // will be ignored. "token": "6972694d809c7390676a138834f8c890", // The time an event occurred. If present, the value should be a Unix timestamp // (milliseconds since UTC epoch). If this property is not included in your request, // Mixpanel will use the time the event arrives at the server. If you're using our mobile SDKs, // it will be set automatically for you. "time": 1601412131000, // An IP address string (e.g. "127.0.0.1") associated with the event. This is // used for adding geolocation data to events, and should only be required if // you are making requests from your backend. If IP is absent (and ip=1 is not // provided as a URL parameter), Mixpanel will ignore the IP address of the request. "ip": "203.0.113.9", // A unique identifier for the event. Mixpanel uses this to deduplicate events in the case // of retries or network failures. Events with the same (event, time, distinct_id, $insert_id) // are considered duplicates. // We recommend generating UUIDs for $insert_ids. Our SDKs do this automatically. "$insert_id": "5d958f87-542d-4c10-9422-0ed75893dc81", // The value of distinct_id will be treated as a string, and used to uniquely // identify a user associated with your event. If you provide a distinct_id property // with your events, you can track a given user through funnels and distinguish // unique users for retention analyses. You should always send the same distinct_id // when an event is triggered by the same user. "distinct_id": "john.doe@gmail.com", // You can also specify any arbitrary properties you want to track as metadata // about the event "app_version": "1.1.34.694.gac68a2b3", "song_id": "0wwPcA6wtMf6HUMpIRdeP7" } ``` ## User Profiles, Group Profiles & Lookup Tables All three are key/value stores that augment your event data with additional metadata about entities. The differences are whether the join key is customizable and whether events are copied and indexed by the join key. [**User profiles**](/docs/data-structure/user-profiles) are joined to events via `distinct_id` which is the default indexing for Events. [**Group profiles**](/docs/data-structure/group-analytics) are joined to events via an event property you specify as a group key. Once you create a new group key, we will add an additional index for your events on that property. This allows you to do funnels or retention by that property instead of by `distinct_id`. [**Lookup tables**](/docs/data-structure/lookup-tables) are joined to events and user profiles using the join key that you specify. Unlike group profiles, your events are *not* indexed by the join key. You can use lookup table properties to do filtering, breakdowns, etc but you can't do things like funnels analysis using the join key for uniques. Note: Currently, group profile properties cannot be lookup table keys. | Profile Type | Can Specify Join Key | Can Use Join Key For Uniques Analysis | Can Be Referenced From Other Profiles | | - | - | - | - | | User Profiles | ❌ | ✅ | ❌ | | Group Profiles | ✅ | ✅ | ❌ | | Lookup Tables | ✅ | ❌ | ✅ | # Events Source: https://docs.mixpanel.com/docs/data-structure/events-and-properties How events and their properties work in Mixpanel, with naming conventions, super properties, and best practices for structuring them ## Overview Events are the core of [Mixpanel's Data Model](/guides/mixpanel-introduction#mixpanel-data-model). All events should have an **Event Name**, a **Timestamp** of when that event has occurred, and a [**Distinct ID**](/docs/tracking-methods/id-management#distinct-id) (Mixpanel's identifier for a user) to tie all events belonging to the same user. Events can optionally have a set of properties, which describes the event in more detail. * If you're familiar with databases, events are like tables and properties are like columns. * If you're familiar with Google Analytics, events are like hits and properties are like dimensions. > [!NOTE] > > **Note:** There are a few use cases, such as tracking [Ad Spend](/docs/tracking-methods/integrations/ad-spend), in which the event should not be tied to specific users; as such, these events should be sent without a Distinct ID, but this is the exception. For more information about events refer to the documentation on [The Mixpanel Data Model](/guides/mixpanel-introduction#mixpanel-data-model). ## Examples * A `Page Viewed` event might have a property called `Page URL`, which is set to the URL of the page that was viewed. * A `Signed Up` event might have a property called `Signup Type`, which indicates whether the signup was `organic` vs `referral`. * A `Song Played` event might have a property called `Song Name`, which is set to the name of the song that was played. * An `Order Completed` event might have a property called `Items`, which is a list of objects, each of which contains details about an item, like its name, category, and price. ## Use Cases You can filter, breakdown, and aggregate your events by their properties to answer more questions: * Which pages do users look at before they visit the pricing page? * How many sign-ups did I get that were organic vs referral? * Which song name is most popular among my users? * How many orders contain shoes? What is the sum total price that users paid for shoes in the last month? ## Best Practices ### Keep Events as Actions We recommend striking the right balance when defining your events. Events should neither be too broad nor too specific, and should be defined at the level of how you plan to analyze the user's action or behavior. Also keep in mind to use event properties to provide context or details about an event, instead of creating different events to capture similar actions. **For example:** * If your goal is to analyze at high-level how users traverse through different pages: instead of tracking multiple events `Home Page Viewed` and `Pricing Page Viewed`, track a `Page Viewed` event with a `Page Name` property set to **"/home"** or **"/pricing"**. See [Tracking Page Views](/docs/tracking-methods/sdks/javascript#tracking-page-views) in our Javascript SDK documentation on how to instrument this. * If your goal is to track users adding items to a shopping cart: instead of tracking multiple events `Add Shirt to Cart`, `Add Hoodie to Cart`, and `Add Socks to Cart`, track a `Add to Cart` event with a `Item` property set to **"Shirt"**, or **"Hoodie"**, or **"Socks"**. * If your goal is to track 1 button on a specific screen: instead of tracking multiple events `Blue Button Clicked` and `Checkout Button Clicked`, track a `Button Clicked` event with a `Color` property set to **"Blue"** and `Button Name` set to **"Checkout"**. * If your goal is to track different buttons from different user journeys: instead of tracking 1 event `Button Clicked` with `Button Name` property set to **"Play"**, or **"Profile"**, or **"X"**, track them as different events `Song Played` and `Profile Updated` and `Logout` with specific properties for each event to provide richer context. ### Use a Naming Convention for Events and Properties > [!WARNING] > > Mixpanel strings are case-sensitive; `sign_up_completed` and `Sign_Up_Completed` are considered two separate events. We recommend having a consistent naming convention for your events and properties: * Generally, adopting snake\_case for your event and property names tend to be more robust, especially if you plan to export your Mixpanel data to downstream processes such as data warehouses. * Use the **(Object) (Verb)** format for event names. Like `song_played` or `page_viewed`. * Mixpanel [Lexicon](/docs/data-governance/lexicon) provides a means for you to change an event's or property's display name on the UI (if needed, to make it more user-friendly). ### Avoid Creating Events or Property Names Dynamically For example, don't create an event name like `Purchase (11-01-2019)`. Instead, create an event called `Purchase` and have some property (eg: `Return Date`) set to the dynamic value **"11-01-2019"**. > **Tip:** Learn more best practices around defining your events and properties under our tutorials for [Creating a Tracking Plan](/docs/tracking-best-practices/tracking-plan#tracking-plan-methodology). ### Super Properties It's very common to have certain event properties that you want to include with each event you send. Generally, these are things you know about the user rather than about a specific event - for example, the user's age, gender, source, or initial referrer. To make things easier, you can register these properties as super properties. If you tell us just once that these properties are important, we will automatically include them with all events sent. Super properties are stored in a browser cookie, and will persist between visits to your site. Mixpanel already stores some information as super properties by default; see a full list of Mixpanel default properties [here](/docs/data-structure/property-reference/properties). Learn more about registering super properties [here](/docs/tracking-methods/sdks/javascript#setting-super-properties). ## FAQ ### What types of data can I send as properties? Mixpanel accepts arbitrary JSON as properties, including strings, numbers, booleans, lists, and objects. See our [Property Reference doc](/docs/data-structure/property-reference/data-type) or our [API docs](/reference/import-events) for more details. ### What are the limits of events and properties? We don't have a limit on the total number of events you can send to Mixpanel, but it will factor into your [pricing](https://mixpanel.com/pricing). We have a soft limit of 5000 distinct event names. If you send more event names, we'll still ingest them, but those event names will not be indexed and will not appear in our autocomplete menus. Each event must be smaller than 1MB of uncompressed JSON; larger events are rejected. See [event size limits](/reference/track-event#limits) for details. Each event can have up to 255 properties. Event property names/values can be at most 255 characters in length (longer names are truncated). Event property values are limited based on data type, refer to these limits under [Supported Data Types](/docs/data-structure/property-reference/data-type). We also have a soft limit of 5000 distinct event properties per project. If you send more distinct properties, we'll still ingest them, but those properties will not be indexed and will not appear in our autocomplete menus. **Note**: while events can have up to 255 properties and batches of events can have up to 2000 events per ingestion batch, some libraries might default to sending the data through the GET protocol which would have a much lower size limit since the information is appended to the URL. If you are hitting the limits on the size of the request, first verify if the method being used is GET and can be switched to POST. # Group Analytics Source: https://docs.mixpanel.com/docs/data-structure/group-analytics Group users together as an aggregated unit of measurement > [!NOTE] > > Customers on an Enterprise or Growth plan can access Group Analytics as an add-on package. See our [pricing page](https://mixpanel.com/pricing/) for more details. If your project loses the Group Analytics package, your group data is permanently deleted after 45 days. See [Losing the Group Analytics Package](#losing-the-group-analytics-package). ## Overview Mixpanel Group Analytics allows behavioral data analysis at a customized group level (such as account, device—or any other way you want to assess your business). Historically, Mixpanel grouped events by a single identifier called the distinct\_id. This ultimately grouped events by the individual user. Group Analytics allows you to establish an event property other than the distinct\_id, such as company ID, account ID, project ID, or billing ID, as an identifier by which to analyze your data. [https://www.youtube-nocookie.com/embed/jrIiwhdHCdg](https://www.youtube-nocookie.com/embed/jrIiwhdHCdg) ### Data Modeling Mixpanel Group Analysis allows you to select alternative unique identifiers in reports. By default, Mixpanel counts unique users by distinct\_id. Group Analytics allows you to uniquely count events by an alternative identifier, such as company ID, invite ID, or another value shared by a group of individuals with different distinct\_ids. Below you will see an example of an event coming into a project that has `company_id` and `team_id` set up as separate group keys. You will see how, starting with a single event being ingested (on the left), by switching the identifier you're analyzing on, the event can be read with said identifier as the user key to do the analysis on: ![](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/group_analytics_data_model.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=bbdd59e0c6006cb362e679503d485481) This allows behavioral analysis from a business or group level, as opposed to an individual level. You can answer questions such as: * Which companies are engaging the most with a product? * In instances where there are more than one user per account, such as a video streaming service, how are events triggered at an account level? * What groups convert through a funnel to a goal event (as opposed to what individual users convert)? ### Group Profiles Much like a [user profile](/docs/data-structure/user-profiles), Group Profiles are a collection of properties and event history specific to a group. Group Profiles have an activity feed that shows the events performed by users in a group. Only the events attributed to the group with a defined group key will appear in the group's activity feed. The Group Profile also displays the properties unique to that group - here's an [example](https://mixpanel.com/project/3187769/view/3699049/app/profile#distinct_id=company_id_8889\&data_group_id=-1405123841946871899) of it: ![image](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/group-profile-example.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=ad6444062da7d41726a47580257e03d5) To access a group profile: 1. Navigate to the Users page from the menu. 2. Click on the group identifier you want to analyze on. ![/group\_analytics\_navigation.png](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/group_analytics_navigation.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=70ef4852b92d6b16a5177f9746eea826) 3. Groups profiles will populate the Users report. ### Change the Group Identifier in a Report By default, Metrics aggregates at the user-level. To change the identifier used for aggregation in a metric: 1. Go to a report 2. Click the “Users” dropdown within the Metric 3. Select a Group. The report will now display results grouped by the newly selected group identifier. ![](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/saved_behavior_group_identifier.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=0993dce50cda979927f71d95b63d6c6f) When your [Insights report](/docs/reports/insights) includes multiple Metrics, you can individually toggle the identifier for each one. For example, you can create an Insights report that shows Signups by unique Users and by unique Companies. ![](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/saved-metrics-and-behaviors11.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=0283d8e2f6c20d3e27160cfde71168ad) Similarly, you can build a report that displays Conversion Rates per User and per Company. ![](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/saved-metrics-and-behaviors12.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=d15729bfe41443dede2452b4e5edac5b) ### B2B Company Analytics Company Analytics is a feature within Group Analytics tailored to B2B SaaS Companies. Here we focus on the idea that users ‘belong’ to a company, and that company behavior is dependent on user behavioral activity. For instance, if you have 2 accounts, each worth \$50M but with 5 and 20 users respectively, the account with 20 users is considered healthier and more likely to renew compared to the other account. Company Analytics enables you to understand such account health and activation metrics, which are derived from the underlying user activity. To use these features, you must [designate the group key as a company key when setting up the group](/docs/data-structure/group-analytics#setup-b2b-company-key). #### Company Profiles The Company Profiles page gives you a holistic view of your company health, which includes key metrics and company profile properties (i.e., company attributes). Company Health Metrics on the page include KPIs on usage (DAU, WAU, MAU, new users), users’ engagement level (activity per user, life cycle of user), and their retention (Day 1, Week 1, and Month 1). You can view the definition of each metric by clicking on the metric card, which will open the underlying Mixpanel report. To access this page, click on Users/ Companies → Company Profile. Note: This is only available if you have [set up a B2B Company Key](/docs/data-structure/group-analytics#setup-b2b-company-key), an option available in the Group Analytics package. ![image](https://mintcdn.com/mixpanel-edb78807/t0w2ecW2bO4mKfCm/images/B2B_Company_Profiles.webp?fit=max\&auto=format\&n=t0w2ecW2bO4mKfCm\&q=85\&s=c3048d504d159fa35dff995c60a42ecd) #### Activation Metrics SaaS companies often have use cases that require them to segment companies based on the number of users and the quality of users. For example, a question you may have is 'What is the number of trial accounts that have more than two active users?'. The hypothesis is that these accounts will convert faster. We have a computed property in both breakdown and filter, called the **“Number of users who did…”**, available in the Group Analytics add-on, which enables you to answer these types of questions, as it allows you to break down account activity by the number of active users. ![image](https://mintcdn.com/mixpanel-edb78807/t0w2ecW2bO4mKfCm/images/B2B_Activation_1.webp?fit=max\&auto=format\&n=t0w2ecW2bO4mKfCm\&q=85\&s=f02e1e52e57b84a54bde6d3bb28863e0) When using **“Number of users who did…”** as a breakdown, we show you how many downloads came from different types of account health. For example, 605 downloads came from accounts with zero active users. \~1.5 downloads in the last 30 days came from accounts with two active users. Where an “active user” is defined by both the activity (e.g., an event such as document created) and the frequency of the activity (e.g., performing the event ≥1 time). In a line chart, we look for activity per interval. For example, in the daily chart below, we’re looking for activity qualification per day (i.e., an active user is one who has created at least one document on that day). The chart below shows that on Aug 19th, 35 accounts downloaded a document. Of the 35 accounts, 32 had one active user, 2 had two active users, and 1 had twenty-eight active users. Since most downloads originated from accounts with only one active user, we can conclude there is no correlation between account document download activity and account health. ![image](https://mintcdn.com/mixpanel-edb78807/t0w2ecW2bO4mKfCm/images/B2B_Activation_2.webp?fit=max\&auto=format\&n=t0w2ecW2bO4mKfCm\&q=85\&s=c1058efa69c2f936154ed3401945a4d7) ## Losing the Group Analytics Package If your project no longer has the Group Analytics package (for example, because the add-on is removed from your plan), group-based analysis stops working immediately. Reports that analyze data by a group, including saved reports, will return errors. When you remove the Group Analytics package from a project, Mixpanel retains your group data for 45 days. If you restore the package within that window, all of your group data is recovered, including any group data sent while the package was removed. After 45 days, your group data is permanently deleted and can’t be recovered. # Group Analytics FAQ Source: https://docs.mixpanel.com/docs/data-structure/group-analytics/group-analytics-faq Group Analytics limits, why events go missing from groups, using groups in reports, exporting group profiles via API, and B2B Company Analytics ## Limits The limits below ensure group analytics works correctly in Mixpanel: * 1M group profiles per group key (e.g. company\_id) * 1M events per day per group identifier (e.g. company\_id = "Mixpanel") - see [Hot Shard Limits](/docs/tracking-best-practices/hot-shard-limits) * Group properties have similar [limits as User properties](/docs/data-structure/user-profiles#what-are-the-limits-of-user-properties) * This add-on supports up to 3 group keys. Enterprise Plans can increase this to 6 for an additional fee. ## Events Missing from Groups The group key property must be present as an event property on an event in order to attribute them to a group profile. Having the group key present as a user profile property does not automatically attribute the events by that user to the group. Mixpanel does not backfill historical data to groups before the group key was implemented. This means that Mixpanel is only able to attribute group data from the date that the group key was set up in your Project Settings. Historical events that contain the group key as an event property sent prior to the implementation of the group key in Project Settings will not be attributed to a group. ## Group Analysis in Reports Group properties are supported when analyzing by users, but user properties are not supported when analyzing by groups. ## Exporting Group Profiles via API Use the [Engage API endpoint](/reference/engage-query) to export Group Profiles by adding `data_group_id` in the `data` param of the request. ```sh theme={"system"} curl --request POST \ --url https://eu.mixpanel.com/api/2.0/engage \ --header 'Authorization: Basic ' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data 'filter_by_cohort={"id": }' \ --data data_group_id= ``` The `` for the respective group key's profile can be found under Group Keys within Project Settings: ![image](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/data-group-id.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=c1aff07d364ab994464925ebfd4bc492) Alternatively, the `` can also be seen as part of the URL of the [Group Profile](/docs/data-structure/group-analytics#group-profiles) page: `https://mixpanel.com/project//view//app/profile#distinct_id=&data_group_id=` Here's an actual [example](https://mixpanel.com/project/3187769/view/3699049/app/profile#distinct_id=company_id_8889\&data_group_id=-1405123841946871899) with `data_group_id` = `-1405123841946871899`: ![image](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/engage-api-data-group-id.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=a6d6af64466029a73993515acbf20686) ## How is B2B Company Analytics different than Group Analytics? Company Analytics is an advanced offering ‘within’ group analytics. Group Analytics focuses on the concept of there being multiple entities on which analysis can be done ‘independently’ (eg. user ID, restaurant ID, driver ID, company ID, etc.) Company Analytics is specific to B2B Companies where you are likely to have a user ID and company ID. Here we focus on the idea that users ‘belong’ to a company, and that company behavior is ‘dependant’ on user behavioral activity. For instance, in SaaS companies, the health of an account is determined by how active the users of that account are. ## What are the unique features of B2B Company Analytics? There are two features unique to B2B Company Analytics being set up, which aren’t available with the generic group analytics setup. * Company Profiles - this is an advanced version of group profiles that shows you the health of a company * Company Activation filters & breakdowns # Group Analytics Implementation Guide Source: https://docs.mixpanel.com/docs/data-structure/group-analytics/group-analytics-implementation Set up group keys, track events against a group, attribute one event to multiple groups, and update group profiles with the SDKs or Users report > [!NOTE] > > Customers on an Enterprise or Growth plan can access Group Analytics as an [add-on package](https://mixpanel.com/pricing/). See our pricing page for more details. ## Setup ### Group Keys in Project Settings Group keys are project-specific, and must be set up before data is sent. To administer group keys, navigate to your Project Settings. Click **+Add Group Key** under the *Group Keys* section. 1. Navigate to your Project Settings (requires project owner or admin permissions) 2. Click **+Add Group Key** under the *Group Keys* section 3. Fill in the details on the group key (the exact name as data will be ingested) and the display name that will appear in Mixpanel ![image](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/group_setup_1.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=1309a47aa44342af3f604d3c8c4d17a4) Once you hit save, a new row will appear in the Group Keys section with a new group ID (an ID autogenerated on our end, required for queries). The setup process takes a few minutes, so recently ingested data just after the group key is created might not be associated to a group during this time. ### Setup B2B Company Key 1. Choose which group key will be used as the B2B Company Key. This is the key for which [Company Profiles (B2B Company Analytics)](../group-analytics#company-profiles) will be generated. 2. Specify the property that should be referenced as the Company name (identifier) throughout the Mixpanel interface. > [!NOTE] > > You can change which group key should be used as the Company Key. To change, first unset the current group key set as Company Key in the project settings, and then set a new group key as the Company Key. ## Tracking events for a Group By default, event data is tracked at a user level, and the association of that event to a group (or multiple groups) depends on: 1) the group key already being defined in project settings **AND** 2) that the event has the group key(s) in it with its associated values. To better illustrate the process with an example, if you have an anonymous user triggering an event, authenticating, and then triggering other events, you may have a timeline like the picture below: ![image](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/group_setup_2.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=4ac753943e29fd39c1a0d9b1462584f4) While the pre and post authentication events are tied to the user [via ID merge](../../tracking-methods/id-management), only events ingested with the group key in it (in this case `company_id`) would be associated with the group. In this timeline, the journey of the user starts with the initial `page_view` event, but the journey of the group starts with the `login` event. The group key(s) and their value should be present in every event you want associated with the group (much like the ID of a user). In our client-side libraries that support a form of local storage, we have convenience functions that allow you to store the group key(s) and values in the device so every event has that information (after it's registered and before the user logs out). ```javascript Javascript (Web) theme={"system"} mixpanel.track("page_view"); // event while anonymous mixpanel.identify("existing_user"); mixpanel.add_group("company_id","company 1"); mixpanel.track("login"); //event after authentication and part of the group "company 1" ``` ```kotlin Kotlin (Android) theme={"system"} mixpanel.track('page_view'); // event while anonymous mixpanel.identify("existing_user"); mixpanel.setGroup('company_id', 'company 1'); mixpanel.track('login'); //event after authentication and part of the group "company 1" ``` ```swift Swift (iOS) theme={"system"} Mixpanel.mainInstance().track(event: "page_view") // event while anonymous Mixpanel.mainInstance().identify(distinctId: "existing_user") Mixpanel.mainInstance().setGroup(groupKey: "company_id", groupID: ["company 1"]) Mixpanel.mainInstance().track(event: "login") //event after authentication and part of the group "company 1" ``` Note this is just a convenience function; for server-side libraries, or if there's no access to local storage, you can send the group key and value in every event tracked. Below you will see the same flow using python. ```python theme={"system"} mp.track('$device:anoymous_id', 'page_view',{'$device_id':'anoymous_id'}) mp.track('existing_user', 'login',{'$device_id':'anoymous_id', '$user_id': 'existing_user', 'company_id': ['company 1']}) mp.track('existing_user', 'page_view',{'$user_id': 'existing_user', 'company_id': ['company 1']}) ``` ### Attributing Events to Multiple Groups An event can be attributed to multiple groups. The convenience functions cited above define the group key as a list of strings, so calling it with a value adds to an existing list in local storage, but when tracking manually, you can send a list of strings with each group the event should be associated to. ```javascript Javascript theme={"system"} mixpanel.track("Some Event", { company_id: ["company 1", "company 2", "company 3"] }); ``` > [!NOTE] > > Up to 300 group keys may be assigned to an event. Any additional groups beyond that number are ignored. ## Updating Group Profiles To create or update a [group profile](../group-analytics#group-profiles), similarly to user profile operations, at least one (1) profile property must be set. A set operation for a group profile that does not exist would create said profile, while it would update an existing profile. ```python theme={"system"} mp.group_set('company_id', 'company 1', { 'Company Type': 'Analytics', 'Company name': 'Mixpanel' }) ``` ### Upload Group Profiles Using the Users Report It is possible to create Group Profiles by CSV upload as an alternative to the Groups API. [Follow the instructions here to learn how to upload Group Profiles using the Users report](/docs/data-structure/user-profiles#importing-from-csv). ## SDK references for Groups To view the setup guides for implementing Groups using the Groups API, follow the instructions connected to the SDK you are using, cataloged [here](/docs/tracking-methods/sdks). * [HTTP](/reference/group-set-property) * [Javascript SDK](/docs/tracking-methods/sdks/javascript#group-analytics) * [iOS-Swift SDK](/docs/tracking-methods/sdks/swift#group-analytics) * [iOS-Objective-C SDK](/docs/tracking-methods/sdks/ios#group-analytics) * [Android SDK](/docs/tracking-methods/sdks/android#group-analytics) * [Java SDK](/docs/tracking-methods/sdks/java#group-analytics) * [Python SDK](/docs/tracking-methods/sdks/python#group-analytics) * [React Native SDK](/docs/tracking-methods/sdks/react-native#group-analytics) * [Ruby SDK](/docs/tracking-methods/sdks/ruby#group-analytics) ## Add Group Key to User's Profile Adding `: ` to user profiles connects user profiles to group profiles. This allows you to view user group profile properties when analyzing by Users in reports; for example, when creating user cohorts based on group profile properties. This relationship is one-way, meaning that you cannot use user profile properties when analyzing by a Group in reports. Because a user can be part of multiple groups within a group key, set the value of the user property as a list of string values, i.e., `"company_id": ["1", "2"]` # Lookup Tables Source: https://docs.mixpanel.com/docs/data-structure/lookup-tables Enrich ingested data using a CSV This guide covers Lookup Tables and how to use them effectively. Lookup Tables are optional; if you're new to Mixpanel, we recommend starting with our guide on [Events and Properties](/docs/data-structure/events-and-properties). ## Overview Lookup Tables let you enrich your Mixpanel properties ([event properties](/docs/data-structure/events-and-properties) or [user profile properties](/docs/data-structure/user-profiles)) with additional attributes or metadata about these properties. This is done by uploading a CSV containing a join key column and additional property columns, then mapping a Mixpanel property the join key. * If you have a database background, lookup tables are like dimension tables or join tables. * If you have an Excel / Google Sheets background, Lookup Tables are like VLOOKUP. Let's say you're building a media product, and you track a `Song Played` event, which contains a `song_id` property. | event\_name | time | user\_id | song\_id | | - | - | - | - | | Song Played | 2023-05-18T09:00:00 | user123 | c994bb | | Song Played | 2023-05-18T10:15:00 | user456 | d8d949 | | Song Played | 2023-05-18T11:30:00 | user789 | a43fb8 | You want to filter and breakdown this event by other attributes of the song, like `artist` and `genre`, which are not tracked as properties. Lookup Tables let you upload a CSV of data about songs like the table below and map it to the `song_id` property: | song\_id | artist | genre | is\_platinum | name | release\_date | | - | - | - | - | - | - | | c994bb | Drake | Pop | True | Hotline Bling | 2015-10-18T22:00:00 | | d8d949 | Gipsy Kings | Flamenco | False | Bamboleo | 1987-07-12T05:00:00 | | a43fb8 | Daft Punk | House | False | Aerodynamic | 2001-03-12T07:30:00 | Then, whenever you use an event with the `song_id` property, you'll have access to all these other properties of the song as well. Under the hood, Mixpanel joins the two tables like so: | event\_name | time | user\_id | song\_id | Artist | Genre | is\_platinum | Name | Release\_date | | - | - | - | - | - | - | - | - | - | | Song Played | 2023-05-18T09:00:00 | user123 | c994bb | Drake | Pop | True | Hotline Bling | 2015-10-18T22:00:00 | | Song Played | 2023-05-18T10:15:00 | user456 | d8d949 | Gipsy Kings | Flamenco | False | Bamboleo | 1987-07-12T05:00:00 | | Song Played | 2023-05-18T11:30:00 | user789 | a43fb8 | Daft Punk | House | False | Aerodynamic | 2001-03-12T07:30:00 | The benefit is that you don't need to change your tracking code at all. You can upload this Lookup Table after the fact and it automatically joins onto all prior events or user profiles with the mapped property. We also provide an [API](/reference/replace-lookup-table) and [Warehouse Connectors](/docs/tracking-methods/warehouse-connectors#lookup-tables) to keep Lookup Tables synced on a recurring basis. ## Use Cases **Media** One possible use case for Lookup Tables is to load metadata about your content (songs, podcasts, articles) into Mixpanel. If you track some content identifier (eg: song\_id, podcast\_id, article\_id) as a property on your events, you can then upload a Lookup Table with other properties of that content, like name, category, author, or creation date. You can then use any of those properties on any events that have the ID properties. **E-Commerce** If you sell products online, you can load your product catalog into Mixpanel as a Lookup Table. As long as you track a product\_id or sku\_id property on your events, you'll be able to enrich those events with other properties about those products, like their name, category, and price. **B2B** If you have a B2B product, you likely have some key entities that are specific to your product. For example, Github has repositories, Figma has design components, Slack has channels. If they track repository\_id, component\_id, or channel\_id as properties on their events, they can use Lookup Tables to enrich those events with information about those repositories, components, and channels. In general, it is still best to have metadata that don't change over time, and you analyze often, to be tracked as event or user properties. Do refer to the FAQ section on [When shouldn't I use Lookup Tables?](/docs/data-structure/lookup-tables#when-shouldnt-i-use-lookup-tables) ## Create a Lookup Table A Lookup Table CSV must contain at least 2 columns; a join key column and one or more Lookup Table property columns. The first row is the header and will serve as names for the Lookup Table properties for each column. Header names must be unique. The CSV must be valid according to [RFC4180](https://datatracker.ietf.org/doc/html/rfc4180). See our [API reference](/reference/replace-lookup-table) for more specific details about how we parse CSVs. **Example** ```csv theme={"system"} song_id,artist,genre,is_platinum,name,release_date c994bb,Drake,Pop,True,Hotline Bling,2015-10-18T22:00:00Z d8d949,Gipsy Kings,Flamenco,False,Bamboleo,1987-07-12T05:00:00Z a43fb8,Daft Punk,House,False,Aerodynamic,2001-03-12T07:30:00Z ``` ### Join Key Column The first column is reserved for the join key used to map to the property you choose. Each value in this column must be unique with no duplicates with no falsy values. The first row column header is unimportant since it is reserved for the join key and can be any text as long as it is unique to all other column headers in the CSV. > [!NOTE] > > If your join key is a large numeric ID, track the mapped event or user property > as a string. Numeric values above 2^53 (9,007,199,254,740,992) lose precision when > ingested, so the stored value no longer matches the key. The lookup table CSV key > is always stored exactly as written, so only the mapped property needs to change. > See [Numeric data type](/docs/data-structure/property-reference/data-type#numeric). Using the existing example from above, "song\_id" is the Mixpanel property being used to map additional properties, so we set the first column of the Lookup Table CSV using the column header "song\_id" (could be any other string) then add the song\_id values "c994bb", "d8d949", and "a43fb8" in each row. ### Lookup Table Property Column > [!NOTE] > > Lookup Tables property values do not support [Objects and List of Objects](/docs/data-structure/property-reference/data-type#list-property-support) data types. Any additional columns to the right of the first join key column are Lookup Table property columns that contains the additional attributes or metadata that you wish to enrich your data with. The column headers in the first row will serve as names for the Lookup Table properties for each column. This is the name value that will appear in Mixpanel when you query for your Lookup Table properties. Header names must be unique. Under each column, add the Lookup Table property values, corresponding to the join key value of each row. Using the existing example from above, we add the "artist", "genre", "is\_platinum", "name", and "release\_date" Lookup Property names as column headers to the right of the first join key column. Then we add values for each Lookup Table property for each join key. ## Upload a Lookup Table > [!NOTE] > > Free plan users can upload and map a Lookup Table to an existing property locally from within a report. Growth and Enterprise plan users can also create globally persistent mappings to a Lookup Table via the Lexicon. See our [pricing page](https://mixpanel.com/pricing/) for more details. ### Globally using Lexicon Lookup Tables that are uploaded globally via the Lexicon can be accessed by other project users when they build reports. **1. Upload your Lookup Table CSV** Navigate to **Lexicon**, select **Lookup Tables** from the left-hand sidebar, then click **"Import Lookup Table"** to upload a CSV file or manage existing Lookup Tables. ![image](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/lexicon-lookup-table.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=56db9eeee648a607c1c896524ba72456) **2. Map the Lookup Table to an event or user profile property** Once you have uploaded the CSV file for the Lookup Table, map it to an event or user profile property, which is the ID (e.g. song\_id) that the Lookup Table join key will map to. Mixpanel will assume the first column of the CSV is the ID and will join it with that property. ![image](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/lexicon-import-lookup-table.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=bde78f0a56cf092bc27827d5db44e73d) #### Multiple Mappings A single Mixpanel property can only be mapped to one Lookup Table at a time in the Lexicon. For example, if you have a "first\_location" property and it is already mapped to a "City" Lookup Table, it cannot be simultaneously mapped to a "Country" Lookup Table. If you need to map multiple Lookup Tables to a single Mixpanel property for your use case, we recommend one of the two approaches below: 1. [Locally map your Lookup Table to the property within the report](/docs/data-structure/lookup-tables#locally-within-a-report). This option allows you to have multiple local Lookup Tables across different reports, where their context and usage are only relevant to these reports. 2. Create multiple [Custom Properties](/docs/features/custom-properties) that contain the property you want to map to without any functions, then map the different Lookup Tables to each custom property in Lexicon. Since the output of these Custom Properties without functions would be identical to the property itself, the mapping will also be identical and globally accessible via the Custom Properties. Multiple Mixpanel properties can map to the same Lookup Table. For example, if you have a "first\_location" property and a "last\_location" property, they can both be mapped to the same "City" Lookup Table. ### Locally within a Report You can also upload Lookup Tables straight from your reports. Lookup Tables uploaded directly in reports create a local mapping that can only be used while you are in the report. This mapping is not global, and can't be used in other reports. This feature can be useful if you need to have the Lookup Table mapping only for a specific report or if you wish to override an existing globally mapped lookup table for a property within a report. **1. Click the "..." button next to the breakdown property from your report and choose "Map Lookup Table"** This breakdown property will be used as the ID that the Lookup Table join key will map to. ![image](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/map-ephemeral-lookup-table.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=d7a59b9df39a2d6c298cab1789036d0e) **2. Select a Lookup Table to map to the breakdown property** Alternatively, you may upload a new Lookup Table CSV for use locally in the report. ![image](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/create-ephemeral-lookup-table-modal.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=39d6777c2660ccc36db25bc58ae2a3f2) Lookup Tables can be replaced with a fresh copy, either via our UI, [API](/reference/replace-lookup-table), or [Warehouse Connectors](/docs/tracking-methods/warehouse-connectors#lookup-tables). ## Use a Lookup Table Once a Lookup Table is mapped, you can access if by clicking on the mapped property and it will expand the columns from the Lookup Table as if they are nested properties. Lookup Table property names are derived from the header (1st row) in the CSV; these labels cannot be renamed (i.e. using a Lexicon Display Name) within the Mixpanel UI. ![image](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/lookup-table-properties.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=2879836a8f91b38cb8218a34f5f8abe8) These Lookup Table properties can be used like any normal property in reports as filters or breakdowns or even in [custom properties](/docs/features/custom-properties). ![image](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/lookup-table-insights.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=17069bd36c9c266d80b1ffedfe37a3f8) ## Limits * Lookup Tables have a limit of **100MB** per CSV file or roughly 1M rows. * You can use multiple lookup tables in your projects, but the total count of rows has to be less than **5 million rows** across all uploaded CSVs. * Lookup Tables does not support Objects or List of Objects [data types](/docs/data-structure/property-reference/data-type). ## FAQ ### When should I use Lookup Tables? A good use case for Lookup Tables are for mapping metadata that changes over time, since lookup tables can be replaced via the Mixpanel UI or programatically via [API](/reference/replace-lookup-table) or [Warehouse Connectors](/docs/tracking-methods/warehouse-connectors#lookup-tables), and changes are retroactive. A currency exchange rate table mapped to `Order Currency` property which can be used to convert `Order Amount`; or a region territory grouping table mapped to `Country` are good examples. ### When shouldn't I use Lookup Tables? We don't recommend using Lookup Tables for anything with very high cardinality IDs. For properties with high cardinal IDs, we recommend that you track the metadata as event properties. * Don't use Lookup Tables when the ID is a User ID. Instead use [User Profiles](/docs/data-structure/user-profiles). Mixpanel is more optimized for User Profiles, so they don't have any scale limits and support more opinionated workflows in our product (like clicking into a report and seeing the list of User Profiles). * Don't use Lookup Tables as a way to mutate events. For example, it might be tempting to have an Orders lookup table, with 1 row per Order that a customer makes. Then, you can update the Orders table whenever an order is mutated (eg: when you issue a refund). This approach will quickly run into the 100MB scale limit and will make it difficult to do the analysis you need. Instead, we recommend modeling state changes as events, which doesn't have scale limits and preserves the history of state changes. Track an `Order Completed` event and an `Order Refunded` or `Order Modified` event. You can then use our funnels report to answer questions like: "what % of orders were refunded?" ### Who has access? All users will be able to upload and map a Lookup Table to an existing property [locally from within a report](/docs/data-structure/lookup-tables#locally-within-a-report). Only users with "Admin" or "Owner" roles will be able to [make the mapping persistent in Lexicon globally](/docs/data-structure/lookup-tables#globally-using-lexicon) for other users in the project to use. Project Owners can delete any Lookup Table in a project while Admins can only delete their own. Consumers and Analysts cannot delete lookup tables even if they own them. Customers on the Free plan will be able to locally map a property to a Lookup Table, but not have the option of persisting the mapping. ### Where can I find the "id" of the lookup table for API's Path Params? When replacing a lookup table using the [API](/reference/replace-lookup-table), you would need to pass the lookup table's ID as part of the URL in the API call. This `id` can be found in Lexicon under the Lookup Table's Details. See below screenshot as example: ![image](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/lookup-table-id.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=609b868fbdec78af93229a8fd84ace50) ### Can I map it to the \$distinct\_id property? Mapping a Lookup Table to the `$distinct_id` property is not supported. To create a user property for a profile, upload it as a user property directly. # Property Reference Source: https://docs.mixpanel.com/docs/data-structure/property-reference Index of Mixpanel property references: property types, supported data types, default properties, and reserved properties Take a look at any of these pages for more information about Mixpanel's properties. > [card] [Types of Properties](/docs/data-structure/property-reference/properties) > [card] [Supported Data Types](/docs/data-structure/property-reference/data-type) > [card] [Default Properties](/docs/data-structure/property-reference/default-properties) > [card] [Reserved Properties](/docs/data-structure/property-reference/reserved-properties) # Supported Properties Data Type Source: https://docs.mixpanel.com/docs/data-structure/property-reference/data-type The property data types Mixpanel supports (string, numeric, boolean, date, list, object, list of objects) and how each behaves in reports ## Overview Mixpanel supports five data types for properties: String, Numeric, Boolean, Date and List. By choosing the most suitable data type for your properties, you're able to apply a set of operators that are most relevant to your properties in Mixpanel reports, giving you richer insights into your data. ### String * Alphanumeric value e.g. Plan Type = "Free", Artist Name = "Bruno Mars". * String properties have a limit of 255 bytes. * Different [character encodings](https://en.wikipedia.org/wiki/Character_encoding) require different number of bytes to represent a single character. * Mixpanel will treat any property value that does not match any other data type as a String. ### Numeric * Numeric (integer or decimal) value e.g. Cost = 15.00, Quantity = 5. * You can apply operators such as sum, median and percentile on numeric properties. * Numeric values are stored as 64-bit floating point, so integers are exact only up to 2^53 (9,007,199,254,740,992). Larger integers (e.g. 18-19 digit IDs) are rounded and lose precision. * Send large numeric identifiers as strings. An ID is something you match on, not sum or average, so string is the correct type and it preserves every digit. This must happen at tracking time; values already ingested as numbers cannot be recovered. ### Boolean * Mixpanel treats properties as boolean if the value is either the JSON constant `true` or `false`; e.g. Favorite = true, Bookmarked = false. * On Mixpanel, you can typecast any non-boolean property to boolean. * "false", 0, null, undefined, empty string and `not set` will be typecasted to boolean `false`. * "true" and any set value that is not 0 or empty string will be typecasted to boolean `true`. ### Date * An ISO formatted date `YYYY-MM-DDTHH:MM:SS` in UTC e.g. Last Purchase = "2022-10-30T13:30:25", Last Login = "2022-10-29". Note that all timestamps need to be sent in UTC timezone in an ISO format. * Mixpanel treats unix timestamps as Numeric property, however, you can typecast it to Date data type. * Timestamps are ingested with [millisecond precision](/changelogs/2022-11-07-millisecond), but exported with second precision. * You can break down your results by the "Time" event property and breakdown by Hour, Day, Week, Month, Quarter, Year, Hour of Day, or Day of Week. ![/breakdown\_by\_date.gif](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/breakdown_by_date.gif?s=2724e13472d90a09378a0b280d618849) ### List * A list of values as a JSON array e.g. Favorite Genres = `["Folk","Alternative"]` or Favorite Numbers = `[1,5,10.0]` * Limits of a List property: Event Property = 8KB, User Profile Property = 256KB * Each item in a list would be further limited by their data type's limits; example: a list of strings would be limited by 255 bytes per string. Also refer to [List of Objects](/docs/data-structure/property-reference/data-type#list-of-objects-property-support) covered below. * Mixpanel lists are not ordered (i.e. position of values in a list are not significant in Mixpanel reports) and are useful for grouping or analyzing similar values across events. Read more details on [List Property Support](/docs/data-structure/property-reference/data-type#list-property-support) in reports. * Note: Editing of list properties is not supported directly within the Mixpanel UI. To modify list properties, you must use the [Mixpanel API](/reference/profile-set) or one of our SDKs. ### Object > [!NOTE] > > Mixpanel supports object in a limited capacity. We recommend using the five non-object data types for most use cases as they are fully supported in the UI. * Arbitrarily-nested groups of JSON key-value pairs e.g. Experiments = `{"Exp Onboarding":"Quick","Exp Checkout":"Without Coupon"}` * Limits of a Object property: Event Property = 8KB, User Profile Property = 256KB, max 255 keys per nested object with a max nesting depth of 3 * Mainly supported in core reports (i.e. Insights, Funnels, Flows, Retention, Users / Cohorts, Events) as filters and breakdowns. Property Names (ie keys) within an object are not supported in Lexicon. ### List of Objects * A JSON array of 1 level JSON objects with each object having similar sets of key-value pairs e.g. Cart = `[{"Brand":"Puma","Category":"Jacket","Price":30}, {"Brand":"Adidas","Category":"Hats","Price":15}]` * Limits of a List of Objects: Event Property = 8KB, User Profile Property = 256KB, max 255 keys and no nesting; average list size = 50 objects * Mainly supported in core reports (i.e. Insights, Funnels, Flows, Retention, Users / Cohorts, Events) as filters and breakdowns. Property Names (ie keys) within an object are not supported in Lexicon. ## List Property Support List is an iterable data type, which makes them inherently different from non-iterable data types (ie: strings, numbers, time). This section highlights a few scenarios on how list properties behave within Mixpanel. The examples used here are from the Insights report, but the principles of how filter and breakdowns work with list properties remain the same across reports. ### Sample Scenario Let's assume an e-commerce platform has these 3 events: * Event 1: *PurchaseCompleted* * *List of ProductIDs* = `["P1", "P2", "P4"]` * Event 2: *PurchaseCompleted* * *List of ProductIDs* = `["P2", "P3", "P4"]` * Event 3: *PurchaseCompleted* * *List of ProductIDs* = `["P3", "P4"]` Now let's assume that *"List of ProductIDs"* is mapped to a [lookup table](/docs/data-structure/lookup-tables) called *Products* which looks like this: | ProductID | Category | Price | | - | - | - | | P1 | Clothing - pants | 100 | | P2 | Clothing - shirt | 54 | | P3 | Shoes | 109 | | P4 | Electronics - music | 199 | ### List Breakdown * Breakdown a list property * **Question:** TOTAL of *PurchaseCompleted* broken down by *"List of ProductIDs"* * **Answer:** | List of ProductIDs | Total | | - | - | | P1 | 1 | | P2 | 2 | | P3 | 2 | | P4 | 3 | * **What's going on here?** When breaking down, each of the list's contents is evaluated as a single item. So for example, P2 is present in Event 1 and Event 2, so the TOTAL (of the *PurchaseCompleted* event) where "P2" is present is 2. * Breakdown by [lookup profile property](/docs/data-structure/lookup-tables) that's joined to a list property * **Question:** TOTAL of *PurchaseCompleted* broken down by *"List of ProductIDs"* → *Category* * **Answer:** | List of ProductIDs | Total | | - | - | | Clothing - pants | 1 | | Clothing - shirt | 2 | | Shoes | 2 | | Electronics - music | 3 | * **What's going on here?** When breaking down, each of the list's contents is evaluated as a single item after being mapped to the lookup table. So for example, P2 is present in Event 1 and Event 2, and P2 mapped to the lookup table which gets us *Category* = "Clothing - shirt", so the TOTAL (of *PurchaseCompleted* events) where "Clothing - shirt" is present is 2. The thing to note here is that the results are identical to when *PurchaseCompleted* was broken down by *"List of ProductDs"*, except the *ProductIDs* are replaced by *Category*. * Breakdown by lookup profile property that's joined to a list property AND by the list property itself * **Question:** TOTAL of *PurchaseCompleted* broken down by *"List of ProductIDs"* → *Category* AND *"List of ProductIDs"* (2 breakdowns applied) * **Answer:** | List of ProductIDs.Category | List of ProductIDs | Total | | - | - | - | | Clothing - pants | P1 | 1 | | | P2 | 1 | | | P4 | 1 | | Clothing - shirt | P1 | 1 | | | P2 | 2 | | | P3 | 1 | | | P4 | 2 | | Shoes | P2 | 1 | | | P3 | 2 | | | P4 | 2 | | Electronics - music | P1 | 1 | | | P2 | 2 | | | P3 | 2 | | | P4 | 3 | * **What's going on here?** For each breakdown value, Mixpanel recomputes the list breakdown. So for example, TOTAL (*PurchaseCompleted*) with "*List of ProductIDs*" → *Category* = "Shoes" should get us Event 2 and Event 3:When these 2 events are broken down by *"List of ProductIDs"*, we get these results for "Shoes"(*ProductID* = "P3"): * Event 2: *PurchaseCompleted* * *List of ProductIDs* = `["P2", "P3", "P4"]` * Event 3: PurchaseCompleted * *List of ProductIDs* = `["P3", "P4"]` * P2: 1 * P3: 2 * P4: 2 ### List Filter When filtering using a list property, you may additionally configure whether all items in the list must match your expression and whether to return all items from a list in your analysis. 1. **Any in List:** If any item in your list matches your filter criteria, the event will be included. **Example:** * Products: \["a","b","c","d"] * Filter criteria: "Products" = "a", Any in List * Result: The event is included since at least 1 item in the Products list property is "a". 2. **All in List:** If every item in your list matches your filter criteria, the event will be included. **Example:** * Products: \["a","b","c","d"] * Filter criteria: "Products" = "a", All in List * Result: The event is not included because not all items in the Products list property is "a" 3. **Include Matching Items:** If the event matches your filter criteria and the list property is included as a breakdown, return only the matching items from the list in the results. **Example:** * Products: \["a","b","c","d"] * Filter criteria: "Products" = "a", Any in List, Include Matching Items * Result: The event is included since at least 1 item in the Products list property is "a". In the resulting report, only "a" appears as a breakdown segment. 4. **Include All Items:** If the event matches your filter criteria and the list property is included as a breakdown, return all items from the list in the results. **Example:** * Products: \["a","b","c","d"] * Filter criteria: "Products" = "a", Any in List, Include All Items * Result: The event is included since at least 1 item in the Products list property is "a". In the resulting report, "a", "b", "c", and "d" appears as a breakdown segment. **Additional Examples:** * Filter by any element of a list property * **Question:** TOTAL of *PurchaseCompleted* filtered by | "List of ProductIDs" | Any | = (equals) | "P1" | | - | - | - | - | * **Answer:** *PurchaseCompleted - TOTAL*: 1 * **What's going on here?** The "Any" operator filters down events when the filtered value matches ANY item in the list property. So in this example, the only event in which "List of ProductIDs" has "P1" present even once is Event 1, so the total event count for this filter is 1. * Filter by all elements of a list property * **Question**: TOTAL of *PurchaseCompleted* filtered by | "List of ProductIDs" | All | = (equals) | "P1" | | - | - | - | - | * **Answer:** *PurchaseCompleted - TOTAL*: 0 * **What's going on here?** The "All" operator filters down events when the filtered value matches ALL of the items in the list property. So in this example, there is no event in which "List of ProductIDs" has all the elements equal to "P1", so the total event count for this filter is 0. * Filter by list property and broken down by list property * **Question:** TOTAL of PurchaseCompleted filtered byBroken down by "List of ProductIDs" | "List of ProductIDs" | Any | = (equals) | "P1" | | - | - | - | - | * **Answer:** | List of ProductIDs | Total | | - | - | | P1 | 1 | | P2 | 1 | | P4 | 1 | * **What is going on here?** There is only 1 event that contains "P1" (Event 1, *"List of ProductIDs"* = \["P1", "P2", "P4"]), so when that one event is broken down by *"List of ProductIDs"*, Mixpanel evaluates each list item individually, thereby getting us: * P1: 1 (1 event) * P2: 1 (1 event) * P4: 1 (1 event) * Filter by lookup profile property that is joined to a list property and then broken down by list property * **Question:** TOTAL of *PurchaseCompleted* filtered byBroken down by "List of ProductIDs" | "List of ProductIDs" → Category | Any | = (equals) | "Shoes" | | - | - | - | - | * **Answer:** | List of ProductIDs | Total | | - | - | | P2 | 1 | | P3 | 2 | | P4 | 2 | * **What is going on here?** There are 2 events that contain where the *Category* mapping for at least one of the *ProductIDs* in "*List of ProductIDs*" is equal to "Shoes" (i.e. *ProductID* = P3).When these two events are broken down by *"List of ProductIDs"*, Mixpanel evaluates each list item individually, thereby getting us: * Event 2: PurchaseCompleted * List of ProductIDs = \["P2", "P3", "P4"] * Event 3: PurchaseCompleted * List of ProductIDs = \["P3", "P4"] * P2: 1 (1 event) * P3: 2(2 events) * P4: 2 (2 events) * Filter by lookup profile property that is joined to a list property (with multiple matching values) and then broken down by list property * **Question**: TOTAL of *PurchaseCompleted* filtered byBroken down by "List of ProductIDs" | "List of ProductIDs" → Category | Any | ∋ (contains) | "Clothing" | | - | - | - | - | * **Answer:** | List of ProductIDs | Total | | - | - | | P1 | 1 | | P2 | 2 | | P3 | 1 | | P4 | 2 | * **What is going on here?** This filter can be read as "for any of the items in *'List of ProductIDs'* , the lookup property *Category* contains the string 'Clothing'". This operation is filtering down to all the events that contain the *Category* mapping for the *ProductID* contains EITHER "Clothing - pants" or "Clothing - shirt", and that gives us 2 events: * Event 1: PurchaseCompleted * List of ProductIDs \["P1","P2","P4"] * Event 2: PurchaseCompleted * List of ProductIDs \["P2","P3","P4"] * Therefore, when those two events are broken down by "List of ProductIDs", Mixpanel evaluates each item of the list individually and we end up getting: * P1: 1 * P2: 2 * P3: 1 * P4: 2 * Filter by lookup profile property that is joined to a list property (numeric filter) and then broken down by list property * **Question**: TOTAL of *PurchaseCompleted* filtered byBroken down by *"List of ProductIDs"* | "List of ProductIDs" → Price (number) | Any | \< (less than) | 100 | | - | - | - | - | * **Answer:** | List of ProductIDs | Total | | - | - | | P1 | 1 | | P2 | 2 | | P3 | 1 | | P4 | 2 | * **What is going on here?** The filter can be read as "for any item in *'List of ProductIDs',* the lookup property *Price* is less than 100" and it only matches 1 product, and that is P2. Therefore, what this operation is doing is filtering down to all the events that contain P2 as ANY of the values in "List of ProductDs", and that gives us 2 events:Therefore, when those two events are broken down by *"List of ProductIDs"*, Mixpanel evaluates each item of the list individually and we end up getting: * Event 1: *PurchaseCompleted* * *List of ProductIDs* = \["P1", "P2", "P4"] * Event 2: PurchaseCompleted * *List of ProductIDs* = \["P2", "P3", "P4"] * P1: 1 * P2: 2 * P3: 1 * P4: 2 ## List of Objects Property Support List of objects is a List property where all items contained are Objects. List of objects are generally useful when tracking a list of complex things. Some examples: * items in a cart * search results * images in a slideshow In each case, the object will have multiple properties, such as "price" and "brand" for items in a cart. ```json theme={"system"} "event": "Product Added", "properties": { "cart": [ { "brand": "Puma", "category": "Jacket", "price": 30 }, { "brand": "Adidas", "category": "Hats", "price": 15 } ] } ``` ### Breakdown and Filter List of objects can be used like other properties in Mixpanel. Upon selecting a list of objects property, you will be prompted to select another property common to the objects in the list. Usage in measurements, filters, and breakdowns follows the same behavior as other [list properties](/docs/data-structure/property-reference/data-type#list-property-support). ### Property Computation We provide a few convenient property computation after a list of objects property is selected. This does a computation on the property, and works similarly to [custom properties](/docs/features/custom-properties). ![list computed properties](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/list-computed-properties.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=f8675709b42782a3383e62071a907d8f) #### Size The size, or length of the list as a numeric property. #### Sum Prompts a selection of a numeric property contained within the objects of the list. This will give the total for the whole list for that property. #### Distinct Count Prompts a selection of a property contained within the objects of the list. This will give the number of unique values for that property in the list. ## Falsy Values ### Undefined and Null **Undefined** Undefined values are seen when one or more of the events being measured in a query do not contain the property used for breakdown. For example, building a report using Page View events broken down by a campaign ID property would Page Views with a set campaign ID property by their value, and group events without a set Campaign ID property to undefined. Undefined values are parsed as `(not set)` in the UI. There are several reasons why you might see "undefined" values throughout Mixpanel reports when segmenting: * \*\*\*The specific property you are segmenting by is not always sent along with the event you are analyzing. \*\*\*For example, let’s say you are segmenting the event “App Open” by the property “Account type” If there are instances where App Open fires without the Account type property getting sent with it, these will be categorized as “undefined” when you segment by Account type. Another common example is UTM parameters - “undefined” represents users who fired an event without any UTM in the URL that brought the user to your site. * When segmenting an event by a User Profile property, ***you’ll see “undefined” if there are User Profile profiles that do not contain that property or if the event was triggered by a user without a User Profile at all.*** For example, let’s say you’re segmenting the event “Song Play” by the User Profile property “Favorite Genre.” If there are profiles that have triggered Song Play but don’t have the Favorite Genre property, that value will be “undefined.” Triggers of Song Play by users without a User Profile will also show up under “undefined.” * ***For geolocation data (City, Region, Country), the user’s IP could not be mapped to a location, or their IP was not included with the request.*** For JavaScript implementations, City, Region, and Country are [default properties](/docs/data-structure/property-reference/default-properties). However, if the IP address of the user is not in Mixpanel’s geolocation database and can’t be mapped to a city, region, or country, they will be “undefined” in reports. For server-side implementations, City, Region, and Country can be “undefined” if the IP address is not included with the request. [Read more about how Mixpanel maps IP to location.](/docs/tracking-best-practices/geolocation) **Null** [Null values](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/null) represents the intentional absence of any object value. Unlike undefined values, null values are usually explicitly defined as a value of a property. Null values are parsed as `(not set)` in the UI, but will appear as `` or `null` when looking at raw data. #### Remove “undefined” & "null" values from reports If you do not want to see “undefined” or "null" values in your report, you can remove them by: 1. Unchecking the “undefined/null” box in the visualization legend. 2. Looking only at instances where the property in question “is set" - this will exclude values where you see "undefined" or "null": ![image](https://mintcdn.com/mixpanel-edb78807/Y6MSfzF-TDZ89Tu0/images/1a2465e1-da8d-4fe4-937a-5753716129b3.png?fit=max\&auto=format\&n=Y6MSfzF-TDZ89Tu0\&q=85\&s=28281dd84ed9df150958484d91c8bdcf) 3. Directly exclude undefined or null values from an Insights visualization by hitting the exclude action: ![image](https://mintcdn.com/mixpanel-edb78807/2dQbP7q9Vb6iLUv1/images/4d010827-cc4e-4a11-9716-cd3bfbaebadd.png?fit=max\&auto=format\&n=2dQbP7q9Vb6iLUv1\&q=85\&s=28e3cc1f2a0969cc3bef1b9eb6701459) ### Empty String Empty string refers to a string with a length of zeros, meaning there are no characters or symbols. This happens when a property is sent with a value of `""`. Empty string are parsed as `(empty string)` in the UI. # Default Properties Source: https://docs.mixpanel.com/docs/data-structure/property-reference/default-properties Automatically collected properties Mixpanel's [Data Ingestion APIs](/reference/ingestion-api) and [Client-Side SDKs](/docs/tracking-methods/choosing-the-right-method#client-side-tracking) automatically collect certain properties on every event or user profile. Do also note that some Customer Data Platforms (CDPs) that integrate with Mixpanel may also map their own properties to Mixpanel default properties. This document describes what those properties mean. ## Ingestion APIs Mixpanel’s ingestion APIs can collect user geolocation data (City, Region, Country) as properties if IP address is present. Our client-side SDKs by default pull the user’s IP address when sending data to our ingestion APIs. The IP address is then cross-referenced against a local copy of MaxMind’s ([third-party IP geolocator](https://www.maxmind.com/en/home)) GeoIP database to estimate geolocation data. Mixpanel does not store the IP address and is discarded once geolocation data is derived. To disable capturing of geolocation properties (i.e. City, Region, Country) refer to the respective SDKs or API documentation. For a quick reference, refer to examples on [disabling geolocation on client-side SDKs](/docs/privacy/protecting-user-data#disabling-geolocation) and [server-side best practice on tracking geolocation](/docs/tracking-best-practices/server-side-best-practices#tracking-geolocation-server-side). Note that there is currently no means to selectively disable one or two of the three geolocation properties. ### Event Properties | **Raw Name** | **Display Name** | **Description** | | - | - | - | | \$city | City | The city of the event sender parsed from the IP property or the Latitude and Longitude properties. | | \$region | Region | The region (state or province) of the event sender parsed from the IP property or the Latitude and Longitude properties. | | mp\_country\_code | Country | The country of the event sender parsed from the IP property or the Latitude and Longitude properties. The value is stored as a 2-letter country code in the raw data and parsed into the country name in the UI. | | \$mp\_api\_endpoint | API Endpoint | Mixpanel property to record the API endpoint the data was sent to: **api.mixpanel.com** - default ingestion **api-eu.mixpanel.com** - EU data ingestion **api-in.mixpanel.com** - India data ingestion **api-js.mixpanel.com** - Javascript SDK | | \$import | Import | Internal Mixpanel property set to `true` to indicate that events were sent through [/import API](/reference/import-events). | | \$mp\_api\_timestamp\_ms | API Timestamp | UTC timestamp in milliseconds when the event was received by our API. | | mp\_processing\_time\_ms | Time Processed (UTC) | UTC timestamp in milliseconds when the event was processed by Mixpanel servers. | | \$mp\_event\_size | Event Size | The size, in bytes, of the event ingested before transformation. | | \$mp\_raw\_user\_agent | Raw User Agent | The raw user agent associated with the request. If the sender specified a user agent via `$mp_user_agent` or `$mp_raw_user_agent`, this is that value; otherwise, it is the user agent extracted from the HTTP request sent to Mixpanel. | | \$mp\_actor\_type | Actor Type | Classification of the user agent behind the event: **agent** - a request from an LLM acting on behalf of a human user (e.g. the user agents of ChatGPT or Claude Code) **bot** - generic automated traffic, such as crawlers, search indexers, and other automated collectors **none** - the default when the request is classified as neither an agent nor a bot | | \$mp\_actor\_name | Actor Name | The classified identity behind an `agent` or `bot` actor type (e.g. `GPTBot`, `ClaudeBot`, `MistralAI-User`). Only present when \$mp\_actor\_type is `agent` or `bot`. | > [!NOTE] > > `$mp_actor_type` and `$mp_actor_name` are derived from the request's user agent. For how classification works, including how to forward your end user's user agent when tracking server-side, see [Identify AI Agent and Bot Traffic](/docs/tracking-best-practices/bot-traffic#identify-ai-agent-and-bot-traffic). ### User Properties Do note that Mixpanel's default user properties are only updated when you send or update at least one property yourself (via [\$set](/reference/profile-set) or [\$set\_once](/reference/profile-set-property-once) operations). Please, refer to this article to [understand how to send or update profile properties](/docs/data-structure/user-profiles). | **Raw Name** | **Display Name** | **Description** | | - | - | - | | \$city | City | The city of the user parsed from the IP property or the Latitude and Longitude properties. | | \$region | Region | The region (state or province) of the user parsed from the IP property or the Latitude and Longitude properties. | | \$country\_code | Country Code | The country of the user parsed from the IP property or the Latitude and Longitude properties. The value is stored as a 2-letter country code in the raw data and parsed into the country name in the UI. | | \$geo\_source | Geo Source | Set to "reverse\_geocoding" if profile geolocation properties (Country Code, Region, and City) were determined through [Latitude and Longitude](/docs/tracking-best-practices/geolocation#define-latitude-and-longitude). | | \$timezone | Timezone | Timezone of the user parsed from the IP property or the Latitude and Longitude properties. | | \$last\_seen | Updated at | The last time a user profile property was set or updated **(this should not be set manually)**. Passing `$ignore_time` as `true`, typically for server-side updates, will skip updating the \$last\_seen property. See example [here](/docs/tracking-methods/sdks/php#setting-profile-properties). | ## Client-side SDKs Note that the following SDKs wrap around our other SDKs; and as such, would also inherit the appropriate default properties from these wrapped SDKs indicated in the tables below: * [React Native](/docs/tracking-methods/sdks/react-native) wraps around Android and Swift SDK; `mp_lib` will be set to `react-native` with `$lib_version` set as React Native's library version. * [Flutter](/docs/tracking-methods/sdks/flutter) wraps around Javascript, Android, and Swift SDK; `mp_lib` will be set to `flutter` with `$lib_version` set as the Flutter's library version. ### Event Properties | **Raw Name** | **Display Name** | **Description** *Scroll right to see more columns -->* | [**Javascript**](/docs/tracking-methods/sdks/javascript) | [**Android**](/docs/tracking-methods/sdks/android) | **iOS [Objective-C](/docs/tracking-methods/sdks/ios) / [Swift](/docs/tracking-methods/sdks/swift)** | [**Unity**](/docs/tracking-methods/sdks/unity) | | - | - | - | :-: | :-: | :-: | :-: | | \$device\_id | Device ID | Autogenerated ID that is local to the device. Calling reset() regenerates this value. More details [here](/docs/tracking-methods/id-management/identifying-users-simplified). | ✅ | ✅ | ✅ | ❌ | | \$user\_id | User ID | The identified ID of the user. Calling identify() sets this. More details [here](/docs/tracking-methods/id-management/identifying-users-simplified). | ✅ | ✅ | ✅ | ❌ | | \$insert\_id | Insert ID | A unique identifier for the event, used to deduplicate events that are accidentally sent multiple times. More details [here](/reference/import-events#propertiesinsert_id). | ✅ | ✅ | ✅ | ✅ | | mp\_lib | Mixpanel Library | The Mixpanel library that sent the event. | `web` | `android` | `iphone` / `swift` | `unity` | | \$lib\_version | Library Version | Mixpanel library version. | ✅ | ✅ | ✅ | ✅ | | mp\_sent\_by\_lib\_version | Sent By Library Version | Mixpanel library version used to send data (not necessarily the same as the version which enqueued the data). | ✅ | ❌ | ❌ | ❌ | | \$os | Operating System | OS of the event sender. | ✅ | ✅ | ✅ | ✅ | | \$os\_version | OS Version | The current version of operating system on the device. | ❌ | ✅ | ✅ | ✅ | | \$browser | Browser | Name of the browser. | ✅ | ❌ | ❌ | ❌ | | \$browser\_version | Browser Version | Version of the browser. | ✅ | ❌ | ❌ | ❌ | | \$app\_build\_number | App Build Number | General build of the app. | ❌ | ✅ | ✅ | ❌ | | \$app\_version\_string | App Version | Current app version. | ❌ | ✅ | ✅ | ✅ | | \$device | Device | Name of the event sender’s device, if they’re on mobile web. | ✅ | ❌ | ❌ | ✅ | | \$screen\_height | Screen Height | The height of the device screen in pixels / points (iOS). | ✅ | ✅ | ✅ | ✅ | | \$screen\_width | Screen Width | The width of the device screen in pixels / points (iOS). | ✅ | ✅ | ✅ | ✅ | | \$screen\_dpi | Screen DPI | Pixel density of the device screen. | ❌ | ✅ | ❌ | ✅ | | \$current\_url | Current URL | The URL of the page on which the event was tracked. | ✅ | ❌ | ❌ | ❌ | | \$initial\_referrer | Initial Referrer | Referring URL when the user first arrived on your site. Defaults to "\$direct" if the user is not referred. | ✅ | ❌ | ❌ | ❌ | | \$initial\_referring\_domain | Initial Referring Domain | Referring domain at first arrival. Defaults to "\$direct" if the user is not referred. | ✅ | ❌ | ❌ | ❌ | | \$referrer | Referrer | Referring URL including your own domain. Might not be present if document.referrer does not return a value. As opposed to \$initial\_referrer and \$initial\_referring\_domain, this property will be omitted if the user lands directly or the referring website adds the rel="noreferrer" parameter. | ✅ | ❌ | ❌ | ❌ | | \$referring\_domain | Referring Domain | Referring domain including your own domain. Might not be present if document.referrer does not return a value. As opposed to \$initial\_referrer and \$initial\_referring\_domain, this property will be omitted if the user lands directly or the referring website adds the rel="noreferrer" parameter. | ✅ | ❌ | ❌ | ❌ | | \$search\_engine | Search Engine | The search engine that the customer used when they arrived at your domain. | ✅ | ❌ | ❌ | ❌ | | mp\_keyword | Search Keyword | Search keywords detected on the referrer from a search engine to your domain. This property is only collected when search keywords are included in a URL. | ✅ | ❌ | ❌ | ❌ | | utm\_source, utm\_medium, etc. | UTM Parameters | UTM tags derived from the URL a customer clicked to arrive at your domain. Each UTM will be collected under its own property. More details [here](/docs/tracking-methods/sdks/javascript#tracking-utm-parameters). | ✅ | ❌ | ❌ | ❌ | | \$manufacturer | Manufacturer | Device manufacturer. | ❌ | ✅ | ✅ | ✅ | | \$brand | Brand | Device brand. | ❌ | ✅ | ❌ | ❌ | | \$model | Model | The model of the device. | ❌ | ✅ | ✅ | ✅ | | \$watch\_model | Watch Model | The model of the iOS watch. | ❌ | ❌ | ✅ | ❌ | | \$carrier | Carrier | Wireless carrier of the device owner. | ❌ | ✅ | ✅ | ❌ | | \$radio | Radio | Current [cellular network communication standard](https://www.objc.io/issues/5-ios7/iOS7-hidden-gems-and-workarounds/#know-your-radio)(opens in a new tab) (3G, 4G, LTE, etc). | ❌ | ❌ | ✅ | ✅ | | \$wifi | Wifi | Set to true if the user’s device has an active, available Wifi connection, false if not. | ❌ | ✅ | ✅ | ✅ | | \$bluetooth\_enabled | Bluetooth | Set to true if Bluetooth is enabled, false if not. | ❌ | ✅ | ❌ | ❌ | | \$bluetooth\_version | Bluetooth Version | Set to "none", "ble", or "classic". | ❌ | ✅ | ❌ | ❌ | | \$has\_nfc | Has NFC | The device supports Near Field Communication(NFC). Set to true if the device hardware supports NFC, false if not. | ❌ | ✅ | ❌ | ❌ | | \$has\_telephone | Has Telephone | Set to true if this device has telephone functionality, false if not. | ❌ | ✅ | ❌ | ❌ | | \$google\_play\_services | Google Play Services | Verifies that Google Play services is installed and enabled on this device, and that the version installed on this device is no older than the one required by this client. | ❌ | ✅ | ❌ | ❌ | | \$duration | Duration | A property that is appended to an event to capture the elapsed time (in seconds) between a `time_event` and a `track` call. See [time\_event](https://github.com/mixpanel/mixpanel-js/blob/master/doc/readme.io/javascript-full-api-reference.md#mixpaneltime_event) in Javascript SDK for example. | ✅ | ✅ | ✅ | ✅ | ### User Properties Do note that Mixpanel's default user properties are only updated when you send or update at least one property yourself (via [\$set](/reference/profile-set) or [\$set\_once](/reference/profile-set-property-once) operations). Please, refer to this article to [understand how to send or update profile properties](/docs/data-structure/user-profiles). | **Raw Name** | **Display Name** | **Description** *Scroll right to see more columns -->* | [**Javascript**](/docs/tracking-methods/sdks/javascript) | [**Android**](/docs/tracking-methods/sdks/android) | **iOS [Objective-C](/docs/tracking-methods/sdks/ios) / [Swift](/docs/tracking-methods/sdks/swift)** | [**Unity**](/docs/tracking-methods/sdks/unity) | | - | - | - | :-: | :-: | :-: | :-: | | \$lib\_version | Library Version | Last used Mixpanel library version (also applies to React Native and Flutter wrapper SDKs). | ❌ | ❌ | ❌ | ✅ | | \$android\_lib\_version | Android Lib Version | Last used Mixpanel Android / Unity library version. | ❌ | ✅ | ❌ | ✅ | | \$ios\_lib\_version | iOS Lib Version | Last used Mixpanel iOS / Unity library version. | ❌ | ❌ | ✅ | ✅ | | \$swift\_lib\_version | Swift Lib Version | Last used Mixpanel Swift library version. | ❌ | ❌ | ✅ | ❌ | | \$os | Operating System | Last OS of the event sender. | ✅ | ❌ | ❌ | ✅ | | \$android\_os | Android OS | Set when Android operating system was used. | ❌ | ✅ | ❌ | ✅ | | \$android\_os\_version | Android OS Version | Last version of Android on the device. | ❌ | ✅ | ❌ | ✅ | | \$ios\_version | iOS Version | Last version of iOS on the device. | ❌ | ❌ | ✅ | ✅ | | \$browser | Browser | Name of the browser. | ✅ | ❌ | ❌ | ❌ | | \$browser\_version | Browser Version | Version of the browser. | ✅ | ❌ | ❌ | ❌ | | \$android\_app\_version | Android App Version | Current Android app version ([versionName](https://developer.android.com/studio/publish/versioning)). | ❌ | ✅ | ❌ | ✅ | | \$android\_app\_version\_code | Android App Version Code | Current Android app version code ([versionCode](https://developer.android.com/studio/publish/versioning)). | ❌ | ✅ | ❌ | ❌ | | \$ios\_app\_release | iOS App Release | The release or version number of the iOS app ([CFBundleShortVersionString](https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleshortversionstring)). | ❌ | ❌ | ✅ | ✅ | | \$ios\_app\_version | iOS App Version | The version of the build that identifies an iteration of the iOS app ([CFBundleVersion](https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleversion)). | ❌ | ❌ | ✅ | ❌ | | \$initial\_referrer | Initial Referrer | Referring URL when the user first arrived on your site. Defaults to "\$direct" if the user is not referred. | ✅ | ❌ | ❌ | ❌ | | \$initial\_referring\_domain | Initial Referring Domain | Referring domain at first arrival. Defaults to "\$direct" if the user is not referred. | ✅ | ❌ | ❌ | ❌ | | initial\_utm\_source, initial\_utm\_medium, etc. | Initial UTM Parameters | UTM tags seen for the first time from the URL a customer clicked to arrive at your domain. Each UTM will be collected under its own property. More details [here](/docs/tracking-methods/sdks/javascript#tracking-utm-parameters). | ✅ | ❌ | ❌ | ❌ | | \$android\_manufacturer | Android Manufacturer | Android device manufacturer. | ❌ | ✅ | ❌ | ❌ | | \$android\_brand | Android Brand | Android device brand. | ❌ | ✅ | ❌ | ❌ | | \$android\_model | Android Model | The model of the Android device. | ❌ | ✅ | ❌ | ✅ | | \$ios\_device\_model | iOS Device Model | The model of the iOS device. | ❌ | ❌ | ✅ | ✅ | # Types of Properties in Mixpanel Source: https://docs.mixpanel.com/docs/data-structure/property-reference/properties The property types in Mixpanel: event, super, user profile, group profile, lookup table, default, and reserved properties, and when each applies ## Overview Properties are attributes that help you define the specifics of an **Event**, a **User**, or a **Group**. Mixpanel has many Properties defined in its Data Model. | **Property Type** | **Description** | | - | - | | [Event Properties](/docs/data-structure/events-and-properties) | Event Properties describes the events that are tracked within your product. | | [Super Properties](/docs/tracking-methods/sdks/javascript#super-properties) | Super Properties are a logical term for global Event Properties that, after registration, are saved into the end user's device, and appended to every event from that device until persistence is cleared. This logical term is mostly applicable to our client-side libraries. | | [User Profile Properties](/docs/data-structure/user-profiles) | User Profile Properties describe your users (they typically store current demographic information). User profiles are joined to events based on [Distinct ID](/docs/tracking-methods/id-management/identifying-users-simplified#what-is-distinct-id). | | [Group Profile Properties](/docs/data-structure/group-analytics#group-profiles) | Group Profile Properties describe group level information (similar to User Profiles Properties at user level). With Mixpanel’s [Group Analytics](/docs/data-structure/group-analytics), multiple users can be grouped and behavioral data analyzed at a customized group level (such as company, account). Group profiles are joined to events on your chosen [Group Key](/docs/data-structure/group-analytics/group-analytics-implementation#group-keys-in-project-settings). | | [Lookup Tables](/docs/data-structure/lookup-tables) | Lookup Tables allow you to dynamically extend additional properties mapped to an existing Event or User Property. For example, if you create a lookup table for "Songs" (that contains additional properties like `hash_tags`, `top_10`, `all_time_favorite`) and map it to an event property `song_id`; you can use these additional properties when doing filtering or breakdowns for events that has `song_id` as an event property. | | [Default Properties](/docs/data-structure/property-reference/default-properties) | Default Properties (for Events and User Profiles) are collected and populated with values automatically in Mixpanel. This can happen upon data ingestion or when using certain Mixpanel client-side SDKs. Typically, they have a dollar sign (\$) or “mp\_” as prefix to distinguish them from normal properties. | | [Reserved Properties](/docs/data-structure/property-reference/reserved-properties) | Mixpanel reserves certain property names (for [Events](/docs/data-structure/events-and-properties#reserved-event-properties) and [User Profiles](/docs/data-structure/user-profiles#reserved-user-properties)) for special use cases, and these may or may not be automatically populated with values. The purpose of such Reserved Properties are for processing (ie event time stamping) or for specific system features (eg: cohort exports). Examples: `time`, `$email`, `$phone`, `$name`, `$created`. | # Reserved Properties Source: https://docs.mixpanel.com/docs/data-structure/property-reference/reserved-properties Properties used for system features Mixpanel reserves certain property names for special processing or for specific system features. These properties, when populated, will affect the way Mixpanel processes your data. ## Reserved Profile Properties > **Note:** Also refer to the list of Mixpanel [Default Properties](/docs/data-structure/property-reference/default-properties) indicated in our documentation. | **Raw Name** | **Display Name** | **Description** | | - | - | - | | \$distinct\_id | Distinct ID | Mixpanel's internal unique identifier for a profile. See [Identifying Users](/docs/tracking-methods/id-management/identifying-users-simplified) and [Group Profiles](/docs/data-structure/group-analytics#group-profiles) | | \$name, \$first\_name, \$last\_name | Name, First Name, Last Name | The user's / group's general name, as well as, first and last names. These are primarily useful because they are used, if available, in various Mixpanel UI / reports. For user [Cohort Syncs](/docs/cohort-sync), only `$first_name` and `$last_name` is exported. | | \$email | Email | The user's / group's email address. You must set this property if you want to send emails to users via partners receiving cohorts from our [Cohort Syncs](/docs/cohort-sync). | | \$phone | Phone | The user's / group's phone number. You must set this property if you want to send SMS to users via partners receiving cohorts from our [Cohort Syncs](/docs/cohort-sync). Note that a '+' needs to precede international phone numbers. If the user does not import a phone number with the '+' sign in front, the country code will be prefixed to the front of the number based on the \$country\_code default property, resulting in a phone number with two country codes. | | \$avatar | Avatar URL | Set this property to a URL resource of a gif, jpg, jpeg, or png to update the profile picture in a profile. This property will override a profile picture pulled from [Gravatar](https://gravatar.com/). | | \$created | Created | The time that the profile was created. Note that this is not auto-populated. | | \$mp\_first\_event\_time | First Seen | Mixpanel calculated property that represents the time of the user's (or group's) very first event in Mixpanel. This can be used to filter/segment reports by users (or groups) who were "new" in a particular timeframe. | ## Reserved Event Properties > **Note:** Also refer to the list of Mixpanel [Default Properties](/docs/data-structure/property-reference/default-properties) indicated in our documentation. | **Raw Name** | **Display Name** | **Description** | | - | - | - | | token | - | The project's token when sending data via [/track API](/reference/track-event). Not visible via Mixpanel UI reports. | | ip | - | The `ip` event property is the value to be used for [geo-location parsing](/docs/tracking-best-practices/geolocation) (i.e. `$city`, `$region`, and `mp_country_code`) if `ip` as param to the [/track endpoint](/reference/track-event) has **not been** set to 1. Our client-side libraries, by default, will set the `ip` param to 1 so geo location is parsed from the incoming request, but this can be disabled or, if you're implementing from the [server-side](/docs/tracking-best-practices/server-side-best-practices#tracking-geolocation-server-side), you can include the `ip` event property so it's parsed from it instead of the IP of the incoming request. The `ip` event property is not stored in Mixpanel. | | \$bucket / bucket | - | A reserved property that is hidden from the Mixpanel interface, and will cause other events to not appear in the interface. Do not name any property bucket or \$bucket. | | \$distinct\_id / distinct\_id | Distinct ID | Mixpanel's internal unique identifier for a user. See [Identifying Users](/docs/tracking-methods/id-management/identifying-users-simplified). | | \$device\_id | Device ID | In [Simplified ID Merge](/docs/tracking-methods/id-management/identifying-users-simplified#%24device_id): unique identifier used to track a device while the user is in anonymous state. | | \$user\_id | User ID | In [Simplified ID Merge](/docs/tracking-methods/id-management/identifying-users-simplified#%24user_id): unique identifier used to track a user across devices when user is in identified state. | | \$event\_name | Event Name | Name of the tracked event used in the Mixpanel UI. | | \$time / time | Time or Date | A unix time epoch that is used to determine the time of an event. If no time property is provided, we will use the time when the event arrives at our servers. | | \$insert\_id | Insert ID | A unique identifier for the event, used to deduplicate events that are accidentally sent multiple times. More details [here](/reference/import-events#propertiesinsert_id). | | \$identified\_id | Identified ID | In [Original ID Merge](/docs/tracking-methods/id-management/migrating-to-simplified-id-merge-system#on-original-id-merge): Internal Mixpanel property to track the identifier passed into the [`$identify`](/reference/create-identity) event. | | \$ignore | n/a | When this property is present on an event, the ingestion API silently drops it, preventing it from entering your dataset. This is helpful for [filtering out unwanted traffic](/docs/tracking-best-practices/bot-traffic). | | \$anon\_id | Anonymous ID | In [Original ID Merge](/docs/tracking-methods/id-management/migrating-to-simplified-id-merge-system#on-original-id-merge): Internal Mixpanel property to track the anonymous ID passed into the [`$identify`](/reference/create-identity) event. | | alias | Alias | In [Original ID Merge](/docs/tracking-methods/id-management/migrating-to-simplified-id-merge-system#on-original-id-merge): Internal Mixpanel property to track the alias passed into the [`$create_alias`](/reference/identity-create-alias) event. | | \$distinct\_ids | Distinct Ids | In [Original ID Merge](/docs/tracking-methods/id-management/migrating-to-simplified-id-merge-system#on-original-id-merge): Internal Mixpanel property to track the distinct IDs passed into the [`$merge`](/reference/identity-merge) event. | | \$distinct\_id\_before\_identity | Distinct ID Before Identity | Internal Mixpanel property to track an event's original \$distinct\_id before it was updated due to identity merging. Used in [Original ID Merge](/docs/tracking-methods/id-management/migrating-to-simplified-id-merge-system#on-original-id-merge) and [Simplified ID Merge](/docs/tracking-methods/id-management/migrating-to-simplified-id-merge-system#understanding-simplified-id-merge). | | \$is\_reshuffled | Is Reshuffled | Internal Mixpanel property to denote an event was reshuffled (sets to true if original \$distinct\_id was updated) due to identity merging. Used in [Original ID Merge](/docs/tracking-methods/id-management/migrating-to-simplified-id-merge-system#on-original-id-merge) and [Simplified ID Merge](/docs/tracking-methods/id-management/migrating-to-simplified-id-merge-system#understanding-simplified-id-merge). | | \$preshuffle\_distinct\_id | Preshuffle Distinct Id | Holds the device ID / \$distinct\_id the user had before [`identify()`](/reference/create-identity) was called, confirming that their pre- and post-signin activity was merged. | | \$failure\_description | Failure Description | In [Original ID Merge](/docs/tracking-methods/id-management/migrating-to-simplified-id-merge-system#on-original-id-merge): Mixpanel property explaining in detail why identity merging was not executed. | | \$failure\_reason | Failure Reason | In [Original ID Merge](/docs/tracking-methods/id-management/migrating-to-simplified-id-merge-system#on-original-id-merge): Mixpanel property summarizing why identity merging was not executed. | | \$identity\_failure\_reason | Identity Failure Reason | In [Simplified ID Merge](/docs/tracking-methods/id-management/migrating-to-simplified-id-merge-system#understanding-simplified-id-merge): Mixpanel property summarizing why identity merging was not executed. | | mp\_original\_distinct\_id | Hotshard Original Distinct ID | Original \$distinct\_id for an event that was identified as contributing to a [hot shard](/docs/tracking-best-practices/hot-shard-limits#what-is-a-hot-shard). | | mp\_original\_event\_name | Hotshard Original Event Name | Original \$event\_name for an event that was identified as contributing to [hot shard](/docs/tracking-best-practices/hot-shard-limits#what-is-a-hot-shard). | | \$source | Source | Hidden property used by certain integration partners to denote events were sent by them. Refer to the respective partners under [Cohort Sync -> Integrations](/docs/cohort-sync/integrations/airship). | | \$partner\_id | Partner Id | Hidden property used by certain integration partners to denote events were sent by them. Refer to the respective partners under [Cohort Sync -> Integrations](/docs/cohort-sync/integrations/airship). | | \$warehouse\_type | Warehouse Type | The type of the warehouse sync setup to send the event. See [Supported Warehouses](/docs/tracking-methods/warehouse-connectors#getting-started). | | \$warehouse\_import\_id | Warehouse Import ID | The ID of the warehouse sync setup to send this event. See [Data Warehouse](/docs/tracking-methods/warehouse-connectors). | | \$warehouse\_import\_job\_id | Warehouse Import Job ID | The internal Mixpanel Job ID of the warehouse sync setup to send this event. See [Data Warehouse](/docs/tracking-methods/warehouse-connectors). | | \$warehouse\_import\_run\_id | Warehouse Import Run ID | The internal Mixpanel Run ID of the warehouse sync setup to send this event. See [Data Warehouse](/docs/tracking-methods/warehouse-connectors). | | \$warehouse\_table | Warehouse Table | The name of a table (or view) in the warehouse where the event came from; useful for understanding row-level lineage of any event. See [Data Warehouse](/docs/tracking-methods/warehouse-connectors). | | \$duration\_s | Session Duration (Seconds) | The duration between Session Start and Session End events in seconds. See [How Sessions Work](/docs/features/sessions#how-sessions-work). | | \$event\_count | Session Event Count | The number of events during a session (i.e. Session Start and Session End). This does not include [Excluded Events](/docs/features/sessions#excluded-events) and [Hidden Events](/docs/data-governance/lexicon#hide-events-and-properties) in Lexicon. See [How Sessions Work](/docs/features/sessions#how-sessions-work). | | \$origin\_start | Session Start Event Name | The original event name that triggered Session Start event. See [How Sessions Work](/docs/features/sessions#how-sessions-work). | | \$origin\_end | Session End Event Name | The original event name that triggered Session End event. See [How Sessions Work](/docs/features/sessions#how-sessions-work). | | \$mp\_experiment\_name | Mp Experiment Name | Internal Mixpanel property used to track the experiment name. | # User Profile Source: https://docs.mixpanel.com/docs/data-structure/user-profiles Store persistent attributes about your users, import profiles via the API or a CSV, backfill historical values, and delete profiles > [!NOTE] > > **Note:** The following terms are used in this section: > > * "Profiles" is used to refer to both "User Profiles" and "Group Profiles" > * "Profile Properties" is used to refer to both "User Profile Properties" and "Group Profile Properties" ## Overview User Profiles let you enrich events with demographic attributes (i.e. user properties) about the users that performed those events. User Profiles are optional. We recommend starting with events and adding user profiles only if needed. A user profile has a set of user properties associated with a given user. Under the hood, Mixpanel stores user data for your project in a table wherein each row of user profile contain columns of user properties (e.g. Name, Email, Department) that can be updated: | **Distinct ID** | **Name** | **Email** | **Department** | | - | - | - | - | | 123 | Alice | `alice@linear.app` | Engineering | | 456 | Bob | `bob@notion.so` | Product | | 789 | Carol | `carol@figma.com` | Design | User profiles are joined onto your events based on their [**Distinct ID**](/docs/tracking-methods/id-management/identifying-users-simplified#mechanism) (Mixpanel's identifier for a user). This lets you join the events performed by a user with user properties describing them. Thus, it is very important that you use the same Distinct ID for both the events and user profile for the same user. For more information about user profiles refer to the documentation on [The Mixpanel Data Model](/guides/mixpanel-introduction#mixpanel-data-model). > [!NOTE] > > **Note:** If you have [Group Analytics](/docs/data-structure/group-analytics) as an add-on, this section also applies to [Group Profiles](/docs/data-structure/group-analytics#group-profiles). ## Importing Profiles via API You can create or update User Profiles in similar ways you track events: from our [SDKs](/docs/tracking-methods/sdks/javascript#storing-user-profiles), via our [HTTP Engage API](/reference/profile-set), [Warehouse Connectors](/docs/tracking-methods/warehouse-connectors#user-profiles), or via our integrations partners. Similarly for [Group Profiles](/docs/data-structure/group-analytics#group-profiles), they can be created or updated using our [SDKs](/docs/tracking-methods/sdks/javascript#creating-group-profiles), via our [HTTP Groups API](/reference/group-set-property), [Warehouse Connectors](/docs/tracking-methods/warehouse-connectors#group-profiles), or via our integration partners. We recommend tracking profiles from as close as possible to the source of truth, which is usually your application database or your CRM. One typical approach (especially for [Server-Side Tracking](/docs/tracking-methods/choosing-the-right-method#server-side-tracking)) is to run an hourly or daily script on your servers that pulls the list of profiles from your database and pushes them to Mixpanel. ### Operators The [HTTP Engage API](/reference/profile-set) and [HTTP Groups API](/reference/group-set-property) share the same operators. **Setting profile property** * `$set` - Sets a profile property or updates a profile property value (if it already exists). * `$set_once` - Sets a profile property only if they do not yet exist on Mixpanel. This ensures that the previous profile property value is not overwritten. **Updating numeric profile property** * `$add` - Increments or decrements a numeric user profile property *(not supported in group profiles)*. To increment, pass in a positive numeric value, and to decrement pass in a negative numeric value. If the property does not yet exist, it will set the value passed in as the initial value. **Updating list profile property** * `$union` - Merges a given value or list into a [List](/docs/data-structure/property-reference/data-type#list) data type profile property and ensures there are no duplicate values. * `$append` - Appends a value to the end of a [List](/docs/data-structure/property-reference/data-type#list) data type user profile property *(not supported in group profiles)*. Does not check for duplicate values. * `$remove` - Removes a value from a [List](/docs/data-structure/property-reference/data-type#list) data type profile property. **Removing profile properties** * `$unset` - Removes a profile property from the profile. * `$delete` - Removes all profile properties from the profile. Here's some sample code to get you started, utilizing the `$set` operator to update user profiles: ```python theme={"system"} # Fill this out. You can get it from https://mixpanel.com/settings/project PROJECT_TOKEN = "" import json import requests def get_users_from_database(): # Replace this with code that reads users from your database or CRM. # Note: $name and $email are optional, but useful properties that automatically populate certain parts of our UI when Mixpanel detects them. return [ {"user_id": "123", "$name": "Alice", "$email": "alice@linear.app", "department": "engineering"}, {"user_id": "456", "$name": "Bob", "$email": "bob@notion.so", "department": "product"}, {"user_id": "789", "$name": "Carol", "$email": "carol@figma.com", "department": "design"} ] def transform_to_mp_format(user): """Transform the above into Mixpanel's format""" # It's important to set this to the same distinct_id that you use when tracking events. # We recommend using the primary key of your users' table for this. distinct_id = user.pop("user_id") # Note: we set `$ip` to 0 here to tell Mixpanel not to look up the IP of this user. return {"$distinct_id": distinct_id, "$token": PROJECT_TOKEN, "$ip": "0", "$set": user} users = get_users_from_database() profiles = [transform_to_mp_format(u) for u in users] # We recommend calling this API with batches of 200 user profiles to do this at scale. resp = requests.post( "https://api.mixpanel.com/engage", params={"verbose": "2"}, headers={"Content-Type": "application/json"}, data=json.dumps(profiles) ) print(resp.json()) ``` ## Importing Profiles via the UI To get started, click on **Add/Edit Profile** from the [Users](https://mixpanel.com/report/users) page and follow the workflow below. > **Note**: For customers with [Group Analytics](/docs/data-structure/group-analytics) make sure you first choose either **User** or the **[Group Key](/docs/data-structure/group-analytics#group-keys-in-project-settings) name** depending on which type of profile you wish to import. ![/Screen\_Shot\_2021-12-01\_at\_11.44.03\_AM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2021-12-01_at_11.44.03_AM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=111858eacb553dafccd337b91c943492) ### Create/Update a Single Profile **Set an Identifier Column** The most important column is `$distinct_id` for user profiles (or `$group_id` for [Group Profiles](/docs/data-structure/group-analytics#group-profiles)). The value needs to match the `distinct_id` property's value (or the value for the [Group Key](/docs/data-structure/group-analytics#implementation)'s Group ID) that you're sending on your events. **Add Additional Properties** After `$distinct_id`, you can add additional properties to the profile by pressing the **"+ Add Property"** button. Mixpanel will help autocomplete profile properties that you may want to set. ![/Screen\_Shot\_2021-12-01\_at\_12.20.27\_PM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2021-12-01_at_12.20.27_PM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=1ccc30db4d58109f58a39872c6bfbf0f) We recommend using the `$name` (or `$first_name`, `$last_name`), `$email`, and `$phone` [Reserved Profile Properties](/docs/data-structure/property-reference/reserved-properties#reserved-profile-properties)) if you're uploading a user's name, email, or phone. Mixpanel shows these properties by default in various parts of our UI and are used for [Cohort Syncs](/docs/cohort-sync) as well. ### Bulk Import from CSV When preparing the CSV that you want to upload as profiles, you should **not** include column headers (e.g., \$name, \$email, etc.). Instead, you’ll identify column headers through the CSV upload wizard in the Mixpanel UI. **Note**: * If you import profiles using `$distinct_id` (or `$group_id`) values that already exist, those profiles will be updated with the additional profile properties. On the other hand, if you upload a profile that has the same email address or the same name as another existing profile, but a different `$distinct_id` (or `$group_id`), you will be uploading duplicates - they will not be combined. * If you upload a CSV with new information for existing properties on existing profiles, the existing property values will be overwritten. If the new information is for new properties on existing profiles, it will be added as additional properties for the profiles. * The maximum size for your CSV should be 1M rows. #### Upload Your CSV Go to the **Import from CSV** tab and select your prepared CSV to begin the process. #### Choose an Identifier Column The most important column in your CSV is the `$distinct_id` for user profiles (or `$group_id` for [Group Profiles](/docs/data-structure/group-analytics#group-profiles)). The value needs to match the `distinct_id` property's value (or the value for the [Group Key](/docs/data-structure/group-analytics#implementation)'s Group ID) that you're sending on your events. The import module will preview the column values from your CSV on the right, corresponding to the property name you are currently defining. If you do not assign an identifier column, Mixpanel will use your `$email` column as the `$distinct_id` (or `$group_id`) value; if you don’t have an `$email` column either, then the `$distinct_id` (or `$group_id`) value will be assigned randomly by default. Thus, it is highly recommended that you assign an identifier column to avoid unexpected results. #### Choose Desired CSV Columns You'll have the opportunity to look through all columns in the CSV to preview their values. In this step, you must **uncheck all columns that you DO NOT wish to import**. You must also choose the associated Mixpanel profile property that each CSV column will be associated with. When you're done selecting the columns, and mapping their associated properties, press the **Import profiles** button to proceed. ![/Screen\_Shot\_2021-12-01\_at\_12.24.00\_PM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2021-12-01_at_12.24.00_PM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=3c40cb248aa5016d01d6f420b4f6a7bb) ## Importing Historical Profile Values > [!NOTE] > > Historical profiles requires the use of [Warehouse Connectors](/docs/tracking-methods/warehouse-connectors) paid add-on to ingest historical properties. Historical profiles layer on additional capabilities by capturing changes in each property over time instead of just the latest value. See here for more on how to [import](/docs/tracking-methods/warehouse-connectors#user-profiles) historical properties via Warehouse connectors. Historical properties can be used anywhere that regular profile properties can be used. For eg, when you apply breakdown by historical plan-type property, the property value will be picked based on the time of the event, instead of the current property value. ![image](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/historical_property_value.webp?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=ff05fcf9ca5c8041bd3a7b2575ef4adf) When you hover over a historical property, the context menu that pops up will show that the property was sourced from a history table, as well as the name of the source. This means that the value of the property used in charts can vary over time. ![image](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/dropdown_historical_property.webp?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=18934c981f6d1febb564e97c3bfb3895) ### Historic Profile Data Modeling When the data is imported from the warehouse, aside from having it available in dropdowns for query, you can see the raw data in two (2) separate areas. **Hidden event**: under the hood, the data is modeled through events, linked in a special way, and attribution is used to obtain the value the profile had at a certain point in time. The name of the event takes after the name of the table/view we read from in the warehouse connector, so if the table name is `company_plan_history`, the event will be named `company_plan_history` too (by default it's hidden). ![image](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/historic_profile_property_source.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=e6f092dcc3e041af98005c3725cb273d) The event time follows the start time entries in the table, so if you have an entry for say January 1st, there will also be this event with that same time in the project. This is used for attribution. Say you have 2 entries in the table for plan values, January 1st with a value of "plan1" and an entry on June 1st with a value of "plan" 2. If you were to create a report for this user based on the historic property, any event between Jan 1st and Jun 1st would have the "plan1" value, and any event after Jun 1 would have "plan2". **Profile View**: if you navigate to the profile view of a specific user (or group) that has historic profile data, you will see the property to the left of the screen and, when you hover, you'll see a button to view the changes over time. Once clicked, you will be shown a list of the values the property has had through time. ![image](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/historic_profile_property_profile_view.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=1fb1cfaf9fe144b92a4dddcc9573a741) For billing details, read the warehouse connectors [billing FAQ section on People/Group updates](../tracking-methods/warehouse-connectors#what-actions-impact-billing-for-warehouse-connectors). ## Viewing User Profiles To view a specific user's profile and activity feed in Mixpanel, follow these steps: **1. Navigate to the Users Tab** Click on **Data > Users** in the left navigation bar. This will open a view listing all users currently tracked in your project, along with key attributes for each. Learn more about the [Users](/docs/users) tab. **2. Find the User** You can browse the list or use the filter at the top of the Users page to narrow down results. For example, filtering by distinct ID, email, or other properties. **3. Click Into the User's Profile** Click on a user's distinct ID (or their name/tile) to open their individual profile. **4. Explore the Profile** Once inside, you'll find two key areas: **Activity Feed (center/right panel):** A reverse-chronological list of all tracked interactions (events) attributed to that user. By default, it shows the last 30 days, but you can extend this to 60, 90 days, or a custom date range. You can also hide specific events to focus on the ones you care about. **User Profile Properties (left panel):** Attributes that describe who the user is (e.g., city, country, email, custom properties). Unlike event properties, these are mutable — they always reflect the user's latest known state. **5. Inspect Individual Events** Click on any event in the activity feed to expand it and view its event properties. Additional context such as location, device, URL, or any event properties your team has configured is visible here. ## Deleting Profiles User Profiles can be deleted either via the [Users](https://mixpanel.com/report/users) page or programmatically via our [Engage API](/reference/delete-profile). We also provide a `people_delete` method in the mixpanel-utils library [here](https://github.com/mixpanel/mixpanel-utils#people-delete). Similarly, [Group Profiles](/docs/data-structure/group-analytics#group-profiles) can also be deleted either via the [Users](https://mixpanel.com/report/users) page or programmatically via our [Groups API](/reference/delete-group). > [!NOTE] > > Deleting a user profile removes only the user property data. It does not delete the user's tracked events; instead, those events continue to appear in your project as if they were tracked by anonymous users without user profile properties. ## FAQ ### What should I send as a User Property vs an Event Property? We recommend primarily using User Properties to track demographic attributes of the user, like their name, email, and domain. Most other properties are better tracked as [Event Properties](/docs/data-structure/events-and-properties). That said, User Properties are as flexible as any other properties in Mixpanel, so you can send arbitrary JSON. ### How does Mixpanel join Events and User Profiles? Mixpanel stores Events and User Profiles in two separate tables under the hood. These two tables are joined at query-time, rather than ingestion-time. This means that when you make a report in our UI that uses User Profiles, we run a query that joins the Events table with the User Profiles table. This has two implications: * If you track User Profiles after you track events, they'll still join retroactively with all past events. This means that you don't need to worry about tracking Events and User Profiles in lockstep with each other. As long as they have the same values for Distinct ID, they'll join with each other. * All Events join with the latest state of a User Profile, rather than its state at a point in time. If there are aspects of a user's state that change over time (for example, their plan type), we recommend tracking that as a property on their events, so that you can analyze that change over time. ### How can I update User Properties? User Profiles are mutable; Mixpanel only stores the latest value of each profile property. We have methods to update profile properties via our [HTTP API](/reference/profile-set). ### Why are empty profiles created when I import profiles from a CSV? This may occur if you set the incorrect column from your CSV as the `$distinct_id` during your import. You can see which column was erroneously set as the `$distinct_id` by checking the distinct\_id value set on these empty profiles. As a best practice, always check the sample values shown in the import module for each selected profile property. ### How do I bulk delete profiles? We recommend deleting profiles programmatically via our [Engage API](/reference/delete-profile). We also provide a `people_delete` method in the mixpanel-utils library [here](https://github.com/mixpanel/mixpanel-utils#people-delete). ### What are the limits of User Properties? Each User Profile can contain up to 2000 properties. User property names can be at most 255 characters in length (longer names are truncated). User property values are limited based on data type, refer to these limits under [Supported Data Types](/docs/data-structure/property-reference/data-type). Attempts to add more than 2000 user properties for a user profile will fail. You can remove User Properties using the [\$unset](/reference/profile-delete-property) engage operation if you find yourself close to the 2000 per profile limit. ### How can I send User Profiles if I use Segment? Mixpanel is 100% compatible with Segment; just follow Segment's best practices. If you call the [`analytics.identify()`](https://segment.com/docs/connections/spec/identify/) method, Segment will create a User Profile in Mixpanel. You can learn more about our integration in Segment's [docs](https://segment.com/docs/connections/destinations/catalog/actions-mixpanel/#identify-user). ### What does the "Updated at" (\$last\_seen) property mean? User Profiles are mutable, which means new ones can be added and existing ones can be updated or deleted. Mixpanel automatically maintains an "Updated at" (`$last_seen`) property, which contains the last timestamp that a user profile was updated. "Updated at" does not change if the user does a new event; it only changes when the profile is updated. "Updated at" also does not change for profile updates made via the UI or if the `$ignore_time` parameter is set to `true` (see example from [PHP SDK](/docs/tracking-methods/sdks/php#setting-profile-properties)). ### Where can I learn more about Group Profiles? You can get an overview of how Group Profiles relate to Mixpanel's Data Model under the section [Group Level Behaviors and Demographics](/docs/data-structure/group-analytics) in our tutorials. A more detailed explanation of [Group Profiles](/docs/data-structure/group-analytics#group-profiles) is documented under our [Group Analytics](/docs/data-structure/group-analytics) page. ### How are end times applied to the historical property? The end time will be inferred from the next event sent with a higher `Start Timestamp`. If you do not have an updated value for a property and simply want it to become inactive at a certain timestamp, please set up your DWH table to set undefined for the property at the time that it becomes inactive/expires. ### How do I set the initial set of profile properties for the user? Historical profile properties can only be imported through a Warehouse Connector sync. For more information about the connectors and which are supported, see our \[docs]/docs/tracking-methods/warehouse-connectors). There is currently no other method to import historical profile properties or set defaults. To set initial values, please ensure that your warehouse table has the rows covering the historical period you want to analyze. ### What if I have the same property name sent as a regular profile property as well as a historic property? If a regular profile property shares a name with an historic property, the two properties will be treated as distinct and separate entities (they will not be de-dupped). ### What if I have the same property name sent through multiple WH syncs? If both syncs are regular user tables and they refer to the same Distinct ID(s), they will be de-dupped and only the latest value will be retained. If both syncs are historical user tables, we will have a warning popup if the conflict can be detected at sync creation time and you will have the option of renaming one of the columns. If one sync is for regular user table and the other for a historical one, see [here](/docs/data-structure/user-profiles#what-if-i-have-the-same-property-name-sent-as-a-regular-profile-property-as-well-as-a-historic-property). ### I deleted my historical user table Warehouse sync and data but there are still empty user profiles! All the historical props will be deleted from the profile but the profile itself remains, along with any non-historical properties. This is to prevent accidentally deleting profile data sent through API/UI/CSV that might have been merged into the profile data sent via the Warehouse sync. To delete profiles yourself, please use this [guide](/reference/delete-profile). ### What is the frequency of updates that are supported? The feature supports updates at the rate of about one change per day for each user. It is meant to cover use-cases like plan type changes, MRR etc which are slowly changing dimensions. It is not intended for more frequent changes like game score updates. ### How are historic profile properties calculated within custom properties? You can use historic user and group properties within custom properties; when used in a custom property, the value used will always be based on the time of the event. # Docs for AI Agents Source: https://docs.mixpanel.com/docs/docs-for-ai-agents Machine-readable formats for Mixpanel documentation: llms.txt, per-page Markdown, OpenAPI specs, and the documentation MCP server Mixpanel documentation is available in machine-readable formats so that AI agents, coding assistants, and LLM-powered tools can read it programmatically. Use these endpoints to feed documentation into a context window, a retrieval system, or an agentic workflow. ## Available Formats ### Individual Page Markdown Append `.md` to any documentation URL to get that single page as plain Markdown. This is the cheapest option when an agent needs one topic rather than the whole corpus. | Page | Markdown | | - | - | | [docs.mixpanel.com/docs/quickstart](/docs/quickstart) | [docs.mixpanel.com/docs/quickstart.md](/docs/quickstart.md) | Every link in `llms.txt` already points at the `.md` form, so an agent can read the index and fetch pages directly. You can also request Markdown for the original URL by sending an `Accept: text/markdown` header, which returns the same content as the `.md` variant. Use whichever fits your client: the suffix when you control the URL, the header when you are fetching canonical links you'd rather not rewrite. ```bash theme={"system"} curl -H "Accept: text/markdown" https://docs.mixpanel.com/docs/quickstart ``` Without the header, the same URL returns HTML. ### llms.txt An index of every Mixpanel documentation page, following the [llms.txt standard](https://llmstxt.org/). Each entry links to the page's Markdown version, and many carry a one-line description. The file is roughly 50 KB, so it fits comfortably in most context windows. [https://docs.mixpanel.com/llms.txt](https://docs.mixpanel.com/llms.txt) ### llms-full.txt The full text of every documentation page in a single file, currently about 3.5 MB. It exceeds most context windows, so chunk it or load it into a retrieval system rather than pasting it whole. [https://docs.mixpanel.com/llms-full.txt](https://docs.mixpanel.com/llms-full.txt) ### OpenAPI Specifications Every Mixpanel API is described by an OpenAPI specification. Use these to generate client code, validate requests, or give an agent precise knowledge of the available endpoints. | API | OpenAPI spec | | - | - | | Ingestion | `https://docs.mixpanel.com/openapi/ingestion.openapi.yaml` | | Query | `https://docs.mixpanel.com/openapi/query.openapi.yaml` | | Raw Data Export | `https://docs.mixpanel.com/openapi/export.openapi.yaml` | | Identity | `https://docs.mixpanel.com/openapi/identity.openapi.yaml` | | Service Accounts | `https://docs.mixpanel.com/openapi/service-accounts.openapi.yaml` | | Lexicon Schemas | `https://docs.mixpanel.com/openapi/lexicon-schemas.openapi.yaml` | | Annotations | `https://docs.mixpanel.com/openapi/annotations.openapi.yaml` | | GDPR & CCPA | `https://docs.mixpanel.com/openapi/gdpr.openapi.yaml` | | Feature Flags | `https://docs.mixpanel.com/openapi/feature-flags.openapi.yaml` | | Feature Flags Management | `https://docs.mixpanel.com/openapi/feature-flags-management.openapi.yaml` | | Experiments | `https://docs.mixpanel.com/openapi/experiments.openapi.yaml` | | Data Pipelines | `https://docs.mixpanel.com/openapi/data-pipelines.openapi.yaml` | | Warehouse Connectors | `https://docs.mixpanel.com/openapi/warehouse-connectors.openapi.yaml` | The same list appears under `## OpenAPI Specs` in [llms.txt](https://docs.mixpanel.com/llms.txt). ## Usage Examples ### Copy or Open Any Page Every documentation page has a menu in the top right for copying the page as Markdown or opening it directly in ChatGPT, Claude, Perplexity, Grok, Cursor, or VS Code. Use it for one-off questions when you don't want to wire up an integration. ### Add to a System Prompt Paste the contents of `llms.txt` into your system prompt or tool context to give an agent a map of the documentation, then let it fetch the specific `.md` pages it needs. Avoid pasting `llms-full.txt` — at 3.5 MB it will overflow the context window. ### Use with the Documentation MCP Server Mixpanel hosts a Model Context Protocol server for the documentation itself at `https://docs.mixpanel.com/mcp`. It exposes search and retrieval tools over the docs, so an agent can look up a topic on demand instead of loading the full corpus up front. No authentication is required. Add it to Claude Code with one command: ```bash theme={"system"} claude mcp add --transport http mixpanel-docs https://docs.mixpanel.com/mcp ``` For Cursor, add it to `.cursor/mcp.json` in your project (or `~/.cursor/mcp.json` for every project): ```json theme={"system"} { "mcpServers": { "mixpanel-docs": { "url": "https://docs.mixpanel.com/mcp" } } } ``` Any other MCP-compatible client can use the same URL with streamable HTTP transport. ### Use with the Mixpanel MCP Server The [Mixpanel MCP Server](/docs/mcp) is a separate server that gives AI assistants live access to your own Mixpanel project data. Use the documentation endpoints for product knowledge and the Mixpanel MCP Server for querying your events. ### Use with Mixpanel Headless [Mixpanel Headless](/docs/mixpanel-headless) is a Python SDK for coding agents. Pair it with `llms.txt` to give a coding agent both the API reference and the conceptual documentation it needs to write correct Mixpanel code. ### RAG Pipelines Ingest `llms-full.txt` into a vector store or retrieval-augmented generation pipeline to power a custom docs chatbot or support tool. Chunk it first — the file is a single 3.5 MB document. # Experiments Source: https://docs.mixpanel.com/docs/experiments Measure the impact of a/b testing Mixpanel Experiments measures how a change affects your metrics, so you can decide which variant to roll out. ## Plan Availability Experiments is available for customers on Free, Growth, and Enterprise plans. Usage is measured in Monthly Experiment Users (MEU): the number of distinct users exposed to an experiment during a calendar month. A user exposed to several experiments in one month counts as one MEU, up to 30 experiments — past that, see [how MEU is calculated](#does-it-matter-how-many-experiments-a-user-is-exposed-to-within-the-month). MEU and experiment counts apply across your whole organization unless noted. See our [pricing page](https://mixpanel.com/pricing/) for more details. | Plan | MEU Allowance | How to Access | | - | - | - | | Free | 1k MEU per month; unlimited experiments | Switch plans from the [pricing page](https://mixpanel.com/pricing/). | | Growth | 5k MEU per month; unlimited experiments | Purchase 10k to 100k MEU per month under Organization Settings > Plan Details & Billing. | | Enterprise | Unlimited MEU; 3 experiments created per project until you purchase Experiments | Purchase Experiments for unlimited experiments, or request a trial — [contact us](https://mixpanel.com/contact-us/sales/) or reach out to your account team. | Every plan includes [Feature Flags](/docs/featureflags) alongside Experiments, with limits on active flags and cohort targeting that vary by plan. See [Feature Flags plan availability](/docs/featureflags#plan-availability) for details. ### Reaching Your MEU Allowance What happens when you reach your allowance depends on your plan. On a **Free** plan, Experiments pauses: you can't create, edit, or view experiments until your usage resets at the start of the next calendar month, or you upgrade. Your feature flags keep serving and routing traffic, so what your users see doesn't change — but any experiment you're running stops producing new results for the rest of that month. On a **Growth** plan, Experiments keeps working and usage beyond your included or purchased MEU is billed at an overage rate. Purchasing a larger MEU tier raises the amount included before overage applies. Track your usage under Organization Settings > Plan Details & Billing. ## Why Experiment? Experimentation helps you make data-driven product decisions by measuring the real impact of changes on user behavior. Mixpanel is an ideal place to run experiments because all your product analytics data is already here, providing you with comprehensive insights into how changes affect your users' journey. ## Prerequisites Before getting started with experiments: * **Exposure Event Tracking**: [Implement](#implementation-for-experimentation) your experimentation events * **Baseline Metrics**: Ensure that Mixpanel is already tracking your key metrics ## Overview & Workflow ![image](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/exp_overview.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=680f02d4a5e449ab664308fbeb7b0cb8) The Experiment report analyzes how one variant impacts your metrics versus other variant(s), helping you decide which variant should be rolled out more broadly. To access Experiments, click on the **Experiments** tab in the navigation panel, or **Create New > Experiment**. ### Experiment Process **Plan** → **Setup & Launch** → **Monitor** → **Interpret Results** → **Make Decisions** 1. **Plan**: Define hypothesis, success metrics, and test parameters 2. **Setup & Launch**: Configure experiment settings and begin exposure 3. **Monitor**: Track experiment progress and data collection 4. **Interpret Results**: Analyze statistical significance and lift 5. **Make Decisions**: Choose whether to ship, iterate, or abandon changes ## Plan Your Experiment Before creating an experiment report, ensure you have: * A clear hypothesis about what change will improve which metric * Defined primary success metrics (and secondary/guardrail metrics) * Estimated sample size and test duration requirements (use the [Sample Size Calculator](#sample-size-calculator)) * Proper exposure event tracking implemented ## Setup & Launch Your Experiment > [!WARNING] > > On an Enterprise plan without purchased Experiments, creating an experiment uses one of the 3 you get per project, and you can't free it up again from the UI. ### Step 1: Select an Experiment Click 'New Experiment' from the Experiment report menu and select your experiment. Both experiments powered by Mixpanel Feature Flags and experiments tracked via exposure events such as from third-party feature flags are detected and populated in the dropdown. To keep the dropdown focused on experiments you're likely to care about, we hide Mixpanel Feature Flag experiments once their flag is archived, and we hide exposure-event experiments that haven't received an exposure event in the last 30 days. To analyze an exposure-event experiment beyond that window, you can hard-code the experiment name by typing `$experiment:Experiment name` as a filter or breakdown property, where `Experiment name` is the value of whichever property you configured as the experiment name on your exposure events. > [!NOTE] > > Two kinds of experiments can be analyzed in the experiment report: 1) experiments run through Mixpanel Feature Flags with the Experiment flag type, and 2) experiments tracked via exposure events such as from third-party feature flags (i.e., `$experiment_started`). [Read more on how to track experiments](#implementation-for-experimentation). > > [Web experiments](/docs/experiments/no-code-experiments) are run on a Mixpanel Feature Flag, so they are analyzed the same way, but you build their variants in a visual editor with no code changes required per experiment. ### Step 2: Choose the ‘Control’ Variant Select the ‘Variant’ that represents your control. All your other variant(s) will be compared to the control, i.e, how much better they perform compared to the control variant. ### Step 3: Choose Success Metrics Choose the primary metrics of success for the experiment. You can choose from either saved Mixpanel metrics or create a new metric leveraging the query panel. You can also add secondary metrics and guardrail metrics as required. ### Step 4: Select the Test Duration Enter either a target sample size or the minimum number of days you want the experiment to run. This determines both the experiment’s analysis duration and when the results are ready to review. Reaching the target does not stop the feature flag from serving; exposure continues according to the flag’s targeting and rollout settings until you change or disable the flag. To estimate how many users and days you need, click **Calculate sample size** next to the duration setting. See [Sample Size Calculator](#sample-size-calculator). ### Step 5: Confirm other Default Configurations Mixpanel has set default automatic configurations, seen below. If required, please modify them as needed for the experiment 1. **Experiment Model type**: Sequential. You can also choose Frequentist, or Bayesian, which is in [open beta](#bayesian); see [Experiment Model Types](#experiment-model-types) for how they differ. 2. **Confidence Threshold**: 95%. On a Bayesian experiment this setting is labeled **Decision Threshold** and sets the minimum Chance to Beat Control required to highlight a variant as a winner. 3. **Experiment Start Date**: Date of the first user exposed to the experiment > [!NOTE] > > The Confidence Threshold and the Bayesian Decision Threshold are the same underlying setting: if you switch an experiment's model type, your chosen number carries over and is reinterpreted for the new model. ### Sample Size Calculator The Sample Size Calculator estimates how many exposed users your experiment needs to detect a given lift on your primary metric. It also estimates how long the experiment has to run to reach that many users. Where it can, the calculator measures the baseline and daily traffic from your project's own historical data, and it can apply the result to your experiment's settings. To open it, click **Calculate sample size** next to the experiment's duration setting. The calculator is available in the setup guide and on the Configuration tab. The button is disabled until you select a primary metric. > [!NOTE] > > This calculator is different from the standalone [sample size calculator](https://mixpanel.com/platform/experiments/sample-size-calculator) on mixpanel.com. That one takes only manual inputs, and it doesn't read your project data. #### Inputs | Input | Default | Notes | | - | - | - | | **Primary Metric** | Your first primary metric that can be measured | Choose any of the experiment's primary metrics. | | **Measure Against** | None. You choose it each time. | The population the baseline and traffic are measured over: all active users, users who performed an event, users exposed to a past experiment, or users in a cohort. Funnels can also use their entry event, and retention metrics their initial event. | | **Only users in** | The flag's rollout groups | Limits measurement to users in the selected rollout groups or cohorts. | | **Rollout %** | The lowest rollout % among the selected rollout groups | Scales the measured traffic down to the share of users who will be exposed. | | **Measure Inputs Over** | 2 Weeks | 1, 2 or 4 weeks. This applies only to conversion-rate metrics. See [How the baseline is measured](#how-the-baseline-is-measured). | | **Baseline** | Measured | Conversion rate (%), events per user, or mean, depending on the metric. | | **Baseline standard deviation** | Measured | Shown only for metrics sized on per-user variance, such as averages and sums of a property. | | **Provisional Daily Traffic** | Measured | The expected number of newly exposed users per day. | | **Minimal Detectable Lift %** | The metric's MDE, then the experiment's, then 10% | The smallest *relative* change from baseline the experiment can detect. For example, with a 5% baseline, a 20% lift detects a conversion rate of 6% or higher. | | **Confidence Level %** | The experiment's confidence threshold (95%) | 90, 95, 97.5 or 99%. | | **Power %** | 80% | 70, 80, 90 or 95%. | | **Hypothesis** | The metric's setting | Two-sided or one-sided. Hidden for Bayesian experiments. | The calculator reads the number of variants from the experiment and assumes an even split between them. If the split is uneven, the summary says so. #### How the baseline is measured How the calculator measures history depends on the metric type: * **Conversion-rate metrics** (unique users who did an event, funnel conversion, retention): the baseline is the share of the eligible population that converted during the **Measure Inputs Over** window. The window ends no later than yesterday. * **Events per user** (total event count): a per-user rate grows with the length of the window, so a single lookback doesn't size it correctly. Instead, the calculator measures the metric as if an experiment had run for 1, 2, 4, 8 or 12 weeks. For each length it counts each user's events from their first eligible event to the end of that window. * **Averages and sums** (a property's average or sum per user, or sessions): the calculator measures the per-user mean and standard deviation for each of the same five lengths, in the same way. Non-participants are counted as 0 when the metric's analysis does the same. The text under the baseline field says which applies. For conversion-rate metrics, daily traffic is the number of distinct eligible users over the last 28 days divided by 28. For the other two types, it is based on the eligible users counted in the selected length. In both cases traffic is scaled by **Rollout %**. When the population is a past experiment, the calculator measures from that experiment's first days instead of from recent history. A sentence under each measured field shows the date range and the counts it was measured from. The calculator can't measure every metric. In these cases, enter the baseline, standard deviation (if shown) and traffic yourself: * formula metrics * metrics grouped by a data group * metrics that count a different unit than the flag assigns variants by * funnels and retention metrics whose first step is a custom event or cohort * averages and sums on funnel or retention metrics Percentile and median metrics have no closed-form variance, so the calculator can't size them even with manual inputs. #### How the duration is chosen For **events per user** and **averages and sums**, the calculator picks the shortest of 1, 2, 4, 8 or 12 weeks whose measured eligible users reach the required sample size. If no length qualifies, it shows the 12-week result, or the longest length your data supports, with a notice that the experiment may end before it reaches the sample size. It doesn't extrapolate past the longest measured length. For **conversion-rate metrics**, the duration is the total sample size divided by daily traffic. A warning appears when this is over 6 weeks. If it is over the 12-week maximum, the experiment can't reach significance as configured. The calculator never shows a duration shorter than 7 days, so that every experiment covers a full week, weekend included. #### Editing measured values You can overwrite any measured value. A value you type always takes priority: later measurements don't replace it. For events per user and averages and sums, typing a baseline, standard deviation or traffic switches the calculator to a single estimate from the values shown, instead of choosing among the measured lengths. Changing the metric, population, window or cohort filter clears the values you typed and measures again. #### Results The calculator shows: * **Total exposures needed**, and the number needed per variant * **Duration**, in weeks and days. To get a duration, enter a daily traffic value. * **View Summary and Suggestions**, which explains the assumptions and suggests an experiment model type. The suggestion doesn't change your experiment. Warnings appear when a variant would have fewer than 350 exposures, or when the experiment uses Benjamini-Hochberg correction, which the estimate doesn't reflect. Click **Apply to Experiment** to copy the confidence level, power, minimum detectable lift, sample size and duration into the experiment settings. If you changed **Hypothesis** or **Rollout %**, those are copied too. Applied durations are capped at 12 weeks. The changes are staged, so save the experiment to keep them. #### If measurement fails * If measuring takes too long or fails for a temporary reason, click **Retry**, or enter the values manually. * If the population can't be measured for this metric, the calculator explains why. Choose another population or enter the values manually. For example, a funnel or retention metric can't be measured against an eligibility event. * For events per user and averages and sums, the calculator skips any length it can't measure, such as a past experiment that hasn't run that long. It fails only when none of the lengths can be measured. #### How the calculation works The calculator uses a fixed-horizon, two-sample normal approximation: `n per variant = 2 × (z(1−α′) + z(power))² × σ² / (MDE × baseline)²` * **α′** is α/2 for a two-sided test and α for a one-sided test. If the experiment uses [Bonferroni correction](#bonferroni-correction), α is first divided by (primary metrics × (variants − 1)). * **σ²** is p(1−p) for conversion rates, λ for events per user, and the measured or entered standard deviation squared for averages and sums. For events per user, this assumes variance equals the mean. Experiment results use measured per-user variance instead, so this estimate can give too small a sample size when event-count variance exceeds the mean. * **Total sample size** is the per-variant number × the number of variants, control included. The estimate doesn't account for [CUPED](#cuped-controlled-experiment-using-pre-experiment-data) or [Winsorization](#winsorization). Both usually reduce variance, so the estimate tends to be conservative. Sequential and Bayesian models aren't modeled separately. ### Experiment JSON Parameters Each variant can optionally carry a **value** in addition to its name — either a **string** or a **JSON object**. The variant name is what your code switches on to render the right experience. The value is configuration data the SDK returns alongside the assignment, so you can remotely control parameters of your app or site (copy, colors, thresholds, layout configs, pricing, etc.) without a code deploy. For example, a variant named `treatment` might carry a JSON object value like: ```json theme={"system"} { "cta_text": "Limited time — Buy now", "discount": 20, "layout": "grid" } ``` Your client code reads the value from the SDK alongside the variant name. In the JavaScript SDK: ```javascript theme={"system"} const fallback = { cta_text: "Buy now", discount: 0, layout: "list" }; const config = await mixpanel.flags.get_variant_value("checkout-promo", fallback); renderCheckout(config.cta_text, config.discount, config.layout); ``` See the [JavaScript Feature Flags guide](/docs/tracking-methods/sdks/javascript/javascript-flags) for the full SDK reference. ### Changing Settings Mid-Experiment Mixpanel analyzes your experiment on the fly, so you can adjust settings at any time if needed. If you notice a configuration mistake - like selecting Frequentist when you meant Sequential or Bayesian - feel free to correct it, even if the experiment has been running for weeks. The one thing to avoid is changing settings because the current results aren't what you hoped for. If you adjust the confidence level, metrics, or duration in search of a significant result, you're more likely to find something that looks meaningful but is actually noise. When you roll out that change, it may not deliver the improvement you expected. If you want to test a different configuration, [restart the experiment](#restarting-or-resetting-an-experiment) instead. Restarting moves the start date to the current date and time and clears cached results, so your analysis starts fresh with only the data collected after the restart. Earlier data isn't deleted. ### Restarting or Resetting an Experiment Use these options when the data an experiment has collected can't be trusted. For example: a bug in one variant, broken exposure tracking, a [sample ratio mismatch](#sample-ratio-mismatch-srm), or a setup mistake. Don't restart an experiment because the results aren't what you hoped for. Repeated restarts inflate your false-positive rate. #### Where to find them Open the experiment and click **Make Decision** on the status banner. The menu appears while the experiment is **In Progress** or **Ready for Review**. You need edit access to the experiment, and you must save any unsaved changes first. #### Experiments tracked with exposure events (third-party flags) **Restart Analysis** sets the experiment start date to the current date and time and clears the end date and cached results. Only exposures and metric events after the new start date are analyzed. Mixpanel doesn't control assignment for these experiments, so nothing changes for your users. If you need to re-randomize, do it in your flagging tool. #### Experiments on Mixpanel Feature Flags **Restart Experiment** moves the start date to the current date and time and clears cached results. Mixpanel then asks how to handle variant assignments: * **Keep current assignments**: Users stay in their current variant. Use this when the fix doesn't affect who is in which group, for example a tracking bug. * **Reset assignments**: Re-randomizes all users, except those you added to a variant as sticky users. Use this when users may have been affected by the earlier period, for example a bug that made some users churn from one variant. Otherwise those users stay in their group but don't show up in the new data, which can cause an SRM. The feature flag keeps serving throughout. **Reset Experiment** ends the experiment without shipping a variant. Mixpanel disables the linked feature flag, so all users get your code's fallback (default) experience. The experiment is marked **Abandoned**. To reopen it, use **Change Decision → Undo Decision**. The flag stays disabled until you re-enable it from the [Feature Flags](/docs/featureflags) page. #### Which should I use? | Goal | Action | | - | - | | Fix a tracking or analysis mistake, and keep users where they are | **Restart Analysis** or **Restart Experiment → Keep current assignments** | | Start over with fresh random assignments | **Restart Experiment → Reset assignments**. Users you added to a variant as sticky users keep their variant. For a fully clean slate, you can also create a new experiment. | | Stop the experiment and send everyone back to the default experience | **Reset Experiment** | ### Reopening a Decided Experiment Once you've made a decision on an experiment, you can reopen it in place instead of duplicating it. On the decided banner, use the **Change Decision** dropdown: * **Edit Decision**: Revise the decision you recorded (for example, change which variant you shipped or update the notes) while keeping the experiment decided. * **Undo Decision**: Revert the experiment to its concluded, pre-decision state so the decision can be revisited. Editing settings on a decided experiment also reopens it. If you change the date range, the duration or end condition, or any analysis configuration, the recorded decision is cleared and the experiment is reopened. Mixpanel shows a warning before this happens so you can confirm you want to discard the decision. Reopen an experiment to fix a genuine mistake, like a misconfigured setting or a decision you recorded in error. Don't reopen it just to change your mind because you didn't like the results. This matters most for Frequentist experiments. Revisiting a decision after you've seen the results inflates the false-positive rate. Each time you look at the data and then keep collecting or re-decide, you give a non-significant result more chances to cross the threshold by chance. That makes a significant outcome less trustworthy. Repeatedly restarting an experiment in search of significance may lead you to incorrect decisions. > [!NOTE] > > For Mixpanel feature-flag experiments, undoing a decision does **not** automatically re-enable the feature flag. If you need the flag serving its variants again, re-enable it separately from the Feature Flags page. ## Monitor Your Experiment Once your experiment is running, you can track its progress in the Experiments dashboard. Monitor key indicators: * **Sample Size Progress**: Track how many users have been exposed * **Data Quality**: Ensure exposure events are being tracked correctly * **Guardrail Metrics**: Watch for any negative impacts on important metrics * **External Factors**: Note any external events that might affect results ## Interpret Your Results The Experiments report identifies meaningful differences between the Control and Variant groups. Every metric has two key attributes, and which ones you see depends on your [experiment model type](#experiment-model-types). **Frequentist and Sequential models:** * p-value: this shows if the variants’ delta impact vs the control is statistically significant * lift: the variants’ delta impact on the metric vs control **Bayesian model:** * Chance to Beat Control: the probability that the variant's true metric value is better than the control's * lift: the variants’ delta impact on the metric vs control Metric rows in the table are highlighted when a difference is calculated with high confidence. For Frequentist and Sequential experiments, this is when the difference is greater than the confidence interval you set up during the experiment configuration. For Bayesian experiments, a variant is highlighted when its Chance to Beat Control reaches your Decision Threshold. For example, at a 95% threshold, a variant is flagged as a winner at 95% or above, and as a loser at 5% or below. * Positive differences, where the variant value is in the target direction compared to the control, are highlighted in green * Negative differences, where the variant value is opposite the target direction compared to the control, are highlighted in red * Statistically insignificant results remain gray > [!NOTE] > > Hover over a value in a metric row to see more detail behind the numbers and to view the metric in Insights. ### How do you read statistical significance? Statistical significance (p-value) helps you determine whether your experiment results are likely to hold true for the full rollout, giving you confidence in your decisions. On Bayesian experiments, the equivalent signal is the Chance to Beat Control, described under [Bayesian](#bayesian) below. ![image](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/exp_stat_sig.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=db50c89dba6c78d0b506ac89cf159cef) #### How Mixpanel Calculates Results How Mixpanel evaluates your experiment depends on two things: the [experiment model type](#experiment-model-types) you selected, and the type of each metric. The Frequentist and Sequential models compute p-values and confidence intervals; the Bayesian model computes a probability that each variant beats control. ##### Frequentist and Sequential **Metric Types and Their Distributions:** Mixpanel categorizes metrics into four types, each using different statistical distributions: 1. **Total Events Metrics**: Use **normal distribution** of per-user event counts * Examples: Total purchases, total page views * Variance is calculated directly from the distribution of per-user event counts 2. **Total Sessions Metrics**: Use **Poisson distribution** * Variance equals the mean (characteristic of Poisson distributions) 3. **Rate Metrics** (Conversion rates, Retention rates): Use **Bernoulli distribution** * Examples: Signup conversion rate, checkout completion rate, 7-day retention * Models binary outcomes (did/didn't convert) across your user base 4. **Value Metrics** (Averages, Sums of properties): Use **normal distribution approximation** * Examples: Average order value, total revenue, average session duration * Calculates variance using sample statistics **Statistical Calculation Process:** For all metric types, we follow the same general process: 1. **Calculate group rates** for control and treatment 2. **Estimate variance** using the appropriate distribution 3. **Compute standard error** from variance and sample size 4. **Calculate Z-score** measuring how many standard errors apart the groups are 5. **Derive p-value** from Z-score using normal distribution **Statistical Foundation:** Our calculations assume normal distributions for the sampling distributions of our metrics. While individual data points may not be normally distributed, the Central Limit Theorem tells us that with sufficient sample sizes, the sampling distributions of means and proportions will approximate normal distributions, making our statistical methods valid. **For Sequential Testing:** * Uses continuous monitoring with adjusted significance thresholds with [mSPRT method](https://arxiv.org/pdf/1905.10493) * Allows for early stopping when significance is reached * More conservative calculations to account for multiple testing **For Frequentist Testing:** * Uses traditional hypothesis testing with fixed sample sizes * Formula: Max Significance Level (p-value) = \[1-CI]/2 where CI = Confidence Interval In the above image for example, max p=0.025 \[(1-0.95)/2] So, if an experiment's results show * p ≤ 0.025: results are statistically significant for this metric, i.e, you can be 95% confident in the lift seen if the change is rolled out to all users. * p > 0.025: results are not statistically significant for this metric, i.e, you cannot be very confident in the results if the change is rolled out broadly. ###### Example: E-commerce Checkout Experiment To illustrate how these calculations work in practice, let's walk through a concrete example. **Scenario:** Testing a new checkout UI on an e-commerce site with 20 users (10 control, 10 treatment). **Results:** * **Control group:** 5 users converted (50% conversion rate), average cart size \$60 * **Treatment group:** 6 users converted (60% conversion rate), average cart size \$67 **For Conversion Rate (Rate Metric - Bernoulli Distribution):** 1. **Group rates:** Control = 0.5, Treatment = 0.6 2. **Variance calculation:** Control = 0.5 × (1-0.5) = 0.25, Treatment = 0.6 × (1-0.6) = 0.24 3. **Standard error:** Combined SE = √((0.25/10) + (0.24/10)) = 0.221 4. **Z-score:** (0.6 - 0.5) / 0.221 = 0.45 5. **P-value:** \~0.65 (not statistically significant) **For Average Cart Size (Value Metric - Normal Distribution):** 1. **Group means:** Control = \$60, Treatment = \$67 2. **Variance calculation:** Uses the sample variance of cart values in each group 3. **Standard error:** Calculated from combined variance and sample sizes 4. **Z-score and p-value:** Computed using the same Z-test framework This example shows why larger sample sizes are crucial—with only 10 users per group, even a 10-point difference in conversion rate isn't statistically significant. #### Bayesian > [!NOTE] > > **Open beta.** The Bayesian model is in open beta. Behavior described below may change before general availability. The Bayesian model answers a different question than the Frequentist and Sequential models. Instead of asking "how surprising would this data be if the treatment had no effect?" (a p-value), it estimates a distribution of plausible values for each variant's metric and reports **how likely it is that the variant is actually better than control**. That probability is surfaced as the **Chance to Beat Control** column. **Priors:** Bayesian analysis combines the data you observed with a *prior*, an assumption about what the metric's value is likely to be before looking at the results. Mixpanel uses **weakly informative priors** that are automatically scaled to your experiment's own data. The prior is centered on the pooled metric value across control and the variant being compared, weighted by each one's exposures; its spread comes from the pooled variance of that same data; and its strength is a single pseudo-observation. That last point is what makes it weakly informative. The prior is strong enough to keep results stable when a variant has very few users, and negligible once real data accumulates: at the thousands of exposures a typical experiment reaches, it has effectively no influence on the outcome. You don't have to supply a prior, and the prior won't push results toward a value you didn't choose. It is not a fixed uniform prior, and it is not derived from control alone. **Models by metric type:** | Metric type | Data model | Prior | | - | - | - | | Averages, totals, sessions | Normal distribution over per-user values | Normal-Inverse-Gamma | | Conversion rates, retention rates, unique users | Bernoulli (binary converted / didn't convert) | Beta | | Formula metrics | Normal, using propagation of uncertainty across the formula's components | Normal-Inverse-Gamma | > [!NOTE] > > Total and session metrics are modeled as normally distributed per-user counts, on the same per-user scale used for averages, rather than as Poisson counts. This differs from the Frequentist path, which applies a Poisson variance on the totals scale. **How it's computed:** Each variant's distribution is calculated in closed form, then Mixpanel draws 50,000 samples from the control and variant distributions and compares them to derive the Chance to Beat Control and the interval around the lift. The sampler uses a fixed seed, so you get identical numbers on every reload. Each variant is compared against control only. In an experiment with three or more variants, you get one independent comparison per variant, each reported as its own Chance to Beat Control. Mixpanel does not report a probability that a given variant is the best of all of them. **Reading Chance to Beat Control:** With a Decision Threshold of 95%: * **97%**: above the threshold, highlighted as a winner. * **60%**: the variant is more likely better than not, but well short of the threshold. You don't yet have enough data to act. * **2%**: below the 5% lower bound, highlighted as a loser. The variant is very likely *worse* than control. This value can read exactly 100% or 0% when none of the 50,000 samples fell on the other side. **Credible intervals:** Alongside the lift, Bayesian results include a **credible interval**, the range that contains your chosen share of the plausible lift values (95% by default). A credible interval supports the reading that people often incorrectly apply to a frequentist confidence interval: there is a 95% probability the true lift falls inside it. Compared to other Bayesian tools: * The interval is a **highest-density interval**, the *narrowest* range containing 95% of the plausible values. Many Bayesian A/B tools instead report an equal-tailed interval, which trims 2.5% from each end and can be wider. * It is computed on relative lift (percentage difference from control), not on the absolute difference between the two groups. * Because of this, the interval is generally asymmetric around the reported lift, rather than "lift ± some margin." The lift shown for Bayesian metrics is the median of the plausible relative-lift values, chosen because it is robust to the long tails a ratio can produce and always falls inside the credible interval. **Supported metrics:** The Bayesian model supports averages, totals, sessions, unique users, conversion rates (including funnel conversion rate), retention rates, and formula metrics built from any of these. Some metric configurations are not yet supported by the Bayesian model, including total-based funnel conversion rates, retention-frequency metrics, and metrics that roll up user or cohort properties. When a metric isn't supported, its values still appear in the results table but without any statistics: no Chance to Beat Control, lift, or interval. If you rely on one of these metrics, use the Frequentist or Sequential model for that experiment. For formula metrics, every component must be supported, or the whole formula shows no statistics. ### How do you read lift? > [!NOTE] > > Lift is always calculated using **exposures** (users assigned to a variant) as the denominator — not the denominator you may see in other tabs like Totals or Chart. For funnel metrics, this means the lift denominator differs from the funnel conversion rate denominator. See the FAQ ["Why does the lift in Results disagree with the conversion rate in Totals or Chart?"](#why-does-the-lift-in-results-disagree-with-the-conversion-rate-in-totals-or-chart) for a worked example. Lift is the percentage difference between the control and variant(s) metrics. $Lift= { (variant \,group\,rate - control \,group\,rate) \over (control \,group\,rate)}$ The "group rate" in this formula is calculated differently for each metric type, so lift behaves differently depending on which type of metric you're measuring: | Metric type | Group rate numerator | Group rate denominator | | - | - | - | | Total Events | Total event count in the variant | Number of users exposed to the variant | | Total Sessions | Total session count in the variant | Number of users exposed to the variant | | Rate Metrics (Conversion, Retention) | Number of users who converted (or were retained) in the variant | Number of users exposed to the variant | | Value Metrics (Averages, Sums) | Sum of property values across users with an observed value for the metric | Number of users with an observed value for the metric, not all exposed users | Each metric type is detailed below. **Total Events Metrics:** * **Numerator:** Total event count in the variant * **Denominator:** Number of users exposed to the variant * **Group Rate:** Total count ÷ Number of users exposed * **Variance:** Calculated directly from the per-user event counts, treated as a continuous variable * **Example:** If the treatment group has 150 total purchases from 100 exposed users, the group rate = 1.5 purchases per user **Total Sessions Metrics:** * **Numerator:** Total session count in the variant * **Denominator:** Number of users exposed to the variant * **Group Rate:** Total count ÷ Number of users exposed * **Variance:** Equal to the mean (Poisson distribution property) **Rate Metrics (Conversion, Retention):** * **Numerator:** Number of users who converted (or were retained) in the variant * **Denominator:** Number of users exposed to the variant * **Group Rate:** Conversions ÷ Exposures * **Variance:** Calculated using Bernoulli distribution: p × (1-p) * **Example:** If 25 out of 100 exposed users convert, group rate = 0.25 (25%). Note that this denominator is exposures — not funnel entrants. This is different from the funnel conversion rate you see in the Totals or Chart tabs, which uses funnel entrants as the denominator. **Value Metrics (Averages, Sums):** A user has an *observed value* for a Value Metric if they triggered the metric's underlying event; exposed users who never triggered it are excluded from the group rate and variance rather than counted as zero. * **Numerator:** Sum of property values across users with an observed value for the metric * **Denominator:** Number of users with an observed value for the metric, not all exposed users * **Group Rate:** Sum of property values ÷ Number of users exposed with an observed value * **Variance:** Calculated from the distribution of individual property values, over that same observed-value population * **Example:** If the treatment group spent \$5,000 total from 20 users who had a value (out of 100 exposed), the group rate = \$250 average per user with an observed value **Why This Matters:** Value metrics report the average based only on users who had an observed value for the metric, not all exposed users, since there's no natural zero for someone who never triggered the underlying event. Exposures are still part of the Value Metrics calculation, just at a different step: the exposed count is excluded from the group rate and variance, but it is still used downstream in the standard error and confidence interval calculations, so overall reach still factors into how confident you can be in the result. > [!NOTE] > > **Metrics with a Group Identifier:** When you [change a metric's group identifier](/docs/data-structure/advanced/group-analytics#change-the-group-identifier-in-a-report) from Users to a group key (e.g., Company), exposures for that metric are counted at the group level. The number of exposed groups is then used for all of that metric's calculations — normalizing group rates, computing variance, and determining statistical significance. For example, if a metric is set to aggregate by Company and 200 companies have been exposed to the treatment, the group rate is calculated as the total metric value divided by those 200 exposed companies, not by the number of individual users. **Custom Formula Metrics:** For complex metrics using formulas like `Revenue per User = Total Revenue ÷ Unique Users`, Mixpanel uses propagation of uncertainty to estimate variance. This combines the variances of the component metrics (Total Revenue and Unique Users) to calculate the overall metric's statistical significance. The system assumes metrics in formulas are uncorrelated for these calculations. Each Value Metric used as a component in the formula uses the same observed-value-only population described above, not the full exposed count. The exposed count still enters separately at the standard error and confidence interval step. ### Segment your results Segmentation lets you break your experiment results down by a property (such as country, platform, plan type, or device) to see how the treatment effect varies across groups of users. This is useful for spotting cases where a change helps one segment but hurts another, which an aggregate result can hide. **How to use it:** Use the **breakdown picker** above the results table to choose a property to segment by. Mixpanel then computes a separate result (lift, p-value, and confidence) for each value of that property and lays them out in a table, so you can compare the variants within every segment. Each segment row reads exactly like the overall results: green for a significant positive difference, red for a significant negative one, and gray for differences that aren't statistically significant. This breakdown happens natively inside the Experiment report and is distinct from clicking **Analyze** on a metric, which opens a separate Insights report (see [Diagnosing experiments further](#diagnosing-experiments-further-in-regular-mixpanel-reports)). #### The risk of post-hoc segmentation Breaking results down after an experiment has run is a form of *post-hoc analysis*, and it carries a real statistical risk. Every additional segment you inspect is another chance to see a "significant" result that is actually just noise. This is the same multiple-comparisons problem described under [Bonferroni](#bonferroni-correction) and [Benjamini-Hochberg](#benjamini-hochberg-correction), but it's especially easy to fall into when you slice the same results many different ways looking for something that "worked." This practice is often called *p-hacking*: if you test enough segments, you will eventually find one with a low p-value purely by chance. Reporting that segment as a win, and constructing a story around why that particular group responded, can lead you to ship a change based on a false positive. > [!WARNING] > > Treat a winning segment as a **lead to investigate, not a conclusion**. If a segment looks promising, the rigorous next step is to run a fresh experiment that targets that segment specifically and confirms the effect. #### Why Mixpanel corrects segmented results by default Because segmenting multiplies the number of comparisons being made, Mixpanel corrects segmented results by default. When you don't already have a [Multiple Testing Correction](#bonferroni-correction) enabled, adding a breakdown turns on the [Benjamini-Hochberg correction](#benjamini-hochberg-correction) across its segments. If you already have Bonferroni enabled, Mixpanel keeps it rather than switching to Benjamini-Hochberg, since Bonferroni is the stricter check. Either way the correction is recommended but optional, and you can turn it off from the results if you want to see the uncorrected numbers. Benjamini-Hochberg controls the **false discovery rate**, the share of your flagged winners that are actually false positives. It does this by making the significance threshold stricter as you add more segments, so a segment still highlighted as a winner after correction is more trustworthy. Segments that only looked significant because you tested many of them are filtered out. See the [Benjamini-Hochberg Correction](#benjamini-hochberg-correction) section for a worked example of how the procedure ranks and thresholds p-values. This correction operates on the values in your breakdown, which is a different axis from the [Multiple Testing Correction](#bonferroni-correction) you apply across metrics and variants. That means adding more breakdown values doesn't inflate your false positive rate. ### When do we say the Experiment is ready to review? Once the ‘Test Duration’ setup during configuration is complete, we show a banner that says “Experiment is ready to review”. Please note, this banner only reflects that the Test Duration you configured has been reached - it doesn't mean your results are statistically significant and is not a recommendation to end the experiment. Test Duration can be either of two options: 1. Sample size to be exposed 2. Number of days you’d like to run the experiment NOTE: If you are using a 'sequential' or 'bayesian' experiment model type, you can always peek at the results sooner. Learn more about the [experiment model types](#experiment-model-types). A Chance to Beat Control describes the data you have collected so far, so unlike a fixed-horizon p-value it does not depend on having reached a predetermined sample size. Mixpanel does not, however, apply an always-valid correction on the Bayesian path the way the Sequential model applies mSPRT. If you want a formal guarantee about stopping early, Sequential is the model built for that. For small expected effects, still run your planned duration: a Chance to Beat Control computed on a few hundred users is very uncertain. ### Diagnosing experiments further in regular Mixpanel reports Click 'Analyze' on a metric to dive deeper into the results. This will open a normal Mixpanel insights report for the time range being analyzed with the experiment breakdown applied. This allows you to view users, view replays, or apply additional breakdowns to further analyze the results. You can also add the experiment breakdowns and filters directly in a report via the Experiments tab in the query builder. This lets you do on-the-fly analysis with the experiment groups. Under the hood, the experiment breakdown and filter work the same as the Experiment report. ## Experiments on Boards Add an experiment to a [Board](/docs/boards) to track its results alongside your other reports. An experiment can be added to multiple boards. There are two ways to add an experiment to a board: * **From the experiment**: Open the menu in the header breadcrumbs and select **Add to board**. Choose an existing board or select **Add to New Board**. * **From the board**: Add content to the board, select **Experiment**, then choose the experiment. Experiment cards are view-only. To edit an experiment, click **View experiment** on the card to open the experiment page. ### Card Views Each experiment card can show one of four views: * **Primary Metrics**: The primary metrics table with the lift for each variant. * **Exposures**: A chart of exposed users over time, by variant. * **Variants**: Each variant with its description and screenshot. * **Hypothesis**: The experiment's hypothesis. ### Card Data Experiment cards show exactly what is on the experiment page. They ignore the board's date range and filters, and use the experiment's own date range, metrics, and settings instead. ## Multiple Environments Multiple Environments lets you treat separate Mixpanel projects as development, staging, and production environments for the same experiment or feature flag. Build and iterate on an experiment (and its underlying flag) in one project, then push it to another project when you're ready — without recreating it by hand. Linked experiments and flags stay connected so you can continue pushing updates over time. ### Other Environments Selector The "Other Environments" selector appears under the **Configuration** tab of an experiment, inside the **More** section. This panel lets you manage an experiment's links to copies of itself in other projects. #### Pushing changes Pushing changes copies the full configuration of the source (original) experiment to the linked destination experiment in the other project. Any changes that exist only on the destination experiment will be overwritten. #### Other Environments Menu This menu lists the experiments in other projects that are linked to the current experiment. From here, you can navigate to a linked experiment, push the source experiment's current configuration to it, or remove the connection. #### Duplicate To Project To duplicate an experiment to another project, open the Other Environments menu and select **Duplicate To Project**. In the dialog, choose the destination project. This flow is for duplicating across projects only — to duplicate within the same project, use the existing **Duplicate** option within the experiment's overflow (`...`) menu in the top-right of the experiment page. Once duplicated, the new experiment is linked to the original and can be managed from the "Other Environments" menu. #### Feature Flags If an experiment is linked to a **Mixpanel** Feature Flag, the underlying flag cannot be duplicated on its own from the Feature Flags page — use the experiment's Duplicate flow to copy the experiment and flag together. If your experiment uses a **third-party** flag instead, you can duplicate the experiment directly; no flag duplication step is involved. When duplicating an experiment that is linked to a Mixpanel Flag to another project, you will be prompted to confirm whether you also want to duplicate the linked flag. If you do, the new experiment will be linked to the new flag, and the new flag will also appear in the "Other Environments" menu of the original flag. When pushing changes, if both the source and destination experiments are linked to flags that are also linked (i.e., you chose to duplicate the flag as well), you can choose to push any changes from the source flag to the destination project's flag at the same time. #### Permissions To duplicate an experiment to another project, you need permission to create and edit experiments in **both** the source and destination projects. The required permission level in the destination project is the same as what's needed to manually create a new experiment there — governed by that project's roles and custom roles. #### What to expect after duplicating When an experiment is duplicated to another project, time-based settings (such as the experiment period and day counts) reset to the day the duplicate was created — the same behavior as duplicating within a project. If your experiment targets a cohort, Mixpanel assumes the event properties referenced by that cohort exist in the destination project. It does not validate property availability at copy time, so verify that your destination project collects the same events and properties before running the experiment there. #### Removing a connection Removing an inter-project connection from the "Other Environments" menu unlinks the two experiments — it does **not** delete the experiment in the destination project. The copied experiment remains in the destination project and continues to function independently; it simply loses its link to the original. > [!NOTE] > > **Flag limits across projects:** The same feature flag key used across multiple projects counts once against your plan's active flag limit. ## Advanced Statistical Methods Mixpanel offers several advanced statistical options to help you get more reliable experiment results. These features address common challenges in experimentation: controlling for multiple comparisons, handling outliers, validating experiment setup, and reducing variance to reach significance faster. ### Methods at a Glance | Technique | What It Does | When to Use | Actions to Take | | - | - | - | - | | **Bonferroni Correction** | Makes significance thresholds stricter to account for testing multiple metrics/variants at once | You're tracking multiple metrics or testing multiple variants and want maximum protection against any false positive. Frequentist and Sequential only | If a metric loses significance after correction, don't treat it as a confirmed winner. Run a follow-up experiment focused on that metric alone. | | **Benjamini-Hochberg Correction** | Controls the proportion of significant results that are false positives (false discovery rate) | You're tracking many metrics and want to correct for multiple comparisons without being overly conservative. Frequentist and Sequential only | Treat the surviving significant results as your set of likely winners, knowing a small share may still be false positives. Validate the most important ones in a follow-up. | | **Winsorization** | Caps extreme outlier values at a percentile you choose | Revenue or value-based metrics where outliers are common | If results change substantially after Winsorization, this indicates your original results were driven by outliers. Decide whether your business decision is about typical users or extreme ones. Applies to all experiment model types. | | **SRM** | Checks whether your variant split matches the configured allocation | Always on as a health check | Pause the experiment. Identify and fix the root cause of the mismatch, then [restart the experiment](#restarting-or-resetting-an-experiment). | | **Pre-Experiment Bias** | Checks whether variant groups were already different *before* the experiment started | Always on as a health check | Your groups had pre-existing bias. Consider enabling CUPED to correct for it. Investigate your assignment logic to prevent it in future experiments. | | **CUPED** | Uses pre-experiment behavior to adjust for natural variance and pre-existing bias, helping you reach significance faster | Your users have pre-experiment history and your metrics have high natural variance | If confidence intervals don't noticeably tighten, pre-experiment behavior isn't predictive for your metrics. Results are still valid, you just won't get faster detection. | ### Which methods apply to Bayesian experiments Most of the methods below are independent of your experiment model type and work the same way on a Bayesian experiment: * **Winsorization**, **CUPED**, **segmentation**, **SRM**, and **Pre-Experiment Bias** all apply. They operate on the metric data before the statistical model runs, so the Bayesian model consumes the adjusted values. With CUPED, the effect shows up as narrower credible intervals while the reported lift stays roughly the same. * **Multiple testing corrections (Bonferroni and Benjamini-Hochberg)** don't apply. Both work by adjusting p-value thresholds, and Bayesian results don't produce a p-value; the decision comes directly from the Chance to Beat Control. The setting is hidden on Bayesian experiments, including when you add a breakdown. > [!NOTE] > > The caution about [post-hoc segmentation](#the-risk-of-post-hoc-segmentation) still applies to Bayesian experiments. Inspecting many segments looking for one that "worked" raises your odds of finding a variant that looks like a winner by chance, whether you're reading p-values or probabilities. Treat a winning segment as a lead to test in a fresh experiment. ### Bonferroni Correction When you track multiple metrics in an experiment, or test multiple variants against a control, you increase the chance of seeing a false positive. This is similar to rolling multiple dice: there's only a 1-in-6 chance of rolling a six with one die, but if you roll 10 dice, the chance that at least one shows a six is much higher. The same principle applies to experiment metrics. At a 95% confidence level, each metric has a 5% chance of showing a significant result by pure chance. But when you're tracking many metrics, the probability that at least one of them shows a false positive increases substantially. Bonferroni Correction addresses this by making the significance threshold stricter. When enabled, Mixpanel divides your confidence threshold by the number of comparisons being made (metrics × non-control variants). For example, if you have 3 metrics and 2 treatment variants, that's 6 total comparisons. If you selected a 95% confidence level, we'd increase the threshold to about 99% to compensate. **When to use Bonferroni Correction:** * You're tracking multiple primary metrics and want to reduce false positive risk * You have multiple treatment variants competing against control * You want higher confidence that significant results are real Bonferroni Correction is conservative. It reduces false positives but also makes it harder to detect true effects. If you have a single metric that matters most to you, you may prefer to focus on that primary metric without correction. If you're testing many metrics and Bonferroni feels too strict, consider Benjamini-Hochberg below. ### Benjamini-Hochberg Correction Benjamini-Hochberg (BH) is a more balanced alternative to Bonferroni for handling multiple comparisons. Instead of controlling the probability that *any* significant result is a false positive (the family-wise error rate that Bonferroni targets), BH controls the **false discovery rate** — the expected *proportion* of your "winners" that are actually false positives. This better matches how experiment decisions are actually made. You only ship winners, so what matters is the share of those winners that are real. If you have 4 significant metrics and on average 1 is a false positive, your false discovery rate is 25% — regardless of how many metrics you tested in total. **How it works:** Mixpanel ranks all p-values for the experiment from smallest to largest. Each p-value is compared to a threshold of (rank / total tests) × α, where α is determined by your confidence level. The largest p-value that passes its threshold — and every smaller p-value — is marked significant. For example, with 5 metrics at a 95% confidence level (α = 0.05): | Metric | P-value | Rank | BH Threshold (0.05 × rank / 5) | Significant? | | - | - | - | - | - | | Revenue | 0.003 | 1 | 0.010 | ✅ | | Signups | 0.012 | 2 | 0.020 | ✅ | | Click-through | 0.018 | 3 | 0.030 | ✅ | | Time on page | 0.041 | 4 | 0.040 | ❌ | | Bounce rate | 0.062 | 5 | 0.050 | ❌ | Under BH, the first three metrics are significant. Under Bonferroni at the same confidence level, only Revenue would pass. **When to use Benjamini-Hochberg Correction:** * You're tracking many metrics and want correction without sacrificing too much statistical power * You're comfortable accepting that a small proportion of your significant results may be false positives, in exchange for catching more real effects * You want a correction method that scales gracefully as you add metrics A small proportion of significant results may still be false positives under BH, but you are much more likely to detect real effects than with Bonferroni. BH is the recommended choice when you're tracking many metrics or running multi-variant experiments and want to preserve statistical power. You can only apply one correction method at a time. Choose Bonferroni when the cost of acting on any false winner is high, and Benjamini-Hochberg when you're testing many metrics and want a more balanced trade-off between false positives and missed effects. ### Winsorization Outliers can distort experiment results, especially for revenue or value-based metrics. If most customers have cart sizes under \$100 but one customer in the treatment group spends \$100,000, this single extreme value could skew all your results and make it harder to detect real effects. Winsorization addresses this by capping extreme values at a specified percentile. When enabled, you select a percentile threshold (such as 5%). Mixpanel then finds the values at the top and bottom of that percentile range and caps any values beyond those limits. In the example above, if the 95th percentile corresponds to \$90, then the \$100,000 purchase would be treated as \$90 for the analysis. **When to use Winsorization:** * Your metrics have high variance due to extreme values * You're measuring revenue, order value, or other metrics where outliers are common * You want to understand the effect on typical users rather than being influenced by rare extremes Winsorization changes the data being analyzed. If extreme values are genuinely important to your business (for example, if a small number of customers drive most of your revenue), you may want to analyze results without Winsorization to understand the full picture. ### Health Checks Before trusting your experiment results, it's important to verify that your experiment was set up correctly. Mixpanel offers two health checks to help you validate your experiment's integrity. #### Sample Ratio Mismatch (SRM) When randomly assigning users to control or treatment groups, you expect the split to roughly match your allocation targets. If you configured a 50/50 split but ended up with 60% in control and 40% in treatment, something may have gone wrong. Small imbalances can happen by random chance, but larger mismatches often indicate a bug in your assignment logic, tracking implementation, or user bucketing. SRM uses a Chi-squared test to determine whether the observed split is likely due to chance or signals an actual problem. If Mixpanel detects a statistically significant sample ratio mismatch, you'll see a warning. We recommend investigating the root cause of the mismatch and [restarting the experiment](#restarting-or-resetting-an-experiment) after fixing it. #### Pre-Experiment Bias Analysis When you see lift in your experiment, you want to be confident it's caused by your treatment—not by pre-existing differences between the groups. Pre-Experiment Bias helps you check this. The idea is simple: Mixpanel runs the same statistical analysis on 2 weeks of pre-experiment data. It looks at how each variant's users behaved *before* they were exposed to the experiment, using the same metrics you're measuring during the experiment. If the groups were properly randomized, there should be no significant difference in the pre-experiment period—users hadn't been treated yet, so nothing should cause a difference. But if Pre-Experiment Bias finds statistically significant lift in the pre-experiment data, that's a red flag. It suggests the groups weren't equivalent to begin with, which means any lift you see during the experiment might not be caused by your treatment. **Example:** Your experiment shows the treatment group has 15% higher engagement. But Pre-Experiment Bias reveals this same group already had 12% higher engagement before the experiment started. This suggests your randomization may have assigned more naturally-engaged users to treatment, and the lift you're seeing is largely a pre-existing difference rather than a treatment effect. Pre-Experiment Bias failing for a metric doesn't necessarily invalidate your experiment. Enabling CUPED may help reduce the impact of pre-experiment bias on the data, allowing you to still analyze the results. You may however want to review your implementation to ensure assignment is not biased towards some users. #### Common reasons health checks may fail: * Bugs in the randomization or bucketing logic * Exposure events not firing consistently across variants * Users being reassigned to different variants mid-experiment ### CUPED (Controlled-experiment Using Pre-Experiment Data) CUPED is a variance reduction technique that helps you reach statistical significance faster. It uses pre-experiment behavioral data to produce narrower confidence intervals, potentially reducing the time needed to conclude an experiment significantly. The core insight is that users who had high engagement or revenue *before* the experiment are likely to have high values *during* the experiment as well. By accounting for this correlation, CUPED can separate the natural variation in user behavior from the effect of your treatment. **How it works:** For each user, Mixpanel looks at their metric value during a pre-exposure period of your choosing and their metric value during the experiment. If these values are strongly correlated (users with high pre-experiment values tend to have high post-experiment values), CUPED uses this relationship to reduce variance in the experiment results. The mean values remain unchanged—CUPED only tightens the confidence intervals. This is applied to all metric categories: primary, secondary, and guardrail metrics. **Configuring the pre-exposure period:** When you enable CUPED, you can choose the lookback window under **Configuration → CUPED Pre-Exposure Period**. The available options are **1 Week**, **2 Weeks** (default), **4 Weeks**, **60 Days**, and **90 Days**. A longer window queries further back in time, which picks up more users and more historical signal. Choose a window that is long enough to capture your users' typical behavior — if some users are only active once a month, a 1-week window may miss them entirely. Avoid windows that overlap with previous experiments on the same user population, as shared exposure can reduce sensitivity and introduce bias. That said, a longer window is not always better: behavior from far in the past can be less predictive of current behavior, and users with no activity in the window are assigned a pre-exposure value of zero, which dilutes the variance reduction benefit. Two weeks is a good default for most experiments. **Handling users without pre-experiment data:** Not all users in your experiment will have activity during the pre-exposure period. New users, or users who simply didn't perform the relevant event before the experiment, are assigned a value of zero for the pre-exposure metric. This allows all experiment users to be included while still benefiting from variance reduction for users who do have historical data. **When to use CUPED:** * You have sufficient pre-experiment data for most users in your experiment * Your metrics have high natural variance between users * You're measuring metrics where past behavior predicts future behavior (engagement, revenue, retention) CUPED works best when pre-experiment and post-experiment metrics are strongly correlated. If users' behavior is highly unpredictable or your experiment targets new users with no history, you may not see any benefit. ## Looking under the hood - How does the analysis engine work? ![image](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/exp_under_hood.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=bf4272f7f11ea4d80d8194cb4205bd0a) The Experiment report behavior is powered by [borrowed properties](/docs/features/custom-properties#borrowed-properties). For every user event, we identify if the event is performed after being exposed to an experiment. If it were, then we would borrow the variant details from the tracked `$experiment_started` to attribute the event to the proper variant. ### Implementation for Experimentation If you're using [Mixpanel Feature Flags](/docs/featureflags), you don't need to do anything extra to send exposure events — Mixpanel's SDKs track them automatically when a user is exposed to a variant. Your experiment will show up in the Experiment report as soon as the feature flag is created with the Experiment type. If you're using a 3rd party feature flagging service or an in-house feature flag system, you can still analyze your experiments in Mixpanel by sending exposure events yourself in the following format: **Event Name:** “\$experiment\_started” **Event Properties:** * “Experiment name” - the name of the experiment to which the user has been exposed * “Variant name” - the name of the variant into which the user was bucketed, for that experiment An example track call would look like this: `mixpanel.track('$experiment_started', {'Experiment name': 'Test', 'Variant name': 'v1'})` You can specify the event and property that should be used as the exposure event, name, and variant. Go to **Settings → Project → Experimentation**. This allows you to use an experiment event that you're already tracking, for example, via a 3rd party feature flagging tool. Note, only string properties should be used for the 'Name' and 'Variant'. ![image](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/exp_settings_rescale.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=9e749dcb19d0cfdf1f14fea7c5a99093) #### Sending multiple experiments in a single exposure event By default, each `$experiment_started` event records a single experiment and its variant. If a user is exposed to several experiments at the same time, you can instead record all of them on one exposure event, rather than sending a separate event per experiment. To enable this, open the **Experiment Event Format** settings and set **Experiments in each Exposure Event** to **More than one**. When you do, the **Experiment and Variant format** options change from "Separate values"/"Combined value" to **Dictionary (Key-value pairs)** or **List (Ordered values)**. The exposure event name stays `$experiment_started` in every case. **Dictionary (Key-value pairs):** each experiment key becomes a property key on the event, and its value is the variant key the user was bucketed into for that experiment: ```json theme={"system"} { "event": "$experiment_started", "properties": { "[Experiment Key]": "[Variant Key]", "[Another Experiment Key]": "[Another Variant Key]" } } ``` **List (Ordered values):** experiments are recorded as an ordered array under a single list property (default key `Experiments`), where each entry pairs the experiment key with its variant key joined by a configurable **String Separator** (default `:`), i.e. `[Experiment Key]:[Variant Key]`: ```json theme={"system"} { "event": "$experiment_started", "properties": { "Experiments": [ "[Experiment Key]:[Variant Key]", "[Another Experiment Key]:[Another Variant Key]" ] } } ``` ### When to track an exposure event? * An exposure event ONLY needs to be sent the first time a user is exposed to an experiment, as long as the user is always in the initial bucketed variant. Exposure events don’t have to be sent subsequently in new sessions. * If a user is part of multiple experiments, by default send a separate exposure event for each experiment. Alternatively, if you set **Experiments in each Exposure Event** to **More than one** in the **Experiment Event Format** settings, you can record all of a user's experiments on a single exposure event (see "Sending multiple experiments in a single exposure event" above). * Send exposure event only when a user is actually exposed, not at the start of a session. For example, if you want to run an experiment on the payment page of a ride-sharing app, you only really care about users who open the app, book a ride, and then reach the payment page. Users who only open the app and do other activities shouldn't be considered in the sample size. So exposure event should ideally be implemented to track only once the payment page is reached. * Send exposure details and not the assignment. For example, you begin an experiment on 1st Aug, and 1M users are ‘assigned’ to the control and variant. You do not want to send an ‘exposure’ event for all these users right away, as they have only been assigned to the experiment. It’s possible that some user gets exposed on 4th Aug and some on 8th Aug. You would want to track \$experiment\_started at the exposure for accurate analysis. ### FAQs 1. If a user switches variants mid-experiment, how do we calculate the impact on metrics? We break a user and their associated behavior into fractional parts for analysis. We consider the initial behavior part of the first variant, then once the variant changes, we consider the rest of the behavior for analysis towards the new variant. 2. If a user is part of multiple experiments, how do we calculate the impact of a single experiment? We consider the complete user’s behavior for every experiment that they are a part of. We believe this will still give accurate results for a particular experiment, as the users have been randomly allocated. So there should be enough similar users, ie, part of multiple experiments, across both control and variants for a particular experiment. 3. For what time duration do we associate the user being exposed to an experiment to impact metrics? After the most recent experiment exposure for a user, we consider that user’s behavior as ‘exposed’ to an experiment for a max of 90 days. #### Why does the lift in Results disagree with the conversion rate in Totals or Chart? This is expected behavior — the two numbers use different denominators and answer different questions. **Lift** divides conversions by **exposures** (all users assigned to a variant). **Totals/Chart** for funnel metrics divides funnel completers by **funnel entrants** (users who started the funnel). When a variant changes how many users enter the funnel — for example, a new CTA that attracts more (or less qualified) users — the two rates can move in opposite directions. **Worked example:** | | Control | Variant (v1) | | - | - | - | | Exposures (users assigned) | 35,350 | 35,620 | | Funnel entrants | 7,504 | 8,676 | | Funnel completers | 2,289 | 2,480 | | **Funnel conversion** (completers ÷ entrants) | 30.50% | 28.58% | | **Per-exposure conversion** (completers ÷ exposures) | 6.49% | 6.96% | * **Funnel conversion (Totals/Chart tab):** v1 is 28.58% vs control 30.50% — v1 looks **worse** (−6.3%). * **Per-exposure conversion (basis for Lift):** v1 is 6.96% vs control 6.49% — v1 looks **better** (+7.52%). Both are correct. The funnel conversion rate answers: "For users who started the funnel, how often did they finish?" The per-exposure conversion rate answers: "For all users assigned to this variant, how often did they convert?" In this example, the variant brought more users into the funnel (8,676 entrants vs 7,504). Those additional users lowered the funnel completion rate, but the variant still converted a larger share of its total exposed population. Lift uses the per-exposure rate because it measures the overall impact of the variant on your entire user base, not just on users who happened to enter the funnel. ## Experimentation Pricing FAQ ### Pricing Unit Experiments usage is measured in MEU - Monthly Experiment Users. Only users exposed to an experiment in a month are counted towards this tally. #### How are MEUs different than MTUs (Monthly Tracked Users)? MTUs count any user who has tracked an event to the project in the calendar month. MEU is a subset of MTU; it’s only users who have tracked an exposure experiment event (ie, `$experiment_started`) in the calendar month. #### How can I estimate MEUs? If you actively run experiments, you can look at the number of monthly users exposed to an experiment. Note that the MEU calculation is different if users are, on average, exposed to 30 or more experiments in a month. If not running experiments, below are some rough estimations of MEU's based on the number of MTUs being tracked to the project. | **MTU bucket** | **Estimated MEU (% MTU)** | | - | - | | Small (\< 100k) | 50-100% | | Medium (100k - 1M) | 40-75% | | Large (1M - 10M) | 25-60% | | Very large (10M - 100M) | 20-50% | | 100M + | 10-25% | #### Does it matter how many experiments a user is exposed to within the month? We’ve accounted for an MEU to be exposed to up to 30 experiments per month. If the average number of experiment exposure events per MEU is over 30, then the MEUs will be calculated as the total number of exposure events divided by 30. #### What happens if I go over my included or purchased MEU? On a Free plan, Experiments pauses until your usage resets at the start of the next calendar month, or you upgrade. Your feature flags keep serving and routing traffic. On a Growth plan, Experiments keeps working and usage beyond your included or purchased MEU is billed at an overage rate. You can purchase up to 100k MEU per month on Growth; for more, [contact us](https://mixpanel.com/contact-us/sales/) about an Enterprise plan. #### Can I analyze experiments that started before I purchased Experiments volume? No. If you purchase Experiments volume, you can only analyze experiments that start on or after your purchase date. Experiments running within your plan's included MEU are not affected by this restriction. #### But I am already paying for exposure events in my regular plan. Am I getting double-charged? No. Exposure events covered by your Experiments usage are waived from your regular Mixpanel plan. They are only counted via the MEU calculation. #### How can I monitor my account’s MEU consumption? You can see your experiment MEU usage by going to Organization Settings > Plan Details & Billing. ## References ### Experiment Model Types * Sequential: Allows you to detect lift and conclude experiments quickly, but may fail to reach significance for very small lifts. **When to use?** For large changes (\~10%+ lift) when you want to stop early once significance is reached. * Frequentist: Capable of detecting smaller lifts, but requires you to keep experiments for the full duration. You’re discouraged from preemptively making decisions before the test duration is complete. **When to use?** For very small changes (\~1% lift) when precision matters. * Bayesian (open beta): Reports the probability that each variant beats control instead of a p-value, and can be read at any point during the experiment. **When to use?** When you're reporting results to an audience that doesn't work in p-values. Note that this model is in [open beta](#bayesian) and a few metric configurations aren't supported. ### Experiment metric types * **Primary Metrics:** Main goals you're trying to improve. These are metrics used to determine if the experiment succeeded. Examples: revenue, conversion rates, ARPU. * **Guardrail Metrics:** These are other important metrics that you want to ensure haven’t been negatively affected while focusing on the primary metrics. Examples: CSAT, churn rate. * **Secondary Metrics:** These provide a deeper understanding of how users are interacting with your changes, i.e, help to understand the "why" behind changes in the primary metric. Examples: time spent, number of pages visited, or specific user actions. ## Make Your Decision Once the experiment is ready to review, you can choose to 'End Analysis'. Use these guidelines to make informed decisions: ### When to Ship a Variant * **Statistical significance achieved** (or, on a Bayesian experiment, **Chance to Beat Control has reached your Decision Threshold**) AND **practical significance met** (lift meets your minimum threshold) * **Guardrail metrics remain stable** (no significant negative impacts) * **Sample size is adequate** for your confidence requirements * **Results align with your hypothesis** and business objectives ### When to Ship None * **No statistical significance** achieved after adequate test duration; on a Bayesian experiment, Chance to Beat Control has stayed short of your Decision Threshold * **Statistically significant but practically insignificant** (lift too small to matter) * **Negative impact on guardrail metrics** outweighs primary metric gains * **Results contradict** your hypothesis significantly ### When to Rerun or Iterate * **Inconclusive results** due to insufficient sample size * **Mixed signals** across different user segments * **External factors** contaminated the test period * **Technical issues** affected data collection ### What to Watch Post-Rollout * **Monitor guardrail metrics** for 2-4 weeks after full rollout * **Track long-term effects** beyond your experiment window * **Watch for novelty effects** that may wear off * **Document learnings** for future experiments ### Decision Options in Mixpanel * **Ship Variant (any of the variants)**: You had a statistically significant result. You have made a decision to ship a variant to all users. NOTE: Shipping variant here is just a log; it does not actually trigger rolling out the feature flag unless you are using [Mixpanel feature flags](/docs/featureflags). * **Ship None**: You may not have had any statistically significant results, or even if you have statistically significant results, the lift is not sufficient to warrant a change in user experience. You decide not to ship the change. * **Defer Decision**: You may have a direction you want to go, but need to sync with other stakeholders before confirming the decision. This is an example where you might defer a decision and come back at a later date and log the final decision. ### Experiment Management You can manage all your experiments via the Experiments Home tab. You can customize which columns you’d like to see. ![image](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/exp_management.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=dcd8cb61c98cce1a670de028e1fe113a) # Exposure Events and MEU Metering Source: https://docs.mixpanel.com/docs/experiments/exposure-event-metering Why exposure events you already send count toward your Experiments usage, and how to change which event Mixpanel meters > [!NOTE] > > This page is for projects that send `$experiment_started` events from a third-party experimentation platform or an in-house feature flagging system, and that do not run experiments through Mixpanel Experiments or Mixpanel Feature Flags. > > If you run experiments in Mixpanel, no action is needed — see [Experiments](/docs/experiments). ## Why your exposure events count toward MEU Experiments usage is measured in **Monthly Exposed Users (MEU)**: broadly, the distinct users who tracked an exposure event during a calendar month. Projects averaging more than 30 exposures per user in a month are calculated differently — see [Pricing Unit](/docs/experiments#pricing-unit) for the full calculation, and [Plan Availability](/docs/experiments#plan-availability) for the amount included with your plan. Mixpanel meters the event configured as your project's **exposure event**, whichever system emits it — Mixpanel Feature Flags, a third-party platform, or your own code. Every project starts with that setting pointed at the reserved event name `$experiment_started`. That means if your project was already sending `$experiment_started` events — for example because you follow the [documented format](/docs/experiments#implementation-for-experimentation) for analyzing third-party experiments in Mixpanel — those events count toward your MEU allowance even though you are not using Mixpanel to run the experiments. If you don't want those events metered, you have two options below. **Option 1 is preferred**: it's a settings change and requires no code deploy. > [!WARNING] > > **Either option ends Experiment report analysis for these experiments.** > > The [Experiment report](/docs/experiments) and MEU metering both read whichever event your project has configured as its exposure event. There is no configuration that lets the report analyze your exposures while excluding them from MEU — if the report can see them, they are metered. > > If you want to keep analyzing your third-party experiments in Mixpanel, leave your settings as they are. See [Plan Availability](/docs/experiments#plan-availability) for your included MEU and how to purchase more. > [!NOTE] > > **These events still count toward your regular event usage.** > > While exposure events are metered as MEU, they are deducted from your plan's ordinary event usage so you aren't billed twice — see [Am I getting double-charged?](/docs/experiments#but-i-am-already-paying-for-exposure-events-in-my-regular-plan-am-i-getting-double-charged) Once you stop metering them under either option, that deduction no longer applies and the events count toward your event usage like any other event, as they did before you had Experiments. > > Neither option stops the events being ingested. If your goal is to stop ingesting them entirely, stop sending them. ## Option 1 — Change your exposure event in project settings Point your project's exposure event setting at an event your project never sends. Your `$experiment_started` events keep arriving and stay fully queryable as ordinary events; they simply stop being counted as MEU. **1. Open your Experimentation settings** Go to **Settings → Project → Experimentation**. **2. Change the exposure event** Change the event from `$experiment_started` to an event name your project does not send — a placeholder such as `not a real event` works well. The important thing is that no event with that name is ever ingested. ![Experimentation settings](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/exp_settings_rescale.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=9e749dcb19d0cfdf1f14fea7c5a99093) **3. Save** Save the setting. Metering applies to events ingested from this point forward. ## Option 2 — Change your tracking implementation Change your third-party platform or in-house system to emit a different event name instead of the reserved `$experiment_started`, leaving your project settings untouched. This requires a code or configuration change on your side, and your new events won't be continuous with the `$experiment_started` events you've already sent — any saved report or dashboard built on the old event keeps referencing it. For most projects Option 1 is the simpler path. Choose this option if you'd rather stop emitting the reserved `$experiment_started` name altogether — for example to keep your tracking plan clean — instead of leaving a placeholder event in your project settings. ## How to check your MEU usage Go to **Organization Settings → Plan Details & Billing** to see your current MEU consumption against your allowance. ## FAQ #### Does this delete or change my existing events? No. Neither option modifies data already in your project. Your historical `$experiment_started` events remain intact and queryable in reports, cohorts, and exports. #### Will my existing reports and dashboards keep working? It depends on the option. Under **Option 1** you keep sending `$experiment_started`, so reports querying it as a regular event continue to receive new data. Under **Option 2** you stop sending it, so those reports keep rendering your historical data but receive nothing new — point them at your new event name. Under either option, the [Experiment report](/docs/experiments) stops analyzing these experiments — see the warning above. #### Can I switch back later? Yes. Under Option 1, changing the exposure event setting back to `$experiment_started` resumes both metering and Experiment report analysis on those events from that point forward. Do this when you're ready to adopt Mixpanel Experiments. #### What if I do want to use Mixpanel Experiments? Leave your settings as they are and see [Experiments](/docs/experiments) to get started. If you run experiments through [Mixpanel Feature Flags](/docs/featureflags), exposure events are tracked automatically and you don't need to send them yourself. # Web Experiments Source: https://docs.mixpanel.com/docs/experiments/no-code-experiments Run A/B tests without shipping code Web Experiments let you build and launch A/B test variants on your website through a visual editor, with no code deploy per test. You open the page you want to test, click the element you want to change, edit it directly or describe the change to Mixpanel Agent, then launch. **Beta.** Web Experiments is currently available to a limited set of customers during Beta. If you'd like to participate, request access [here](https://mxpnl.notion.site/e2e0eaa760de4546a73fc3c6418acbd3). ## Beta Scope | | Supported in beta | | - | - | | Browser for authoring | Chrome only | | Install method | Web snippet in your page's `` | | Site type | Best suited to static and marketing sites | Complex single-page apps are better served by a feature experiment. Mutations are applied to the rendered DOM, so the more dynamic the page, the less predictable the result. The visual editor re-applies mutations when elements re-render, but a heavily client-routed app will still behave less reliably than a static page. Authoring is Chrome-only. The experiment itself runs for all of your end users in any browser, because the variant is delivered by the Mixpanel JavaScript SDK rather than by the extension. ## Web vs Feature Experiments Mixpanel has two experiment types. You choose one at creation time. | | Web Experiment | Feature Experiment | | - | - | - | | Variants built in | The visual editor, on your live site | Your codebase | | Code change per test | None | Yes | | Who can run it | Anyone with the right permissions | Requires an engineer | | Best for | Copy, styling, and layout changes | Backend logic, new components, anything data-driven | Web Experiments run on [Mixpanel Feature Flags](/docs/featureflags), and the visual editor creates and configures the flag for you. You do not write any flag evaluation code, and you do not need an engineer to implement the flag. The one-time snippet install is the only code change the feature requires. > [!NOTE] > > The experiment type can't be changed after the experiment is created. If you need to convert a test, create a new experiment. ## Setup Setup is a one-time job. After it's done, anyone with permission can create and launch experiments without touching code again. **1. Add the snippet to your site** Place this in the `` of every page you want to test. It loads the beta build of the Mixpanel JavaScript SDK and turns on flags and Web Experiments. ```html theme={"system"} ``` Both `flags` and `visual_experiments` are required. Feature Flags is the mechanism that delivers variants to your users, so Web Experiments will not run without it. > [!NOTE] > > During beta, the snippet is the only supported install path, and it must point at the pinned build above rather than `mixpanel-2-latest`. Installing through npm with the `visual_experiments` init option is coming at general availability. If you already load `mixpanel-js` on the page, replace that snippet rather than adding a second one, and keep your existing `init` options alongside the two new ones. **2. Install the Chrome extension** Install the latest [Mixpanel extension](https://chromewebstore.google.com/detail/mixpanel-beta/ofcgdmpepahnlckcjhnapiakdpkklbkj) from the Chrome Web Store. > [!WARNING] > > Uninstall or disable any older Mixpanel browser extension first in order for the visual editor to work properly. After installing, refresh your Mixpanel tab. Mixpanel checks for the extension when the page loads, so without a refresh it will keep reporting the extension as missing. **3. Create the experiment** From the Experiments report, create a new experiment and choose **Web Experiment**. Enter the URL of the page you want to test in **Visual Editor URL**, then configure variants, success metrics, and duration the same way you would for any experiment. See [Setup & Launch Your Experiment](/docs/experiments#setup--launch-your-experiment) for those settings. **4. Design your variants** Click **Edit in Editor** to open your site with the visual editor overlaid on it. Design each variant, save, and launch. ## Designing Variants The editor opens your live site in a new tab with a toolbar for switching between variants and adding new ones. Select an element to edit it, or open Mixpanel Agent and describe the change you want. ### What You Can Change | Change | Notes | | - | - | | Text | Replaces the element's text. Markup is not parsed. | | Colors | Fill and gradient, through a color picker | | Other CSS | Any CSS property, set as an inline style | | CSS classes | Add or remove classes | | Attributes | Including `src`, which is how you swap an image | | Hide | Removes the element from the page for that variant | Editing raw HTML is not currently supported. Moving, reordering, inserting, and duplicating elements are not available yet. ### Editing With Mixpanel Agent Mixpanel Agent can apply several changes at once from a single description, such as restyling a set of buttons and swapping the copy in different sections. Agent proposes the changes, you approve them, and they land in the changes list like any other edit. Agent can only author visual changes from inside the editor; the dashboard chat hands off to the editor instead. ### Reviewing and Removing Changes Every edit is recorded in a changes list in the editor. You can review each change and delete it individually, which is also how you undo a change: e.g., to unhide an element, delete the hide change. ## Targeting a URL A variant applies to a page when the page's origin and path match the URL saved for that variant. * Query strings and hash fragments are currently ignored, so `/cart?utm_source=email` matches `/cart` * A trailing slash is ignored, so `/cart/` matches `/cart` * Matching is case-sensitive, so `/Cart` does not match `/cart` * Wildcards, prefixes, and regular expressions are not yet supported To test several pages, you currently need to create a separate experiment for each one. ### Overlapping Experiments When you enter a URL that another draft or running web experiment already targets, Mixpanel warns you in case of potential conflicts. Overlapping web experiments can interfere with each other and make results hard to attribute. The warning does not block you from saving or launching, so it's on you to decide whether the overlap is acceptable. ## Permissions Launching a web experiment requires the **Launch Web Experiments** permission, which is separate from the ability to create or edit one. This lets you open variant design up to a wider group while keeping control over what reaches your users. | Role | Can launch web experiments | | - | - | | Owner | Yes | | Admin | Yes | | Analyst | Yes | | Consumer | No | | Billing Admin | No | Grant it to a custom role under Organization Settings, in the **Feature Flags and Experimentation** group of project permissions. Without it, a user can design variants and save them, but the launch action stays disabled. ## Limits and Best Practices > [!WARNING] > > Variants you create from inside the editor start at a 0% traffic split and are served to nobody until you set their split on the experiment page in Mixpanel. Check your variant splits before you launch. * Editing variants on a running experiment changes what live users see immediately and can skew your results * An experiment can't launch until at least one variant has an edit * Don't edit the flag variant values by hand for a web experiment; doing so breaks the editor * Edits to elements inside dynamic feeds can be inherited by items that render later * Visual changes are capped at 32KB per variant * One editor session per user at a time. Opening the editor again ends the previous session * Editor sessions expire after an hour * Concurrent edits to the same variant overwrite each other, so coordinate before multiple people edit one experiment ## Troubleshooting ### The Editor Reports the Extension Is Missing Refresh the Mixpanel tab. Detection runs on page load. If it still fails, confirm you're on the latest extension and that older Mixpanel extensions are disabled. ### Changes Don't Appear on Your Site Confirm the snippet loads the pinned beta build and passes both `flags: true` and `visual_experiments: true`. The editor reports an error when it detects that Web Experiments are turned off in the SDK. Also check that the URL you're viewing matches the saved URL, keeping case sensitivity in mind. ## Launching and Reading Results Launching and analysis work the same as any other experiment. Results appear in the Experiments report. See [Monitor Your Experiment](/docs/experiments#monitor-your-experiment) and [Interpret Your Results](/docs/experiments#interpret-your-results). ### When a Visitor Counts as Exposed Assignment and exposure are separate, and only exposure puts a visitor in your results. The SDK fetches flags on any page that loads the snippet. That fetch returns a variant only for experiments whose targeting rules and traffic allocation the visitor qualifies for, and qualifying is what assigns them to a variant. A visitor outside the targeting or the rollout receives no variant at all. Exposure is tracked later, when the SDK reads an assigned variant in order to apply its changes. That only happens on a page whose URL matches the one saved for the experiment, and the SDK sends an `$experiment_started` event at that point, once per experiment per page load. So a visitor can browse your site without ever entering your results, either because they didn't qualify for the experiment or because they qualified but never reached a matching page. Neither case appears in your experiment results or counts toward your [Monthly Experiment Users](/docs/experiments#plan-availability). Exposure events from a web experiment have the same shape as those from a feature experiment, so the Experiments report reads them identically. # Export Methods Source: https://docs.mixpanel.com/docs/export-methods Export raw data and reports from Mixpanel ## Overview This page provides a high-level overview of your options for exporting event data, profile data, and formatted report data. You can export data from your project using a variety of methods, including lightweight CSVs generated from the UI, large volume raw data export from our APIs, and data syncs to external destinations through [Cohort Syncs](/docs/cohort-sync) and [Data Pipelines](/docs/data-pipelines). To take a full copy of a project, see [Export All Your Data](/docs/export-methods/export-all-data). > [!NOTE] > > For GDPR/CCPA-compliant exports, please [see the End User Data Management page](/docs/privacy/end-user-data-management). ## Exporting Events ### Event Export via API > [!NOTE] > > The `from_date` and `to_date` params are interpreted using UTC timezones. For projects created before 1 January 2023, the `from_date` and `to_date` params are interpreted using your current project timezone. To export raw event data, use the [Raw Event Export API](/reference/raw-event-export). The events payload is returned as JSONL, where each line is a valid JSON object. This method is recommended for high volume exports. Example request: ```sh theme={"system"} # Returning "sample_event" from 2026-01-10 to 2026-01-11 curl -gG --request GET \ --url 'https://data.mixpanel.com/api/2.0/export?from_date=2026-01-10&to_date=2026-01-11&limit=100' \ --data-urlencode 'event=["sample_event"]' \ --header 'accept: text/plain' \ --header 'authorization: Basic YOUR_TOKEN' ``` Example payload: ```json theme={"system"} // The entire payload is a JSONL // Each line of event is a JSON object {"event":"Signed up","properties":{"time":1602611311,"$insert_id":"ABCDE","mp_processing_time_ms":1602625711874}} {"event":"Signed up","properties":{"time":1602787121,"$insert_id":"ABCDE","mp_processing_time_ms":1602801521561}} ``` The exported payloads are raw events, containing timestamps as they are stored in your project. For projects created before 1 Jan 2023, your event timestamp is stored in your local project timezone at the time of ingestion. For projects created after 1 Jan 2023, your event timestamp is stored in UTC timezone. Learn more about managing your project timezone [here](/docs/orgs-and-projects/managing-projects#manage-timezones-for-projects). ### CSV Events Export > [!NOTE] > > Only the events visible in the Events table at the time of your export will be included in the CSV. Scroll down and click “Load More” to make more events visible. You may export small batches of events as a CSV for use in quick analysis by navigating to the Events tab, querying the events that you are interested in seeing, then clicking the “Export” button in the top right corner. By default, only the columns that are shown in the UI will be exported. You can click the “Edit Columns” button to modify the properties columns shown in the Events table. Select the option to include “All event properties” if you are interested in all of the event properties. ![image](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/event-csv-export-settings.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=ac23ae480a051823f02c2389e734ca3a) ## Exporting Profiles ### User Profile Export via API > [!NOTE] > > Profiles and events will always export the canonical distinct ID as shown in the UI. To export User Profile data, use the [Engage API](/reference/engage-query). The return payload is a JSON object, where the profiles are stored in the results key, as an array of objects where each profile is its own object. Sample request: ```sh theme={"system"} # Returns all user profiles in project 1234567 curl --request POST \ --url 'https://mixpanel.com/api/query/engage?project_id=1234567' \ --header 'accept: application/json' \ --header 'authorization: Basic YOUR_TOKEN' \ --header 'content-type: application/x-www-form-urlencoded' ``` Sample payload: ```json theme={"system"} // Your profiles are stored in an array of objects in the results key // Each object is a separate profile { "page": 0, "page_size": 1000, "results": [ { "$distinct_id": 1, "$properties": { "$created": "2008-12-12T11:20:47", "$email": "example1@mixpanel.com", "$first_name": "Example1", "$last_name": "Name1", "$last_seen": "2008-06-09T23:08:40" } }, { "$distinct_id": 2, "$properties": { "$created": "2008-12-12T11:20:47", "$email": "example2@mixpanel.com", "$first_name": "Example2", "$last_name": "Name2", "$last_seen": "2008-06-09T23:08:40" } } ], "session_id": "1234567890-EXAMPLE", "status": "ok", "total": 1 } ``` By default, all profile properties are returned. Use the output\_properties parameter to specify specific profile properties to return. Example: `output_properties=["$last_name", "$email", "Total Spent"]` You may export specific cohorts by using the `filter_by_cohort` parameter. You may find the `cohort_id` in the UI next to your cohort or by using the [cohorts-list API](/reference/cohorts-list). ![image](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/cohort-id-viz.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=d1efa776fef3363005430af6baed43e0) #### Group Profile Export via API You can also leverage the [Engage API](/reference/engage-query) to export Group Profiles. To do so, provide the `data_group_id` parameter in your Engage API request. You can find the `data_group_id` for your group keys in your project settings. ![image](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/data_group_id_project_settings.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=b5591fe588fa4f543a2f09c6adfd19f1) ### CSV User Profile Export You may export your profiles as a CSV for use in quick analysis by navigating to the Users tab, querying the profiles that you are interested in seeing, then clicking the “Export” button in the top right corner. Only the columns shown in the UI will be exported in the CSV. You may modify the table by clicking the “Edit Columns” button to choose the profile properties to return before your export. #### CSV Group Profile Export To export Group Profiles as a CSV, switch the group key to your group of choice by clicking the “Analyze Uniques by” button in the top left of the UI ![image](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/switch_group_key.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=f70e4587a71961e7714ba88e7ede182f) ## Exporting Reports > [!NOTE] > > Users with a Growth or Enterprise plan can use our Query API to export formatted report data. Users with a Free plan can export reports as CSV, PNG, or PDF from the UI. See our [pricing page](https://mixpanel.com/pricing/) for more details. ### Downloading Reports via the UI You can download any reports as a CSV, PNG, or PDF by clicking the "..." button in the top right corner of the report UI, and then selecting "Export". **Enterprise plan customers:** When you export a CSV from an Insights report in Bar, Stacked Bar, Pie, Table, or Metric view, you can export up to 50,000 rows of data. For all other views and reports, you can export up to 10,000 rows. If a report exceeds these limits, the export returns only the first rows in ascending order, up to the applicable limit. **All other customers:** You can export up to 10,000 rows of data for all report types. ### Exporting Reports via API You may use our [Query API](/reference/query-api) to export the formatted results that you see in our web app. Learn more about the [Insights API](/reference/insights-query), [Funnels API](/reference/funnels-query), and [Retention API](/reference/retention-query). The Flows report cannot be exported using API. Please use the export method from the UI outlined above. ## Export Integrations You can sync your Mixpanel data to your other destinations using our native connectors. Learn more about the [Data Pipeline](/docs/data-pipelines) for warehouse syncs and [Cohort Syncs](/docs/cohort-sync) for audience targeting. # Export All Your Data Source: https://docs.mixpanel.com/docs/export-methods/export-all-data Take a full copy of your Mixpanel events and profiles at any time. Covers the Raw Event Export API, the Engage API, Data Pipelines, plan availability, rate limits, and retention. Your event and profile data belongs to you, and you can take a full copy of it out of Mixpanel at any time. Use this page when you want a backup, a copy in your own warehouse, or everything you need to move to another tool. For request parameters and response formats, follow the links to the API reference. ## What You Can Export | Data | One-time export | Continuous sync | | - | - | - | | Raw events, with all properties and original timestamps | [Raw Event Export API](/reference/raw-event-export) | [Data Pipelines](/docs/data-pipelines) | | User profiles | [Engage API](/reference/engage-query) | [Data Pipelines](/docs/data-pipelines) | | Group profiles | [Engage API](/reference/engage-query) with `data_group_id` | | | Identity mappings (the IDs Mixpanel merged into one user) | | [Data Pipelines](/docs/data-pipelines/json-pipelines#identity-mappings) | You can also download smaller sets of events, profiles, and report results as CSV from the UI. See [Export Methods](/docs/export-methods) for every option, including report exports. ## Plan Availability | Method | Free | Growth | Enterprise | | - | - | - | - | | Raw Event Export API | Yes | Yes | Yes | | Engage API (user and group profiles) | Yes | Yes | Yes | | CSV export from the Events and Users pages | Yes | Yes | Yes | | Query API (formatted report data) | No | Yes | Yes | | Data Pipelines | No | Paid add-on | Paid add-on | Data Pipelines comes with a 30-day trial. See [how the trial works](/docs/data-pipelines#how-does-the-free-trial-work) for its limits. > [!NOTE] > > A few projects on older Free plans don't include the Raw Event Export API. If the API returns "Your plan does not support raw data export", [contact support](https://mixpanel.com/get-support). ## Rate Limits Export limits apply per project. The Raw Event Export API limits are the same on every plan. | API | Limits | | - | - | | Raw Event Export API | 60 queries per hour, 3 queries per second, 100 concurrent queries | | Engage API | 60 queries per hour, 5 concurrent queries | If you go over a limit, the API returns a `429` error. See [Rate Limits](/reference/rate-limits) for details. ## Data Retention Mixpanel deletes events 2 years after the event date. Projects created before September 1, 2025 keep events for 5 years, until the project changes plan or moves to the Free plan. After that, the 2-year period applies. If you want to keep history older than your retention period, export it before it ages out. User data is kept for the duration of an active subscription plan. Read the full [data retention policy](/docs/privacy/gdpr-compliance#data-retention-policy). ## Export Everything at Once This recipe takes a one-time copy of a whole project: events, user profiles, and group profiles. **1. Set up authentication** Create a [service account](/reference/service-accounts) with access to the project, or use your [project secret](/reference/project-secret). With a service account, include `project_id` in every request. If your project has [classified data](/docs/data-governance/data-views-and-classification#data-classification), the service account needs permission to access it. See [Raw Event Export authentication](/reference/raw-data-export-api-authentication). **2. Pick your server** For the Raw Event Export API, use `data.mixpanel.com` for most projects. Use `data-eu.mixpanel.com` if your project is in EU Data Residency, or `data-in.mixpanel.com` for India Data Residency. ```bash theme={"system"} # Set this to the server for your project's region. EXPORT_HOST="data.mixpanel.com" ``` **3. Export events in date ranges** Split your history into date ranges and send one [Raw Event Export](/reference/raw-event-export) request per range. Smaller ranges are easier to retry if a request fails. Each response is JSONL, with one event per line. ```bash theme={"system"} # Export one date range per request and save each to its own file. # Waiting 60 seconds between requests keeps you under 60 queries per hour. # --fail stops on an HTTP error (such as 429) instead of saving the error as data. # Each range downloads to a temporary file, so a failed retry never replaces a good export. failed="" while read -r from_date to_date; do out="events_${from_date}_${to_date}.jsonl" if ! curl -sS --fail --get "https://${EXPORT_HOST}/api/2.0/export" \ -u "$SERVICE_ACCOUNT_USERNAME:$SERVICE_ACCOUNT_SECRET" \ --data-urlencode "project_id=$PROJECT_ID" \ --data-urlencode "from_date=$from_date" \ --data-urlencode "to_date=$to_date" \ -o "$out.tmp" || ! mv "$out.tmp" "$out"; then rm -f "$out.tmp" echo "Export failed for $from_date to $to_date. Retry this range." >&2 failed="yes" break fi sleep 60 done <<'EOF' 2025-01-01 2025-01-31 2025-02-01 2025-02-28 EOF # Exit non-zero if any range failed, so a scheduled job doesn't treat a partial export as complete. [ -z "$failed" ] ``` Raw exports aren't deduplicated. Deduplicate on event name, `distinct_id`, timestamp, and `$insert_id` before you load the data anywhere else. For projects created before January 1, 2023, timestamps are in your project timezone. For newer projects, they're in UTC. **4. Export user profiles** Call the [Engage API](/reference/engage-query) with no filter to return every user profile. Results come back one page at a time. Pass the `session_id` from the first response and increase `page` until a response returns fewer records than `page_size`. **5. Export group profiles** Repeat the Engage API export once for each group key, passing its `data_group_id`. You can find each `data_group_id` in your project settings. See [Group Profile Export via API](/docs/export-methods#group-profile-export-via-api). The Raw Event Export API and the Engage API return the canonical distinct ID shown in the UI. Data Pipelines exports events as Mixpanel ingested them, so use the [identity mappings table](/docs/data-pipelines/json-pipelines#user-identity-resolution) to match Mixpanel's unique user counts. ## Keep a Continuous Copy [Data Pipelines](/docs/data-pipelines) exports events, user profiles, and identity mappings on a schedule. It writes to Amazon S3, Google Cloud Storage, Azure Blob Storage, BigQuery, Databricks, Redshift Spectrum, or Snowflake. When you create a pipeline, you can backfill up to 6 months of history. For older events, use the Raw Event Export API for those dates. # Feature Flags Source: https://docs.mixpanel.com/docs/featureflags Rollout with precision control Ship a feature to a subset of users, roll it back without a deploy, and measure what it changed — all from the same project your analytics already live in. ## Plan Availability Feature Flags is available for customers on Free, Growth, and Enterprise plans, and is included with [Experiments](/docs/experiments) on every plan. You can use flags on their own — you don't have to run an experiment. Each plan limits your **active flags**: flags marked Enabled, counted across your organization. Creating flags is unlimited. See our [pricing page](https://mixpanel.com/pricing/) for more details. | Plan | Flag Allowance | Cohort Targeting | How to Access | | - | - | - | - | | Free | Up to 10 flags simultaneously active | Cohorts up to 100k users, in one rollout group | Switch plans from the [pricing page](https://mixpanel.com/pricing/). | | Growth | Up to 50 flags simultaneously active, or 500 with purchased Experiments volume | Cohorts up to 20M users | Purchase Experiments volume under Organization Settings > Plan Details & Billing. | | Enterprise | Up to 3 flags created, or 500 simultaneously active with purchased Experiments | Cohorts up to 20M users | Purchase Experiments to raise your limit to 500 active flags — [contact us](https://mixpanel.com/contact-us/sales/) or reach out to your account team. | The Enterprise allowance of up to 3 flags created is the default Enterprise trial amount for evaluating Feature Flags; purchasing Experiments removes this limitation and allows for up to 500 flags simultaneously active. [Contact us](https://mixpanel.com/contact-us/sales/) to inquire about an unlimited usage Enterprise trial. Enterprise customers who need Feature Flags without Experiments can [contact us](https://mixpanel.com/contact-us/sales/) about a standalone arrangement, which is priced on Feature Flag API requests. On every other plan, API requests are unlimited. ## Overview **Feature Flags** let you control who sees a feature and when. Use them to: * **Gradually roll out** changes (E.g 1% → 10% → 100%) * **Target** user and group cohorts, regions, or platforms * **Kill-switch** risky functionality instantly * **Serve variants** for A/B/x tests and analyze results with **Mixpanel Experiments** **Flags** deliver variants to users, whereas **Experiments** measure impact with statistical rigor. Use flags to deploy and orchestrate, and use experiments to decide. ## Concepts & terminology * **Flag Key** — unique identifier for a flag used by SDKs. * **Variant Assignment Key** — the randomization bucket unit: `distinct_id` (user), `device_id`, or a **group key** like `account_id`. * **Variants** — experience labels (e.g., `control`, `A`, `B`). * **Variant Splits** — allocation across variants (e.g., 90%/10%). * **Fallback Value** — the value your app supplies at call time (e.g., to `get_variant_value`) that is used whenever the SDK does not return an assignment. Treat this as the default, control experience for your rollout that's served to a user who has not received an assignment. Reasons may include the user being outside the rollout %, excluded by targeting filters, not having a persisted sticky variant or client-side assignment, or feature flag API call failure. * **Sticky Variants** — the same entity keeps the same variant over time. * **Rollout Groups** - the configuration determining which users are in the rollout. This is comprised of: * **Filters** — the targeting configuration that determines whether a subject is eligible for this rollout. Filter types include Cohort and Runtime filters * **Cohort Filter** - a targeting method that uses Mixpanel cohorts to target users or group entities * **Runtime Filter** - a targeting method that checks data available at runtime against a Runtime Property or Runtime Event * **Rollout %** — percentage of the audience that receives the flag if they are eligible for the rollout group * **Runtime Properties** — any key/value attributes your application passes as properties in a `custom_properties` object nested within the flag-evaluation `context` at request time; the flag compares these values directly (e.g. equals / contains). They are not limited to device or platform values — any attribute your app can supply at request time, such as `organization_id`, works. Use Runtime Properties when you need **immediate**, per-request targeting on these values (e.g. organization- or account-based targeting). If periodic cohort refresh is acceptable, [group cohort targeting](#targeting-&-identity-management) is an alternative for org/account-based use cases. * **Runtime Events** — event-based targeting (e.g., user clicked button, completed purchase) used to target users immediately after they perform actions. * **Assignment vs Exposure** — assignment is deciding the variant; exposure is when your app **uses** that variant to render. * **Feature Flag API Request** - is a call made to a feature flag API to retrieve the current state or configuration of one or more feature flags. This request allows an application to dynamically determine which features should be active for a user * **Context** - key value pairs mapping variant assignment keys to user values for variant assignment > [!NOTE] > > Users will not be reassigned different variants when purely increasing overall rollout %. If rollout % is initially increased and later decreased, or if variant splits are altered, then variation reassignment may occur for users. ## Types of Feature Flags We support the following types of Flags: 1. **Feature Gate** : Toggle a feature on or off for targeted users or all users. Useful for phased or controlled rollout. 2. [**Experiment**](/docs/experiments) : Deliver different variant experiences (e.g., layouts, flows, pricing) to a targeted group of users. Enables measuring and analyzing impact. Each variant can optionally carry a **string** or **JSON object** value, letting you ship per-variant configuration (e.g., a CTA label, a layout config blob) alongside the variant name. See [Experiment JSON Parameters](/docs/experiments#experiment-json-parameters). 3. **Dynamic Config** : Configure features with flexible key-value pairs instead of just on/off. It lets you: * Pass **string** or **JSON object** payloads (e.g., `"Buy now"` or `{"cta_text": "Buy now", "discount": 20}`) to customize behavior or UI dynamically * Update values instantly without redeploying code > [!NOTE] > > Variant values (used by both Experiment and Dynamic Config flags) have a size limit of 32 KB per variant. Within a single flag, all variants must use the same value type — either all string or all JSON object and you can switch the type later from the flag's settings. ## Targeting & Identity Management **1. Variant Assignment Key** This is the randomization bucket unit: `distinct_id` (user), `device_id`, or a **group key** like `account_id`. **How to choose the right key?** * **User** `distinct_id` — best for logged-in experiences across device; a user sees a consistent experience across various sessions and devices * **Device** `device_id` — best for pre-auth or acquisition flows; a device keeps a consistent variant between pre-auth and post-auth experiences. * **Group** `group_id` — target by account/org using a group key (e.g., `account_id`). Values for group keys will need to be supplied to the Mixpanel feature flag SDK through the `context` parameter. When a group key is selected, cohort targeting targets that group accordingly. For example, if you have a Franchise data group with key `franchise_id`, and you want to use a flag to rollout a feature to select Franchises, then `franchise_id` should be your assignment key. > [!NOTE] > > You cannot change the variant assignment key of a flag once it has been enabled. **2. Variants Management** Variants are served / allocated around the `variant assignment key` Variant management includes 3 concepts - * Variants are the experiences to serve. (e.g., `control`, `A`, `B`). * Variant split % is the allocation across the variants. * For example, 10% of users in variant A, and 90% in variant B. * Sticky Variants ensures continuity in the variant experience served * If a user is assigned to a sticky variant B, regardless of how variant splits, rollout percentage, or cohort memberships change in the future, the user will continue to see the variant B. > [!NOTE] > > Control variant by is always set to non-sticky. This is to ensure this is the only group of users that can move up to other variants if allocation of other variants is increased. **3. Rollout Groups** Feature flags may consist of one or more rollout groups. Users are evaluated against each rollout group in order until one is found that the user qualifies for. You can target 'All Users', or optionally target rollout of your feature flags to subsets of your user base rather than to all your users with [Cohorts](/docs/users/cohorts). These are dynamic audiences of Mixpanel users based on user behavior or properties. Use these to target feature flags to specific subsets of your user base. For example, target only users who did 5 purchases in the last week. **Group Cohort Targeting** When the Variant Assignment Key is set to a group key (e.g., `company_id`, `account_id`), targeting uses **group cohorts** instead of user cohorts. Group cohorts are cohorts of entities matching the group key — for example, a cohort of Companies for a flag keyed on `company_id`. * Group cohorts are created in the same [cohort builder](/docs/users/cohorts), scoped to the relevant group key. * The cohort builder automatically corresponds to the the flag's assignment key. * Example: A flag with assignment key `company_id` lets you target a cohort like "Enterprise companies with >50 seats." > [!NOTE] > > * Cohorts used in feature flag targeting refresh on a periodic cadence (\~every 2 hours). So once a user or group entity qualifies for a cohort, it can take up to 2 hours before they see a desired experience. > * If you want users or groups to continue seeing the same variant even if they disqualify from the cohort in the future, couple this with **Sticky Variants.** This will ensure they continue to see the new experience until the flag is turned off. > * For the optimal performance, cohorts used in feature flag targeting are officially limited to 20 million users on Growth and Enterprise plans, and 100,000 users on Free plans. > * On a Free plan, you can use cohort targeting conditions in one rollout group, and you cannot save cohorts for reuse. > [!WARNING] > > Note that cohort targeting for `device_id` assignment key flags builds cohorts against Users, not devices. Furthermore, since this targeting is against Users, it will only target authenticated Users, which could defeat the purpose of using an auth-insensitive `device_id` rollout. If you wish to do group cohort targeting against devices, make device a Data Group and then use group targeting against it. **4. Runtime Targeting** Runtime targeting enables immediate, per-request decisions. There are two types of Runtime Filters: **Filter by Runtime Property** This method enables targeting users immediately based on arbitrary key/value attributes your application sends as properties in a `custom_properties` object nested within the flag-evaluation `context` at request time. The flag compares these values directly (e.g. equals / contains) for immediate, per-request decisions. * Runtime Properties are **not** limited to device or platform values. They can be any attribute your frontend or app supplies at request time — for example, `platform`, `path`, `country`, or a custom value like `organization_id`. This makes them the right tool for **immediate**, per-request targeting, such as organization- or account-based targeting where you need decisions to take effect right away. If a periodic cohort refresh (approximately every 2 hours) is acceptable, [group cohort targeting](#targeting-&-identity-management) is an alternative approach for org/account-based use cases. * These attributes should be passed to the SDK as properties in a `custom_properties` object that is a sub-node of the feature flag `context`, at the time the flag is evaluated. #### Data types for runtime values Each condition has a **Data Type** that controls how Mixpanel interprets and compares the value. The value your application sends at request time (in the `custom_properties` object) must be in the format expected for the chosen data type. If the value can't be parsed as that type, the condition will not match. The operators available in the condition adjust automatically to the selected data type. | Data Type | What your app should send | How it matches | Operators | | - | - | - | - | | **String** | A string, e.g. `"enterprise"` | Case-insensitive text match for all operators. Ordered comparisons such as Greater Than, Greater than or equal to, Less than, or Less than or equal to compare strings in lexicographical order. |
  • Is
  • Is not
  • Contains
  • In
  • Greater than
  • Greater than or equal to
  • Less than
  • Less than or equal to
| | **Number** | An integer or floating point number, e.g. `42`, `23.54` | Numeric comparison. |
  • Is
  • Is not
  • Greater than
  • Greater than or equal to
  • Less than
  • Less than or equal to
| | **True/False** | A boolean, `true` or `false` | Boolean match |
  • is True
  • is False
| | **List** | A list of values, e.g. `["a", "b"]` | Requires any or all elements to satisfy the condition. Each element is compared using its own data type, following that type's rules above. |
  • any
  • all
| | **Fuzzy** | Any primitive value | Case-insensitive loose match that coerces across types before comparing, so `"5"` matches `5` and `"1"` matches `true`. |
  • Is
| | **Date** | Must be a valid RFC3339 timestamp, e.g. `"2026-07-16T14:30:00Z"`. Other formatted timestamps will NOT match. | Compared as a point in time. The date you select in the rule is interpreted in your project's timezone, and a date with no time of day covers the whole day. |
  • On
  • Not on
  • Before
  • Since
  • Between
| | **Semantic Version** | A version string, e.g. `"2.1.0"` or `"2.5.0-rc.1"` | Ordered by the [SemVer 2.0.0](https://semver.org/) specification i.e. major, then minor, then patch, with a pre-release ranking below the release it belongs to. A leading `v` is dropped, a partial version such as `1.2` is read as `1.2.0`, and build metadata after `+` is ignored. |
  • Is
  • Is not
  • Greater than
  • Greater than or equal to
  • Less than
  • Less than or equal to
  • Between
| > [!WARNING] > > **Scope of Date and Semantic Version Operator Filters** > > Date and Semantic Version are compared inside the SDK in two cases: a server side SDK using [Local Evaluation](#local-evaluation), or a client side SDK evaluating a [Runtime Event](/docs/featureflags/runtime-events) filter on the device. Both require a recent SDK version. Check the minimum version on your SDK's feature flag guide under [Implementation](#implementation) before you use either type. If an SDK version is older than the minimum required, the condition will NOT match, so no one is placed in that rollout group. > [!NOTE] > > **Runtime Property** (targeting based on values your app *sends* in the request context) is distinct from **Runtime Event** (targeting based on Mixpanel events the user *triggers* via `mixpanel.track()`). See the section below for details on Runtime Event filters. **Filter by Runtime Event** This method enables targeting users immediately when they perform specific actions tracked with `mixpanel.track()`. For example, show a feature to users the first time they complete onboarding, or target users who added items to cart. * When adding a new filter to your rollout group, navigate to `+ Create New`, then click on `Runtime Event` to add a new runtime event filter. * Select an event, then optionally enable **"First Time"** to trigger only on the user's first occurrence of that event. * Configure the **duration** to control how long the variant persists: "End of Session" or "Indefinitely". * Add **property filters** for more fine-grained control (e.g., `purchase_amount > 100`, `page_path contains '/checkout'`). * **Examples**: * Target users the first time they complete the 'Sign Up' event * Target users who trigger 'Add to Cart' event with product\_category = 'premium' > [!NOTE] > > For detailed configuration options and examples, see our [Runtime Events guide](/docs/featureflags/runtime-events). **5. Rollout Percentage** This is the percentage of the requests that should be targeted, according to the Variant Assignment Key. Example: If we want to rollout to 50% of Active Users cohort, and 10% to Dormant User Cohort, we would create * 2 rollout groups : Rollout Group 1 - Active Users, Rollout Group 2 - Dormant Users * Rollout percentage will be applied to each Rollout Group : 50% and 10% respectively Variant allocation happens within the roll-out group. Example: Building on the same example above, variant allocation is 50-50 for A/B. * Rollout Group 1 - Active users will see - 25% users in A (50% of 50%); 5% users in B (50% of 50%) * Rollout Group 2 - Dormant users will see - 5% users in A (50% of 10%); 5% users in B (50% of 10%) ### Frequently Asked Questions **How do [Data Views](/docs/data-governance/data-views-and-classification) affect feature flags?** Feature flags are scoped to data views. If targeting your flag to specific user cohorts, only end users included in the data view where the flag is created, will be targeted. Only users with access to a data-view and can view and edit the flag **Can I target a cohort, but also include run-time targeting like device or url path?** Yes. You can couple run-time targeting with both user cohorts and group cohorts. It works with an AND condition across the targeting criteria. **Why is control variant always non-sticky? I want all my variants to be sticky** Control variant is set to always be non-sticky to ensure this is the only group of users that can move up to other variants if allocation of other variants is increased. This is to avoid users moving from non-control variants. NOTE: If you do want all users to be sticky and do not anticipate needing to change the variant allocation, mark control variant as 0%, and allocate all the 100% to the other variants. This is recommended for use-cases where you have no default or control experience, and are testing a brand new experience with 2+ variants **How do we avoid overlapping target audiences across 2 different feature flags?** Let's say we have 2 features: feature A and feature B, and we want these to be non-overlapping in audience targeting. In the feature flag B page, in the target audience - * Create Rollout Group 1: any user who was exposed to feature flag A * Variant served: control 100% (no new experience, revert to default) * Rollout % : 100% * Create Rollout Group 2: All users, or any specific users you want for flag B **Are there any limits to the number of variants per flag?** Yes, today you can have a maximum of 10 variants per flag. ## Governance, permissions & audit trail We recommend establishing light-weight controls without slowing teams. ### Permissions * **Project Role** — you need to have at least an “analyst” role to create and edit feature flags. “Consumer” roles can only view feature flags. * **Overall Feature Flag permissions** - this setting allows you to give users or teams access to all feature flags. It overrides the permissions set at a per-flag level. For example, you might want your ops-lead team to have edit access to all flags for emergencies. * **Feature Flag Permissions** — You can manage sharing settings for each flag. Only a flag’s editors can modify it. ### Audit Trail This shows the history of changes related to the flag. This allows you to know the change history (who, what, when) of all the updates. ### QA Testers This section allows you to whitelist users who will receive the experience, vs rolling out more broadly. You can select users based on the \$email user profile property. Once selected, you can specify which experience you would like each user to get. > #### 📝 Note: Selecting QA testers on Original ID Merge > > This behavior applies only to projects on **Original ID Merge (V2)**. Projects on **Simplified ID Merge (V3)** use a deterministic canonical user ID and do not require manual QA tester maintenance. > > When you add a user as a QA tester (by email or distinct\_id), Mixpanel saves a snapshot of that user's **most recent `$identified_id`** at the moment of addition, pulled from their `$identify` event history. At flag evaluation time, the `/flags/` endpoint performs an exact string match between the distinct\_id your SDK sends and this saved value — there is no cluster-aware resolution at runtime. > > **What this means:** if the user later identifies with a different ID than what was saved (e.g., your app's identification logic changes, the user transitions between anonymous and identified states, or your hashing scheme is updated), the saved QA tester record becomes stale, and the flag will no longer return for that user. > > **To recover:** remove the QA tester from the flag's configuration and re-add them. The latest `$identified_id` will be snapshotted again. > > **Best practice:** > > * Call `identify()` with a stable, consistent value for each logged-in user across sessions. > * Add QA testers only after the target user has identified at least once with that stable value. > > **Debugging tip:** to verify which ID was saved for a QA tester, inspect the `/flags/` network request in your browser's developer tools. The response payload includes a `test_users` field listing the saved IDs. Compare these against the `distinct_id` your SDK is sending — if they don't match, that's the source of the issue. You can also see this in the dropdown when searching for users. ## Performance, Reliability & security **Privacy** * EU & IN projects must initialize the SDK’s with the correct api host endpoints for their regions. * You should only send the context/runtime properties you need; avoid sensitive PII. **Regions** Keep traffic within region by using the correct project & API hosts. **Reliability** Mixpanel analytics downtime will result in suspended cohort membership refreshes, though feature flag variants will continue to be served. * When using sticky variants, the last available variant per user will be served. * In case of Feature flagging service downtime, your fallback variant will be served by the SDKs. See [Fallback Value](#concepts-&-terminology) for more details about fallback values. **Performance** The latency of Feature flags API responses is usually on the order of milliseconds. NOTE: Cohort membership is refreshed every 2 hours when targeting anything aside from 'All Users'/'All Entities' or 'Runtime Filters'. Therefore, new users or group entities entering cohorts may not be reflected in Feature flags API responses for up to that 2 hour period. **Rate limits** The `/flags` endpoint is rate limited to 500 requests per minute per IP address. ## Implementation Feature Flagging is currently supported on a subset of Mixpanel client and server SDK's. There are two modes for using feature flags. Remote evaluation is available for both client and server SDKs whereas local evaluation is available for server SDKs. ### Remote Evaluation Remote evaluation makes a network call to Mixpanel servers each time you evaluate a flag. The server receives the user context and determines the variant assignment based on your configured targeting rules. This is ideal for applications requiring cohort-based targeting or sticky variant assignments ### Flag Persistence > [!NOTE] > > Flag persistence is a client SDK feature. It is officially supported on the Android, Swift, Flutter, React Native, and JavaScript (Web) client SDKs. By default, client SDKs fetch flag assignments from Mixpanel feature flag evaluation endpoint. If the call fails due to network issues, the SDK returns the fallback variant, which can result in an undesirable user experience. Flag persistence lets the SDK persist assignments to the device so that they are made available, even if the network is not. This is useful for reducing latency at startup and for providing graceful degradation when the network is unavailable. Persistence is configured with a `variantLookupPolicy`, which accepts one of three strategies: | Policy | Behavior | | - | - | | `networkOnly` *(default)* | No persistence of variants. Every lookup waits for a fresh network response. | | `networkFirst` | The SDK waits for a network response first. If the network fails, previously persisted variants are served as a fallback | | `persistenceUntilNetworkSuccess` | Persisted variants are served immediately on launch. The next time a network call succeeds, the variants will update the in-memory state as well as be persisted to the device. | **TTL:** Both persistent policies accept a configurable TTL (default: 24 hours). Persisted variants older than the TTL are treated as expiring and not served. **Identity scoping:** Persisted variants are tied to the current `distinct_id`. Calling `identify()` with a different ID or calling `reset()` clears persisted data and triggers a fresh network fetch. **Variant source:** Each returned variant carries a `source` indicating where the value came from: `network`, `persistence`, or `fallback`. This lets you know at call time whether you are looking at a fresh or persisted assignment. **`$experiment_started` properties:** When a variant is served, the `$experiment_started` event includes a new `$variant_source` property (`"network"` or `"persistence"`). For persistence-sourced variants, two additional properties are included: `$persisted_at_in_ms` (the epoch ms when the variant set was persisted) and `$ttl_in_ms` (the configured TTL). Fallback variants do not trigger `$experiment_started`. See the SDK-specific guides below for implementation examples. ### Local Evaluation Local evaluation minimizes latency by evaluating flags within your application. This mode is recommended for server-side SDKs used in latency-sensitive server-side applications. The SDK polls Mixpanel servers for feature flag configurations at a configurable interval (e.g., every 60 seconds). Flag configurations are cached and served via **Google Cloud CDN** for global low-latency access. Flag evaluation happens locally within your SDK with minimal latency (\<1ms). As evaluation is done completely locally, cohort targeting and sticky variants are not supported. #### Polling latency by region Below is a table, demonstrating the average latency of polling latency for cached calls, broken down by approximate caller region. | Region | Polling Latency | | - | - | | Singapore, APAC | \~17ms | | Belgium, Europe | \~19ms | | São Paulo, South America | \~23ms | | Iowa, USA | \~20ms | | Oregon, USA | \~20ms | | Virginia, USA | \~29ms | #### Cache invalidation When you update the configuration of one of your feature flags, CDN cached settings will be invalidated. Your SDK will receive updated configurations on its next poll cycle. See our developer guides on implementing feature flags on these platforms below: ### Client Side SDKs > [card] [Web](/docs/tracking-methods/sdks/javascript/javascript-flags) > [card] [iOS](/docs/tracking-methods/sdks/swift/swift-flags) > [card] [Android](/docs/tracking-methods/sdks/android/android-flags) > [card] [Flutter](/docs/tracking-methods/sdks/flutter/flutter-flags) > [card] [React Native](/docs/tracking-methods/sdks/react-native/react-native-flags) ### Server Side SDKs > [card] [Python](/docs/tracking-methods/sdks/python/python-flags) > [card] [Ruby (Beta)](/docs/tracking-methods/sdks/ruby/ruby-flags) > [card] [Node.js](/docs/tracking-methods/sdks/nodejs/nodejs-flags) > [card] [Java](/docs/tracking-methods/sdks/java/java-flags) > [card] [Go](/docs/tracking-methods/sdks/go/go-flags) ### OpenFeature Providers Mixpanel also offers [OpenFeature](https://openfeature.dev/) providers, which let you use Mixpanel's feature flags through OpenFeature's standardized, vendor-agnostic API. #### Client Side > [card] [Web](/docs/tracking-methods/sdks/javascript/javascript-openfeature) > [card] [iOS](/docs/tracking-methods/sdks/swift/swift-openfeature) > [card] [Android](/docs/tracking-methods/sdks/android/android-openfeature) #### Server Side > [card] [Python](/docs/tracking-methods/sdks/python/python-openfeature) > [card] [Ruby](/docs/tracking-methods/sdks/ruby/ruby-openfeature) > [card] [Node.js](/docs/tracking-methods/sdks/nodejs/nodejs-openfeature) > [card] [Java](/docs/tracking-methods/sdks/java/java-openfeature) > [card] [Go](/docs/tracking-methods/sdks/go/go-openfeature) > [!NOTE] > > If you'd like to see Feature Flags availability in other SDKs, please [reach out to the Support team](https://mixpanel.com/get-support). ### Other Implementation Methods **Mixpanel Feature Flags with a Customer Data Platform (CDP)** You have two options - * **Option 1:** Use Mixpanel SDK for purely feature flagging assignment and exposure event `$experiment_started`. * **Option 2:** Use mixpanel SDK for only feature flagging assignment, not exposure event * When you initialize the mixpanel feature flag SDK, configure it to not track any `$experiment_started` events directly to Mixpanel. * This way you use the mixpanel SDK to serve the feature flags, but when an end-user sees exposure, they manually use their existing method of tracking events through their CDP to mixpanel to track the \$experiment\_started event **Mixpanel Feature Flags with Google Tag Manager (GTM)** You can implement Mixpanel Feature Flags through Google Tag Manager. See the [Google Tag Manager integration guide](/docs/tracking-methods/integrations/google-tag-manager) for step-by-step instructions on initializing flags, evaluating them, and tracking exposure events via GTM. ## Identifying User Exposures ### User Profile Exposure Table When using Mixpanel Feature Flags, exposure events will be tracked to Mixpanel, and can be viewed on a specific user's Profile Page. The Profile Page displays a table of the enabled flags that a user has been exposed to. #### Feature Gate When a user has been exposed to a feature flag of the type Feature Gate, a row will appear in this table displaying the most recent time that the user was exposed to the gate. When viewing the table, you can click on the right arrow button to open the associated Feature Flag page in a new tab. #### Experiment & Dynamic Config The Feature Flags tab on a user's profile page will display the most recently viewed variant seen by the selected user, as well as the time that the exposure event was tracked. If a user later sees a new variant, that will be displayed instead. If the flag is tied to an experiment, clicking on the right arrow will open a menu allowing the user to navigate to the feature flag page of the associated flag, or the related experiment page. ## Multiple Environments Multiple Environments lets you treat separate Mixpanel projects as development, staging, and production environments for the same feature flag or experiment. Build and iterate on a flag (and any experiment it's tied to) in one project, then push it to another project when you're ready — without recreating it by hand. Linked flags and experiments stay connected so you can continue pushing updates over time. ### Other Environments Selector The "Other Environments" selector appears under the **Configuration** tab of a feature flag, inside the **More** section. This panel lets you manage a flag's links to copies of itself in other projects. #### Pushing changes Pushing changes copies the full configuration of the source (original) flag to the linked destination flag in the other project. Any changes that exist only on the destination flag will be overwritten. #### Other Environments Menu This menu lists the feature flags in other projects that are linked to the current flag. From here, you can navigate to a linked flag, push the source flag's current configuration to it, or remove the connection. #### Duplicate To Project To duplicate a feature flag to another project, open the Other Environments menu and select **Duplicate To Project**. In the dialog, choose the destination project. This flow is for duplicating across projects only — to duplicate within the same project, use the same **Duplicate** option within flag's overflow (`...`) menu in the top-right of the flag page . Note that flags created as part of an experiment (experiment-type flags) cannot be duplicated from the Feature Flags page — duplicate the parent experiment instead, which will optionally duplicate the linked flag with it. Once duplicated, the new flag is linked to the original and can be managed from the "Other Environments" menu. #### Permissions To duplicate a flag to another project, you need permission to create and edit feature flags in **both** the source and destination projects. The required permission level in the destination project is the same as what's needed to manually create a new flag there — governed by that project's roles and custom roles. #### What to expect after duplicating When a flag is duplicated to another project, time-based settings reset to the day the duplicate was created — the same behavior as duplicating within a project. If your flag targets a cohort, Mixpanel assumes the event properties referenced by that cohort exist in the destination project. It does not validate property availability at copy time, so verify that your destination project collects the same events and properties before using the flag there. #### Removing a connection Removing an inter-project connection from the "Other Environments" menu unlinks the two flags — it does **not** delete the flag in the destination project. The copied flag remains in the destination project and continues to function independently; it simply loses its link to the original. #### Data Groups Feature Flag rollouts may include configuration that references data groups in a given project. For instance, if you change the "Assignment Key" of a flag to a data group key, both the source and destination projects *must* include the referenced data group in order to duplicate or push changes. If the assignment key is *not* present in the destination project, the operation will fail. > [!NOTE] > > **Flag limits across projects:** The same feature flag key used across multiple projects counts once against your plan's active flag limit. ## Feature Flagging Pricing FAQ #### How is Feature Flags priced? Feature Flags is included with [Experiments](/docs/experiments) on every Mixpanel plan. Usage is limited by the number of active flags and the maximum cohort size for targeting — see [Plan Availability](#plan-availability). When Feature Flags is included with Experiments, API requests are unlimited. Standalone Feature Flags, purchased without Experiments on an Enterprise plan, is priced on Feature Flag API requests. #### What counts as an active flag? Active flags are flags which are marked **Enabled**. Only these flags are counted under your plan's active flag limit. There is no limit on the total number of flags you create. #### What happens when I reach my active flag limit? No more flags are fetched as part of the API request until you disable some others or upgrade your plan. Mixpanel fetches the flags with the earliest start dates, up to your limit; flags started after that are not returned. A flag's start date is the date it was first enabled. #### Does the same flag count twice if I create it across projects? No. Limits are based on active feature flag keys. If the same flag key is used across projects, it is counted only once. #### How can I monitor my account’s Feature Flags usage? You can see your feature flag usage by going to Organization Settings > Plan Details & Billing. #### What is a Feature Flag API Request? A feature flag API request is a call made by your application to a feature flag system's API to determine which features should be enabled or disabled, or which variant should be served to a user. All the active flags in the system are evaluated as part of this API request. #### How can I estimate Feature Flag API requests? API requests are unlimited when Feature Flags is included with Experiments, but the estimate is useful for capacity planning, and it determines the price of a standalone Enterprise arrangement. In general, you can expect every user session to have 1 API request. When the session starts, all the flags for the user are fetched in the single API request, so monthly API requests are at minimum equivalent to the total user sessions that month. Two notes: * If you have multiple SDK inits each session, that increases the count of API requests in a session. * As a general rule of thumb, consider API requests to be 1.5 x user sessions, to account for implementation differences and multiple SDK inits in a session. For a server-side SDK: * With local evaluation only, your API requests depend on how many server instances you have and how frequently you poll. * With remote evaluation, or when using cohorts, your estimate is similar to the client-side SDK estimate above. #### Can I purchase Feature Flags without Experiments? Standalone Feature Flags is available to Enterprise plan customers. [Contact us](https://mixpanel.com/contact-us/sales/) for more details. # Runtime Events Source: https://docs.mixpanel.com/docs/featureflags/runtime-events Target Users Based on Behavior > [!NOTE] > > Runtime Events is part of [Feature Flags](/docs/featureflags), which is available on all Mixpanel plans with limits that vary by plan. See [Feature Flags plan availability](/docs/featureflags#plan-availability) and our [pricing page](https://mixpanel.com/pricing/) for more details. ## Overview **Runtime Events** let you target users immediately based on actions they perform, not just who they are. Instead of targeting [cohorts](/docs/users/cohorts) or [properties](/docs/featureflags#runtime-targeting), you can trigger feature variants when users complete specific events tracked with `mixpanel.track()`. **Traditional targeting**: "Show this variant to premium users" **Runtime Event targeting**: "Display 'Next Steps' checklist immediately after user creates their first project" ### When to Use Runtime Events Runtime Events are ideal for behavior-driven experiences: * **Onboarding flows**: Show tutorial content after a user completes their first action * **Progressive feature unlocking**: Unlock advanced features after users complete key milestones * **Conditional promotions**: Display special offers after a user makes their first purchase * **Behavior-gated experiments**: Run experiments only on users who have demonstrated engagement ## How Runtime Events Work Think of Runtime Events as a "tripwire" that activates once. Here's the flow: ### Before the Event 1. User requests flag evaluation from your app 2. The flag service recognizes the user hasn't triggered the event yet 3. The SDK watches for the specified event ### When the Event Occurs 1. User performs the tracked event (e.g., "Purchase Complete") 2. The SDK reports the event to Mixpanel ### After the Event 1. On subsequent flag evaluations, the user now receives the active variant 2. The variant persists based on your duration setting (session or indefinitely) 3. If the variant is sticky, the user continues receiving the same variant even if rollout changes, and is never re-bucketed into a different variant ## Configuring Runtime Events To add a Runtime Event targeting rule to your feature flag: **1. Navigate to Rollout Groups** Open your feature flag and scroll to the **Rollout Groups** section. Click on a rollout group card or create a new one. **2. Add a Runtime Event Filter** In the Rollout Group editor, click **"+ Add"**, then select **"Runtime Event"**. A new filter box for configuring runtime events will appear. **3. Select the Event** Click on the event dropdown (shows "Select Event" initially) and choose the Mixpanel event you want to trigger on. This can be any event tracked via `mixpanel.track()`. For example: `Purchase`, `Sign Up Complete`, `Dashboard Viewed` **4. Configure Time Window** The **"While Flag Enabled"** dropdown controls when events count toward activation. Currently, only events that occur while the flag is enabled will activate the variant. > [!NOTE] > > Only events that occur **after** the flag is enabled count toward activation. Historical events from before the flag was created or enabled are not counted. **5. (Optional) Add First Time Filter** Click the overflow menu (**...**) and select **"First Time"** to make this a first-time event trigger. With First Time enabled, only the user's **first** occurrence of the event after the flag is enabled activates the variant; later occurrences of the same event are ignored. When enabled, a second row appears showing: * **"for the"** `First Time` **"until"** `[Duration]` The **Duration** dropdown offers: * **End of Session**: The variant is served only during the client SDK session in which the event first fires. Once that session ends, the user does not receive the variant again, even if they trigger the same event in a later session. * **Indefinitely**: Once the user triggers the event, the variant persists across all subsequent sessions. > [!NOTE] > > A Runtime Event **without** a First Time filter behaves the same as **First Time + Indefinitely** — the variant is served indefinitely once the user triggers the event. Enabling First Time only changes behavior when paired with **End of Session**, which limits the variant to the single client SDK session in which the event first fires. > [!NOTE] > > Stickiness controls *which* variant a user gets, not *whether* it keeps being served: a user is never re-bucketed into a *different* variant, but whether they still receive it in a later session depends on the Duration above (Indefinitely keeps serving it; End of Session does not). The **control** variant is always non-sticky, and non-sticky assignments can change if you alter variant splits or lower the rollout %. See [variant assignment key and Sticky Variants](/docs/featureflags#concepts-&-terminology). **6. (Optional) Add Property Filters** Click **"+ Filter"** to add conditions on event properties. This lets you target more specific behaviors. For example: * Event: `Purchase` where `amount > 100` (only high-value purchases) * Event: `Page View` where `page_path contains '/checkout'` (only checkout views) Each property filter has a **Data Type** (String, Number, or True/False) that controls how the event property value is compared. The value tracked on the event must be in the format expected for the chosen type, or the filter will not match. See [Data types for runtime values](/docs/featureflags#data-types-for-runtime-values) for the expected formats and operators. > [!NOTE] > > These property filters apply to properties of the selected runtime **event**. They narrow which occurrences of the tracked event count toward activation. If you want to target based on a value your application sends at request time (for example, an `organization_id`), use a [Runtime Property](/docs/featureflags#runtime-targeting) filter instead. **7. Assign Variants** On the right side of the rollout card, configure which variant users receive when they trigger the event. You can set variant splits (e.g., 50% variant A, 50% variant B) just like standard targeting. **8. Save the Flag** Click **Save** to activate your configuration. The SDK will begin watching for the specified event. ## Frequently Asked Questions **Can I use Runtime Events with cohort targeting?** Yes. You can combine Runtime Events with cohort targeting using AND logic. For example, "Premium users who complete their first purchase." **What happens if I disable and re-enable the flag?** The flag's "enabled at" timestamp updates. Users who previously triggered the event must perform it again after re-enablement to receive the variant. **Are Runtime Events supported on server-side SDKs?** Runtime Events are designed for client-side SDKs that can monitor events in real-time. Server-side implementations are not supported. **How quickly does the variant activate after an event?** The variant activates on the next call to `getVariant` or `isEnabled` after the event is reported. ## Related Documentation * [Feature Flags Overview](/docs/featureflags) * [Experiments](/docs/experiments) * [Cohorts](/docs/users/cohorts) # Features Source: https://docs.mixpanel.com/docs/features Alerts, annotations, embeds, and other Mixpanel features > [card] [Alerts](/docs/features/alerts) > [card] [Annotations](/docs/features/annotations) > [card] [Embeds](/docs/features/embeds) > [card] [Chart Customization](/docs/features/chart-customization) > [card] [Comments](/docs/features/comments) > [card] [Custom Buckets](/docs/features/custom-buckets) > [card] [Custom Events](/docs/features/custom-events) > [card] [Custom Properties](/docs/features/custom-properties) > [card] [MCP Integration](/docs/mcp) > [card] [Saved Metrics & Behaviors](/docs/features/saved-metrics-and-behaviors) > [card] [Sessions](/docs/features/sessions) > [card] [Slack Integration](/docs/features/slack-integration) # Alerts Source: https://docs.mixpanel.com/docs/features/alerts Get notified about anomalies in your data > [!NOTE] > > Users with a paid plan can access Alerts. Growth plan users can set up to 5 alerts per project. Enterprise plan users can set an unlimited number of alerts. See our [pricing page](https://mixpanel.com/pricing/) for more details. ## Overview Mixpanel provides the ability to create alerts for your Insights and Funnels reports, allowing you to monitor custom report conditions or automatically detect anomalies and receive notifications when those conditions are met. Alerts are accessible directly from the **bell icon** in any report header, and can be delivered via email, Slack, or webhook. You can also control *when* alerts fire by setting notification windows restricted to specific days and times, so you only get notified when it matters. When an alert is active, Mixpanel continuously monitors its validity — surfacing warnings if report changes could affect it — and sends a one-time email if an alert ever becomes invalid. Additionally, Mixpanel's Root Cause Analysis feature helps you investigate and understand the underlying data behind any triggered alert. ## Create an Alert > [!NOTE] > > To create and manage alerts, you will need an analyst, admin, or owner project role. Learn more about [Roles and Permissions](/docs/orgs-and-projects/roles-and-permissions). Create an alert for your Insights and Funnels reports and be notified when report conditions reach certain thresholds. Alerts can be delivered via email, Slack, or webhook, and can be sent to multiple recipients. **To create an alert, follow these steps:** 1. Open a saved report and click the **bell icon** in the report header. *Note: You won't be able to create an alert if the report has unsaved changes. Save your report before setting up an alert.* If no alerts exist on the report, the modal will show *"No alerts for this report."* Click **Create Alert** in the bottom right of the modal. 2. **Enter a name** for your alert. 3. If your report has more than one event, select an event to track. If your report has a breakdown applied, either select a specific segment to alert on, or select **Any segment** to be alerted when any segment matches the alert criteria. 4. **Set your alert criteria.** Depending on the report type, choose between Anomaly Detection or Custom Threshold. See [Alert Criteria Types](#alert-criteria-types) below for details on each. 5. **Set your notification frequency.** Choose how often *at most* you'll receive an alert — from hourly up to monthly. *Note:* * *For time-series reports, how often Mixpanel checks your data is determined by the time bucket of your report visualization. For example, if your chart is hourly, the alert will be evaluated at an hourly interval.* * *If you have an hourly chart but set the alert frequency to daily, Mixpanel checks for a match every hour. If a match is found, the alert fires and won't check again until the next day.* 6. **Set your notification timing.** Choose when the alert is allowed to fire: * **Any time** — the alert fires whenever the condition is met, regardless of day or time. * **During Selected Windows** — restrict the alert to specific days and/or time ranges. See [Notification Windows](#notification-windows) below. 7. **Set your notification delivery preferences.** When alert conditions are met, Mixpanel can notify you via email, Slack, or webhook. * **Email** — enter the recipient's email address. You can enter any email, not just Mixpanel users. * **Slack** — select the Slack channels to notify. Private Slack channels are not supported. You may need to configure the Mixpanel Slack app first — click **Add Mixpanel to Slack** and follow the prompts. * **Webhook** — select a configured webhook from the dropdown. See [Webhook Alerts](#webhook-alerts) for setup instructions. ![](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/255713687-91a2bb99-3a79-43d4-9d97-3b397aab0305.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=7faba3649851c6553630c43b6bed9647) 8. Optionally, click **Test Alert** to send a test notification before saving. See [Test Alert](#test-alert) below. 9. **Save** the alert. ## Notification Windows When you select **During Selected Windows** in step 6 of alert creation, a day-by-day schedule appears. Each row represents a day and supports an optional time range, letting you restrict when the alert is allowed to fire. **Adding windows:** * **Add Single Day Window** — adds a row for a specific day with an optional time range. * **Weekdays** — quick-adds rows for Monday through Friday. * **Weekends** — quick-adds rows for Saturday and Sunday. **Managing individual rows:** Each day row has a `...` overflow menu with: * **Duplicate Day Window** — copies the row's time window to a new row. * **Remove Time Window** — clears the time range from that row but keeps the day active (alert can fire any time on that day). * **Delete Day Window** — removes the entire day row from the schedule. *Note: Notification windows restrict when the alert fires, not when Mixpanel checks your data. Mixpanel will still evaluate the alert condition according to its frequency — it just won't send a notification outside your defined windows.* ## Test Alert The **Test Alert** button is available in both the Create and Edit alert flows. Clicking it sends a test notification to all configured recipients (email, Slack, and/or webhook) immediately — without saving the alert. Test notifications are identical in format to live alert notifications, but the alert name is prefixed with **\[TEST]** so recipients know it isn't a real firing. Use Test Alert to confirm your delivery settings are correct before saving. ## Alert Status & Validity Mixpanel actively tracks whether each alert is in a valid state and surfaces this information directly in the report. ### Bell icon status When a report has one or more alerts, the **bell icon** in the report header shows each alert's name and current status: * **✅ Valid** — the alert is active and monitoring as expected. * **Invalid** — the alert's configuration no longer matches the current report (for example, the event or breakdown it was tracking has changed). Invalid alerts will not fire until corrected. Click any alert name in the bell icon modal to open it and edit. ### Warning banner for unsaved changes If you've made unsaved changes to a report that has active alerts, an **orange warning banner** appears in the bell icon modal. This is a preemptive notice — it means your current unsaved changes *could* affect the alert if saved. The alert's status will still show ✅ Valid until you actually save the report. ### Save Report Changes modal When you save a report that has active alerts, a **Save Report Changes** modal appears listing the affected alerts (name, creator, creation date). This gives you a chance to review the impact before confirming. You can choose to: * **Save changes** — saves the report and potentially invalidates the listed alerts. * **Save as new report** — creates a new copy of the report with your changes, leaving the original report and its alerts untouched. > **Tip:** If you want to update a report without breaking existing alerts, use **Save as new report** and recreate the alert on the new version. ### Invalid alert notification email When an alert first becomes invalid, Mixpanel sends a **one-time email** to the alert's creator notifying them. This email is sent only once — if the alert remains invalid, no further emails are sent. Open the alert from the bell icon modal to see the reason for invalidation and how to fix it. ## Webhook Alerts Webhook Alerts allow you to send alert notifications from Mixpanel to third-party platforms via HTTP webhooks. When a configured alert is triggered, Mixpanel will automatically send a payload containing alert details to your specified endpoint. **Creating a Webhook:** 1. Navigate to **Gear Icon** > **Destinations** > **Notification Webhook**. Note this is separate from [Custom Webhooks](/docs/cohort-sync/webhooks) (which are used to sync cohorts). 2. Under Project Webhooks, click **"+ Add Webhook"**. 3. Complete the webhook configuration: * **Name** — enter a descriptive name (e.g., "Production Alerts"). * **URL** — enter the HTTPS endpoint where alert payloads will be sent. * **Username** — if your endpoint requires HTTP Basic Authentication, enter the username. * **Password** — enter the corresponding password for authentication. 4. Click **Test connection** to verify connectivity. 5. Click **Submit** to save the webhook. You can also manage webhooks directly from **Project Settings > Alerts** via the **Manage Webhooks** button in the table toolbar. **Configuring Webhook Delivery for an Alert:** 1. When creating or editing an alert, scroll to the **Notify** section. 2. Locate the **via Webhook** dropdown. 3. Select your webhook from the available options. ![image.png](https://mintcdn.com/mixpanel-edb78807/hlEuYugIN20vBJ1j/images/webhookalert2.png?fit=max\&auto=format\&n=hlEuYugIN20vBJ1j\&q=85\&s=953bec388fdc1a3a3338fadb74018052) 4. Complete the rest of your alert configuration and save. **Sample payload received from the Webhook:** ```json theme={"system"} { "event_type": "custom_alert_triggered", "alert": { "id": 123123, "name": "Webhook Test", "creator": "Last Name, First Name", "creator_email": "first_name.last_name@example.com", "project_id": 9876543, "project_name": "My Prod project", "fired_at": "2026-02-06T10:53:30Z", "workspace_id": 12345, "workspace_name": "All Project Data" }, "condition": { "type": "absolute", "operator": ">", "threshold": 0, "current_value": "20,000", "formatted_value": "20,000", "sentence": "above 0" }, "report": { "name": "Custom Alert Insights Report", "type": "insights", "url": "https://mixpanel.com/project/9876543/view/12345/app/insights?mp_source=webhook&alert_id=123123#report/BOOKMARKID" }, "links": { "report_url": "https://mixpanel.com/project/9876543/view/12345/app/insights?mp_source=webhook&alert_id=123123#report/BOOKMARKID", "edit_alert_url": "https://mixpanel.com/settings/account/alert-settings/alert/123123?mp_source=webhook", "root_cause_analysis_url": "https://mixpanel.com/project/9876543/view/12345/app/boards/?mp_source=webhook#rca=123123&time=1770404010" } } ``` ## View & Manage Alerts ### Alerts table (Project Settings) To view and manage all alerts across a project, navigate to **Project Settings > Alerts**. This table gives you full visibility into every alert in the project, with the following columns: | Column | Description | | - | - | | **Creator** | Avatar/initials of the user who created the alert | | **Last Modified** | Relative timestamp of the most recent edit | | **Report** | The linked report the alert is monitoring | | **Triggers** | Total number of times the alert has fired | | **Last Triggered** | Date of the most recent firing (or `–` if never triggered) | | **Status** | ✅ Valid or invalid | **Filtering the table:** Use the filters in the toolbar to narrow the list: * **All Creators** — filter by alert creator * **Report** — filter by associated report * **All Statuses** — filter by valid or invalid * **Search** — free-text search by alert name * **Reset Filter** — clears all active filters **Row actions:** Each alert row has a `...` overflow menu with: * **RCA** — opens a Root Cause Analysis board for that alert * **Alert History** — opens a side panel with a timestamped log of created, edited, and fired events for the alert * **Edit Alert** — opens the alert configuration * **Delete Alert** — permanently removes the alert **Anomaly Detection capacity warning:** If your organization is approaching the 50 active Anomaly Detection Alert limit, a blue info banner appears at the top of the table: > *"Your organization is approaching the limit for active anomaly detection alerts. Delete old anomaly detection alerts to make space for new ones. X/50 alerts used. Y% capacity."* This banner appears when your org reaches 90% of the limit (45 of 50 alerts). Delete old anomaly detection alerts from this table to free up capacity. **Managing webhooks:** Click the **Manage Webhooks** button in the table toolbar to add or edit webhook configurations for alert delivery. ### Editing and deleting alerts * **To edit** an alert you created, click its name from the bell icon modal in any report, or use the **Edit Alert** option in the `...` menu in Project Settings > Alerts. * **To delete** an alert, hover over it in the Alerts table and click the **trash icon**, or use the **Delete Alert** option in the `...` overflow menu. ### Alert History Click **Alert History** from any row's `...` menu to view a side panel showing a full timestamped log of activity for that alert — including when it was created, edited, and each time it fired. This is useful for auditing unexpected behavior or understanding alert patterns over time. ### Permissions | Scenario | What you can do | | - | - | | You have **Edit access** to a report | You can create, edit, and delete all alerts on that report — even alerts created by others | | You **lack Edit access** to a report | You cannot create alerts on that report | | You **lack Edit access** to a report where someone else created an alert | The alert is view-only; an explanatory banner appears in the UI | *Note: Permissions are evaluated at the **report level**, not just the project level. If a user can't edit an alert, confirm their access to the underlying report first.* ## Alert Criteria Types Alerts can be configured to trigger based on a metric reaching above or below a custom threshold you defined, or through our Anomaly Detection model. ### Custom Threshold Custom Threshold alerts monitor your metrics and notify you when the metric reaches above or below the threshold that you defined. * **Above** — the alert fires if the current value is above the set threshold. * **Below** — the alert fires if the current value is below the set threshold. * **Increases by more than** — available in line chart reports. Compares the current value with the previous value (based on the report's time-series setting). Fires if the new value has increased by the specified amount or percentage. * **Decreases by more than** — available in line chart reports. Fires if the new value has decreased by the specified amount or percentage below the previous value. ### Anomaly Detection > [!NOTE] > > Users on the Enterprise plan can create Anomaly Detection alerts. See our [pricing page](https://mixpanel.com/pricing/) for more details. Anomaly Detection alerts automatically monitor your metrics and notify you when significant anomalies occur. Mixpanel uses advanced forecasting algorithms to calculate expected ranges for your metrics. If a data point falls outside the calculated confidence interval, you'll receive an alert — no manual threshold configuration required. **Before you begin:** * Anomaly detection alerts are only available on Insights reports using a time series visualization. * Anomaly detection is only supported on line charts without comparisons, rolling ranges, cumulative types, or cohorts over time. * Hourly anomaly detection alerts may produce more false positives due to reduced forecast accuracy at that granularity. **To set up an Anomaly Detection alert:** 1. Click the **bell icon** in the report header, then click **Create Alert**. 2. Select **Anomaly Detection** as the alert type. *If Anomaly Detection is unavailable, it is not supported for your current report or chart type.* 3. Optionally adjust the confidence interval to tune sensitivity. Higher confidence intervals produce a wider expected range and fewer alerts. 4. Use the alert preview to fine-tune settings, then configure delivery and save. ### Additional information **Forecasting tool** Anomaly Detection uses an LLM forecasting tool designed for time series data. This handles missing data points, trend shifts, and large outliers effectively. **Confidence interval** The confidence interval reflects the level of certainty that a detected anomaly represents an unexpected change. Higher confidence levels generally result in fewer anomalies detected. **Anomaly Detection limit** Each organization has a limit of 50 active Anomaly Detection Alerts. A warning banner appears in Project Settings > Alerts when your org reaches 90% capacity (45/50). Delete old alerts to create space for new ones. **Rounding in alert messages** When displaying decimal values, the current value shown in alert messages is rounded to 2 decimal places. This can make it appear to be outside the alert range when it is very close to the boundary. The actual alert is always checked against the full unrounded value. ## Root Cause Analysis When an alert fires, you can launch AI-powered [Root Cause Analysis](/docs/root-cause-analysis) directly from the trigger notification to automatically diagnose what drove the change. See the [Root Cause Analysis](/docs/root-cause-analysis) page for the full feature. # Annotations Source: https://docs.mixpanel.com/docs/features/annotations Annotations add valuable context to your reports by linking notes to specific dates ## Overview Annotations add valuable context to your reports by linking notes to specific dates. Use them to highlight events such as product launches, marketing campaigns, or data anomalies, so viewers can clearly understand what influenced the metrics. You can view Annotations directly on time-series charts and in the Annotations side panel across all reports. ## Adding Annotations **1. Open the Annotations side panel to create an annotation** Select the **Annotations** tab (above the query builder) and click the “+” button to add a new annotation. ![annotations2](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/annotations2.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=5326185d0964483f1efebb106b57c908) **2. Alternatively, you can create annotations from the bottom of a time-series Insights report** Charts with time intervals (such as line, stacked line, column, and stacked column charts) are time-series charts and support Annotations. Hover over the horizontal axis to locate the time interval, then click the “+” button to create an annotation for that point in time. ![annotations1](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/annotations1.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=cce743a45bbb0fcc7a93a8601ff3ee8d) You can also switch over to the [Annotation Timeline](/docs/features/annotations#annotations-timeline) to see all annotations within the date range and create a new annotation. **3. Select a date and time, then enter a description** Add one or more tags to categorize the annotation. ![annotations3](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/annotations3.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=84837a6075f6ad0f8f470246f95f184e) > [!NOTE] > > Use tags consistently (e.g., Launches, Outages, Holidays, and even Team names) so it is easy to filter and spot patterns. ## Viewing Annotations Annotations appear as markers directly on the chart. Hover over a marker to view its details. For example, in the chart below, you can see 1 annotation in March, 4 in May, and 2 in July. ![annotations4](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/annotations4.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=d73c02e742e13770ca43308819a11dfd) ### Annotations Side-panel Open the Annotations side panel (available in all reports) to view all annotations for your report's date range in one place. Select the **Annotations** tab (above the query builder) to open the side-panel. From the side panel, you can: * **Browse** all annotations within your report's date range. * **Hide/Show** annotations * **Sort** by date * **Filter** Annotations by tags ![annotations5](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/annotations5.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=c79a2585e4910073849b596bd3821fc1) When you save a report, Mixpanel also saves your current annotation filters. The report will then display only the annotations that match your selected tag filters. ### Annotations Timeline Open the Annotations Timeline (available in time-series Insights reports) to view all annotations for your report's date range in one place. Once you are on a time-series Insights report (such as a line chart), select the **charts and annotations** view option to open the Annotations Timeline. From the timeline, you can: * **View** annotations in a timeline format relative to their position on the time-series chart. * **Browse** all annotations within your report's date range. * **Hide/Show** annotations * **Filter** Annotations by tags ![annotations7](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/annotations7.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=db0b854a68ffa14c11ddcf3ba01c5e18) ## Editing and Deleting Annotations Hover over any existing annotations to see available actions. Clicking the "pencil" button allows you to edit the description and add/remove tags - do note that timestamps can't be edited. Clicking the "trash" button permanently deletes the annotation. ![annotations6](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/annotations6.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=b283e669f1e0db3df2c738853028ccbe) > [!WARNING] > > Annotations apply globally across the project. Any edits or deletions affect not only the current report but all reports in the project. ## Collaboration and Visibility * Users with a project role above consumer can create annotations, and each annotation displays the creator’s name. * Annotations are visible across all reports in the project. * Use tags and filters to control which annotations appear at the report level. # Chart Customization Source: https://docs.mixpanel.com/docs/features/chart-customization Configure your report axis and color ## Overview Chart customization allows you to have finer grain control in how you want to visualize your charts in Mixpanel. You can customize the color theme of the visualization, as well as control the axis boundaries, axis labels, choose to use a secondary y-axis, and more. You are able to save these changes to your report and your board so you can present a clearer picture of what is happening with your data. ## Axis Customization Axis customization is available for all visualizations with a y-axis. The supported visualization types are: * Line * Stacked Line * Column * Stacked Column * Funnel Steps * Retention Curve ### Left & Right Y-Axis ![Left Axis](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/left-axis.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=a96a99b65a849ecbac87b0d06d80b45f) For each of the left and right y-axes, you have access to several customizations: * **Visibility**: "Visible" or "Hidden". Use this to visually hide the axis. Note that axis and its bounds still apply, it is only the axis guides that is hidden. Use this to really focus on the trend. * **Label**: The y-axis label * **Axis Unit**: Displays a unit for the axis markers. You can choose to denote a prefix or suffix for the unit. * **Threshold**: The minimum and maximum value for the axis. Use this to set an explicit range to zoom in or out for your trend. * **Decimals**: Configures the number of decimals places to show for marker values on the axis. Configurable from 0 to 8. * **Scale**: "Linear" or "Logarithmic". Use this to more clearly show trends for exponential data. ### X-Axis ![X Axis](https://mintcdn.com/mixpanel-edb78807/hlEuYugIN20vBJ1j/images/x-axis.png?fit=max\&auto=format\&n=hlEuYugIN20vBJ1j\&q=85\&s=0c49ed35261dfb3b81a2bb5363f74459) For the x-axis, you have access to the follow customizations: * **Visibility**: "Visible" or "Hidden". Use this to visually hide the x-axis. * **Label**: the x-axis label * **Weekends**: "Visible" or "Hidden". Use this to visually hide weekends from Line and Column charts. * Weekend days are determined by your project's weekend settings. * This is a visual change only - alerts and aggregations (such as average, max, or sum) are not affected. * Annotations from hidden weekends are grouped with the datapoint just before the weekend. ### Axis Assignment ![Axis Assigment](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/axis-assignment.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=53ac37bcadf742afde31f5a987a9c926) For every metric in your report, they by default assigned to the left y-axis. To visualize correlation between different metrics on different scales, it can be useful to use a secondary y-axis on the right. You can select the left or right buttons for each metric to choose which axis the metric is assigned to. ## Metric Units ![Metric Unit](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/metric-unit.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=fe6f74f16222e1769846012354a53dfd) You will find unit configuration in the bottom left of every metric block. This space allows you to configure various aspects of a metric. These selections will update in the chart, tooltip, and the table below the chart. This is saveable to your report, and it will in turn persist to the board view. Available configurations: * Unit: choose from the presets, or choose custom to choose any unit for your metric. For certain metrics like conversion rate, Mixpanel will default to the appropriate unit * Abbreviation: choose whether or not the result should be abbreviated. Useful for large numbers * Precision: choose how much decimal precision should appear for values ### Units on Formula ![Formula Unit](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/lexicon-formula-unit.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=9c5d93d5a01629f72375f139db94ed07) For any formula, you can save the unit configuration associated with it. In the example above, this formula is a percentage based metric. The `%` unit is saved to this formula. Any future usage of this formula across all reports will automatically use the `%` unit. ### Units on Numeric Properties ![Numeric Property Unit](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/lexicon-property-unit.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=0195e8d88e6726771cb53756a094f86c) In lexicon, for any numeric property you can save the unit configuration associated with it. For example, if you have a `price` property that you know is in `$`. You can set this, and any future usage of this property in measurements will default to using `$` so this no longer needs to be set on every usage. ## Theme Customization ## Availability Currently, theme and color customization is available only for customers on our Enterprise plan. ### Selecting a Theme ![Select Theme](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/theme-select-1-updated.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=21164846ddbe1fd8ec58ea8a80b6d59c) When creating a Mixpanel report, look for the "Chart" tab in the query builder panel. This is located in the top right of the page by default. After selecting "Chart", go to the "Theme" section. ![Select Theme](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/theme-select-2.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=69228e898e217915f95118d3f573db3a) You'll see the current default theme, along with other theme options. You can select any of the available themes to apply to your report. You can also [create](/docs/features/chart-customization#creating-&-editing-a-theme) a theme. ### Creating & Editing a Theme ![Create Theme](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/theme-create.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=26a833251ba15a46202b087949ab2ccc) Hit "New" in the theme section to create a theme. You will be able to create a theme using the currently selected theme as the starting point. You are able to make these modifications to a theme: * selecting a color in the theme, then typing in a color hex code, or using the color picker to select the color * pressing the "plus" button to add an additional color to the theme * pressing the "trashcan" button to remove a color from the theme * press the "sun" or "moon" icon to switch between light/dark mode to adjust the theme in each mode Once you are satisfied with the theme, you can press "Apply" to apply the theme for only this report. You can also choose to [save](/docs/features/chart-customization#saving-a-theme) your theme to reuse in other reports. ![Edit Theme](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/theme-edit.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=eacf57f893b0b7e4b88093774d50ade0) When in the theme panel, for any saved theme that you have access to, select the overflow in the top right of the theme, then select "Edit". You'll be able to make any edits to the theme. When ready, select "Update Theme" to completing editing the theme. ### Saving a Theme After creating or making modifications to a theme, select "Save Theme". ![Save Theme](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/theme-save.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=dc500a33be6d69e75c58c3badaa032bc) You'll be able to see the colors of the theme in light and dark mode. After giving the theme a name, you can save your theme. You can also choose to give other users in your project access to your theme. Choose "Viewer" if you wish other users to have access to your theme, but not to modify it. Choose "Editor" if you wish other users to have full access to your theme. ### Deleting a Theme ![Delete Theme](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/theme-delete.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=7cbc82a2a6493e0fe2485da42f77fabb) When in the theme panel, for any theme that you have access to, select the overflow in the top right of the theme, then select "Delete". You'll be prompted to confirm, and then the theme will be deleted. Any existing report that was using the theme will continue using the same colors of the theme, as if it were using an unsaved theme. ### Setting a Project Default Theme ![Project Default Theme](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/theme-customization-default.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=c17e1deee778a8322dc3f6d4ad954e97) You can set a theme as the default theme for a project. This means that any report that has not configured a theme and any new report created will use the chosen theme going forward. By default, every project uses the "Mixpanel" theme. In "Project Settings", under "Overview", go to "Color Theme Settings" and hit the edit icon. Then select your desired theme and press save. ## Segment Coloring ![Segment Color](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/segment-coloring-1.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=18a3298b68b80a4fc4795acef32c79cd) Select a segment from the legend and set the color for that segment. By default, Mixpanel will automatically assign a color for the segment, but you have the option to choose a color from the current theme, or choosing a color from outside the theme. You are able to select the segment from the legend in either Boards or in report. ![Segment Color](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/segment-coloring-2.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=159f250ba41df577a3abe010ff07c742) # Comments Source: https://docs.mixpanel.com/docs/features/comments Comments let you discuss data directly on reports and boards in Mixpanel ## Overview Comments let you discuss data directly on reports and boards in Mixpanel. Instead of switching to Slack or email to share a finding, you can start a threaded conversation right where the data lives — keeping context attached to the chart or dashboard that prompted the discussion. Comments are available on all report types and on boards. Each report or board has its own comment thread, and all project members with the appropriate permissions can participate. ## Adding Comments **1. Open the Comments panel** Select the **Comments** icon in the report or board header to open the comments side panel. ![comments1](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/comments1.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=4af071e40630de1a123daa889db21f27) **2. Start a new thread** Click the comment composer at the top of the panel to start a new thread. Type your message and press **Enter** (or click the send button) to post. ![comments2](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/comments2.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=594816c3c9ea5dabb374ff242e470088) **3. Reply to an existing thread** Click on any existing comment to expand the thread and add a reply. Threads keep related discussion grouped together so conversations stay organized. ![comments3](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/comments3.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=bb972743fad2ec6386a0d25cf871a750) ## @Mentions Tag teammates in a comment by typing `@` followed by their name or clicking the `@` symbol underneath the composer box. Mentioned users will receive a notification in the notification center and, if configured, via email or slack. ![comments4](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/comments4.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=f725d237b378fdadec5196901ad2dc5e) ## Reactions React to any comment with emoji reactions. Hover over a comment and click the reaction button to add yours. ## Resolving Threads Mark a thread as resolved when the discussion is complete. Resolved threads are hidden by default but can be viewed by toggling the **Show resolved** filter in the comments panel. ![comments5](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/comments5.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=d468610e20884e6310a341ab7a27d832) This is useful for tracking action items — once a question about a metric change is answered or an issue is addressed, resolve the thread to keep the panel focused on active discussions. ## Notification Center The Notification Center keeps you informed about comment activity across all your reports and boards. Access it from the bell icon in the left navigation panel. New notifications are indicated by a red bubble on the comment icon. ![comments6](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/comments6.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=c2d094e86ef9f79b2c4e2b5c26fe2475) You will receive notifications when: * Someone **@mentions** you in a comment * Someone **replies** to a thread you are participating in * Someone **replies** to a thread you are subscribed to Each notification links directly to the relevant report or board, so you can jump straight to the conversation with one click. ### Unread tracking Unread notifications are indicated by a badge count on the bell icon. Notifications are automatically marked as read when you view them in the Notification Center. ## Enabling and Disabling Comments The report owner can enable or disable comments on reports. The toggle is located in the caret menu within the report's comment tab. ![comments7](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/comments7.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=8002a3f5c5130ee0e46ea94be2bfa828) When comments are disabled, existing comments are preserved but hidden and no new comments can be added. Comments on boards are always enabled for users with the appropriate permissions. ## FAQ ### Are comments shared across the project? No. Comments are scoped to the individual report or board where they are posted. They are only visible to users who have access to that specific report or board. ### Can I get notified in Slack when someone comments? Yes, comments are sent through the Mixpanel slack app. ### Do comments appear on public boards? No. Comments are only available to authenticated project members with the appropriate permissions. Public board viewers cannot see or add comments. # Computed Properties Source: https://docs.mixpanel.com/docs/features/computed-properties Specialized properties that Mixpanel calculates dynamically from your event data ## Overview Computed Properties are a specialized type of property that Mixpanel calculates dynamically at query time on the front end. Unlike standard event or profile properties, Mixpanel does not ingest Computed Properties with your raw data. Instead, it derives them in real time using the existing data in your dataset. You can find Computed Properties labeled with the 'Computed' tag in the query builder. ![/computed\_properties](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/computed_properties.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=09c2828021e65dcd17c3436ccb7f5ef9) ## Behavioral Properties Behavioral properties allow you to use your user's activity and use it as a property in your other analysis. A behavioral property is a virtual property, meaning it's not a property that you are explicitly tracking, but a property that Mixpanel can compute and allow you to use in analysis. Behavioral properties can be used anywhere, most typically in filters and breakdowns. ### Frequency per User After selecting this option, you must select an event to compute the frequency of. You can use this to segment your users by how many times they did an event, or use it to filter out users to only those who did an event a certain number of times. ### Aggregate Property per User After selecting this option, you must select an event, and then a property on that event. Finally, you can choose an aggregation type for this property. You can use this to segment your users by this property aggregation. For example, you may want to filter only for users who have greater than 100 minutes of video watch time, or you may want to segment users by their watch time. ### Time Range #### Per Interval In insights, the time at which this computation is done is on a per-interval basis. For a line chart, that will be for each interval plotted on the chart. For bar, table, and pie, this interval is the entire date range selected in the date picker. #### Between Steps In funnels, the behavioral property is computed in the time range between 2 steps in your funnel. You can specify which steps in the funnel this applies to. In the case of doing "Frequency per User", the event count does not include the events that make up the funnel itself, and **only** the events between the funnel steps. #### After Step 1 In retention, the behavioral property is computed in the chosen time range after the entry event, up until the expiration window. For example, there may be a 7-day window in which we're looking for an event. Even if the retaining action happens before the 7 days are up, we continue to count additional events. ## Duration The duration property returns the duration between 2 instances of an event. This works best for events that occur continuously during a session, such as Page View or Screen View. Users who did not track the same event again will appear in the "Did not convert" segment. ## Attribution > [!NOTE] > > Users on an Enterprise or Growth plan can access the Attribution feature. See our [pricing page](https://mixpanel.com/pricing/) for more details. Attribution helps teams attribute conversion credit to the touchpoints in a user journey, whether it's to the first or last touch (single-touch attribution models) or to multiple touchpoints using a multi-touch attribution model like U-shape or Linear. Consider the following example user journey: 1. A user sees an ad for a product on Facebook 2. The user clicks on the ad and is taken to the product page on the company's website 3. The user adds the product to their cart and begins the checkout process 4. The user abandons the checkout process 5. The user receives a retargeting ad for the product on Instagram 6. The user clicks on the ad and completes the purchase In this example, two touchpoints contribute to the successful conversion: the Facebook ad and the Instagram ad. Using an attribution model, we can assign different weights to these touchpoints to determine their relative importance in the conversion. * Using a linear attribution model, we could assign a weight of 0.5 to each touchpoint, meaning that both the Facebook ad and the Instagram ad contributed equally to the conversion. * Using a J-shaped attribution model, we could assign a weight of 0.75 to the Facebook ad and 0.25 to the Instagram ad. * Using a Last Touch model, the complete conversion can be attributed to the Instagram ad. * Using a First Touch model, the complete conversion can be attributed to the Facebook ad. ### Usage [https://www.youtube-nocookie.com/embed/142CRsihsTA](https://www.youtube-nocookie.com/embed/142CRsihsTA) 1. Add your conversion metric 2. Attribution makes sense only when distributing the conversion metric across segments. So head to the breakdown section and choose the Mixpanel computed property - `Attributed by..` 3. In the second layer that opens up, choose the property you want to break-down by (eg. UTM medium). You can also choose a custom property to breakdown here, for example marketing channel which generally is a combination of UTM medium, UTM source and referrer. 4. You have a working attribution model. By default, Mixpanel will assign the metric the Last touch model with a 30 day lookback window. To change the model, head to the metric section 5. If you want to include only certain channels or touchpoints in your attribution analysis, you can filter touchpoints from the breakdown overflow menu. A use-case for this is excluding organic touchpoints from attribution analysis. 👉🏽 NOTE: if you are running attribution predominantly on UTM\_medium, UTM\_source, UTM\_campaign, make sure you’re tracking UTM parameters as event properties on every user touchpoint. If you use a Mixpanel js-sdk, we have updated our sdk to track utm parameters more effectively to support multi-touch attribution models. ### Attribution Models * First Touch: Gives 100% credit to the first touchpoint within the attribution lookback window * Last Touch: Gives 100% credit to the last touchpoint within the attribution lookback window * Linear: Gives equal credit to every touchpoint seen leading up to a conversion within the attribution lookback window * Participation: Gives 100% credit to every unique touchpoint seen within the attribution window. The total number of conversions is inflated compared to other attribution models. For example, with 5 property values, each would receive 100% credit, showing 5 conversions. * Time-Decay: The weight of each channel depends on the amount of time that passed between the touch point initiation and the eventual conversion. This model follows an exponential decay with a 7-day half-life parameter. * U-shaped: Gives 40% credit to the first touchpoint, 40% credit to the last touchpoint, and divides the remaining 20% to any touchpoints in between. With 2 touchpoints, the credit is normalized (50%, 50%). With 6 touchpoints, the middle 4 touchpoints would share the 20% (40%, 5%, 5%, 5%, 5%, 40%). * J-shaped: Gives 20% credit to the first touchpoint, 60% credit to the last touchpoint, and divides the remaining 20% to any touchpoints in between. With 2 touchpoints, the credit is normalized (25%, 75%). With 6 touchpoints, the middle 4 touchpoints would share the 20% (20%, 5%, 5%, 5%, 5%, 60%). * Inverse J-shaped: Gives 60% credit to the first touchpoint, 20% credit to the last touchpoint, and divides the remaining 20% to any touchpoints in between. With 2 touchpoints, the credit is normalized (75%, 25%). With 6 touchpoints, the middle 4 touchpoints would share the 20% (60%, 5%, 5%, 5%, 5%, 20%). * Custom: Customize the weight to be given to the first and last touchpoint, and all other touchpoints in between, based on your use-case. ### Glossary * **User journey:** Consists of touchpoints and the conversion event. It is possible for a conversion event to have no corresponding touchpoints (e.g., UTM parameters). In this case, we consider it a ‘direct’ conversion. * **Conversion**: The primary event you are interested in analyzing with multi-touch attribution models. Typically, some final value-generating interaction, such as “Signup”, “Upgrade”, or “Payment”. * **Touchpoint**: These are actions (events) a user has taken or been exposed to along the journey before doing the conversion event. For example, a user does event A → B → C → D (conversion event) in a 7-day period. For a lookback window of 7 days, A, B, and C are all considered touchpoints. * **Attributed by property:** This is the property on a touchpoint event that we use for the attribution model. The canonical example is utm\_source. * **Lookback window:** The time window where a user's events with this attribution property are counted towards the calculation. The window ends when the conversion metric happens. ### Attribution FAQ **1. How does Mixpanel compute attribution under the hood?** Please watch [this video](https://www.loom.com/share/1cebcd9687df4046af53ac90980907f7) to better understand how this is computed. **2. What does attribution on "unique users" mean?** We need one single conversion event that we can use to “qualify” a user. For example: between May 1 and May 15, Jack made 3 purchases. * May 1: Purchase 1: Computer \[came from Instagram] * May 7: Purchase 2: Laptop \[came from Instagram] * May 10: Purchase 3: TV \[came from Facebook] Now note that, while 3 purchases have been made, only one unique user has been converted. How will attribution work with unique users? There will be 2 options depending on the use-case: * **Option 1:** When running attribution on Jack, we want to consider Jack on May 10, his last qualifying conversion, run a lookback window starting at this point, and consider all attribution before it influenced the 3 purchases. * Last Touch for Jack would be: Facebook -> When would this option be useful? In e-commerce companies, when looking at the cost of acquiring a user, you want to consider all the purchases until their last one. * **Option 2:** Consider Jack on May 1, his first qualifying conversion, and run a lookback before it. * Last Touch for Jack would be: Instagram -> When would this option be useful? For acquisition teams, when looking at getting a user to the experience for the first time, you want to consider their first qualifying event. Some nuances to note * In a time-series chart, the first and last qualifying conversion is within the chart interval. For example, if you have a 6M chart with a monthly interval, you’re looking at first and last conversion within a month, not 6M. ![image](https://mintcdn.com/mixpanel-edb78807/t0w2ecW2bO4mKfCm/images/Attribution_uniques_1.png?fit=max\&auto=format\&n=t0w2ecW2bO4mKfCm\&q=85\&s=a0e772bf748ddbc082ee73ff601ff644) * In non-time series charts, the chart interval and the qualifying conversion interval are the same. If your chart is for 6M, the first and last conversion is also seen within the 6M period. ![image](https://mintcdn.com/mixpanel-edb78807/t0w2ecW2bO4mKfCm/images/Attribution_uniques_2.png?fit=max\&auto=format\&n=t0w2ecW2bO4mKfCm\&q=85\&s=4e1b49dfa005b53be7f339b01ec0a9d0) **3. What does filtering do in attribution?** Once attribution is computed, filtering narrows total conversion events to only include/exclude those with the associated attribution property. Here's a real-life scenario to better illustrate how this works: * Purchase 1: * Jan 15th: Made purchase (visited via LinkedIn ad) * Jan 10th: visited via Google * Attribution data: * Last Touch: LinkedIn * All Sources: LinkedIn, Google * Purchase 2: * Jan 18th: Made Purchase (came directly) * Jan 12th: visited via Facebook (Last Touch: Direct; All Sources: Direct, Facebook) * Attribution data: * Last Touch: Direct * All Sources: Direct, Facebook * Purchase 3: * Jan 20th: Made Purchase (came via Google) * Attribution data: * Last Touch: Google * All Sources: Google On Jan 30th, doing some attribution analysis, here's how you could answer a few of the common questions asked: * I want to look at purchases that only came from a non-direct channel. * Answer: 2 - Purchases 1 and 3 ![image](https://mintcdn.com/mixpanel-edb78807/t0w2ecW2bO4mKfCm/images/Attribution_filtering_1.png?fit=max\&auto=format\&n=t0w2ecW2bO4mKfCm\&q=85\&s=dbae2ed970a3a11193f5dcacbba873f5) * I want to look at how many last-touch purchases came via Google. * Answer: 1 - Purchase 3 ![image](https://mintcdn.com/mixpanel-edb78807/t0w2ecW2bO4mKfCm/images/Attribution_filtering_2.png?fit=max\&auto=format\&n=t0w2ecW2bO4mKfCm\&q=85\&s=5f9a171b85538b3b2ba2ba986ad98add) * I want to look at how many purchases came via Google (can be any touch in the last 30 days). * Answer: 2 - Purchases 1 and 3 ![image](https://mintcdn.com/mixpanel-edb78807/t0w2ecW2bO4mKfCm/images/Attribution_filtering_3.png?fit=max\&auto=format\&n=t0w2ecW2bO4mKfCm\&q=85\&s=012b21d3a81fe7fa553b011fcab06bc8) You can apply a filter on an attribution property only after an attribution breakdown has been applied. Here's how: 1: Turn on Attribution analysis by going to the breakdown section and choosing `Attributed by..` and property `XYZ`. 2a: Once the attribution model has been applied, go to the Filters section and choose the `Attributed by XXX` computed property - you can apply an attribution filter only on the property used in the attribution breakdown. 2b: Once the attribution model has been applied, click on the chart bar and filter/exclude the segments as needed. **4. What does the "(not set)" attribution segment mean?** You may see a "(not set)" segment in your report when using the Attribution feature. This occurs when the attribution property is missing from all events being evaluated for the user. ## Funnels-specific Computed Properties The [Funnel report](/docs/reports/funnels/funnels-overview) supports two unique computed properties. The [Time to Convert property](/docs/reports/funnels/funnels-advanced#time-to-convert) returns the time in seconds needed to convert between funnel steps, and the [Property Sum property](/docs/reports/funnels/funnels-advanced#property-sum) allows you to sum up a numeric property as a user moves through funnel steps. # Custom Buckets Source: https://docs.mixpanel.com/docs/features/custom-buckets Custom buckets let you group existing properties into meaningful segments on the fly ## Overview Custom buckets let you group existing properties into meaningful segments on the fly. This is focused on enabling everyone to answer common segmentation questions easily, quickly, and in a low-friction way. Example use-cases include: * Compare how the core markets are performing between US vs UK vs China vs all others * Compare how many sign-ups are brought in by organic search vs Google ads vs social media channels together (Facebook, Twitter, LinkedIn) * Compare # videos watched for users between ages 18-30 vs 30-40 or 40+ * Compare # users based on duration of video watched: \< 30, 30-60, 60-90 mins ## Quickstart Add a property in Breakdown, then select the **Customize Buckets** option from the overflow menu ![/14342458665748](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/14342458665748.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=0ce03905b75614e1954341569dd0b33e) Depending on your added property data type - string vs numeric, you will see a different custom buckets modal, designed based on the data-type use-cases **(more detail below)** Once you define your segment buckets, click **Apply.** Only then will the custom buckets reflect in the visualization. You will also see the custom buckets as an under-item on the property ![/14342458667924](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/14342458667924.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=a48dbb8a3ae15bdf8fb9999c4bbedea1) To modify the segment buckets, click on the **under-item** and the custom buckets model will open. Once you’ve made the changes, click **Apply** To remove all grouping and revert to the default, open the custom buckets modal and click **Reset** > [!NOTE] > > Note that you cannot have more than 10 uneven (varied) groups. ## String Property Use Cases **Use Case:** Group individual countries into core market regions. * Segment 1: North America: US & Canada * Segment 2: Europe: UK, Germany, France, Netherlands, Italy * Segment 3: China * Segment 4: Rest of the World ### Creating Custom Buckets for String Property 1. Add a breakdown - Country. Below is the default you will see ![/12828869626644](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/12828869626644.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=53a147899192578504fa1f0d48a7e31e) 2. Choose to bucket segments, by opening the custom buckets model and clicking Apply * For each segment, choose the operator “is” and select one or more values * “Rest of the World” is auto-generated as **remaining values** > [!NOTE] > > If two segments have the same value, the first segment will consider the value. Custom buckets are non-overlapping and sum up to 100% by definition ![/14342715436052](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/14342715436052.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=6195a073538c6d32274a72b835f30eb6) ![/12828860042132](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/12828860042132.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=a4a6acafa00910958a67a32c4e5a86db) #### Rename Custom Buckets Segment 1. On the same line of the segment, choose to rename it using the pencil icon 2. Click Apply after creating and naming your segments as desired ![/14342752741140](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/14342752741140.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=8cfa23b578aa377e3e3c3e0303a3a47e) ![/12828869956628](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/12828869956628.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=4adbc27048ae4014cbcbe8e7be2c1848) ## Numeric Property Use Cases **Use Case:** Group a numeric duration (mins) property into customized buckets. * Use Case A: Evenly in 10 min groups for the range 50-100 mins * Use Case B: Specific groups \<10, 10-20, 20-50, 50-100, ≥100 * Use Case C: Want to see all the durations as-is (No grouping) ### Creating Custom Buckets for Numeric Property (Even) **Use Case A**: Evenly in 10 min buckets for the range 50-100 mins 1. Add a breakdown - “watch time (mins)” * Every numeric property is \*\*auto-bucketed into even-sized buckets by default without using custom buckets. * In the example below, the range of duration leads to a default bucket size of 10mins. ![/14342489051028](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/14342489051028.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=4b118efebdd6979ea4fe0f21951bee85) ![/12828860268692](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/12828860268692.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=e71985076ec53a56d76e7f1afe0a0dd3) 2. Go to the overflow and open the custom buckets modal 3. Since looking for even buckets of “30 mins”, choose **Even Bucketing** 4. Modify the min and max values of the desired range, and the bucket size, and click apply * Here these buckets are \<50 mins and ≥ 100 mins ![/14342575096724](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/14342575096724.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=5bf52b47255e38aa55b696361e768e73) ![/12828860573204](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/12828860573204.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=89b48056e9ab13c819a0f56b87c74c45) > [!NOTE] > > Both a lower-end and upper-end bucket will be auto-generated to ensure your breakdown always adds up to 100% ### Creating Custom Buckets for Numeric Property (Varied) **Use Case B**: Specific groups \<10, 10-20, 20-50, 50-100, ≥100 1. Open the custom buckets modal 2. Since looking for specific buckets with varied bucket ranges, choose **Varied Bucketing** 3. Enter the ‘segment’ breakpoint values in each row and click apply. You can preview the bucket as you enter values in the line item below ![/14342546138516](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/14342546138516.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=cc93776d11ea4440017bcd0af58f6078) ![/12828860758676](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/12828860758676.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=1d1dd9c1060d121e9aad07cca0f15fcc) > [!NOTE] > > Both a lower-end and upper-end bucket will be auto-generated to ensure your breakdown always adds up to 100% #### Disable Bucketing **Use Case C:** Want to see all the durations as-is (No bucketing) 1. Open the custom buckets modal 2. Since looking for “No bucketing”, choose **None —** This lays out all the numeric property values as-is ![/14342547991956](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/14342547991956.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=61bd89c58eab12a23b777026313f5db2) ![/12833587659028](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/12833587659028.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=222831d7d20f1710efdfbda6688a95dd) ## Typecasting Property Use Cases **Use Case:** Group users based on their current age. * Segment 1: Age 18 (potential to upgrade) * Segment 2: Age 60 (potential to downgrade) * Segment 3: Every other age ### Creating Custom Bucket with Typecasting 1. Add a breakdown age(years). By default, this will add as a numeric property 2. Since you are looking for pin-pointed years and not creating number ranges, this is a question more common to string property data type 3. Change **Data Type** of age(years) to String. Once changed you will see the type-casted property type as an under-item > [!NOTE] > > Only typecasted data types show as an under-item. If the data type was the same as ingested, no under-item for data type will be seen ![/14342634016660](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/14342634016660.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=3af5d04f772dd640fd633e22f9f2b412) ![/12833644608148](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/12833644608148.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=5c29c1b6ce39b6b2d9d39c6a242d0b80) 4. Post changing data type, open the custom buckets modal. This will now open a modal meant for string property data type 5. Follow the steps as elaborated for the String property use-case above, and achieve the goal ![/14342637801748](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/14342637801748.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=e4254ce364156c38a155b7a907831b26) ![/14342707763604](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/14342707763604.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=a73a924aee6424439a500613290d52d4) ![/12833899595284](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/12833899595284.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=a6e20309b89ca32f6fa7519a057777d0) ### FAQ **Which reports does Custom Buckets work on?** This feature is available in the Insights, Funnels, and Retention reports. **Which property types does this support?** Custom Buckets work on String, Numeric, and List data type **Can I save a Custom Bucket**? No, you can’t save a custom bucket. If your custom bucket is something you or your team would like to re-use, we encourage you to instead create a [custom property](/docs/features/custom-properties#creating-a-custom-property). **How is custom buckets different from [custom property](/docs/features/custom-properties)?** Custom buckets only support the most common custom-property use-case of **`if else`** to create meaningful segments in a more simplistic UI and a low-lift way to enable quick ad-hoc exploration. You could get this same answer using custom property too, it would just be more effort and not as intuitive **Can I create over-lapping segments like (US & UK) vs (US & Australia)?** No, breakdowns are fundamentally designed to sum up to 100%. To ensure your analysis is accurate, please create non-overlapping segments. If you really need to answer a question like this, the right way here is to create these as two metrics leveraging [inline filters](/docs/reports) and NOT use breakdowns. ![/12834111393684](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/12834111393684.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=b6fe88946826478aa34425db785515a6) **Will Custom Bucket still be available if I typecasted the property?** Yes, as long as the data type you have changed the property to is supported. **Can I change the operators on the upper and lower bound for numeric properties?** No, the operators are fixed. The lower bound is inclusive (≥), and the upper bound is exclusive (\<). If you are looking for more control over the operators, please create a [custom property](/docs/features/custom-properties#creating-a-custom-property). **Is (not set) included in (remaining values) for string properties?** No, (not set) is not included in the remaining values. * (remaining values): refers to ‘set’ values that just don’t fall into any of your defined segments * (not set) refers to the events where a property value has not been set at tracking/ ingestion. For example, a new video (MixFun) has been added, but during tracking, you forget to send the name of this video. So the count of this video is being tracked, but it’s being associated with a property value (not set) vs (MixFun) [More details on Falsy Values](/docs/data-structure/property-reference/data-type#falsy-values) **What is the difference between (not set) and (non-numeric values)?** * (not set) as explained above for string refers to property values that have not been associated with any specific property value * (non-numeric values) refers to set values that have just been sent in as non-numeric data type. For example, you’re looking to track time spent and have coded that as a numeric property, but for some reason some values are tracked as “a”, or “b” which are not numeric. **How do I get "not contains" or "not equal to"?** These values will auto-generate under (remaining values). So just select what should be included For example — the (remaining values) below is not equal to US or India ![/12834082079380](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/12834082079380.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=bc42b7b86e6502855ed8165df6c02d4a) **How do I get a bucket of just 0 for numeric properties?** If you’re purely looking for just how many people have value “0”, we would encourage you to typecast this to a string property, then select "0". If you’re looking to get the count of 0, in reference to the other numeric buckets, go ahead and create a **Varied Bucketing** custom buckets modal * If the numeric values are integers: * Choose Varied bucket values 0, 1, 2… * This would generate buckets: \<0, ≥0 & \<1, ≥1 & \<2, ≥2. * ≥0 & \<1 would be equal to bucket 0 * If the numeric values are decimals: * Choose Varied bucket values 0, 0.0001, 1, … * This would generate buckets: \<0, ≥0 & \<0.0001, ≥0.0001 & \<1, ≥1. * ≥0 & \<0.0001 would approximate to bucket 0 # Custom Events Source: https://docs.mixpanel.com/docs/features/custom-events Combine multiple events for analyses ## Overview A custom event is a virtual event that was created from one or more events, optionally filtered down by a particular set of properties, and given a name. You can use custom events to: * Merge two events into a single event ("User Signup" + "Account Created" -> "Signup") * Create an event based on a filter on another event ("Purchase" where Country = "US" -> "US Purchases") Imagine your business has two ways for users to track ads: they can convert from ad, or simply view it. You represent each of these actions with Mixpanel events named "Ad Conversion" and "Ad Impression," respectively. Later, you decide that you want to setup a funnel to track how many users are seeing any ads at all. So what do you do? You can create a custom event containing "Ad Conversion" and "Ad Impression," and then save it as "Watch Ads.” Now you can use the "Watch Ads" custom event as a funnel step just like a regular event. Then, any time a user performs an "Ad Conversion" or "Ad Impression" action, they'll be included in that step. You can also use this new custom event in your other reports, such as Retention. ## Create a Custom Event ![image](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/custom_event_qb.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=7bff9c7611b54186803f6f6aeb7ed632) 1. Open the Metrics menu by clicking "Select Metrics" in an Insights report, or clicking "Select Step/Events" in the Funnels/Retention/Flows report. 2. Select "Create New", then choose "Custom Event" in the right column. 3. Select the events and properties you’d like to include. 4. Name your custom event, and click **Save**. > [!NOTE] > > A Custom Event definition can include up to 25 events. > [!NOTE] > > Custom events can't include session events (Session Start and Session End). A custom event that references a session event won't return results. To analyze sessions, use the Session Start and Session End events directly in your report. ## Edit and Delete Custom Events To view, edit, or delete any custom event, navigate to [Lexicon](/docs/data-governance/lexicon). ![image](https://mintcdn.com/mixpanel-edb78807/LcmSrwWEPbGSfa6B/images/efc4b36e-d8d9-4699-8a48-98b793532b20.png?fit=max\&auto=format\&n=LcmSrwWEPbGSfa6B\&q=85\&s=398d6705c42e4647bcdac7c84aeeccf4) In Lexicon, click on the **Custom Events** tab. ![image](https://mintcdn.com/mixpanel-edb78807/LcmSrwWEPbGSfa6B/images/fb4e1680-3b20-4f24-90de-0101cb097c54.png?fit=max\&auto=format\&n=LcmSrwWEPbGSfa6B\&q=85\&s=417456480261399a1352eef971c2ed56) Here you can see a list of all the custom events in the project. Click on the **name** of the event to edit its details. To delete a custom event, check the **box** beside the title of all the custom events you want to delete, then click the **delete** button at the top of the list. ![image](https://mintcdn.com/mixpanel-edb78807/2dQbP7q9Vb6iLUv1/images/8004da2b-db3c-48c0-a494-e500e1cc5bf7.png?fit=max\&auto=format\&n=2dQbP7q9Vb6iLUv1\&q=85\&s=6bdfb0606d1bd0b1314d2b4aae3f1306) ## Sharing Custom Events A custom event will be private to the user who created it until it is shared with others. To share this custom event with another user in the project, you can click on "Save and Share" while creating the custom event. ![image](https://github.com/user-attachments/assets/277ac882-4ef0-4251-bb1e-107ed38f4f27) ![image](https://github.com/user-attachments/assets/6d84dbf7-7bba-45fd-ba25-44e0772752d8) ## Custom Events versus Simple Behaviors Custom Events and [Simple Behaviors](/docs/features/saved-metrics-and-behaviors#simple-behaviors) are similar in that both allow you to combine multiple events for analysis. However, they serve different purposes. Simple Behaviors are designed for quick editing and reuse within the query builder in the Insights report. In contrast, Custom Events offer greater flexibility, which can be used across various parts of Mixpanel, including cohort definitions, Funnels, and can also be included as events within a Simple Behavior. As a best practice, follow the guidelines below to determine whether to use Simple Behaviors or Custom Events: * Use **Simple Behaviors** if you want to create a definition that can be easily viewed and modified from the query builder in Insights reports * Use **Custom Events** if you need to need to create a virtual event that can be used everywhere in Mixpanel (e.g. inside a cohort definition, Funnels, Flows, or Retention) # Custom Properties Source: https://docs.mixpanel.com/docs/features/custom-properties Calculate new properties on the fly > [!NOTE] > > Free plan users can create custom properties locally within a report. Growth and Enterprise plan users can save the custom properties globally to reuse in other reports. See our [pricing page](https://mixpanel.com/pricing/) for more details. ## Overview Custom properties let you combine existing properties into new properties on the fly, using a simple Excel-like formula language. You can then use these new properties almost anywhere that you can use regular properties, with the ability to save/share them for reuse across your team. For more on why we built this, check out [our blog](https://mixpanel.com/blog/introducing-the-mixpanel-modeling-layer/). ## Creating a Custom Property **1. Click the plus button to the right of the search bar, then select either “Custom Event Property” or “Custom User Property” to open the property builder** ![image](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/1_create_a_custom_property.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=f052a2cd86ff9f9c1d8b1f3355433763) **2. Give your property a name** ![image](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/2_assign_a_name.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=002da2d3a0a0ccf702c300469bbce0d3) **3. Click the formula bar to start defining the calculations to perform for your property** If you're new to this feature, we recommend starting with one of the examples. Click the **Insert Example** drop down to populate the box with a use-case specific custom property. When writing your formula, click **Ctrl + Space** to see a list of all the available [functions and their descriptions](/docs/features/custom-properties#functions). Type **period (.)** to open the menu for choosing an event/profile properties to add to the custom property definition. If you are creating a “Custom Event Property” both event and user profile properties will be available to select. If you are creating a “Custom Profile Property” only user profile properties will be available for use in the custom property. > [!NOTE] > > Note that the formula used to compose your custom property can't be longer than 20,000 characters. ![image](https://mintcdn.com/mixpanel-edb78807/2dQbP7q9Vb6iLUv1/images/98a4e5f0-6b9b-414b-8dfe-feecdb837078.png?fit=max\&auto=format\&n=2dQbP7q9Vb6iLUv1\&q=85\&s=385a9bc5d68175dfdc47c7f82b47e352) ## Saving and Reusing a Custom Property Custom properties are local to the report by default when you select **Apply**. To save the custom property permanently for use in other reports and to make it usable by other project members, click **Save**. We recommend Applying the custom property and using it in your local analysis first, before saving and sharing, to reduce clutter in the project. When you create custom properties and select **Save as Custom Property**, your created custom property will be private by default. You can also add a description at this stage, so you and your colleagues can know what the custom property is for. You can also decide to save the custom property and **share** that custom property with specific colleagues, teams, or the entire organization by clicking "**Save and Share**": ## Common Use Cases **Grouping Marketing Channels** If you're a marketer, using Mixpanel to show the impact of various channels on acquisition, you might want to group your UTM Sources into higher level buckets. For example: * Facebook, Instagram, Twitter → Social * Google, Bing → Search * Everything else → Organic You can also use the [Channel Classifier](/changelogs/2023-11-16-channel-classifier) template in custom properties as a starting point. ![image](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/channel-classifier.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=6d92fec832ae427fb8d65312dde5c8ea) **Compute Properties Mathematically from Other Properties** If you have an e-commerce app, you can combine "price" and "quantity" properties into a "total price" property as follows: ![image](https://mintcdn.com/mixpanel-edb78807/LSnTJ-J777r9Qkr8/images/b514f908-6838-45ff-bdea-feb6969e0340.png?fit=max\&auto=format\&n=LSnTJ-J777r9Qkr8\&q=85\&s=11485f8ce53684e57dab9a43ca259c7a) **Compute the Number of Days Between Two Date Properties** Use custom properties to compute the date/time difference between two date properties. You can also use the special "TODAY()" function to find the difference between a date property and the current date/time. This is ideal when you want to transform a "DateofBirth" property into “age” or a "Created" property into “days active since registration”. A new custom property can be defined by taking into account the “Created” property and using the following transformation: ![image](https://mintcdn.com/mixpanel-edb78807/2dQbP7q9Vb6iLUv1/images/3f099385-9b2c-4e5c-9f73-e72a807e133e.png?fit=max\&auto=format\&n=2dQbP7q9Vb6iLUv1\&q=85\&s=62fe76857af8fd241f7bcf1c3d00ce30) **Compare Different Properties** Use custom properties to create a new property if two property values are the same. For example: A company wants to find out what percentage of purchases are being made by users who have changed countries since signing up. They can create a custom property to determine whether the two country values are the same with this transformation: ![image](https://mintcdn.com/mixpanel-edb78807/LSnTJ-J777r9Qkr8/images/c9b2a70a-60d7-4563-9b59-b21d3c5b86cc.png?fit=max\&auto=format\&n=LSnTJ-J777r9Qkr8\&q=85\&s=2e18a052381cd8ec8301b933bc27a1cf) **Extract Domain from Email Address** Extract the domain of the email from an email address. You can parse out parts of a string after "@" using the SPLIT function: ![image](https://mintcdn.com/mixpanel-edb78807/O5CFUc6kGJpeLxIg/images/daf38804-4bfc-40a4-bed2-8d391bd4ebda.png?fit=max\&auto=format\&n=O5CFUc6kGJpeLxIg\&q=85\&s=94c1ad19d33efa69253c0ba8c0a11ebe) **Query a List with an Index** Let's say you have a list of recommendations as a property, and you’d like to parse out the first recommendation as another string property. You can parse out the first delivery ID in a list property with several DeliveryIDs: ![image](https://mintcdn.com/mixpanel-edb78807/2dQbP7q9Vb6iLUv1/images/7532e7ea-d9cb-44c1-aa8b-48a343ec3d9a.png?fit=max\&auto=format\&n=2dQbP7q9Vb6iLUv1\&q=85\&s=97fc46fc1b768f2da3203e6911768ac6) The same syntax works with objects. ## Additional Examples Below are more formulas for common transformations, covering date math, string parsing, URL handling, and working with lists of objects. You would have to adjust these to meet your use case. Click into any example to see the formula applied in a sample report. > [!NOTE] > > It requires a Mixpanel account and being part of the Demo project to view the example reports. | Use Case | Formula | Explanation | | - | - | - | | [Time difference in minutes](https://mixpanel.com/s/4zgrQZ) between two date properties (e.g. `Updated at` & `Created`) | `(NUMBER(Updated at) - NUMBER(Created)) / 60` | Converts dates into Epoch time using `NUMBER()`, calculates the difference, then divides by 60 to get minutes. | | [Check if a URL parameter exists](https://mixpanel.com/s/3kBvKa) (e.g. `ref=email`) | `IF("ref=email" IN Current URL, TRUE, FALSE)` | Returns `TRUE` if the parameter exists in the URL, otherwise `FALSE`. | | [Combine two string properties](https://mixpanel.com/s/1JC9zr) (e.g. `Name` & `Email`) | `Name + " - " + Email` | Uses the `+` operator for string concatenation to join the two properties with `" - "` in between. | | [Years since a date](https://mixpanel.com/s/2aTWC4) (e.g. `Date of Birth`) | `DATEDIF(Date of Birth, TODAY(), "Y")` | Uses `DATEDIF()` to subtract two dates (`TODAY()` − `Date of Birth`) and return the difference in years. | | [Match a URL pattern](https://mixpanel.com/s/KcJx8) against a specific structure | `REGEX_MATCH(Current URL, "https://.*/example/blog/.*/one")` | Returns `TRUE` if the URL starts with `https://`, followed by any domain, `/example/blog/`, any string, and `/one`. Otherwise `FALSE`. | | [Rename property values](https://mixpanel.com/s/1jJpQt) depending on the current value | `IFS(Page Variant == "A", "First test", Page Variant == "B", "Second test", DEFINED(Page Variant), "Others")` | Assigns a new string for each existing value. Unmatched values are classified as `"Others"`. | | [Days since first event](https://mixpanel.com/s/2YAcV9) (e.g. within 365 days of `First Seen`) | `DATEDIF(First Seen, Time, "D")` | Uses `DATEDIF()` to return the difference between the first and queried event in days. | | [Extract the hour](https://mixpanel.com/s/3d0L9K) from an ISO date property | `NUMBER(MID(STRING(Time), 12, 2))` | Uses `MID()` to extract the hour, starting at index 12 for 2 characters. | | [Split events into time buckets](https://mixpanel.com/s/4BImgV) (e.g. work shifts) | `LET(X, NUMBER(MID(Time, 12, 2)), IFS(X >= 0 AND X < 6, "Dawn Shift", X >= 6 AND X < 11, "Morning Shift", X >= 11 AND X < 18, "Afternoon Shift", X >= 18 AND X < 24, "Night Shift"))` | Uses `LET()` to assign the extracted hour to a variable, then groups it into a named shift. | | [Group by platform](https://mixpanel.com/s/3eshLv) (Mobile vs. Desktop) | `IFS(Operating System == "Android", "Mobile", Operating System == "iOS", "Mobile", Operating System == "Windows", "Desktop", Operating System == "Mac OS X", "Desktop", TRUE, Operating System)` | Classifies known Operating System values into Mobile or Desktop groups. | | [Map "not set" to a different value](https://mixpanel.com/s/L9I5t) (e.g. `0`) | `IF(DEFINED(cost), cost, 0)` | `DEFINED()` checks if the property is defined; keeps the value if so, otherwise returns the default. | | [Event within X seconds/hours/days](https://mixpanel.com/s/42DPMV) of a user date property | `IF((NUMBER(Time) - NUMBER(Registration Date) >= 0) AND (NUMBER(Time) - NUMBER(Registration Date) <= 172800), TRUE, FALSE)` | Converts both dates to numbers and checks if the difference is under 48 hours (172,800 seconds). | | [Filter events between an hour and minute](https://mixpanel.com/s/2YApuz) (e.g. before 17:30) | `LET(TIME_STR, SPLIT(STRING(Time), "T", 2), HOUR, NUMBER(LEFT(TIME_STR, 2)), MIN, NUMBER(MID(TIME_STR, 4, 2)), IF(HOUR < 17 OR (HOUR == 17 AND MIN <= 30), TRUE, FALSE))` | Extracts the time string, then hour/minute, and checks if the timestamp falls before or at 17:30. | | [Sum a property in a list if another matches](https://mixpanel.com/s/1xnyzD) (e.g. sum `Price` where `Category` is `sneakers`) | `SUM(MAP(X, cart, IF(X["Category"] == "sneakers", X["Price"], FALSE)))` | Loops through the list; sums the `Price` value wherever `Category` equals `sneakers`. | | [Return a UTM parameter from the URL](https://mixpanel.com/s/JKdp4) not automatically extracted | `REGEX_REPLACE((REGEX_EXTRACT(Current URL, "utm_source=([^&]*)", 1)), "%20", " ")` | Extracts the text following `utm_source=` up to the next `&`, then replaces encoded spaces (`%20`) with blank spaces. | | [Change the data type of a value in a list of objects](https://mixpanel.com/s/3Do1pl) (e.g. `Price` to string) | `MAP(X, cart, STRING(X["Price"]))` | Loops through the list of objects, converting each `Price` number value to a string. | | [Time difference in seconds](https://mixpanel.com/s/2UisC1) across mixed units (seconds & milliseconds) | `((NUMBER(Time Processed (UTC)) / 1000) - NUMBER(Time)) +/- (HOURS IN SECONDS)` | Converts both dates to Epoch time, dividing the millisecond timestamp by 1000 to align units, then adjusts for the UTC/project timezone offset. | ## Borrowed Properties Borrowed properties allow you to take a property from a prior event and automatically add it as a property on a future event without needing to explicitly track the property in the future event. **Use Cases:** * Use client-side properties to populate a property on a server-side event. Example: “purchase” event could be a server-side event, while the “product search” event is a client-side event. * Track a single event property and apply it to subsequent events. Example: It may be hard to track whether every event has dark mode enabled. You would need to keep track of the state of dark mode, and then add a “dark mode” property to every event that you track. Using borrowed events, you can just track one event with a property that indicates whether dark mode has been enabled or not, and have subsequent events borrow the property from that event. > [!NOTE] > > Each project can use up to 20 borrowed properties. ### Creating Borrowed Properties The following is a demonstration of Borrowed Properties using the [E-Commerce demo project](https://mixpanel.com/project/3018488), which anyone with a Mixpanel account can access. In this demonstration, we present an event called **"Purchase Completed"**, which lacks the event property **"Search term"**. To enable a breakdown by **"Search term"**, we apply the Borrowed Property feature, leveraging the property from another event called **"Product Searched"**. **1. Purchase Completed does not have “Search term”** ![image](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/purchase_completed.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=998e9c87cc865640641e6fe6759b1ed8) **2. Products Searched does have “Search term”** ![image](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/products_searched.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=3ab78f7b66ea9c482ae138d20064b1fd) **3. Create a custom event property** ![image](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/1_create_custom_event_property.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=11070c8ef268f2ba6c1621d43f871507) **4. Add a borrowed property** ![image](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/2_add_borrowed_property.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=4f28e2a87d5702f016a451321251f59e) **5. Select an event to borrow from** ![image](https://mintcdn.com/mixpanel-edb78807/zIwFvUafFSjAERSV/images/3_select_products_searched.png?fit=max\&auto=format\&n=zIwFvUafFSjAERSV\&q=85\&s=6e2179450ec50f70409e34b6a95433e4) **6. Select the property to borrow** ![image](https://mintcdn.com/mixpanel-edb78807/zIwFvUafFSjAERSV/images/4_select_search_terms.png?fit=max\&auto=format\&n=zIwFvUafFSjAERSV\&q=85\&s=c956dac299ef550bf630f4758c955e5d) ### Borrowing Mechanics Borrowed Properties capture the value from the most recent borrowed event. We apply a seven-day lookback window, so the second event must occur within seven days of the first. If no first event exists within this window, the borrowed property is assigned the value (not set). The video below demonstrates how to create a borrowed property. [https://www.youtube-nocookie.com/embed/fEh-ObL7EIQ](https://www.youtube-nocookie.com/embed/fEh-ObL7EIQ) Some key notes * Borrowed property creation is limited to Admin & Owner Roles only * List properties are excluded from borrowed properties * A project can have a maximum of 20 borrowed properties. Hence, you are encouraged to only create borrowed properties useful to the larger team * A borrowed property, once created, is like any other custom property. It can be accessed by all in the project, depending on permissions * Borrowing of a property is strictly from the most recent event in the 7-day lookback window. To elaborate * Say on event “purchase”, you want to borrow property “search term” from an event “search product”. If there are multiple events “search product” before “purchase”, the property will be borrowed from the most recent “search product” event where the property is set. * Lookback is also fixed to a 7-day window. Say the “purchase” event occurred on 31st Jan, if the most recent “search product” occurred on 20th Jan, the borrow functionality will return “search term” = (not set), since this event happened 11 days ago, which is outside the lookback window range. To use a borrowed property with other [functions](/docs/features/custom-properties#functions), you would need to: 1. Create a custom property with just the borrowed property on its own ![image](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/borrowed-property.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=1805fe4c781f7002c4b4ba94e4614849)\\ 2. Create a separate custom property using the borrowed property (i.e., the 1st custom property) ![image](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/borrowed-property-in-custom-property.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=ec438c8cf85a6a32e8ad64aee5809877)\\ 3. Here's an example of a [report](https://mixpanel.com/s/1c4Pl9) with *Searched Category* custom property using *Search term (Products Searched)* borrowed property ![image](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/borrowed-property-in-custom-property-report.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=72858dbf78fe1be702ff6c484e045f3e)\\ ## Reference ### Functions Use the following functions in the **Formula** field to modify your custom property: | Function | Definition | Syntax & Example | | - | - | - | | if | Evaluates if an expression is true or false. | if(condition, value if true, value if false) Example: `if(A=="Facebook" or A=="Twitter", "Social", A)` | | ifs | Runs multiple checks and returns a value corresponding to the first true result. If no conditions are true, undefined is returned. | ifs(condition1, value1, condition2, value2, …) Example: `ifs( A<60,"Less than 1 hour",` `A<120, "More than 1 hour but less than 2 hours",` `A>=120, "More than 2 hours")` | | not | Returns values that are not true. | not(condition) Example: `not(A == "Facebook")` | | and | Returns true if both conditions are met. Else, returns false. | x and y Example: `if(A=="San Francisco" and B=="Chrome", "Valid user", "Invalid User")` | | or | Returns true if either condition is met. Else, returns false. | x or y Example: `if(A=="San Francisco" or B=="Chrome", "Valid user", "Invalid User")` | | in | Returns true if the first condition is contained in the second condition. | x in condition Example: `if("Facebook" in A, "Facebook Corporation", A)` This can also be used to check against a list of values: `if(A in ["Chrome","Firefox","Edge"],"Acceptable browser","Unsupported browser")` | | boolean | Casts the argument to a boolean. | boolean(value)->false, boolean(alternate value)-> true Example: `boolean(A)` | | number | Casts the argument to a number. | number(value to cast) Example: `number(A)` | | string | Casts the argument to a string. | string(value to cast) Example: `string(A)` | | defined | Determines if a value exists. If a property is not defined on a parent event or profile, this will return false, otherwise this will return true. | defined(variable to check for existence) Example: `defined(A)` | | has\_prefix | Determines whether a string starts with another string. This comparison is case-insensitive. | has\_prefix(string to check, prefix) Example: `has_prefix(A, "United")` | | has\_suffix | Determines whether a string ends with another string. This comparison is case-insensitive. | has\_suffix(string to check, suffix) Example: `has_suffix(A,"States")` | | min | Determines the minimum value between two numbers. | min(number, number) Example: `min(A,B)` | | max | Determines the maximum value between two numbers. | max(number, number) Example: `max(A,B)` | | floor | Returns the largest integer that is smaller than or equal to the input (ie: rounds down to the nearest integer). | floor(number) Example: `floor(A)` | | ceil | Returns the smallest integer value greater than or equal to the input (ie: rounds up to the nearest integer). | ceil(number) Example: `ceil(A)` | | round | Returns the nearest integer value of the input value. | round(number) Example: `round(A)` | | upper | Cast string property values to uppercase. | upper(string property) Example: `upper(A); upper("hello")` -> "HELLO" | | lower | Cast string property values to lowercase. | lower(string property) Example: `lower(A); lower("FacEBook")` -> "facebook" | | parse\_url() | Extracts the part of the url that is specified: domain(google) or full\_domain(google.co.uk) | parse\_url(string property, "domain") or parse\_url(string property, "full\_domain") Example: parse\_url(A,"domain") | | regex\_extract | If haystack is a string and pattern matches at least one substring, extracts the result from the first pattern match in haystack. The result is a string equal to the entire regex match, or if a capture group is specified, only that portion of the match. We use the PCRE2 regex engine. | regex\_extract(haystack, pattern, \) Example: `regex_extract("iPhone5.1","iPhone(...)",1)` ->5.1 | | regex\_match | Returns true if the pattern matches any part of the string. We use the PCRE2 regex engine. | regex\_match(haystack, pattern) Example: `regex_match("zzhaystackzz", "ha(..)ack")` -> true // Use (?-i) for case-sensitive matching: `regex_match("HAYSTACK", "(?-i)haystack")` -> false | | regex\_replace | Replaces the parts of a string that match a regular expression with a different string. We use the PCRE2 regex engine. | regex\_replace(haystack, pattern, replacement) Example: // convert currency string to number: `regex_replace("$1,234,567", "[^.0-9]\*", ""))` -> `1234567` | | datedif | Subtract two dates. Units: D: days. M: months. Y: years MD: days remaining after subtracting whole months. YM: months remaining after subtracting whole years. YD: days, assuming start\_date and end\_date are within 1 year. Use TODAY() for current day. | datedif(start\_date,end\_date,unit) Example: `datedif(registration_date,TODAY(), "M")` -> 5 | | len | Returns the length of the string or the list. | len(string) or len(list) Example: `len("Canada")` -> 6 | | left | Returns characters from the beginning of a given string. | left(string, num\_of\_characters) Example: `left("Canada",3)` -> "Can" | | right | Returns characters from the end of a given string | right(string, num\_of\_characters) Example: `right("Canada",3)` -> "ada" | | mid | Returns characters from the middle of a given string | mid(string, first\_index, num\_of\_characters) Example: `mid("Canada",1,4)` -> "Cana" | | split | Splits a string into different parts based on a user-specified delimiter, and lets you select a particular split. Delimiter must be a single ASCII character. To fetch a list of all splits, don't pass a third argument. The first split is accessible by passing n=1 (second with n=2, ...) | split(input string, delimiter, \[n: optional]) → string Examples with 1 split: `split("dwight@dm.com","@",2)` -> "dm.com" `split("dwight@dm.com","@",4)` -> undefined `split("dwight@dm.com","/",2)` -> `dwight@dm.com` `split("empty//string/","/",2)` -> "" Examples with all splits: `split("dwight@dm.com","@")` -> \["dwight", "dm.com"] `split("a/b/c/d", "/")` -> \["a", "b", "c", "d"] `split("a/b/c/d", "-")` -> \["a/b/c/d"] `split("a//b/c/d", "/")` -> \["a", "", "b", "c", "d"] | | let | Define a variable and use it in an expression. This helps keep the custom property definition neat and non-repetitive. Variables are only active within the scope of the LET function. You can nest multiple let functions to define multiple variables. | let(name, definition, expression) `// define a variable "spend" and use it in an expression` `let(` `spend, * ,` `ifs(` `spend < 50, "no discount",` `spend < 200, "gold discount",` `spend > 200, "platinum discount",` `TRUE, "invalid"` `)` `)` *Note: \ and \ are event properties.* | | any | Evaluates to TRUE if the given expression is true for any value in the given list. The expression can refer to the current list element by the given name. | any(name, list, expr) Example: Let's say you had a list of numbers called priceList= \[5,205,178,12,22] `any(X, priceList, X > 300)` -> false. `any(X, priceList, X >= 5 and X < 300)` -> true. | | all | Evaluates to TRUE if the given expression is true for all values in the given list. The expression can refer to the current list element by the given name. | all(name, list, expr) Example: Let's say you had a list of numbers called priceList= \[5,205,178,12,22] `all(X, priceList, X > 5 and X < 200)` -> false. `all(X, priceList, X >= 5 and X < 300)` -> true. | | filter | Filters the given list to only include items for which the given expression is true. The expression can refer to the current list element by the given name. | filter(name, list, expr) Example: Let's say you had a list of numbers called priceList= \[5,205,178,12,22] `filter(X, priceList, X>100)` -> new shortened list = \[205,178] | | map | Transforms each value in the given list using the given expression. The expression can refer to the current list element by the given name. | map(name, list, expr) Example: Let's say you had a list of states = \["Georgia","Florida","Texas"] `map(X, states, lower(X))` -> \["georgia","florida","texas"] | | sum | Sums all numbers in the given list. Non-numeric items in the list are ignored. | sum(list) Example: Let's say you had a list of numbers called priceList= \[5,205,178,12,22] `sum(priceList)` -> 422. `sum(filter(X, priceList, X>100))` -> 383, because `filter(X,priceList, X>100)` -> \[205,178] and `sum([205,178])` -> 383. | ### Numeric Operators Use the following numeric operators in the **Formula** field to modify your custom property using: * `+`: Addition. Operator can also be used to create string concatenation, for example: `"string_to_concatenate" + your string property` * `-`: Subtraction * `*`: Multiplication * `/`: Division * `%`: Modulo ### Comparison Operators Use the following comparison operators in the **Formula** field to modify your custom property: * `<`: The first number is strictly less than the second number. * `>`: The first number is strictly greater than the second number. * `>=`: The first number is greater than or equal to the second number. * `<=`: The first number is less than or equal to the second number. * `==`: The first argument is equal to the second argument. If both arguments are strings, the comparison is case-insensitive. * `!=`: The first argument is not equal to the second argument. If both arguments are strings, the comparison is case-insensitive. ### Constants * `false`: Represents the literal value of boolean false. * `true`: Represents the literal value of boolean true. * `undefined`: Represents the literal value of cases that aren't defined. # Embeds Source: https://docs.mixpanel.com/docs/features/embeds View Mixpanel reports in 3rd-party tools Mixpanel Boards and reports can be embedded in Figma, Coda, Jira, and any third-party tool that supports embedding. ## Using Embeds Paste the link of the Board or Report into the 3rd-party tool and follow the instructions to authenticate. Here's a [video walkthrough](https://www.loom.com/share/000acdf5b6d94efc98d143316afac1db) of this process. ### Compatibility | Company | Status | | - | - | | Figma | GA | | Coda | GA | | Notion | GA | | Jira | Beta | | Confluence | Beta | | Miro | Beta | ### Limitations Though this feature works for any third-party that supports a standard oEmbed, certain integrations may be limited depending on how the third-party has customized their oEmbed settings. In Safari, you must have "Prevent cross-site tracking" off in order for any embedding to work. Go to Safari -> Preferences -> Privacy -> Website tracking: Prevent cross-site tracking should NOT be checked. ## Supporting Embeds in your Platform ### oEmbed [oEmbed](https://oembed.com/) is a format for allowing an embedded representation of a URL on third-party sites. It’s a way to embed content from one website onto another website without having to manually copy and paste code. If your platform supports the oEmbed format, you should be able to support Mixpanel’s Embeddable reports right out of the box. ### Embedly or Iframely If you don’t currently support oEmbed, [Embedly](https://embed.ly/) or [Iframely](https://iframely.com/) are platforms that can help you get started. Embedly provides a way to embed content from a variety of sources, including YouTube, Vimeo, SoundCloud, and more. It offers an API that developers can use to embed content on their websites. Embedly also offers a variety of tools and features, including the ability to customize the appearance of embedded content. Iframely is a similar service to Embedly. It helps websites and applications embed external content such as videos, images, articles, and more. It simplifies the process of embedding content by automatically generating embed codes for various media sources, eliminating the need for developers to manually code each embed. # Building Revenue Metrics Source: https://docs.mixpanel.com/docs/features/revenue-analytics Connect product usage to revenue with Revenue Analytics, using Warehouse Connectors Mirror and Profile History for transaction and subscription models ## Overview Mixpanel's Revenue Analytics gives product teams comprehensive visibility into how their decisions directly impact business outcomes, connecting product usage with financial performance. It also allows revenue teams to work under one umbrella by breaking down silos and streamlining revenue operations across the customer lifecycle. Revenue Analytics eliminates the traditional barrier between product and financial data by seamlessly integrating with existing data warehouses. Whether your business relies on transaction-based purchases or subscription models, this powerful feature provides a unified view of how product changes translate to revenue results, without complex data engineering or lengthy wait times. **Key Benefits** * Eliminate data silos between product analytics and revenue data * Make data-driven decisions without requiring data team involvement * Track revenue changes over time, including refunds, charge-backs, and subscription changes * Analyze both one-time purchases and recurring revenue streams ## How It Works Revenue Analytics leverages Mixpanel's Warehouse Connectors, utilizing two primary data synchronization mechanisms: Mirror and Profile History. Mirror maintains parity between your data warehouse and Mixpanel by regularly polling for changes in the data source and updating the values in Mixpanel. This ensures integrity for purchase-based revenue models by accounting for post-purchase modifications such as refunds, charge-backs, and order cancellations. Profile History utilizes a time-series data structure to track state-based metrics like MRR/ARR at specific points in time. This provides an accurate historical analysis of subscription revenue changes and ties them to user behavior. The system maintains a record of changes to user profiles, which allows for retroactive cohort definitions. You can look at how to build these metrics in Mixpanel by leveraging our [SaaS KPIs template](https://mixpanel.com/project?show-template-selector=true) on either your data or our public demo data set. There is also a [public dashboard](https://mixpanel.com/p/8R2b9DRvnZfrNXYVqNxFLH) to give you a view of the metrics you can build. ## Common Use Cases Mixpanel's Revenue Analytics enables you to analyze your data in powerful ways, regardless of your team, the stage of your company, or your business revenue stream. ### Transaction-based Business Models Revenue Analytics can help answer the following example questions for transaction-based business models. **Acquisition:** * What are D7, D30, and D60 Average Revenue Per User (ARPU)? How has this changed month over month? * Which acquisition channels bring customers with the highest Life Time Value(LTV)? **Conversion optimization:** * What is the Average Order Value (AOV) of users who went through the 5-step purchase funnel versus those who did the 3-step funnel? * Where is revenue dropping in the 5-step purchase funnel? **Comparing spend across segments:** * What is the revenue split across the various categories? How has this changed year-over-year? * How does the revenue generated by first-time buyers compare to that of returning customers during major sales events such as Black Friday? **ROI Analysis on Ad Spend:** * Which are our most effective marketing channels, such as those with the highest Total Revenue to Customer Acquisition Cost(CAC) ratio? * What is the change in the AOV after the launch of a 10% off promotional discount? #### Building the Metrics **Total Revenue**: Calculated as the Sum of Revenue made across all purchases. ![image](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/revenue1.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=28eabacc87b473e028010e4078fb3ea4) **Average Order Value (AOV)**: Calculated as Total Revenue over the Total Number of Purchases. See [this example in our demo project](https://mixpanel.com/s/3VdgsS). ![image](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/revenue2.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=a0d45d2cb2e12c8ae2768456de0642b0) **Life Time Value (LTV)**: Calculated as the cumulative spend from users since they landed on the platform. Often you look at spending in the first 30 or 60 days by the expected lifetime (2 years, 3 years, etc). ![image](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/revenue3.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=60520625a2d49c509f8d9b59c14d28a6) This report shows the cumulative revenue of new users (identified by the Sign Up event) by cohort over their lifetime (5 days, 30 days, 60 days). It leverages the Property Sum feature of the [Retention report](/docs/reports/retention) to look at retained users' cumulative spending. **Average Revenue Per User (ARPU)**: Calculated as the Sum of Revenue over time divided by the number of Unique Users. See [this example in our demo project](https://mixpanel.com/s/300OIR). ![image](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/revenue4.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=1c8ec4592d817f0a5286bc22e0b5a4b9) **Customer Acquisition Cost (CAC)**: Calculated as the Total Acquisition Costs over the Number of New Customers Acquired. In other words, how much money do we have to spend to acquire a user? A good acquisition strategy would lead to a LTV/CAC value above 1. See [this example in our demo project](https://mixpanel.com/s/2TZJlX). ![image](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/revenue5.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=937efeed96c021aded8ef716fcbaeb1b) The report above leverages Mixpanel's [Ad Spend data model](/docs/tracking-methods/integrations/ad-spend). ### Subscription-based Business Models Revenue Analytics can help answer the following example questions for subscription-based business models. **General revenue** What is our current Annual Recurring Revenue(ARR)? How has this changed over time? What's our current Net Revenue Retention (NRR)? **Understanding upgrades/churns** What are the top accounts that have upgraded or churned? What is the average engagement (e.g., Viewed Reports/ARR) for accounts that have upgraded versus churned? Should engagement be a leading indicator? **Feature usage by plan or revenue bucket** What is the feature usage and adoption, broken down by plan type? What is the 'time to activation' for accounts in various revenue buckets? **Impact of product initiatives** We improved our growth plan last year. How many accounts have come in through our basic plan in the last 12 months? They could be on other plans today. We launched a new offering to upsell customers. Is there a correlation between adoption of the feature and upsell revenue? #### Building the Metrics Revenue Analytics makes use of two new computed properties to create subscription revenue metrics. The model is built by comparing two data points: 1. **Recurring Revenue Change**: looks at the 'numerical difference' between the 2 values 2. **Recurring Revenue Change Type**: tells you the 'type of change' listed below: * 20 → 5 = Downgrade (positive to less positive) * 5 → 0 = Churn (positive to zero) * 0 → 5 = New (zero to positive) * 5 → 20 = Upgrade (positive to more positive) * 5 → 5 = Flat (no change) ![image](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/revenue6.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=0d669a3ee528a5747af8341749ed5b36) > [!NOTE] > > The Recurring Revenue Change and Recurring Revenue Change Type computed properties requires the use of [Historical Profile Values](/docs/data-structure/user-profiles#importing-historical-profile-values) imported via [Warehouse Connectors](/docs/tracking-methods/warehouse-connectors). When creating a Revenue Metric (e.g. incremental MRR in the last month), there are two ways to control the calculation: **Time and Change Type**. 1. **Time** lets you analyze based on the past number of months, which allows you to determine “What should today's value be compared versus 1 month ago?”, for example. ![image](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/revenue7.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=2ecf98620102441b3311b4dee3d4706d) 2. **Change Type** enables you to look at the incremental revenue for different types of accounts, whether New, Upsell, Downgrade, or Churn. ![image](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/revenue8.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=9093d17134bd1a49517ef5cfc2467dc3) You can also look at the latest value as of a specific time period, or for **any** value during the time period. For example, you might want to answer: show me all customers who were on a free plan in the last 12 months, even if they are on a priced plan, now. ![image](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/revenue9.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=20865d8e14ed9ef2ec20899467dbc930) **Net Revenue Retention (NRR)**: Calculated as the percentage change in revenue base. * NRR > 100% → Existing customers are being retained and the user base is growing * NRR \< 100% → Existing customers are a leaky bucket and we are not able to upsell them * Formula: * Current MRR from Existing Biz / Prior MRR * (Prior MRR from Existing Biz + (Upsell MRR - Downgrade MRR) ) / Prior MRR ![image](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/revenue10.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=c7c7f80fdd0aad3c7bc35c58096446e8) **MRR Churn**: Calculated as the drop in Revenue for existing users (it does not consider upsells). Typically, the target ARR Churn is below 15%. What does this translate to on a monthly basis? * Formula * 1 - ( (Current MRR from Existing Biz - Upsell MRR) / Prior MRR ) **MRR Growth Rate**: Calculated as the overall growth in MRR (New + Existing Biz) * Current MRR / Prior MRR ![image](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/revenue11.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=b5dc0c92933ef52a51a655b21b8c2994) **MRR by Revenue Type**: Calculated based on the following: * New Revenue: you want this to go up since this is net - new money (land motion) * Upsell Revenue: you want this to go up, too, since this is also net - new money (expand motion) * Downgrade / Lost Revenue: you want this to be minimal * Flat Renewal: you want this pie to keep growing as you land more logos. Ultimately, the Goal is to have (New + Upsell) - Downgrade to be positive, which means recurring revenue is growing. ## FAQ > [accordion] Can all customers use these features? > > Only customers using the [Warehouse Connectors](/docs/tracking-methods/warehouse-connectors) get access to these features. > [accordion] What should be the shape of the data to analyze these metrics? > > Once you set the [Warehouse Connectors](/docs/tracking-methods/warehouse-connectors), be sure that you have [Mirror Mode](/docs/tracking-methods/warehouse-connectors#mirror) turned on to ensure your data is 100% in sync with the warehouse, even if the warehouse data is updated: > > For transaction-based models - Send purchase value as an event property on every purchase event. Example: `{"event_name": "Purchase completed", "properties": {"item": "clothing", "price": 100}}` > > For subscription-based models - Send a monthly snapshot of the revenue per user/ account as a [Historical Profile Property](/docs/data-structure/user-profiles#importing-historical-profile-values). If a user/account is not active, set the revenue data to zero for the immediate month following so we can tag this as a churned user/account. > [accordion] We have multiple SKUs per account, each with its own contract. Can we send this as a revenue object property for an account? > > We do not support profile history for object-type properties. To be able to look at revenue per SKU, we recommend sending each SKU revenue as a historical numerical property. > > If you have 5 SKUs, send 5 historical properties (SKU\_revenue\_1, SKU\_revenue\_2, …, SKU\_revenue\_5). # Saved Metrics and Behaviors Source: https://docs.mixpanel.com/docs/features/saved-metrics-and-behaviors Define and standardize key measurements and user actions so reporting stays consistent and reusable across your product ## Overview Saved Metrics and Behaviors allow you to define and standardize key measurements and user actions across your product/business. By saving these definitions, you ensure consistency, reusability, and accuracy across your reporting and analysis. ![](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/saved-metrics-and-behaviors1.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=18065c17ffc9c339a20e042b432bff60) ## Saved Metrics **Saved Metrics** are standardized definitions for your organization's KPIs. They quantify the performance, progress, or success of various aspects of your product/business. Each saved metric is a measurement of an event, behavior, user cohort, or profile. **Example:** Create a saved metric for your Signup Conversion Rate to consistently track how effectively users complete your signup process. ## Saved Behaviors **Saved Behaviors** are reusable definitions of specific user actions that represent a meaningful user journey or experience. **Example:** If your signup process involves multiple steps, you can define this entire sequence as a "Signup Funnel" saved behavior. Behaviors fall into one of three types: **Simple**, **Funnel**, or **Retention**. ### Simple Behaviors **Simple Behaviors** are an "or" list of one or more events. These are useful when you have multiple events that need to be looked at together to measure a specific behavior. For example, below is a simple behavior for all product page interactions: ![](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/saved-metrics-and-behaviors8.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=2638adeeff655747a185bec6d9420a85) **Simple Behaviors versus Custom Events** Simple Behaviors and [Custom Events](/docs/features/custom-events) are similar in that both allow you to combine multiple events for analysis. As a best practice, follow the guidelines below to determine whether to use Simple Behaviors or Custom Events: * Use **Simple Behaviors** if you want to create a definition that can be easily viewed and modified from the query builder in Insights reports * Use **Custom Events** if you need to create a virtual event that can be used everywhere in Mixpanel (e.g. inside a cohort definition or Funnel) ### Funnel Behaviors > [!NOTE] > > Learn more about the [Funnels report](/docs/reports/funnels). Funnel Behaviors define a sequence of events completed within a specified time frame. For example, save a behavior for the "Product Viewed through Purchased" Funnels. ![](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/saved-metrics-and-behaviors9.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=f29b8fee789cc6e2a286c783a8ee0a9a) ### Retention Behaviors > [!NOTE] > > Learn more about the [Retention report](/docs/reports/retention). Retention Behaviors look at when a user did an event, then came back to do the same or another event within a window of time. For example, we can save a behavior for our monthly returning purchasers. ![](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/saved-metrics-and-behaviors10.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=ba9ebecae311f9018abca869c088c8d9) ## Use Cases You can use Saved Metrics and Saved Behaviors independently or combine them. Below are example use cases for each: **Metrics** * **Save time:** Avoid redundant work. If you frequently recreate the same metric across multiple reports or boards, saving it as a metric streamlines your workflow. * **Onboarding & ease of use:** Make it easy for anyone to understand what events and properties your organization uses to track your key metrics. * **Align your teams:** Establish trusted KPIs that all teams can rely on. This ensures everyone is working toward common goals using the same data. **Behaviors** * **Save time:** If you find yourself creating different metrics using the same set of events and filters, this is a good signal to create a saved behavior. * **Simplify updates:** Centralize definition management. If a specific user behavior or flow changes (e.g. your "Signup Flow" removes a step), you only need to update the saved behavior definition once. All saved metrics that rely on that behavior (e.g. "Signup Flow Time to Convert," "Signup Flow Conversion Rate," "Signup Flow Unique Users") will automatically reflect the updated Signup Flow definition. ## Saving Click on the three dots menu next to the metric name. Select either **Save Metric** or **Saved Behavior**. You will be prompted to add a name and description. ![](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/saved-metrics-and-behaviors2.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=f5841f5f7ac8b4bf6677685042da42ca) ## Sharing By default, saved metrics and behaviors are private to you. After saving, you will be prompted to share. ![](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/saved-metrics-and-behaviors3.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=e6b4b2eaa54bf368f6616e9745bbe006) **Permissions** * Viewers: Can use this metric in analysis, but cannot modify the saved definition * Editors: Can use this metric in analysis, and modify the saved definition **Audiences** * Individuals: Set the permission for specific users in the project * Project: Sets the permission for all users in the project > [!NOTE] > > The best practice is to give the project **View** access and add any **Editors** individually. This ensures that everyone can use the definitions that are managed by select people. ## Using a Saved Metric or Behavior When you click “Select Metric” to populate your report, you will see all events as well as any saved definitions. You can search for a saved metric or behavior by name. Alternatively, you can browse the available saved metrics and behaviors using the tabs on the left. From an Insights report, you can select metrics and behaviors of all types. From Funnels and Retention reports, you will see only metrics and behaviors for that report type. ![](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/saved-metrics-and-behaviors4.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=a2ae13b9bbcfcfaf7a512f4c9244d4c3) ## Updating Definitions Saved metrics or behaviors definitions may change over time. Mixpanel enables you to easily update these definitions and apply the changes across all reports that use them. After selecting a saved metric or behavior, you can modify the definition in the Query Builder. You will see a dotted line around the metric or behavior icon if the definition has been modified from the last saved state. Click the three-dot menu to make updates. ![](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/saved-metrics-and-behaviors5.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=7241950b671b10c74b57a6e17c1860fe) * **Push Changes:** This applies your new definition to the original saved metric/behavior. All reports using this metric/behavior will be updated with the new definition. * **Save as New:** Creates a new metric with this new definition. The originally saved metric definition will not be affected. * **Clear Changes:** Reverts back to the previously saved state. ## Managing Saved Metrics and Behaviors You can view all Saved Metrics and Behaviors in your project, add descriptions to clearly define them, and delete any unwanted definitions directly from the [Lexicon](/docs/data-governance/lexicon). From the Lexicon, click the "Metrics" tab to access all [Saved Metrics](/docs/features/saved-metrics-and-behaviors#saved-metrics) and [Formulas](/docs/reports/insights#formulas). Click the Behaviors tab to access all [Saved Behaviors](/docs/features/saved-metrics-and-behaviors#saved-behaviors). ![](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/saved-metrics-and-behaviors6.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=349673b83498d93d2fc1d53ef9fea1f0) Click on the name of the definition you want to modify or delete. From the detail page, you will see all the options to customize the metric, including: * **Permissions:** Click "Share" to modify the metrics share settings. * **Verify:** [Add Verified badges](/docs/data-governance/lexicon#verify-data) to the metric/behavior. Only project Admins and Owners can verify entities in the Lexicon. * **Display Customizations:** Modify details about how this metric and its data appear by default. * **Delete:** Remove a saved metric from the project. Note, any reports using that saved metric will retain the definition, but be displayed in an unsaved state. ![](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/saved-metrics-and-behaviors7.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=c7527ae3d2c0ec696f2fd9f48ec216ed) # Sessions Source: https://docs.mixpanel.com/docs/features/sessions Compute sessions based on existing event data Use Sessions in Mixpanel to answer questions like: * How much time do users spend on my site per session? * What are the average number of pages visited per session? * Which page is the most common landing page for a session? * What % of sessions lead to a key action (like signing up or purchasing)? ## How Sessions Work Mixpanel computes sessions automatically from the events you send us. This means you don't need to do any special tracking work on your end to make sessions work. Sessions consist of two virtual events: * **Session Start** * **Session End** The way sessions are computed, and thus how the Session Start and Session End events are generated, can be configured in any of the following ways: * **Timeout Based (Default)**: The session starts when a user performs any event, and ends when the user is inactive for some period of time (default: 30 minutes). * **Event Based**: Provide a starting event and ending event. The session starts when the user performs the starting event and ends when the user performs the ending event. * **Property Based**: Provide a `session_id` property. All events that a user performs which have the same value for `session_id` are considered part of the same session. Project Admins or Owners can choose between one of these configurations in [Project Settings](https://mixpanel.com/settings/project) > Overview > Session Settings. Since Mixpanel computes sessions dynamically at query, you can change this definition at any time and it will apply historically. Read more [below](#session-computation-deep-dive). ## Use Cases These use cases assume that you're tracking an event for each page a user views. You can do this automatically with our [Javascript SDK](/docs/quickstart/install-mixpanel?sdk=javascript) or using a CDP like Segment. To make these examples more interesting, we're using our own tracking on our [documentation site](/docs/what-is-mixpanel). ### How much time do users spend on my site per session? Each Session event comes with a "Session Duration (seconds)" property, which is computed by Mixpanel and indicates the amount of time spent during the session. You can use any of our aggregations (sum, average, 90th percentile, etc.) to study the time spent by your users per session. Here, we look at the average time spent per session: ![session-average-duration](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/session-average-duration.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=9d07f31159d678215730e67620b7ba12) It looks like people spend \~5 minutes on average on our documentation site. Averages can hide skew, so we can also see a distribution by breaking down by the Session Duration property: ![](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/session-duration-distribution.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=65b7810be543b6e7302fa9df0bca4ec1) Now we see a bi-modal distribution -- 70% of users spend less than a minute on the site, while only 20% spend more than 5 minutes. From here, you can click into the ">5 minutes" segment, select "View Users", and see a few qualitative examples of users who spent a lot of time on your site (where did they come from and what pages did they view?). ![](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sessions-view-users.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=a8ef5dc66126d203a9f597117e89e9be) ### What are the average number of pages visited per session? You can do this by dividing the number of Page View events by the number of Session Start events, with a formula. ![](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/pages-per-session.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=e9aa7071a592fa0c753c9e4148451efe) This tells us that the average number of pages per session is \~1.3 and has been fairly stable. This is fairly common due to bounces (sessions where users just see one page and quickly bounce). To filter out bounces, we can filter for sessions that are longer than 10 seconds: ![](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/pages-per-session-nobounce.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=e0f097d591a0dadc612701b8629d35ca) This looks more reasonable: it seems like most users view \~3 pages per session. ### Which page is the most common landing page for a session? The Session Start event automatically inherits certain properties from the first event in the session (more on this [below](#session-properties)). Breaking down by the Current URL property tells you which pages are the most common landing pages for a session: ![](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sessions-landing-pages.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=d7fabf2ea389284646cc3cfd5c412f60) Here we see that the most common landing page is the "What is Mixpanel?" page of our docs, followed by the page on "Identifying Users". We might use this insight to decide which parts of our documentation to invest more in. ### What % of sessions end with a Purchase? This example uses our [E-Commerce demo dataset](https://mixpanel.com/project/3018488/view/3536632/app/funnels#bgRv2KTan2Tm) and shows how you can use Sessions in our funnels report: ![](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sessions-funnel.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=65924ebfcccab64144abf109135cbcf6) Here we see that \~22% of sessions lead to the user starting the Checkout flow. You can click any step of the funnel to dig into specific sessions that were successful or unsuccessful to understand this more. ## Session Computation Deep-Dive Here, we provide more detail on how sessions are computed under the hood. Project Admins or Owners can choose between one of these session configurations in [Project Settings](https://mixpanel.com/settings/project) > Overview > Session Settings. ### Timeout-Based Sessions A Timeout-Based Session in Mixpanel is defined as a group of events one user performs within a given time frame on your website or app. A session starts when a user performs an event that is not excluded from your Sessions Settings. The set session length is a period of activity at which a session is ended. The end time of the session is the time that the last event was performed before this period of inactivity. A session starts when a user performs an event and ends when a user stops performing events for long enough that the set session length expires. The time of "Session End" is the time that the last event was performed by the timeout. A single user can start multiple sessions. Those sessions can occur on the same day, or over several days, weeks, or months. As soon as one session ends, another session can begin with the occurrence of a new event. #### Session Timeout This is the length of time that defines a session timeout after a period of inactivity in Mixpanel. You can set the session timeout period in minutes, hours, or days. The default length is 30 minutes. Any non-excluded event performed within the timeout range of the session will restart the session timeout period on the session. For example, say you set a session timeout length of 15 minutes. A user begins a session when they log into your app and perform the event “Log In.” * The “Log In” event marks the beginning of the session, because that user has not performed other events before. * The user then performs the “Start Game” event on your app after 14 minutes. This will restart the clock on the session timeout. * If they then perform no events for 16 minutes, however, the session will end. The session ends at the moment that the “Start Game” event was performed, because it was the last event before a complete session timeout period elapsed. Sessions are reset every 24 hours at midnight (according to your project timezone), so the maximum session timeout length is 24 hours. The minimum session timeout length is one minute. #### Estimating Ideal Session Length Use your [Time to Convert Chart in Funnels](/docs/reports/funnels/funnels-advanced#time-to-convert) to help determine an appropriate session timeout period that aligns with your users’ behavior. ![image](https://mintcdn.com/mixpanel-edb78807/2dQbP7q9Vb6iLUv1/images/44f40194-1aff-493b-828e-f9a1c750ac03.png?fit=max\&auto=format\&n=2dQbP7q9Vb6iLUv1\&q=85\&s=a47bcd0165844ab4de1cbc76ca8956a2) ![image](https://mintcdn.com/mixpanel-edb78807/2dQbP7q9Vb6iLUv1/images/2e831c9f-d3cc-4dcf-abb9-a741e22de34d.png?fit=max\&auto=format\&n=2dQbP7q9Vb6iLUv1\&q=85\&s=a72ac9ea14594f7b6a03f04b8834df39) In your Funnel you can select the event that denotes a "Session Start" in your app (such as “Log In”), and the "Session End" event (such as “Log Out”). Check the time it takes users to convert from the start event to the end event in the Time to Convert Chart, and this will give you an indicator of the average amount of time a session lasts in your app. Be sure to exclude API-related events in your funnel to ensure that your conversion time is accurate. For example, if a user is receiving notifications from you every 25 minutes, and session timeout is every 30 minutes, then session length will be 24 hours. Exclude events that don’t denote an action made by the user from your funnel to ensure that your conversion time is accurate. For example, if a user is receiving notifications from you every 25 minutes, and session timeout is every 30 minutes, then session length will be 24 hours. #### Excluded Events > [!NOTE] > > Events hidden in Lexicon are excluded from session calculations by default so you may notice session numbers change if you change an events status in Lexicon. Exclude events from being tracked as part of a session (such as backend API events that don’t denote an action made by the user on the site), to ensure the validity of session metrics. [Mixpanel API events](/docs/features/sessions#what-mixpanel-api-events-are-by-default-excluded-from-session-calculations) will be excluded by default, but external API events, such as a message sent through another program, will not be excluded. You can exclude events by going under Project Settings to Session Settings and selecting the events you wish to exclude. For example, you should exclude events triggered when a message is sent to a user or when a user is added to an A/B test, as the user did not cause those events. Recommended events to exclude that are not triggered by user activity: * Events triggered when messages are sent to a user (including push notifications) * Events triggered when a message is received * Events tracked server-side, such as monthly membership payments not associated with a specific user action * Events related to API activity Custom events are not supported for exclusions. If you want to exclude a custom event, you can instead exclude the events that make up that custom event. #### Examples ##### Example 1 ![/sessions6.png](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sessions6.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=77f32a920714cc45a52f5d8736c299ff) Session timeout length is set for 30 minutes. 1. A user performs “Event A” at 1:00pm, starting the session and triggering the "Session Start" event. 2. They then wait 10 minutes and perform “Event B” at 1:10pm. 3. They do not perform any other events for 30 minutes, and the session ends and the "Session End" event is triggered. The time of Session End is the time of the last event performed at 1:10pm. Therefore the session length for “Session 1” is 10 minutes. 4. The same user then returns after 40 minutes and performs “Event C” at 1:50pm. As the previous session has already timed out, this triggers a new "Session Start" event and starts a new session. 5. The user then performs “Event D” 20 minutes later at 2:10pm. 6. They perform “Event E” 15 minutes later at 2:25pm. 7. When they do not perform any more events in the next 30 minutes, "Session End" is triggered. The time of the "Session End" is the last event performed at 2:25pm. Therefore the session length for “Session 2” is 35 minutes. ##### Example 2 ![/sessions7.png](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sessions7.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=76fec838f5c0c130d67944a78492a11d) Session timeout length is set for 30 minutes. 1. A user performs “Event A” at 11:30pm, starting the session and triggering the "Session Start" event. 2. They then wait 20 minutes and perform “Event B” at 11:50pm. 3. While this session is not timed to expire until 30 minutes after this event, all sessions are reset at midnight. Therefore, when the user performs “Event C” at 12:05am, it triggers a new "Session Start". The "Session End" time is the time that “Event B” was performed. Therefore the length of “Session 1” is 20 minutes. 4. “Event C” performed at 12:05am starts the session and triggers the "Session Start" event. 5. The user then waits 5 minutes and performs “Event D” at 12:10am. 6. They do not perform any other events for 30 minutes, and the session ends. The time of "Session End" is the time of the last event performed at 12:10am. Therefore the session length for “Session 2” is 5 minutes. ### Event-Based Sessions An Event-Based Session in Mixpanel is defined by an event you choose as the "Session Start" (such as "Login"), and an event you choose as the "Session End" (such as "Log Out"). A single user can start multiple sessions. Those sessions can occur on the same day, or over several days, weeks, or months. As soon as a "Session End" event is performed, another session can begin with the occurrence of a new "Session Start" event. If you haven't clearly defined events that denote the beginning and end of a session, then a Timeout-Based Session may be a better option for your project. Sessions are reset every 24 hours at midnight (according to your project timezone), so the maximum session length is 24 hours #### Examples ##### Example 1 ![/Untitled\_\_3\_.png](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/Untitled__3_.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=972b25146c947a3945b5b906af51604b) Session Start Event is set to `Login` and Session End Event is set to `Logout`. 1. A user performs “Login” at 11:15 pm triggering the “Session Start” event. 2. They then wait 30 minutes and perform “Event B” at 11:45 pm. 3. When the user performs “Logout” at 12:15 am, it triggers a new “Session End”. The "Session End" time is the time that “Logout” was performed. However, since all sessions are reset at midnight, the previous “Session Start” event is no longer associated with the “Session End Event”, and the session duration is not calculated for “Session 1”. Similarly, the “Session End Event” does not have an associated “Session Start Event” and session duration is not calculated for “Session 2”. ##### Example 2 ![/Untitled\_\_4\_.png](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/Untitled__4_.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=b56c522666b60e96c1b0cfb2ef11fdec) Session Start Event is set to `Login` and Session End Event is set to `Logout`. 1. A user performs “Login” at 11:00 am triggering the “Session Start” event. 2. They then wait 15 minutes and perform a second “Login” at 11:15 am. Since the user is already in a session, a new “Session Start” event is not triggered. 3. They then wait 30 minutes and perform a “Logout” at 11:45 am, ending “Session 1” and triggering a new “Session End” event. The duration for “Session 1” will be 45 minutes. 4. Finally, after 30 minutes, another “Logout” event is received at 12:15. Since there is no previous “Session Start” event, a “Session End” event is not created. ### Property-Based Sessions A Property-Based Session in Mixpanel is defined by a property you choose as the "Session Id" (such as "session\_id") and the session persists as long as the value of the “Session Id” property remains constant. As soon as the value for “Session ID" changes, another session is started. Events that do not contain a “Session Id” value are not used in calculating Session Start and End events. Events that contain an empty “Session Id” value (i.e. “session\_id”: “”) will be tracked and session events created upon transition. Like Event Based Sessions, Sessions are reset every 24 hours at midnight (according to your project timezone), so the maximum session length is 24 hours. #### Examples ##### Example 1 ![/10260746661780](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/10260746661780.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=9c09a7d3e9b79948b5965d5522abde04) Session ID Property is set to `session_id` 1. A user performs “Event A” at 11:15 pm with the `session_id` property set to value `456` and triggering the “Session Start” event. 2. They then wait 30 minutes and perform “Event B” at 11:45 pm. 3. Since all sessions are reset at midnight, when the user performs “Event C” at 12:15 am, it triggers new “Session End” and "Session Start" events despite the `session_id` value remaining constant. The "Session End" time is the time that “Event B” was performed resulting in a session length of 30 minutes for “Session 1”. 4. The user then waits 15 minutes and performs “Event D” at 12:30am. 5. Assuming the next event has a different `session_id` or no other events occur before the second day ends, then another "Session End" event will be triggered. The time of the "Session End" is the last event performed at 12:30 am. Therefore the session length for “Session 2” is 15 minutes. ##### Example 2 ![/Untitled\_\_6\_.png](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/Untitled__6_.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=ccaf74a3d93e52bc1c8a95044dc94742) Session ID Property is set to `session_id` 1. A user performs “Event A” at 11:00 am with the `session_id` property set to value `123` and triggering the “Session Start” event. 2. They then wait 15 minutes and perform “Event B” at 11:15 am with the `session_id` property set to value `456`. Since the `session_id` property has changed, “Session End” and “Session Start” events are triggered. The "Session End" time is the time that “Event A” was performed resulting in a session length of 0 minutes for “Session 1”. 3. The user then waits 15 minutes and performs “Event C” at 12:45 am. 4. The user then waits 15 minutes and performs “Event D” at 12:15 pm. 5. Assuming the next event has a different `session_id` or no other events occur for the remainder of the day, another "Session End" event will be triggered. The time of the "Session End" is the last event performed at 12:15 pm. Therefore the session length for “Session 2” is 60 minutes. ## Session Properties Session Events will automatically have the following properties: * Session Duration (Seconds): The duration between the "Session Start" and the "Session End" events in seconds. * Session Event Count: The number of events during a session. This does not include Excluded Events and Hidden Events in Lexicon. * Session Start Event Name: The original event name that triggered the Session Start event. * Session End Event Name: The original event name that triggered the Session End event. Mixpanel will also associate properties from the events that are part of a user's session onto the Session events. For Timeout-based sessions, the properties available on the "Session Start" and "Session End" events will be attributed to the first event in which the property is defined of the qualifying sessions. For event and property-based sessions, the properties will be associated with the event that triggers the session starting. This is useful to answer questions like: "How many Sessions came from a particular country or device?" By default, the list of associated properties is as follows: * \$app\_build\_number * \$app\_version\_string * \$browser * \$city * \$country\_code * \$current\_url * \$device * \$manufacturer * \$os * \$region * mp\_country\_code * mp\_lib * mp\_platform * utm\_campaign * utm\_content * utm\_source You can add additional properties to be associated with the session by going under Project Settings to Session Settings and selecting the list of properties you wish to be associated with. They will then be accessible for analysis in Mixpanel reports. Note that there is a limit of 4 additional properties that can be associated with session analysis. ![/10494738316692](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/10494738316692.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=267339edb1b0b585353c2df173fff3ba) ## Session Controls in Reports ### Funnels In [Funnels](/docs/reports/funnels/funnels-overview), once you have set up sessions, a “Session Start” and “Session End” events will be generated in the report based on the funnel criteria. ![image](https://mintcdn.com/mixpanel-edb78807/O5CFUc6kGJpeLxIg/images/e6c12438-00da-4ebe-8302-a52f5a9da511.png?fit=max\&auto=format\&n=O5CFUc6kGJpeLxIg\&q=85\&s=8f5a51d051737e215fb328ba40eaeecc) The event properties "Session Duration (Seconds)", "Session Event Count", "Session End Event Name", and "Session Start Event Name" can be used to break down or filter these results. ![image](https://mintcdn.com/mixpanel-edb78807/2dQbP7q9Vb6iLUv1/images/5608f64b-3514-406f-8a65-fe6a588f36fb.png?fit=max\&auto=format\&n=2dQbP7q9Vb6iLUv1\&q=85\&s=a179f5978d40c2289f7418b8b11b794e) You can also choose to count Sessions instead of Uniques or Totals in the Conversion Details section. If you choose to count Sessions, the conversion window will be limited to one session. Whenever you make a change to session settings, you can then review the impact of this change in the Funnels Time to Convert Chart. If you see a large group of users doing 4+ hour sessions or just having sessions of \< 1 minute, you can create cohorts from these user segments and then evaluate their behavior in Flows to confirm Sessions is set up correctly. ![image](https://mintcdn.com/mixpanel-edb78807/O5CFUc6kGJpeLxIg/images/e986f4f1-ad96-408b-8217-2a979b66e9eb.png?fit=max\&auto=format\&n=O5CFUc6kGJpeLxIg\&q=85\&s=e34ac88d044bfa1d51ff92fc60f83924) If you choose to count Uniques or Totals, you will be able to select a conversion window as usual, including Sessions. ![image](https://mintcdn.com/mixpanel-edb78807/O5CFUc6kGJpeLxIg/images/d0be7cb4-9cd4-46cd-849e-af4687b6aa1c.png?fit=max\&auto=format\&n=O5CFUc6kGJpeLxIg\&q=85\&s=05db94ae16da66424ab2252bf0eead19) ### Flows In [Flows](/docs/reports/flows), you can use the “Session Start” and “Session End” events to view the top Flows events within a session. When you select sessions in Flows, the flow will be weighted by the number of sessions, rather than unique users. ### Insights In [Insights](/docs/reports/insights), you can use the “Session Start” and “Session End” events to explore a variety of metrics: * The total number of sessions over time * The average session length per user * Session duration broken down across all users * The average number of sessions per user * Sessions calculated in formulas ![image](https://mintcdn.com/mixpanel-edb78807/O5CFUc6kGJpeLxIg/images/ee999c27-c70f-438e-a95d-6ea4925b8474.png?fit=max\&auto=format\&n=O5CFUc6kGJpeLxIg\&q=85\&s=4019bf5e0f1881a721279d244a4eb4b1) When you select sessions in Insights, you will be viewing total session counts, rather than uniques or totals. The event properties "Session Duration (Seconds)", "Session Event Count", "Session End Event Name", and "Session Start Event Name" can be used to break down or filter these results. #### Aggregation by Sessions In Insights, you can also count the number of sessions that contained a particular event. Select the **Total** drop-down beside an event in your Insights query to select **Sessions**. ![image](https://mintcdn.com/mixpanel-edb78807/2dQbP7q9Vb6iLUv1/images/350c4606-4366-40af-a050-21cbe01bf543.png?fit=max\&auto=format\&n=2dQbP7q9Vb6iLUv1\&q=85\&s=824aa36795ee44490a77fd7c94c93a76) For example, select an event that determines success for your company, such as "Product Purchase". Using this aggregation you can track how many sessions contained a purchase. ## FAQ ### How can I find the average session duration using Mixpanel? You can do so using the "Session Duration (seconds)" property associated with our Session Start/End events, which would measure the Session Duration in Seconds. To change it from seconds to minutes, you can use our formula and divide it by 60. To find the average session duration across all users, you may refer to this report here: [https://mixpanel.com/s/vcXKR ](https://mixpanel.com/s/3rXLmT) ### How can I find the average session duration per user using Mixpanel? Similarly, you can use the same property as above. In this case, you would need to use our aggregate properties per user feature. If you select "Aggregate Properties per User" and then "Sum", it will add up all Session Lengths for any given day and divide it by all unique users. You can then apply a formula to express the values in minutes, simply by dividing by 60: [https://mixpanel.com/s/3k1bct](https://mixpanel.com/s/3k1bct) For additional information, I've also included Formula B to show how "Sum per User by Average" works. ### Can I export Session Start and Session End events via API? No. Session Start and Session End are virtual events. Mixpanel computes them dynamically at query time, so they are not stored in your raw event data and cannot be exported through the [Raw Data Export API](/reference/raw-data-export-api). To get session data out of Mixpanel, build a report that uses the Session Start or Session End events (for example, an Insights report broken down by session properties) and export the report results as CSV. See [Export Methods](/docs/export-methods) for report export options. ### What Mixpanel API events are by default excluded from session calculations? * `$identify` * `$create_alias` * `$merge` * `$hotshard_events` * Message Sent (`$campaign_delivery`) * Message Bounced (`$campaign_bounced`) * Message Marked Spam (`$campaign_marked_spam`) * Message Suppressed (`$message_suppressed`) * Message Unsubscribed (`$unsubscribe`) * Campaign Entered (`$journey_entered`) # Slack Integration Source: https://docs.mixpanel.com/docs/features/slack-integration Connect Mixpanel to your Slack workspace to help share reports with your colleagues faster Connect Mixpanel to your Slack workspace to help share reports with your colleagues faster. You can (1) set up an alert to send a message to a Slack channel, (2) set up a Board Subscription to send a message to a Slack channel, or (3) share previews of any Mixpanel report in Slack. To send an alert to a Slack Channel, see [Custom Alerts](/docs/features/alerts). To set up a board subscription to a Slack Channel, see [Advanced Board Functionality - Subscriptions](/docs/boards#board-subscriptions). The Mixpanel application for Slack will also automatically unfurl a preview of any Mixpanel link, including chart images for certain reports, making it easy for anyone in your Slack workspace to learn from your Mixpanel analyses. ## Enable the Integration To enable the integration, log in to both Mixpanel and Slack, then click [here](https://mixpanel.com/slack/oauth?slack_v2=true) to authorize the Slack workspace: ![/Screen\_Shot\_2020-06-15\_at\_10.41.00\_PM.png](https://mintcdn.com/mixpanel-edb78807/LIWtWr4Am6t1wkkk/images/Screen_Shot_2020-06-15_at_10.41.00_PM.png?fit=max\&auto=format\&n=LIWtWr4Am6t1wkkk\&q=85\&s=87ad2b43c063f818d6da573980d5fb9b) After clicking allow, you'll return to Mixpanel, where you'll see a success banner: ![/Screen\_Shot\_2020-06-15\_at\_10.42.06\_PM.png](https://mintcdn.com/mixpanel-edb78807/LIWtWr4Am6t1wkkk/images/Screen_Shot_2020-06-15_at_10.42.06_PM.png?fit=max\&auto=format\&n=LIWtWr4Am6t1wkkk\&q=85\&s=70c6220b25f40b6e1e67ea4b065b5735) At this point, Mixpanel is a part of your Slack workspace, and any Mixpanel links you send in Slack will unfurl with metadata, and if applicable a chart preview. Once at least one member of your Mixpanel organization has set up the Mixpanel Integration for Slack for their account, any other members of the Slack workspace will see a prompt the next time they paste a Mixpanel link. The prompt will ask them to connect their own Mixpanel account to Slack as well. If they choose to do so, Slack will guide them through the authentication flow. Once they have successfully connected Mixpanel to Slack, any further links they paste in Slack will unfurl. ## Using the Integration Once you've set up the integration, Mixpanel links pasted in Slack will unfurl. Most links will provide some basic link metadata, and links to Insights, Flows, Funnels, or Retention reports will also include a chart preview, for example: ![/slack\_app\_demo.png](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/slack_app_demo.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=ea4c7aa269dc080020490f2a3336abdc) ## Permissions Mixpanel does not restrict who can enable the Mixpanel integration for Slack. However, your Slack workspace may limit who can perform the connection. After Mixpanel is connected to Slack, any Slack user who posts a Mixpanel link will be prompted to connect their own account to unfurl report previews. Performing this integration at the user level ensures that only reports the user has access to will unfurl in Slack. ## Privacy The Mixpanel app for Slack adheres to Mixpanel's overall privacy policy, available in full here: [https://mixpanel.com/legal/privacy-policy/](https://mixpanel.com/legal/privacy-policy/). # Warehouse Metrics Source: https://docs.mixpanel.com/docs/features/warehouse-metrics Query your data warehouse and chart the results in Insights Warehouse Metrics lets you query, visualize, and analyze data that lives in your data warehouse using Mixpanel's analysis tools. You write SQL against a connected warehouse, and Mixpanel turns the results into a saved metric you can chart in Insights and add to boards alongside your Mixpanel reports. Your raw data stays in your warehouse. Mixpanel runs the query against your warehouse and brings back only the results: no data is copied into Mixpanel. ## Before you begin To use Warehouse Metrics, you first need a connected warehouse. Mixpanel supports: * Snowflake * BigQuery * Redshift * Databricks > [!NOTE] > > **Postgres** > > Postgres is supported by [Warehouse Connectors](/docs/tracking-methods/warehouse-connectors) but is not yet supported for Warehouse Metrics. If you don't have a warehouse connected yet, follow Step 1 of [Connect a warehouse](/docs/tracking-methods/warehouse-connectors#step-1-connect-a-warehouse). This establishes the connection Mixpanel uses to run your queries: you do not need to copy or sync any data into Mixpanel to use Warehouse Metrics. ## Permissions | Access | What they can do | | - | - | | **Project Admins** | Create and run warehouse queries, save them as warehouse metrics, set the refresh frequency, and choose who to share each metric with. | | **Other Users** | Use a warehouse metric that's been shared with them in new reports they create, and view the metric's data in any report they can access. | Note: For Enterprise accounts using [Custom Roles](/docs/orgs-and-projects/roles-and-permissions#custom-roles), the create and manage warehouse metrics permissions are available to users with the Create and Manage Data Warehouses permission. ## Creating a warehouse metric Before you can create a warehouse metric, you need a connected warehouse. If you don't have one yet, follow Step 1 of [Connect a warehouse](/docs/tracking-methods/warehouse-connectors#step-1-connect-a-warehouse) first. See [Before you begin](#before-you-begin) for supported warehouses. 1. Open the warehouse metric builder from either entry point: * Insights report: **Add Metric** > **Create New** > **Warehouse Metric** * Project Settings: **Warehouse Data** > **Create** > **Metric** Then select the connected warehouse source you want to query. 2. Write your SQL query. You can query any table the connection has access to. 3. Run the query to preview the results. 4. Choose a **Metric Type**: * **Numeric Metric**: a single value from a query that returns one number. * **Timeseries Metric**: a value that changes over time, plotted along a time axis. 5. Select a **Value Column**: the column from your query results that holds the number Mixpanel plots. This applies to both metric types. 6. For a **Timeseries Metric**, also select: * **Time Column**: the column that holds the date or timestamp for each row. Only date/timestamp columns can be selected. * **Aggregation**: how rows that fall within the same time bucket are combined into a single value. See [Aggregation options](#aggregation-options). 7. Set **Syncs**: how frequently the metric is refreshed. Running the query uses compute in your warehouse. 8. Name and save the metric, and choose who to share it with. Once saved, it becomes available in the metrics menu of the Insights query builder. See [Permissions](#permissions) for how sharing works. ### Aggregation options For a **Timeseries Metric**, when more than one row from your query falls within the same time bucket (for example, several rows on the same day), the **Aggregation** setting controls how those rows are combined into a single value for that bucket. Choose the option that matches what your metric represents. | Option | What it does | Example | When to use | | - | - | - | - | | **None** | No combining is applied; expects one row per time bucket at the granularity your query returns. | Your query already returns one row per day. | When your SQL already produces a single value per time period and you won't change the report's time interval. | | **Sum** | Adds the values in the bucket. | Revenue rows on the same day summed to a daily total. | Additive quantities like revenue, orders, or units. | | **Count** | Counts the rows in the bucket. | Number of transactions per day. | Measuring how many rows occurred in each period, regardless of their value. | | **Average** | Takes the mean of the values in the bucket. | Average order value per day. | Rates, scores, and per-unit values where a total wouldn't make sense. | | **Min** | Takes the smallest value in the bucket. | Lowest account balance that day. | Tracking a floor or worst-case value. | | **Max** | Takes the largest value in the bucket. | Peak concurrent users that day. | Tracking a ceiling or high-water mark. | | **Median** | Takes the median of the values in the bucket. | Median session length per day. | A typical value that isn't skewed by outliers. | | **Last Value** | Takes the last value in the bucket. | Account balance as of the end of the day. | Point-in-time state, where you want the value as it stood at the end of the period. | > [!NOTE] > > **"None" and changing the report's time interval** > > With **None**, Mixpanel plots your query's rows as-is and doesn't roll them up when the report's time interval changes. If your query returns daily rows and you switch the report to weekly (or any interval that doesn't match your data), the metric shows no data. Choose an aggregation other than **None** if you want the metric to adapt to different time intervals. ### Time zones For a **Timeseries Metric**, Mixpanel reads the time zone from the values in your **Time Column**: * **If a value includes a UTC offset, Mixpanel uses it.** In `2026-08-25T02:00:00-04:00`, the trailing `-04:00` means Eastern time; in `2026-08-23T13:00:00+09:00`, the `+09:00` means Korea Standard Time. * **If a value has no offset, Mixpanel assumes UTC.** A value like `2026-08-25T02:00:00` is treated as 2:00 AM UTC. Either way, Mixpanel converts the timestamp to your [project time zone](/docs/orgs-and-projects/managing-projects#manage-timezones-for-projects) when displaying the metric on a chart, so warehouse metrics line up with your Mixpanel metrics on the same time axis. > [!NOTE] > > If your warehouse stores timestamps in local time without an offset, they'll be read as UTC and may land in the wrong time bucket. Include the offset in your query's output, or convert to UTC in your SQL, so the values are unambiguous. ## Editing a warehouse metric Once a metric is saved, you can reopen the SQL editor from either of two places: * **From an Insights report:** click the three dots on the metric, then select **Edit Metric**. * **From Lexicon:** open the metric in [Lexicon](/docs/data-governance/lexicon) and click **Edit**. Either path opens the same editor you used to create the metric, where you can revise the query and its settings. ## Visualizing in Insights Saved warehouse metrics appear as an option in the Insights query builder, alongside your Mixpanel metrics. You can chart a warehouse metric on its own or place it next to Mixpanel metrics in the same report. Both metric types are supported: * **Numeric metrics** show their single value as a constant across the selected date range. * **Timeseries metrics** are plotted over time using the time column you selected in line and column charts. Time buckets with no matching rows show as 0. > [!NOTE] > > **Insights only** > > Warehouse metrics can only be used in **Insights** reports. If you switch a report to a different report type, the warehouse metric is dropped from that report. ## Refresh frequency Each warehouse metric refreshes on the schedule you set with the **Syncs** setting when you create it: **Hourly**, **Daily**, **Weekly**, or **Manually**. With **Manually**, the metric only updates when you re-run it. On each refresh, Mixpanel re-runs the query against your warehouse and updates the saved results, along with any reports or board cards that use the metric. Reports and board cards show a freshness indicator based on when the metric last refreshed. Because each metric refreshes on its own schedule, this can differ from the freshness of other cards on the same board. Because each refresh runs the query in your warehouse, the refresh frequency you choose affects how much warehouse compute the metric uses. ## Data and privacy * **Your data stays in your warehouse:** Mixpanel runs your query and returns only the results. No raw data is copied into Mixpanel. * **You control the query:** Most query results are aggregated (for example, a count of monthly active users). Depending on how a query is written, results can include row-level or identifiable data. You decide which queries to write and run. ## Warehouse costs Running a query uses compute in your own warehouse, which may affect your warehouse bill. You control how often that compute is used through each metric's refresh frequency. Mixpanel does not add a separate charge for running warehouse queries. ## How Warehouse Metrics is different from Warehouse Connectors Both features work with your warehouse, but they do different things: * **[Warehouse Connectors](/docs/tracking-methods/warehouse-connectors)** import data from your warehouse into Mixpanel as events, users, or groups, so it can be analyzed as native Mixpanel data. * **Warehouse Metrics** queries your warehouse in place and returns aggregated results, without copying data into Mixpanel. You use the same warehouse connection for both. ## Current limitations The following are not yet supported: * **Joining warehouse data with Mixpanel data:** A warehouse metric is computed entirely from your SQL query and isn't combined with Mixpanel behavioral data in the same query. * **Filters and breakdowns:** Query builder filters, breakdowns, and board-level global filters don't apply to warehouse metrics. To change what's returned, edit the query. * **Schema browser:** Available tables and columns aren't listed in Mixpanel; write your query against tables you already know. * **Report types other than Insights:** Warehouse metrics work only in Insights reports. # Install with AI Source: https://docs.mixpanel.com/docs/install-with-ai The Mixpanel Implementation Skill installs Mixpanel into your project through your AI coding agent The Mixpanel Implementation Skill installs Mixpanel into your project through your AI coding agent. It handles SDK selection, identity management, event tracking, and compliance gates through a guided conversation — with paths ranging from a one-session Quick Start to a full production-ready rollout. ## What You'll Need Before starting, make sure you have: * A Mixpanel account with Admin or Owner access ([sign up](https://www.mixpanel.com/signup) if you don't have one) * An AI coding agent with access to your project files (Claude Code, Cursor, ChatGPT, GitHub Copilot, Windsurf, etc.) * Use the most advanced model your tool offers * A development or staging environment where you can test the changes ## Step 1: Get Your Mixpanel Project Token 1. **Log into your Mixpanel account** at [mixpanel.com/login](https://www.mixpanel.com/login). 2. **Open project settings** by clicking the gear icon in the bottom left. 3. **Click "Overview"** in the left sidebar. 4. **Copy your Project Token** from the Access Keys section. It's a long string of letters and numbers. *Note: You'll need to be an Admin or Owner in your project.* 5. **Keep this handy** — you'll give it to your coding agent in the next step. ## Step 2: Run the Mixpanel Implementation Skill The skill runs inside your coding agent. To start it: 1. **Open your AI coding agent** and make sure it has access to your project files. 2. **Paste this prompt** into the chat: ```text theme={"system"} Set up Mixpanel tracking in this project. Use the Mixpanel setup skill: https://raw.githubusercontent.com/mixpanel/ai-plugins/main/plugins/mixpanel/skills/tracking-implementation/SKILL.md ``` 3. **Answer the skill's questions.** The skill scans your codebase, confirms a few one-way-door details (platform, CDP usage, EU/CA users, your most important user action), and then writes the integration code. ## How the Skill Works The skill starts by asking which mode fits your goal: | Mode | What it covers | | - | - | | **Quick Start** | Get your first two events into Mixpanel in one session — sign-up plus your Value Moment. | | **Full Implementation** | Build a complete, production-ready setup: discovery, analytics strategy, data model, tracking plan, identity, and governance. | | **Add Tracking** | Extend an existing Mixpanel implementation with new events. | | **Audit** | Diagnose an existing implementation and produce a prioritized fix list. | You can switch modes mid-flow. If Quick Start surfaces consent, CDP, or identity complexity, the skill offers to escalate to Full Implementation. If Full Implementation feels heavy, you can downshift to Quick Start. ### What the Skill Does * **Scans your codebase** to identify your platform, framework, auth flow, and candidate events — so you don't answer questions the code already answers. * **Selects the correct SDK** for your platform (JavaScript, React Native, iOS Swift, Android, Python, Node.js, Flutter, Go, Ruby, PHP, Java, Unity). * **Routes through your CDP** if you use Segment, Rudderstack, or mParticle, instead of installing the SDK directly. * **Gates SDK initialization behind consent** when you have EU or California users. * **Wires identity correctly** — `identify` on login or signup, `reset` on logout, in the right files. * **Drops an `AGENTS.md` file** in your repo so future AI agents know Mixpanel is your analytics tool, how it's configured, and how to add tracking consistently. * **Verifies events in Live View** before considering the work done. ### If You Don't Have Codebase Access The skill also supports a developer handoff path. Tell the skill you're scoping the work for a developer to implement later, and it generates a `MIXPANEL_IMPLEMENTATION_SPEC.md` file with copy-paste-ready code, business context, verification steps, and troubleshooting — instead of writing code directly. ## Step 3: Test Your Installation After the skill finishes, confirm events are flowing: 1. **Deploy the changes** to your testing environment. 2. **Use your app or website** the way a user would. 3. **Open the [Events page](https://mixpanel.com/report/events)** in Mixpanel. 4. **Confirm events appear** as you interact with your app. You may need to refresh. ### What You Should See The skill names events based on your product, but a typical implementation includes: * `sign_up_completed` — when a user finishes account creation * A **Value Moment** event named for the most important action in your product (e.g., `report_generated`, `purchase_completed`, `prompt_sent`) * Identity tied to your authenticated user ID If you chose Full Implementation, you'll also have a full tracking plan, governance setup in Lexicon, and a documented identity flow. ## Give Your Agent the Docs The skill covers installation. For anything beyond it, point your agent at Mixpanel's machine-readable documentation — `llms.txt`, per-page Markdown, the OpenAPI specs, and a documentation MCP server. See [Docs for AI Agents](/docs/docs-for-ai-agents). ## Troubleshooting #### No events showing up? 1. Confirm you used the correct project token. 2. Make sure your app is running and you're actually interacting with it. 3. Wait a minute or two — there can be a small delay. 4. Open your browser console (F12) and check for errors. #### Events tracking with the wrong name or properties? Tell the skill to switch into **Audit** mode. It reviews what's currently tracked and produces a prioritized fix list. #### Wrong SDK installed? The skill checks platform during its Pre-Flight scan, but if it picked the wrong SDK, tell it and ask it to redo the implementation step. The skill rolls back and tries again with the correct SDK. #### The skill is asking for information I don't have? Pause and gather it, or tell the skill you don't have codebase access — it will generate a developer handoff specification instead of writing code. #### Need more help? * Browse the [Mixpanel documentation](/docs/what-is-mixpanel). * Ask your coding agent to explain what it installed. * Contact [Mixpanel support](https://mixpanel.com/contact-us/support/). ## FAQ #### Which coding agents does the skill work with? Any agent that can fetch a URL and follow instructions — Claude Code, Cursor, ChatGPT, GitHub Copilot Chat, Windsurf, and others. The skill is a plain Markdown file your agent reads at runtime. #### Is my code or project token sent to Mixpanel? No. The skill runs entirely inside your coding agent. Your code never leaves your environment, and your project token is used only by the Mixpanel SDK that gets installed in your project. #### Can I run the skill again later? Yes. Add new events through **Add Tracking** mode, or review your setup through **Audit** mode. The `AGENTS.md` file the skill drops in your repo gives future agents the context they need to add events consistently. #### What if I'm not technical? The skill works whether or not you know how to code. If you don't have codebase access, choose the developer handoff path — the skill generates a complete specification your developer can implement. #### Does the skill work with a CDP like Segment? Yes. If you route data through Segment, Rudderstack, or mParticle, the skill skips direct SDK installation and configures Mixpanel through your CDP instead. > [!WARNING] > > The skill generates production code. Always review what your AI agent writes before merging or deploying. Human oversight is recommended for every integration. # Mixpanel MCP Server Source: https://docs.mixpanel.com/docs/mcp Hosted Model Context Protocol server that gives AI assistants access to your Mixpanel data ## Overview Mixpanel provides a hosted [Model Context Protocol (MCP)](https://modelcontextprotocol.io) server that gives AI assistants direct access to your Mixpanel data. Once connected, you can query events, funnels, flows, retention, session replays, and more using natural language — no dashboard navigation required. A typical workflow looks like: 1. **Discover**: Find your projects, events, and properties 2. **Query**: Run insights, funnels, flows, or retention analyses 3. **Create**: Build dashboards, organize Lexicon, or manage data quality issues 4. **Iterate**: Refine with follow-up questions in the same conversation ## Available Tools | Category | Tool | Description | | - | - | - | | **Analytics** | `Run-Query` | Execute insights, funnels, flows, and retention queries | | | `Get-Query-Schema` | Get the full JSON schema for building a query | | | `Get-Report` | Retrieve a saved report, optionally including results | | | `Display-Query` | Display an interactive chart widget for a previously-run query | | **Dashboards** (Boards) | `Create-Dashboard` | Create a new dashboard with text cards and reports | | | `List-Dashboards` | Browse dashboards in a project | | | `Get-Dashboard` | Retrieve a dashboard's metadata, text cards, and reports | | | `Update-Dashboard` | Modify a dashboard's metadata, rows, and layout | | | `Duplicate-Dashboard` | Create a copy of an existing dashboard | | | `Delete-Dashboard` | Delete a dashboard | | **Data Discovery** | `Get-Business-Context` | Get org- and project-specific business context, vocabulary, and query instructions | | | `Get-Projects` | List your projects and workspaces | | | `List-Organizations` | List organizations the current user belongs to | | | `Get-Events` | Browse and search events in a project, optionally including full metadata | | | `List-Properties` | List and search event or user properties in a project | | | `Get-Property-Values` | Discover values for a specific property | | | `Search-Entities` | Search across dashboards, reports, experiments, feature flags, and more | | | `Get-Issues` | Get data quality issues filtered by event, property, type, or date | | | `Get-Lexicon-URL` | Get a direct link to an event or property in Lexicon | | **Data Management** | `Edit-Event` | Update event description, display name, tags, or visibility | | | `Edit-Property` | Update property description, display name, hidden status, or PII classification | | | `Bulk-Edit-Events` | Edit multiple events at once (up to 50) with uniform or per-event fields | | | `Bulk-Edit-Properties` | Edit multiple properties at once (up to 50) with uniform or per-property fields | | | `Create-Tag` | Create a new tag in Lexicon | | | `Rename-Tag` | Rename an existing tag across all associated events and properties | | | `Delete-Tag` | Remove a tag from your project | | | `Dismiss-Issues` | Bulk-dismiss data quality issues by event, property, or type | | | `Update-Business-Context` | Update business context at the project or organization level | | | `Find-Duplicate-Groups` | Find groups of duplicate or near-duplicate names in a Mixpanel project for events and event properties | | | `Dismiss-Duplicate-Group` | Dismiss a duplicate-group suggestion | | | `Merge-Group` | Merge a group of duplicate names into one entity | | **Custom Properties** | `Create-Custom-Property` | Create a custom property | | | `Get-Custom-Property` | Get the definition and details of a custom property | | | `Update-Custom-Property` | Update an existing custom property's definition | | **Cohorts** | `Create-Cohort` | Create a new cohort | | | `Get-Cohort` | Retrieve a cohort's metadata and definition by ID or name | | | `Update-Cohort` | Update an existing cohort | | | `Delete-Cohort` | Delete an existing cohort | | | `List-Cohorts` | List cohorts in project | | | `Describe-Cohort-Schema` | Returns documentation and reference information about the structure of cohort definitions | | **Lookup Tables** | `Create-Lookup-Table` | Create a new lookup table | | | `Get-Lookup-Table` | Read a lookup table's schema, row count, and a preview of its rows by ID/name | | | `Update-Lookup-Table` | Update an existing lookup table | | **Metrics** | `Create-Metric` | Create a saved metric (behavior or formula) for reuse across experiments | | | `Get-Metric` | Get the full definition of a saved metric | | | `List-Metrics` | List all saved metrics in a project | | | `Update-Metric` | Update a saved metric's name, definition, or description | | **Session Replays** | `Get-User-Replays-Data` | Analyze a specific user's replays alongside their event data | | **Experiments** | `List-Experiments` | List and search experiments in a project | | | `Get-Experiment` | Retrieve experiment details, configuration, and results | | | `Create-Experiment` | Create a new experiment | | | `Update-Experiment` | Modify an experiment's configuration or manage its lifecycle | | | `Get-Experiment-Setup-Guidance` | Get best-practice guidance for designing an experiment | | | `Get-Experiment-Results-Interpretation-Guidance` | Get best-practice guidance for interpreting experiment results | | | `Explain-Experiment-Health-Check` | Explain why an experiment's health check is firing, or confirm it's healthy | | | `Run-Experiment-Pre-Launch-Checks` | Cross-reference a draft experiment's config against best practices before launch | | | `Search-Prior-Experiments` | Search the project's experiment store for prior tests on the same surface | | **Feature Flags** | `List-Feature-Flags` | List and search feature flags in a project | | | `Get-Feature-Flag` | Retrieve feature flag details and targeting rules | | | `Create-Feature-Flag` | Create a new feature flag | | | `Update-Feature-Flag` | Modify a feature flag's configuration or targeting | | | `Get-Feature-Flag-Setup-Guidance` | Get best-practice guidance for creating and configuring a feature flag | | | `Get-Feature-Flag-Lifecycle-Guidance` | Get best-practice guidance for rollout, kill-switch, and cleanup of a feature flag | | **Audit Log** | `Get-Audit-Log` | Query your organization's audit history — who changed what, and when | **Beta.** The Experiments and Feature Flags tools are in open Beta and are available to all users. Audience targeting, including cohort-based targeting, isn’t yet supported through Experiments and Feature Flag tools using MCP — use the Mixpanel UI instead. ## MCP Server URLs | Region | URL | | - | - | | US | `https://mcp.mixpanel.com/mcp` | | EU | `https://mcp-eu.mixpanel.com/mcp` | | IN | `https://mcp-in.mixpanel.com/mcp` | ## Permissions & Access > [!NOTE] > > **New free and growth accounts (created after August 1, 2026):** MCP is enabled by default — no admin action required. Organization admins can disable it in **Settings → Org → AI Settings** if needed. Free plans can be subject to Query API access limits, please refer to our [pricing page](https://mixpanel.com/pricing/) for more information. > > **All other accounts:** An organization admin must enable MCP in **Settings → Org → AI Settings** before anyone can connect. > > Changes can take up to 15 minutes to take effect. Once MCP is enabled, any Mixpanel user in your organization can connect. Users authenticate with their own Mixpanel credentials, so all existing project permissions and roles apply — users can only see data from projects they already have access to. > [!NOTE] > > **Verified Mode.** If an admin has enabled [Verified Mode](/docs/mixpanel-agent#verified-mode) in Project Settings, MCP query results still include **all requested entities** — Verified Mode does not remove or exclude data. Entities that haven't been verified in [Lexicon](/docs/data-governance/lexicon#verify-data) are flagged as unverified, and results prefer verified equivalents where they exist. ## Connecting to the MCP Server Mixpanel's MCP server supports two authentication methods: * **OAuth** — Users sign in through a browser with their Mixpanel credentials. Best for interactive use in AI assistants like Claude, ChatGPT, or Cursor. * **Service Accounts** *(Beta)* — A static credential header with no browser login required. Best for CI/CD pipelines, automated agents, and shared team setups. Choose the method that fits your use case below. ## Connecting with OAuth ### Claude [Add Mixpanel to Claude](https://claude.ai/directory/connectors/29d60a67-6f16-489b-8a1e-efdcece8d1f6) and complete the Mixpanel OAuth flow. For EU or IN regions, use **Settings → Connectors → Add Custom Connector** instead, and enter your [MCP Server URL](#mcp-server-urls). > [!NOTE] > > [Enterprise-managed connections](/docs/mcp/claude-enterprise-managed-auth) are available in Claude. Claude Team and Enterprise admins can connect everyone in the organization at once, without each member signing in. ### Claude Code [Claude Code MCP docs](https://code.claude.com/docs/en/mcp) ```bash theme={"system"} claude mcp add --transport http mixpanel https://mcp.mixpanel.com/mcp ``` Then authenticate by running `/mcp` inside Claude Code and completing the Mixpanel OAuth flow in your browser. > [!TIP] > > The [Mixpanel plugin for Claude Code](#claude-code-plugin) adds skills on top of this connection — guided workflows for tracking implementation, metric investigation, dashboards, and experiments — and can set up the MCP connection for you. > [!NOTE] > > This page covers the Mixpanel MCP server, which gives assistants live access to your project data. Mixpanel also hosts a separate MCP server for the documentation itself at `https://docs.mixpanel.com/mcp`. See [Docs for AI Agents](/docs/docs-for-ai-agents). ### ChatGPT [Add Mixpanel to ChatGPT](https://chatgpt.com/apps/mixpanel/asdk_app_69b2e9aed45c8191b254b207dfcc2bb4) and complete the Mixpanel OAuth flow. **Note:** If your workspace is in the **EU or IN region**, or you want to publish a custom plugin to your workspace for teammates to use, you must first enable **Developer Mode**. Go to **Settings → Security and login**, then enable **Developer Mode**. Once **Developer Mode** is enabled, add a new plugin. ![Image](https://mintcdn.com/mixpanel-edb78807/NQsqmdshmDvED8a-/images/image-8.png?fit=max\&auto=format\&n=NQsqmdshmDvED8a-\&q=85\&s=1464d182d331bc9ebdee6d9af66bde56) 1. Go to **Plugins** and add a new plugin — set the [MCP Server URL](#mcp-server-urls) to your regional endpoint and Authentication to **OAuth** 2. Complete the Mixpanel OAuth flow 3. Optionally publish the connector to your workspace so teammates can use it ### Codex 1. Go to **Settings → MCP Servers → + Add Server** 2. Provide a name (e.g. Mixpanel) and select **Streamable HTTP** 3. Enter your [MCP Server URL](#mcp-server-urls) and click **Save** ### Codex CLI Add the following to `~/.codex/config.toml` (use the EU or IN URL if needed): ```toml theme={"system"} [mcp_servers.mixpanel] url = "https://mcp.mixpanel.com/mcp" ``` Then authorize: ```bash theme={"system"} codex mcp login mixpanel ``` ### Notion 1. Create a new Agent from the **Agents** section in the Notion sidebar 2. In the Agent's **Settings**, go to **Tools and Access → + Add Connection** 3. Select **Mixpanel** and complete the OAuth flow ### Gemini CLI ```bash theme={"system"} gemini mcp add mixpanel npx -y mcp-remote https://mcp.mixpanel.com/mcp ``` Or edit `~/.gemini/settings.json` manually and add: ```json theme={"system"} { "mcpServers": { "mixpanel": { "command": "npx", "args": ["-y", "mcp-remote", "https://mcp.mixpanel.com/mcp"] } } } ``` ### Cursor 1. Go to **Settings → Tools & MCP → New MCP Server** to open `~/.cursor/mcp.json` 2. Add the following (use the EU or IN URL if needed): ```json theme={"system"} { "mcpServers": { "mixpanel": { "command": "npx", "args": ["-y", "mcp-remote", "https://mcp.mixpanel.com/mcp"] } } } ``` 3. Save the file — Cursor will prompt you to authorize with Mixpanel on first connect ### Microsoft Copilot (JSON-configured clients) Any client that supports the MCP JSON config format, including Microsoft Copilot, can connect using the same JSON snippet from the Cursor section above. The first time it connects it will prompt you to authorize with Mixpanel. ## Connecting with Service Accounts > [!WARNING] > > **Beta.** Service account authentication for MCP is in beta. The interface may change. [Service accounts](/reference/service-accounts) are non-human Mixpanel users designed for scripts, back-end services, and automated workflows. They authenticate via a static header — no browser-based login is required. Use service accounts when you need a headless MCP connection, such as CI/CD pipelines, automated agents, or shared team setups. The service account's project permissions apply: it can only access projects it has been added to. ### Prerequisites 1. **Create a service account** in your [Organization settings](https://mixpanel.com/settings/org#serviceaccounts) or [Project settings](https://mixpanel.com/settings/project#serviceaccounts). You need Owner or Admin permissions to do this. 2. **Save the username and secret** — you won't be able to view the secret again after creation. 3. **Ensure the service account has access** to the projects you want to query via MCP. 4. **MCP must be enabled** by an org admin in **Settings → Org → Overview** (free and growth accounts created after August 1, 2026 have it enabled by default). ### Generating the Authorization Header Encode the service account credentials as a base64 string and construct the authorization header: ```bash theme={"system"} echo -n ":" | base64 ``` This outputs a base64-encoded string. The full header value is: ```text theme={"system"} Authorization: Bearer Basic ``` For example, if your username is `my-sa.abc123.mp-service-account` and your secret is `my-secret`, run: ```bash theme={"system"} echo -n "my-sa.abc123.mp-service-account:my-secret" | base64 # Output: bXktc2EuYWJjMTIzLm1wLXNlcnZpY2UtYWNjb3VudDpteS1zZWNyZXQ= ``` The header would be: `Authorization: Bearer Basic bXktc2EuYWJjMTIzLm1wLXNlcnZpY2UtYWNjb3VudDpteS1zZWNyZXQ=` > [!WARNING] > > Treat the base64-encoded credentials like a password. Use environment variables or secret managers instead of hardcoding them in config files. ### Claude [Claude Desktop MCP docs](https://support.claude.com/en/articles/10949351-getting-started-with-local-mcp-servers-on-claude-desktop) Open your config file via **Settings → Developer → Edit Config** and add the following (use the EU or IN URL if needed): ```json theme={"system"} { "mcpServers": { "mixpanel": { "url": "https://mcp.mixpanel.com/mcp", "headers": { "Authorization": "Bearer Basic " } } } } ``` Restart Claude Desktop after saving the file. ### Claude Code [Claude Code MCP docs](https://code.claude.com/docs/en/mcp) ```bash theme={"system"} claude mcp add --transport http mixpanel https://mcp.mixpanel.com/mcp \ --header "Authorization: Bearer Basic " ``` Or add it to your `.mcp.json` file using an environment variable: ```json theme={"system"} { "mcpServers": { "mixpanel": { "type": "http", "url": "https://mcp.mixpanel.com/mcp", "headers": { "Authorization": "Bearer Basic ${MIXPANEL_SA_TOKEN}" } } } } ``` Set `MIXPANEL_SA_TOKEN` to your base64-encoded credentials before starting Claude Code. ### Codex 1. Go to **Settings → MCP Servers → + Add Server** 2. Provide a name (e.g. Mixpanel) and select **Streamable HTTP** 3. Enter your [MCP Server URL](#mcp-server-urls) 4. Add the [authorization header](#generating-the-authorization-header) and click **Save** ### Codex CLI Add the following to `~/.codex/config.toml` (use the EU or IN URL if needed): ```toml theme={"system"} [mcp_servers.mixpanel] url = "https://mcp.mixpanel.com/mcp" headers = { Authorization = "Bearer Basic " } ``` ### Notion Service accounts are not supported through the Notion agent connector. Use [Cursor](#cursor-1) or another client that supports custom headers instead. ### Gemini CLI ```bash theme={"system"} gemini mcp add mixpanel npx -y mcp-remote https://mcp.mixpanel.com/mcp \ --header "Authorization:Bearer Basic " ``` Or edit `~/.gemini/settings.json` manually and add (use the EU or IN URL if needed): ```json theme={"system"} { "mcpServers": { "mixpanel": { "command": "npx", "args": [ "-y", "mcp-remote", "https://mcp.mixpanel.com/mcp", "--header", "Authorization:${AUTH_HEADER}" ], "env": { "AUTH_HEADER": "Bearer Basic " } } } } ``` ### Cursor [Cursor MCP docs](https://cursor.com/docs/mcp) 1. Go to **Settings → Tools & MCP → New MCP Server** to open `~/.cursor/mcp.json` 2. Add the following (use the EU or IN URL if needed): ```json theme={"system"} { "mcpServers": { "mixpanel": { "url": "https://mcp.mixpanel.com/mcp", "headers": { "Authorization": "Bearer Basic ${env:MIXPANEL_SA_TOKEN}" } } } } ``` 3. Set the `MIXPANEL_SA_TOKEN` environment variable to your base64-encoded credentials ### Microsoft Copilot (JSON-configured clients) Any client that supports the MCP JSON config format, including Microsoft Copilot, can connect using the same JSON snippet from the Cursor section above — adding the `headers` object with the [authorization header](#generating-the-authorization-header). ## Claude Code Plugin The [Mixpanel plugin for Claude Code](https://github.com/mixpanel/ai-plugins) adds a set of skills — guided workflows for the analytics work Mixpanel customers do most. The skills work through whichever engine you set up: the MCP server (any region) or the [`mixpanel-headless`](/docs/mixpanel-headless) Python SDK. **Install the plugin**, then run the install skill once per project to set up an engine and region: ```bash theme={"system"} claude plugin marketplace add mixpanel/ai-plugins claude plugin install mixpanel ``` Then, inside Claude Code: ```text theme={"system"} /mixpanel:install ``` If you already connected the MCP server (see [Claude Code](#claude-code) above), the skills use that connection automatically — no extra setup. ### Included Skills Claude invokes skills automatically based on your request, or you can invoke one directly with `/mixpanel:skill-name` (for example, `/mixpanel:deep-research`). | Skill | What It Does | | - | - | | `install` | Sets up a Mixpanel engine for a project — MCP server (US/EU/India), mixpanel-headless SDK, or your own integration | | `analyze-report` | Reads and explains an existing report or chart — what it shows and what's notable | | `create-dashboard` | Builds a well-designed dashboard with validated reports, text cards, and narrative layout | | `deep-research` | Runs a structured root-cause investigation into why a metric changed | | `learn-mcp` | Onboards you to the MCP server through guided, interactive modules | | `manage-boards` | Full dashboard lifecycle: create, template, clone, inventory, and clean up boards | | `manage-experiment` | Coaches you through experiment design, launch, mid-flight monitoring, and interpretation | | `manage-feature-flags` | Creates, rolls out, debugs, and cleans up feature flags | | `manage-lexicon` | Audits, scores, enriches, and cleans up Lexicon metadata | | `monitor-metrics` | Detects anomalies and drift in a metric and diagnoses root cause | | `prepare-ai-readiness` | Sets up business context and Lexicon metadata so Mixpanel's AI assistants understand your data | | `tracking-implementation` | Guides an analytics implementation: quick start, full setup, adding tracking, or an audit | The plugin's skills are open source at [github.com/mixpanel/ai-plugins](https://github.com/mixpanel/ai-plugins). When the engine is the MCP server, the same [Permissions & Access](#permissions--access) rules apply — MCP must be enabled for your organization, and Claude can only see projects your Mixpanel user can access. ## Example Queries Once connected, try asking your AI assistant: **Understand your data** * "What projects do I have access to?" * "What are the most fired events this week?" * "Which properties on `checkout_completed` are marked as PII?" **Query & analyze** * "How many sign ups did we have in February?" * "What's our signup-to-purchase conversion rate this month vs last month?" * "Show 7-day retention for users who completed onboarding in Q1" * "Which acquisition channels have the best 30-day retention?" **Create & build** * "Create a board of purchase metrics" * "Build a weekly growth dashboard with signups, activations, and churn" **Automate Lexicon work** * "Add descriptions to any events that don't have one" * "Tag all checkout-related events with 'Checkout'" * "Hide any events that haven't fired in the last 90 days" * "Find all properties that look like PII but aren't flagged yet" **Triage data quality** * "Show me all open data quality issues for the Signup event" * "Dismiss all issues for events we deprecated last quarter" **Test & ship** * "Create an experiment to test whether showing a progress indicator during onboarding increases activation rate" * "Create a feature flag for our new AI-powered search" * "How did our checkout experiment perform? Did it reach significance?" **Investigate users** * "This user reported a bug — what happened in their last 3 sessions?" * "Walk me through what \[user ID] did before they churned" **Review what changed** *(requires the [`Get-Audit-Log`](#querying-the-audit-log) tool)* * "What changed in this project last week?" * "Who deleted a board yesterday?" * "What has \[user email] changed in the last 24 hours?" ## Security Considerations When connected, the AI assistant can both **read and write** to Mixpanel on your behalf. Your Mixpanel data is also sent to whichever AI provider you're using (Claude, ChatGPT, etc.), so review that provider's data handling policies before connecting. **Access controls** * MCP must be enabled by an org admin in **Settings → Org → Overview** (free and growth accounts created after August 1, 2026 have it on by default; admins can still disable it) * Users can only access projects they already have permission to view in Mixpanel * All existing roles and project-level permissions remain in effect **Other considerations** * Every change an assistant makes is recorded in your [audit log](#audit-log), attributed to the account it is connected as * Check applicable compliance requirements (GDPR, CCPA, etc.) before connecting to projects with personal data * If using a shared AI environment (e.g., a team workspace), be aware that conversation history may be visible to others ## Audit Log ### MCP Activity Is Logged Changes an assistant makes through MCP are recorded in the same [audit log](/docs/access-security/audit-log) as changes made in the Mixpanel UI, attributed to the account the assistant is connected as and carrying an **Origin** of MCP — the `service` field in exports and the API. Read-only and failed tool calls are not logged. See [MCP Activity](/docs/access-security/audit-log#mcp-activity) for what each tool call records, how many entries an action produces, and retention. ### Querying the Audit Log The `Get-Audit-Log` tool lets you ask about your audit history conversationally, instead of filtering the audit log page by hand — "what changed in this project last week?", "who deleted a board yesterday?" `Get-Audit-Log` requires **organization admin or owner** access, the same access as the organization audit log page. Every other role, including project owners who are not organization admins, gets a permission error. ## Troubleshooting * **"MCP access is not enabled for this project"**: Ask your org admin to enable MCP in **Settings → Org → Overview**. * **"Missing scope" error**: Your cached auth token was created with an outdated scope list. Delete the `.mcp-auth` folder in the directory where you ran the authorization command, then re-authorize. * **Authorization fails**: Ensure your Mixpanel account has access to at least one project and that MCP is enabled at the org level. * **Desktop app doesn't pick up config changes**: Restart the application after editing the config file. * **`Get-Audit-Log` is missing or returns a permission error**: The tool requires organization admin or owner access. If you have the right role, reconnect the Mixpanel connector to pick up the tool — in Claude Code run `/mcp`, and in other clients disconnect and reconnect. * **A recent MCP action isn't in the audit log**: Entries can take several minutes to appear. Note that read-only and failed tool calls are never logged. ## Rate Limits * A maximum of 600 MCP requests/hour per user ## Limitations The following capabilities are not currently supported through the MCP server. Use the Mixpanel UI for these analyses instead. * **Cohort filters and breakdowns in** `Run-Query`**:** Queries run with `Run-Query` cannot filter or break down results by cohort. * **SCD fields:** MCP tools do not currently support SCD (Slowly Changing Dimension / Profile Property History) fields. Queries run through MCP cannot break down or filter by profile-history properties. * **Saved Metrics in** `Run-Query`**:** `Run-Query` does not currently work with Saved Metrics. For event-based metrics, add the metric's event and property filters to your Business Context so your AI client can rebuild the underlying event definition. For metrics with funnel steps, event ordering, time windows, or other rules, include the full Saved Metric definition in your Business Context and use the Mixpanel UI for the analysis. ## Building Custom Integrations (OAuth) If you're building a third-party MCP client or custom integration, use the following OAuth configuration. ### OAuth Discovery Mixpanel's MCP server supports OAuth discovery via two well-known endpoints, following RFC 8414 and RFC 9728: **Protected Resource Metadata (RFC 9728):** Discover which authorization servers can issue tokens for this resource: ```text theme={"system"} https://mcp.mixpanel.com/.well-known/oauth-protected-resource/mcp ``` **Authorization Server Metadata (RFC 8414):** Discover authorization, token, and registration endpoints: ```text theme={"system"} https://mcp.mixpanel.com/.well-known/oauth-authorization-server/mcp ``` The following endpoints are deprecated but still available: ```text theme={"system"} /.well-known/oauth-protected-resource /.well-known/oauth-authorization-server ``` ### Dynamic Client Registration | Region | Registration Endpoint | | - | - | | US | `https://mixpanel.com/oauth/mcp/register/` | | EU | `https://eu.mixpanel.com/oauth/mcp/register/` | | IN | `https://in.mixpanel.com/oauth/mcp/register/` | ### Authorization Code Flow with PKCE Mixpanel uses **Authorization Code + PKCE (S256)**: * **Authorization endpoint:** `https://{mixpanel_domain}/oauth/authorize` * **Token endpoint:** `https://{mixpanel_domain}/oauth/token/` * **Grant types:** `authorization_code`, `refresh_token` * **Code challenge method:** `S256` * **Token endpoint auth methods:** `none`, `client_secret_basic`, `client_secret_post` ### Required OAuth Scopes **Mandatory:** ```text theme={"system"} projects analysis events insights segmentation retention data:read funnels flows data_definitions ``` **Optional:** ```text theme={"system"} dashboard_reports bookmarks user_details business_context ``` > [!NOTE] > > To request a specific subset of scopes, pass `--static-oauth-client-metadata '{ "scope": "..." }'` to `npx mcp-remote`. Otherwise all available scopes are requested automatically. # MCP Connections Source: https://docs.mixpanel.com/docs/mcp-connections Connect Mixpanel Agent to tools like GitHub, Jira, Linear, and Notion so it can read context from them. ## Overview MCP Connections let [Mixpanel Agent](/docs/mixpanel-agent) read context from the tools your team already uses. Each connection links your own account on an external [Model Context Protocol (MCP)](https://modelcontextprotocol.io) server to Mixpanel, so the Agent can pull in issues, pull requests, docs, and tickets alongside your Mixpanel data. MCP Connections are the reverse of the [Mixpanel MCP Server](/docs/mcp): the MCP Server lets outside AI tools read Mixpanel, while MCP Connections let Mixpanel Agent read outside tools. Key properties: * **Read-only by default.** Mixpanel Agent can only use read tools on connected servers. It cannot create, edit, or delete anything in them. Organizations in the [Write Access Beta](#write-access-beta) can let the Agent use write tools too, with your approval. * **Private to you.** Connections belong to your user in a single organization. Teammates cannot see or use your connections, and the Agent sees only what your account on that tool can see. * **Removed when you leave.** If you are removed from the organization, your connections and their credentials are deleted. ## Supported Tools | Tool | Sign-in method | Setup guide | | - | - | - | | Notion | OAuth | Sign in with your Notion account | | Linear | OAuth | Sign in with your Linear account | | Jira | OAuth | [Connect Jira](/docs/mcp-connections/jira) | | GitHub | Personal access token | [Connect GitHub](/docs/mcp-connections/github) | Each tool can be connected once per user. ## Enable MCP Connections for Your Organization MCP Connections are off by default. An organization admin or owner must turn them on before anyone can connect a tool. 1. Go to **Settings → Org → AI Settings**. 2. Make sure **Enable Mixpanel AI** is on. MCP Connections require Mixpanel AI. 3. Turn on **Connect Your Tools via MCP**. When this setting is off, members cannot add connections, and Mixpanel Agent does not use any existing connections. Members can still view and delete connections they already have. ## Add a Connection 1. Go to **Settings → Personal Settings → [MCP Connections](https://mixpanel.com/settings/account#mcp-connections)**. You can also add a connection from the **MCP Connections** menu in the Mixpanel Agent chat box. 2. Click **Add Connection** and choose a tool. 3. Mixpanel checks how the server handles authentication, then asks you to sign in in one of two ways: * **OAuth:** Servers that support OAuth open a popup to their own sign-in page. Sign in, approve access, and the popup confirms "Successfully connected". Notion, Linear, and Jira work this way. * **Token:** Servers that don't support OAuth sign-in with Mixpanel ask you to paste a token in the **Authentication Token** field. Mixpanel checks the token before saving it. GitHub works this way. Once connected, the tool appears in the list with a **Connected** status. ## Use Connections in Mixpanel Agent Your connections are available in every Mixpanel Agent conversation. To choose which ones the Agent can use in a conversation, open the **MCP Connections** menu in the chat box and check or uncheck each connection. Example prompts: * *Signups dropped on Tuesday. Were any pull requests merged to the signup service that day?* * *Summarize the open Jira tickets about the checkout flow and show me the checkout funnel for the same period.* * *Find the Notion spec for the new onboarding flow and check whether we track every step it describes.* If a connected server is unreachable, the Agent continues without it. ## Manage Connections The **Connection Status** column on the MCP Connections page checks each connection when you open the page: * **Connected:** The connection is working. * **Disconnected:** The credentials are no longer valid, for example because a token expired or was revoked, or you revoked access in the tool. * **Unavailable:** An admin has turned off **Connect Your Tools via MCP** for your organization. To remove a connection, click the trash icon next to it. To reconnect a **Disconnected** tool, delete the connection and add it again. ## Write Access (Beta) **Beta.** Write access for MCP Connections is currently available to a limited set of customers during Beta. If you'd like to participate, [request access here](https://mxpnl.notion.site/5dc6d468f8aa48eebac5146fc9bd3759). With write access, Mixpanel Agent can use every tool a connected server offers, not only read tools. For example, it can create a Jira ticket for a drop it found in a funnel, comment on a GitHub pull request, or update a Notion page with the results of an analysis. Before the Agent runs a tool, Mixpanel checks whether the call would change anything in the connected tool, such as creating, editing, deleting, or sending something: * **Calls that only read** run without asking. * **Calls that make changes** pause, and the Agent shows you what it is about to do. The call runs only if you confirm it. If you cancel, nothing is changed. * **Calls Mixpanel can't assess**, for example because the check timed out, are treated as calls that make changes and need your confirmation. The Agent acts as you. It can only do what your account, or your token for GitHub, is allowed to do in the connected tool, and any changes it makes appear under your name there. Write access applies to every connection in your organization once it is enabled for the Beta. Organizations not in the Beta stay read-only. ## FAQ ### Who can turn MCP Connections on? Organization admins and owners, from **Settings → Org → AI Settings**. Once the setting is on, any member of the organization can connect their own tools from their Personal Settings. No additional role or permission is needed. ### Can my teammates use my connections? No. Each member connects their own account, and Mixpanel Agent uses only the connections of the person chatting. ### Can Mixpanel Agent make changes in my tools? By default, no. Mixpanel only exposes read tools from connected servers to the Agent. Organizations in the [Write Access Beta](#write-access-beta) can let the Agent make changes, and it asks you to confirm each change before it runs. ### Why are MCP Connections unavailable in my settings? An organization admin or owner needs to turn on **Connect Your Tools via MCP**, and **Enable Mixpanel AI** must be on. See [Enable MCP Connections for Your Organization](#enable-mcp-connections-for-your-organization). ## Notes * Information retrieved from MCP connections may appear in your conversations with Mixpanel Agent, and this information will be retained while you have an active subscription with Mixpanel. Note that removing an MCP connection will not delete data that was already sourced from MCP connections from the Mixpanel Agent conversation history. * To the extent consistent with your existing Mixpanel Services Agreement, Mixpanel may use de-identified inputs and outputs within your conversation with Mixpanel Agent to improve the MCP Connections feature. For clarity, such usage does not include or involve training any large language model or generative artificial intelligence functionality. # Connect GitHub Source: https://docs.mixpanel.com/docs/mcp-connections/github Connect GitHub to Mixpanel Agent with a personal access token. GitHub's MCP server doesn't support OAuth sign-in from Mixpanel, so you connect it with a GitHub personal access token (PAT). Mixpanel Agent can see whatever the token can see, and it only uses read tools unless your organization is in the [Write Access Beta](/docs/mcp-connections#write-access-beta). Before you start, make sure an admin has [enabled MCP Connections](/docs/mcp-connections#enable-mcp-connections-for-your-organization) for your organization. ## Create a Personal Access Token GitHub offers two kinds of personal access tokens. Fine-grained tokens are recommended because you can limit them to specific repositories and read-only permissions. Use a classic token if your GitHub organization blocks fine-grained tokens. > [tab] Fine-grained token (recommended) > > 1. In GitHub, go to **Settings → Developer settings → Personal access tokens → Fine-grained tokens** and click **Generate new token**. > 2. Name the token (for example, "Mixpanel Agent") and set an expiration. > 3. Under **Resource owner**, choose the account or organization that owns the repositories you want the Agent to read. > 4. Under **Repository access**, choose **Only select repositories** and pick the repositories, or choose **All repositories**. > 5. Under **Repository permissions**, set these to **Read-only**: > * **Contents** > * **Issues** > * **Pull requests** > * **Metadata** (set automatically) > 6. Click **Generate token** and copy it. > > If your organization is in the [Write Access Beta](/docs/mcp-connections#write-access-beta) and you want the Agent to make changes, such as commenting on pull requests or opening issues, set **Issues** and **Pull requests** to **Read and write** instead. > > If the resource owner is an organization, an organization owner may need to approve the token before it can access the organization's repositories. > > See GitHub's guide to [creating a fine-grained personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token). > [tab] Classic token > > 1. In GitHub, go to **Settings → Developer settings → Personal access tokens → Tokens (classic)** and click **Generate new token (classic)**. > 2. Name the token (for example, "Mixpanel Agent") and set an expiration. > 3. Select these scopes: > * **repo**, for access to private repositories > * **read:org**, for organization and team information > 4. Click **Generate token** and copy it. > 5. If your organization uses SAML single sign-on, click **Configure SSO** next to the token and authorize it for that organization. > > Classic tokens with the **repo** scope can write to repositories in GitHub. Outside the Write Access Beta, Mixpanel only exposes read tools to the Agent, but a fine-grained read-only token limits access at the source. > > See GitHub's guide to [creating a personal access token (classic)](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic). ## Add the Connection in Mixpanel 1. Go to **Settings → Personal Settings → [MCP Connections](https://mixpanel.com/settings/account#mcp-connections)**. 2. Click **Add Connection** and choose **GitHub**. 3. Paste your token into the **Authentication Token** field and click **Connect**. Mixpanel checks the token with GitHub before saving it. If you see "Invalid token provided", confirm that you copied the whole token, that it hasn't expired, and that any required organization approval or SSO authorization is complete. ## Troubleshooting ### GitHub shows as Disconnected The token has expired or been revoked. Create a new token, delete the GitHub connection in Mixpanel, and add it again with the new token. ### The Agent can't find a repository The token doesn't have access to that repository. For a fine-grained token, add the repository under **Repository access**. For a classic token, check that it has the **repo** scope and is authorized for SSO in the repository's organization. # Connect Jira Source: https://docs.mixpanel.com/docs/mcp-connections/jira Connect Jira to Mixpanel Agent through the Atlassian Rovo MCP server. Mixpanel connects to Jira through the [Atlassian Rovo MCP server](https://support.atlassian.com/atlassian-rovo-mcp-server/docs/getting-started-with-the-atlassian-remote-mcp-server/) using OAuth. You sign in with your Atlassian account, and Mixpanel Agent can read what your account can see. The Agent only uses read tools unless your organization is in the [Write Access Beta](/docs/mcp-connections#write-access-beta). Jira takes one extra step compared to other OAuth tools: an Atlassian admin must allow Mixpanel's domain in Atlassian's Rovo MCP server settings before anyone in your organization can connect. Before you start, make sure a Mixpanel admin has [enabled MCP Connections](/docs/mcp-connections#enable-mcp-connections-for-your-organization) for your organization. ## Step 1: Allow Mixpanel in Atlassian (Atlassian admin) Atlassian only lets AI tools connect through OAuth from domains an admin has allowed. Mixpanel is not on Atlassian's default list of supported domains, so an Atlassian organization admin needs to add it once for your organization. 1. Go to [Atlassian Administration](https://admin.atlassian.com) and select your organization. 2. Select **Rovo**, then **Rovo MCP server**. 3. Under domain settings, click **Add domain** and enter the pattern for the Mixpanel region your organization uses: | Mixpanel region | Domain pattern | | - | - | | US | `https://mixpanel.com/**` | | EU | `https://eu.mixpanel.com/**` | | India | `https://in.mixpanel.com/**` | 4. Save your changes. See Atlassian's guide to [controlling Rovo MCP server settings](https://support.atlassian.com/security-and-access-policies/docs/control-atlassian-rovo-mcp-server-settings/) for more on domain settings and other admin controls. ## Step 2: Add the Connection in Mixpanel 1. Go to **Settings → Personal Settings → [MCP Connections](https://mixpanel.com/settings/account#mcp-connections)**. 2. Click **Add Connection** and choose **Jira**. 3. Click **Connect**. A popup opens to Atlassian's sign-in page. 4. Sign in with your Atlassian account and approve access. 5. When the popup shows "Successfully connected", close it and return to Mixpanel. ## Troubleshooting ### "Your organization admin must authorize access from this redirect URL" Mixpanel's domain isn't allowed in your Atlassian organization yet. Ask an Atlassian admin to complete [Step 1](#step-1-allow-mixpanel-in-atlassian-atlassian-admin), then try again. If the domain was just added, Atlassian recommends removing and re-adding the same domain entry, then retrying in a private browser window. ### The popup says "Invalid redirect" or the connection doesn't finish Start the connection again from the MCP Connections page, and complete sign-in in the same browser you use for Mixpanel. Sign-in links expire after 15 minutes. ### Jira shows as Disconnected Your Atlassian authorization has expired or been revoked. Delete the Jira connection in Mixpanel and add it again. # Set up enterprise-managed connections for Mixpanel MCP Source: https://docs.mixpanel.com/docs/mcp/claude-enterprise-managed-auth Connect Claude to the Mixpanel MCP Server for everyone in your organization at once, using Claude or Okta as the issuer. [Enterprise-managed connections](https://support.claude.com/en/articles/15537633-authorize-mcp-connectors-for-your-entire-organization) let admins connect Claude to the [Mixpanel MCP Server](/docs/mcp) for every member at once. Members don't sign in or approve anything. A Claude admin and a Mixpanel organization admin set it up once, and an Okta admin joins if you use Okta as the issuer. Mixpanel still checks each person's project and data access on every request. Without managed authorization, the Mixpanel MCP Server asks each member to authorize the connection between Claude and Mixpanel. With managed authorization, there is no approval step. When a member uses Mixpanel in Claude, the issuer (Claude or Okta) vouches for the member's identity and sends Mixpanel their email address. Mixpanel matches that email to a user in your organization and authorizes Claude to act as that user. Each connection lasts up to one hour. After that, Claude gets a new authorization from the issuer. If the member has lost access by then, the new connection fails. If a member belongs to more than one Mixpanel organization, the connection works the same way a normal Mixpanel sign-in does: the member can reach any project they already have access to, including projects in other organizations. ## Before you begin * Admin access for each role in your chosen path. One person can hold more than one role. See [Choose your setup](#choose-your-setup). * A Claude plan that supports managed authorization for connectors. See [Claude's guide](https://support.claude.com/en/articles/15537633-authorize-mcp-connectors-for-your-entire-organization) and the [Mixpanel pricing page](https://mixpanel.com/pricing/). * MCP enabled for your Mixpanel organization. See [Permissions and access](/docs/mcp#permissions--access). * A [claimed email domain](/docs/access-security/single-sign-on#claim-a-domain) on your Mixpanel organization, for the domain your members use in Claude. Mixpanel only accepts members whose email domain is verified on the organization. * Matching emails. Each member's Claude email must match their verified Mixpanel email. Mixpanel compares the full address and ignores only letter case, so aliases and plus-addresses don't match. Claude doesn't require SSO for this setup, although Anthropic recommends enforcing it. ## Choose your setup Both paths end the same way: you test and enable the connection in Claude. They differ in who vouches for each member. | If you... | Use | Done by | | - | - | - | | Want the quickest setup, with no identity provider (IdP) configuration | [Claude as the issuer](#set-up-with-claude-as-the-issuer) | Claude admin and Mixpanel organization admin | | Want Okta to vouch for each member using its own sign-in and MFA rules, and to choose which users get access | [Okta as the issuer](#set-up-with-okta-as-the-issuer) | Okta admin, Claude admin, and Mixpanel organization admin | With Claude as the issuer, Claude confirms only that the person is a current member of your Claude organization with that email address. It doesn't confirm a sign-in at your IdP, and it doesn't check your MFA or Mixpanel's own sign-in rules, including [Mixpanel SSO](/docs/access-security/single-sign-on). Mixpanel receives the member's email address and an opaque identifier. If you need those rules applied, use Okta. With Okta as the issuer, Mixpanel receives the member's email address. ## Set up with Claude as the issuer With this setup, members are connected to Mixpanel in Claude automatically, with no sign-in screen and no Okta configuration. Members act as themselves in Mixpanel, with the permissions they already have there. ### Settings | Where | Setting | Value | | - | - | - | | Claude, **Configuration** tab | **Managed authorization**, **Connect** step | **Claude-issued** | | Mixpanel, **Claude Access** tab | **Issuer URL** | The issuer URL shown in Claude | | Mixpanel, **Claude Access** tab | **JWKS URL** | Leave blank | ### Connect Claude and Mixpanel 1. **Copy the issuer URL (Claude admin)** In Claude, open organization settings, select the Mixpanel connector, and select **Managed authorization** on the **Configuration** tab. In the **Connect** step, select **Claude-issued**. Copy the **issuer URL** shown. If you aren't a Mixpanel organization admin, send the issuer URL to one. 2. **Add the issuer in Mixpanel (Mixpanel organization admin)** Go to **Organization Settings** → **Access Security** → **Claude Access** and click **Add Identity Provider**. Paste the issuer URL into **Issuer URL**, leave **JWKS URL** blank, and click **Add**. The issuer appears in the list with the status **Active**. If **Add Identity Provider** is disabled, your organization hasn't verified an email domain. Verify one on the **Domain Claiming** tab, then try again. See [Claim a domain](/docs/access-security/single-sign-on#claim-a-domain). Continue to [Test and enable in Claude](#test-and-enable-in-claude). ## Set up with Okta as the issuer ### Settings You will have to create a separate Mixpanel app in Okta for this integration. We have two different set up options: OIDC and SAML 2.0. If you've already set up an app in Okta for Mixpanel MCP, you can skip the app creation steps and use the existing app. Okta app integration, OIDC: | Setting | Value | | - | - | | **Token Exchange** | Enabled | | All other settings | Default | Okta app integration, SAML 2.0: | Setting | Value | | - | - | | **Single sign-on URL** | `https://mixpanel.com/` | | **Audience URI (SP Entity ID)** | `https://auth.mixpanel.com` | | **Name ID format** | **EmailAddress** | | **Application username** | **Email** | | **Do not display application icon to users** (**General** tab) | On | Mixpanel, **Claude Access** tab: | Setting | Value | | - | - | | **Issuer URL** | Your Okta org URL with no path, such as `https://acme.okta.com`, or your custom Okta domain if you use one | | **JWKS URL** | Leave blank | > **Warning:** For **Issuer URL**, don't use the admin console address (`acme-admin.okta.com`) or an authorization server URL (`.../oauth2/default`). ### Connect Okta, Claude, and Mixpanel 1. **Create the Mixpanel MCP app (Okta admin)** Mixpanel isn't in Okta's app catalog with Cross App Access (XAA), Okta's feature that lets one app reach another app on a user's behalf without a separate sign-in or consent screen. Instead, create a custom app integration using either OIDC or SAML 2.0. See [Okta's guide to creating an app integration](https://developer.okta.com/docs/guides/create-an-app-integration/openidconnect/main/). Use the values in the Okta tables above. Or view the instructions for SAML 2.0 to set up the [Mixpanel app in Okta](https://docs.mixpanel.com/docs/access-security/single-sign-on/okta#configure-saml). On the **Assignments** tab, assign the users who should have access. For SAML 2.0, the app isn't used to sign in, which is why the settings hide its icon. 2. **Connect the app to Claude (Claude admin)** In Claude, open organization settings, select the Mixpanel connector, and select **Managed authorization** on the **Configuration** tab. In the **Connect** step, select **IdP-managed**. Scroll down to the setup guide and click **Open WorkOS setup**, or **Send to an admin** if you aren't an admin of your IdP. Follow the instructions to connect the Mixpanel MCP app from the previous step to Claude. 3. **Add the issuer in Mixpanel (Mixpanel organization admin)** Go to **Organization Settings** → **Access Security** → **Claude Access** and click **Add Identity Provider**. Enter your Okta org URL in **Issuer URL**, leave **JWKS URL** blank, and click **Add**. The issuer appears in the list with the status **Active**. If **Add Identity Provider** is disabled, your organization hasn't verified an email domain. Verify one on the **Domain Claiming** tab, then try again. See [Claim a domain](/docs/access-security/single-sign-on#claim-a-domain). Continue to [Test and enable in Claude](#test-and-enable-in-claude). ## Test and enable in Claude Both paths finish here. A Claude admin does these steps. 1. **Run the test** In the Claude connector setup, click **Run Test** and confirm that every check passes. The test stops at the first check that fails. See [Troubleshooting](#troubleshooting). 2. **Enable the connection** Click **Enable and continue**, then complete the **Roles** and **Scopes** steps. Every role gets managed authorization by default. To narrow scopes and permissions, see [Claude's guide](https://support.claude.com/en/articles/15537633-authorize-mcp-connectors-for-your-entire-organization). ## Verify the connection Before you announce the change, ask two or three members to open Claude and run a request that uses Mixpanel. You should see Mixpanel already connected in Claude, with no sign-in or consent screen. To confirm on the Mixpanel side, check the [audit log](/docs/access-security/audit-log) for an `mcp_client.authorized` entry. Each connection is recorded in the audit log of every Mixpanel organization the member belongs to. Because connections last up to an hour, you'll see a new entry roughly every hour while a member is actively using Mixpanel in Claude. If a member sees the normal **Connect** prompt instead, Mixpanel found no matching account for them. Check that their Claude email matches their Mixpanel email, that the domain is verified on your Mixpanel organization, and that they are a member of the organization. ## Troubleshooting **Run Test** stops at the first check that fails. The checks refer to an ID-JAG (Identity Assertion JWT Authorization Grant): a short-lived, signed statement from the issuer that says who the member is. Mixpanel exchanges it for an access token that lets Claude act as that member. | Check | Usual cause | What to do | | - | - | - | | **Check eligibility** | This organization or connector can't use Claude as the issuer. | Contact Claude support, or set up with Okta. | | **Discover authorization server** | Mixpanel's sign-in details are unavailable. | Contact Mixpanel support. | | **Mint ID-JAG** | Your Claude account has no email address, or you aren't a current member of the organization. | Fix the account and run the test again. | | **Exchange for access token** | The issuer URL isn't saved in Mixpanel or is disabled, your email domain isn't verified on the Mixpanel organization, no Mixpanel user has your email, or that user isn't a member of the organization. | Check each value in Mixpanel and run the test again. | | **Probe connector** | Mixpanel issued a token but its own server refused it. | Contact Mixpanel support with the connector name and the time. | If Claude says Mixpanel's authorization server address changed, run the test again, check the new address, and confirm it. ## Remove access or turn off the connection ### Remove a member's access To stop access right away, remove the member from your Mixpanel organization. A connection that's already active can keep working for up to an hour, so removing them only from the issuer isn't enough. To stop new connections, also remove them from the issuer: * **Claude as the issuer:** remove them from your Claude organization. * **Okta as the issuer:** remove them from Okta, or unassign them from the Mixpanel MCP app. To fully revoke access, confirm the member is removed from the issuer. If you sync users from a directory, check your issuer's documentation for how suspended or inactive users are handled. > **Warning:** If you give a former member's email address to someone new, remove the former member's Mixpanel account first. Otherwise the new person connects to the old account. ### Pause or turn off the connection In Claude, open the connector's **Managed authorization** settings and choose **Disable**. Members then connect to Mixpanel themselves. To stop trusting the issuer entirely, also turn it off on Mixpanel's **Claude Access** tab. New connections stop, and active ones expire within an hour. Turn it back on to resume. ## FAQ #### Do members need to do anything? No. After an admin finishes setup, Mixpanel shows up as already connected in Claude, with no sign-in or approval screen. A member with no matching Mixpanel account sees the normal **Connect** prompt and can sign in the usual way. #### What can Claude access in Mixpanel on a member's behalf? Only what that member can already access. Claude acts as the member, and Mixpanel checks their project and data permissions on every request. Managed authorization doesn't grant any extra access. #### Which Claude and Mixpanel plans support this? Claude Team or Enterprise, and any Mixpanel plan. #### What happens if a member belongs to more than one Mixpanel organization? The connection works the same way a normal Mixpanel sign-in does: the member can reach any project they already have access to, including projects in other organizations. #### Does this replace Mixpanel SSO? No. [Mixpanel SSO](/docs/access-security/single-sign-on) still controls sign-in to Mixpanel itself. With Claude as the issuer, Mixpanel's sign-in rules, including SSO, aren't applied to the Claude connection. If you need those rules, use Okta as the issuer. See [Choose your setup](#choose-your-setup). #### Does Mixpanel support XAA? Yes, through the custom Okta app described above. Mixpanel isn't currently available in Okta's app catalog with XAA support. ## Next steps * Review [Claude's guide to authorizing connectors for your organization](https://support.claude.com/en/articles/15537633-authorize-mcp-connectors-for-your-entire-organization). * Learn what Claude can reach in Mixpanel on [Mixpanel MCP](/docs/mcp). * Use the [audit log](/docs/access-security/audit-log) to review connections over time. # Metric Tree Source: https://docs.mixpanel.com/docs/metric_tree Build a live metric tree that maps relationships between input and output metrics for team decision-making (Enterprise add-on) > [!NOTE] > > Metric Tree is a paid add-on. It is currently only offered to those on the Enterprise Plan. ## Overview Mixpanel Metric Tree is a "live" logical decision-making framework used to represent relationships between metrics and show the flow between inputs and outputs. The "live" metrics make it possible to understand the quantitative impact and trace the inputs driving it. It is one space that simultaneously depicts both quantitative and qualitative data along with additional context, making it possible to discuss insights as a team across functions and make data-driven decisions together. ![image](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/metrictree1.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=4296bc44cac74ff1a6c718403b90faab) ## Use Cases * Data-driven decision: Clearly articulate what’s working vs not by looking at how your input metrics and initiatives are impacting your top business outcomes * Align with your team, from Execs to ICs, and across teams on growth strategy & metrics by: Use this as the codified strategy map * Collaborate on strategy, insights & actions during team rituals: Leverage this during weekly rituals to identify which areas require more focus, and add those insights in the tree for others to reference * Evolve your metric tree, as your strategy evolves: With every planning cycle, update the initiatives and input metrics as goals and focus outcomes change. * Use this as a plan to ensure you have the right data tracked: Use this as a guide to let you know which additional data needs to be tracked, or to ensure it’s modeled in the right way to define the metric ## Quick Start ### Step 1: Create your Metric Tree outline without data The idea is to think through your strategy and the various hypotheses without confusing it with the data available today or the current value of metrics. Your strategy is more long-term. Use this strategy map to discuss and align with your teammates before putting in the effort to connect to a metric with data. To create a metric tree outline * Add empty state metric cards to the tree. To create a metric card, choose `Metric` from the toolbar below. * You can name these metric cards and link the connections. You can also add strategy cards to show the initiatives in place ![image](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/metrictree2.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=44b75b32aa1063db6153c3179db93877) #### Option: Build with AI Don't know where to start? Skip the blank canvas and let AI draft your first metric tree. When creating a new tree, click "Build with AI" under one of the two available starter templates. You'll be prompted to enter: * **Business name** — the name of your company or product * **Business URL** — your website or product URL, which helps the AI understand your domain and model * **Custom instructions** (optional) — any specific context about your goals, team focus, or metrics you care about most Click Submit, and within a few minutes you'll see a fully structured metric tree generated for your business — complete with hypothesized input metrics, drivers, and connections up to your top-level KPI. Think of it as a first draft, not a final answer. Once it's generated, you can refine the structure, rename metrics, add or remove nodes, and connect real data just as you would with a manually built tree. > [!NOTE] > > **Tip:** The more context you provide in the custom instructions field, the more tailored your tree will be. Custom instructions work at any scope — from a company-wide strategy to a single feature area. Here are some examples: > > For a product leader building a team-wide strategy tree: > > * "We're a B2B SaaS company. Focus on the metrics that drive trial-to-paid conversion and long-term retention across our entire funnel." > * "Build a tree rooted in ARR, with branches for new business, expansion, and churn. We have separate teams owning each." > > For a PM zeroing in on a specific initiative or feature area: > > * "I own our onboarding flow. I want to understand what behaviors in the first 7 days predict long-term retention." > * "We just launched a collaboration feature and I need to track whether adoption is driving engagement and upgrades." > * "Focus on activation. Our north star is users who complete 3 core actions in week 1." ### Step 2: Make the metrics real with data Click on connect metric, and connect the metric card to the metric with data. This is a regular Mixpanel query panel. You can choose to bring in [saved metrics](/docs/features/saved-metrics-and-behaviors), or create a metric. > [!NOTE] > > **NOTE**: We highly recommend saving metrics in the metric tree, especially those on the higher levels, so others on the project use only these standardized, verified metrics. Saved Metrics has additional abilities, such as adding owners to it. ![image](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/metrictree3.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=0d83c8372f8527d64b3c06da77c97505) ### Step 3: Add more context to your metrics Make your tree more actionable for yourself and the team by adding context to it - whether it is pinned content with some interesting deep dive reports, or examining correlation and finding interesting insights to add to the logbook. You can learn more [here](/docs/metric_tree#customize-each-metric). ### Step 4: Share your metric tree & get started! Metric Trees have similar permissions to Mixpanel boards. You can share the tree with anyone in the project: with view or edit access. * Editors get access to edit the definition of metrics, add new metrics, add context, etc. * Viewers get access to open and see the underlying formula definitions, and read the context and notes Metric Tree is a multi-user space meant for collaboration and for you to use during your weekly team rituals. So many of you can be on the tree at the same time and edit it, and most importantly, add insights or actions for metrics you’re accountable for. > [!NOTE] > > **NOTE:** When you hit undo, you undo only your last action. Also, the last edit on a metric persists for all. ## Customize each metric ## Time comparisons that are relevant to the metric To ensure your metric is showing the most apt time comparisons, you can now customize at a metric level which time comparisons do you want to show in the metric tree view. For example, if I wanted a QoQ view instead of YoY, I would select: * **Time range:** Last 3M * **Compare to:** Previous quarter * **Interval:** week; Interval determines the number of data points you have displayed in the metric line chart ![image](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/metrictree4.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=40d15eab048afc95d594d83b1b1d7615) > [!NOTE] > > * You can change the default time comparison settings for your tree, i.e, all metrics, by clicking on `Apply to All Metrics` after setting up the right time ranges for one metric > * You can add up to 3 time ranges per metric card > * On the metric card view, when you click on MoM, it shows the absolute value of the metric for the last 30 Days. If you switch and click on QoQ it will show you the absolute value of the metric for the last 3M > * If you switch the default “display” on the metric card, all the other cards that have that time range will also switch, so you can compare metrics across the tree in a similar period. ## Add owner to keep a person accountable for the metric For any eligible metric, you can click on the owner icon and assign an owner > [!NOTE] > > You can assign an owner only to a [saved metric](/docs/features/saved-metrics-and-behaviors) ![image](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/metrictree5.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=24a03ec51c4185dcb3cee5a32a9f3da0) ## Pin contextual reports & boards to the metric, to enable deep-dive Click on a metric. When the query panel opens, navigate to the Context tab. Within the Context tab, pin reports and board in the ‘Pinned’ tab ![image](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/metrictree6.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=1363cd62511ed9f3a9c97e25697173b5) ## Add important insights to the logbook for future reference Click on a metric. When the query panel opens, navigate to the Context tab. Within the Context tab, add entries into the ‘Logbook’ tab ![image](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/metrictree7.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=af9ea8367ff61f563ec793df9ef0f1c3) ## FAQ ### How do AI-generated metric trees work, and what data does Mixpanel use to generate them? AI-generated metric trees are built using an outside-in analysis powered by OpenAI. The system draws on industry best practices, common growth models, and the context you provide about your product in the custom instructions field — such as your business model, team focus, or the specific outcome you're trying to drive. At this time, none of your Mixpanel data is used. The AI has no access to your events, user data, or existing metrics. Everything it generates is based on publicly available information and the details you choose to share in the prompt. This means the generated tree is a starting hypothesis, not a data-validated model. Treat it as a well-informed first draft that reflects what's known about your industry and product category — and then make it yours by connecting real metrics from your Mixpanel data. ### What does the "As Of" control on the top left of the metric tree do? `As of` determines the end date reference point for the metric tree. For example, if you want to look at how the metric tree looked at the end of Q1, i.e, March 2025, you could set "As of 31 March 2025". All the metrics in the metric tree which are based on last 30 Days, or the last 3 months etc, will look at measuring the value of last 30D as of 31 March 2025, i.e, 2-31 March 2025, instead of last 30D as of today. ![image](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/metrictree8.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=6b413eeb1112dfa8d24447c025d6b06f) ### What does Filtering a tree do? Filtering a tree is similar to filtering a board. It filters every metric in the metric tree. If you’re looking to filter only a specific metric, please use [inline filters](/docs/reports/funnels/funnels-advanced#inline-filtering-pre-query). ### How do I see the metric trend chart (metric time series)? Access the 3-dot overflow menu on the top right of the metric tree. Click on Show/ Hide > Show Metric Chart. If you want to look at a longer time series chart for a particular metric, go to the specific metric card, click on the overflow menu, and choose View Chart. #### I want to move trees across projects. How do I do that? You can copy a tree and paste a tree in a new project. To select the whole tree, use the `select tool` in the toolbar below, in the middle of the screen. Then Copy (Cmd + C), and Paste (Cmd + V) in the new project. ### How many trees do you suggest we create? Create minimal trees so there is a complete map of the strategy in one place vs across disparate trees. Ideally, start with one tree per company, and depending on the size, maybe create separate trees for each function or business line if required ### Does the top of a metric tree have to be revenue-related? No, it doesn’t have to. We generally ask people to start a tree at L2 or L3 level where there is more functional ownership, for example, marketing can own Volume of Sign-Ups or Product can own WAU (Weekly Active Users). ### What is correlation? How do I access it? Access the 3-dot overflow menu on the top right of the metric tree. Click on Show/ Hide > Show Correlation. Correlation numbers should show up across all the edges, i.e the connection between two metric cards. ![image](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/metrictree9.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=318e4ada724567a54bf769d664142ecb) Mixpanel shows Pearson Correlation Coefficient. It measures the strength and direction of a linear relationship between two time-series data sets. It produces a value between **-1 and 1** For two metrics, **A** and **B**, each return time-series data, we compute Pearson correlation using the following formula: $r = \frac{\sum{(A_i - \overline{A})(B_i - \overline{B})}}{\sqrt{\sum{(A_i - \overline{A})^2} \sum{(B_i - \overline{B})^2}}}$ Where: * **$A_i$** and **$B_i$** are individual values in the time-series data of metrics A and B. * **$\overline{A}$** and $\overline{B}$ are the mean (average) values of metrics A and B over the observed time period. * **$r$** is the Pearson correlation coefficient. The resulting **r-value** determines the correlation score displayed on the edge. #### Interpreting the Correlation Score * **(0.6 to 1.0) Strong Positive Correlation:** The two metrics tend to move in the same direction strongly. As one metric increases, the other increases. Similarly, as one metric decreases, the other decreases * **(0.3 to 0.6) Moderate Positive Correlation :** Some relationship exists * **(0.0 to 0.3) Weak Positive Correlation :** Some relationship exists, but it is not strong * **(0.0) No Correlation:** Changes in one metric do not seem to have changes on the other * **(-0.3 to 0.0) Weak Negative Correlation :** Some inverse relationship exists, but it is not strong * **(-0.6 to -0.3) Moderate Negative Correlation :** Some inverse relationship exists. * **(-1.0 to -0.6) Strong Negative Correlation :** The two metrics strongly move in opposite directions. As one metric increases, the other decreases and vice versa. #### To compute the Pearson correlation, we use: * **Time-series data** from both metrics. * **Matching timestamps**: Data points are aligned by timestamp to ensure proper comparison. * **A configurable time window**: The correlation is typically calculated over a specified time range (e.g., the last 30 days) * **Some specific aspects to call out:** 1. If 2 time-series data have different lengths, correlations are calculated based on the overlapping lengths between the 2 2. All correlations are run on a daily granularity, since event data is available on a daily basis to compute metrics at that granular view. #### Limitations of Correlation * **Correlation does not imply causation**: A high correlation does not necessarily mean that one metric influences the other. * **Non-linear relationships**: Pearson correlation captures only linear relationships. If the metrics are related in a non-linear way, this score might not reflect the true relationship. * **Data Quality Matters**: Missing or misaligned data points can affect the accuracy of the correlation score. # Migrating to Mixpanel Source: https://docs.mixpanel.com/docs/migration How a migration from another analytics provider works, what each phase involves, and how to reduce the risk and switching costs If you’re reading this, congrats on considering making the switch from another analytics provider to Mixpanel 🎊  Our migration guides are intended to outline how a migration works, what to expect, and how to mitigate the risks and switching costs of a migration whilst accelerate time to value. ## What a migration will solve * Cut-over sending live data to Mixpanel * Historical backfill of existing data (subject to what data can be modeled as events) * Integrates easily with existing event data collection methods - SDKs, CDPs, DWH, RETL ## What a migration won’t solve * Existing issues with data trust/quality or data governance → As part of the migration, we recommend a data audit as the first step to only transfer your valuable data and clean up trust/quality issues * Reporting, Dashboards, and Saved Entities → As part of the migration, you should review your top used reports and dashboards from other tools and sit down with each team to re-build them in Mixpanel ## What level of effort does the migration take? A migration primarily consists of 4 phases: 1. Technical migration of data → Data audit, Live data cut-over, Historical data import 2. Change management migration of end users → Champion identification, User interviews, Team by team specific trainings, Ensuring adoption for each team 3. Data governance and implementation optimization → Improving/Implementing data governance processes, Identifying missing or incorrect data, Optimizing workflows for adding/editing data 4. Ongoing success planning → Building a product analytics practice From a technical perspective, the migration process is relatively straightforward. If you have an engineer with access to your data and the ability to write code/transforms to send data to new destinations, this can be done in a single sprint (1-3 weeks). From an end user perspective, Mixpanel is simpler and easier to learn than other analytics tools but there of course will be a learning curve. The largest hurdle is copying over key saved reports, dashboards, etc. that the team is familiar with in your current tool and teaching them how to rebuild these in Mixpanel. We recommend doing this process in detail for each team, showing them how to recreate key analyses side-by-side in Mixpanel. You can then leverage your team champions to force multiply your adoption efforts. When going through this migration, there is no better time to audit your own data and reports to only migrate what matters. Most data and reporting is stale after some time anyways, prioritize the data and reports your team uses every day for their Top 10 key questions. These can be easily copied over and Mixpanel also provides Customer Success resources during Onboarding to assist with this. ## Technical migration of data ### Migrating live data tracking Depending on your current setup, the steps for migrating your live data tracking will differ. Please see the appropriate provider specific guides for more details on how to migrate your existing live data tracking and get started with Mixpanel. * [Adobe Analytics Migration Guide](/docs/migration/adobe-analytics) * [Amplitude Migration Guide](/docs/migration/amplitude) * [Google Analytics Migration Guide](/docs/migration/google-analytics) ### Data audit We’ve found from experience that \<20% of the data in a product analytics tool is used for 80%+ of the queries. This is especially true the longer you have been using a tool - over time teams add more and more tracking for new events and properties, and without strong data governance practices, you will inevitably have some messy data in your current analytics tool(s). In the spirit of making sense of the mess, we don't recommended that you bring all historical data into Mixpanel. A common practice is to leverage your current providers' tooling to understand which reports, events, and properties are queried by your users. No queries in the past 30 days? These events and properties have probably gone stale - there is low value and high effort in bringing them to Mixpanel, so cut them from your import and do not migrate the existing tracking. After you’ve gotten rid of the obvious (the reports, events, and properties no one uses), you can fine tune this approach by doing user interviews with your top users/champions. These users can help you explicitly define the data they need brought along to Mixpanel (mapped to their key questions and KPIs) so you can focus on what matters. Because these users are the ones building reporting others use, capturing their use cases and making them change agents can be highly beneficial to your migration. This data audit step is optional, but highly recommended - It is a larger upfront investment to make it easier for your users to find useful metrics / reports and avoid higher maintenance costs in the future. ### Loading historical data To backfill data, we recommend the following approaches: * If you have a data warehouse: Leverage our [data warehouse connector](/docs/tracking-methods/warehouse-connectors) or our [Import API](/reference/import-events) to import to Mixpanel. * If you have a data warehouse without your current provider's data: Export your data to the data warehouse so you have a record, and then use our data warehouse connector or Import API * If you do not have a data warehouse: Since there is no historical record of data, for this method you will need to export your data from your current provider and move it into Mixpanel - we provide an easy to use helper function for this [here](https://github.com/mixpanel/mixpanel-utils) To perform a successful historical data load, we recommend: * Have your Mixpanel champion or owner first set up your [Organization settings](/docs/orgs-and-projects/organizations) and [Project settings](/docs/orgs-and-projects/managing-projects). This will ensure the right access level for your team and enable you to prepare the workspace for ingesting data. This can be done later but doing it up front will allow for you to set key settings for data ingestion (US vs EU servers, project timezone, etc.). * Load a limited subset of the data into a test project (for example, a single day or data or a sample of the entire dataset) to get started. This will help you identify any errors in the end to end process before you do a full historical data load. * Load a year’s worth (or less) of historical data during your migration. This will allow your team to review year-over-year trends easily and do historical analysis as needed, without sending a bunch of data which is stale and unlikely to be used. For a more in-depth look into the steps required for a successful project migration, check out our [project migration playbook](/guides/strategic-playbooks/project-migration). Note that backfilling historical data can have significant impact on your billing. Refer to [this section](/docs/pricing#are-monthly-events-calculated-based-on-ingestion-time-or-event-timestamp) for more details. ## Change management migration of end users Once data is live, shift our focus to change management and migrating the existing users. You can mitigate risk here by: * Going team by team to assess currently used reports in other analytics providers, as starting with a baseline of key known reports from another tool helps build trust and confidence for new users to Mixpanel * Running targeted trainings where you re-build known reports side-by-side in Mixpanel to teach users to fish * Building a product with awesome UI/UX that will make up for the up-front costs in simpler, more powerful analysis down the line The goal is to focus on each team individually, and you can process multiple in parallel. A team is the perfect unit to focus on as they have shared context and goals, so their needs as far as metrics and analysis will be similar. You can then help each team to the point they can self-serve answers from Mixpanel to answer their questions. ## Data governance and implementation optimization In many cases, your goal in a migration will be to complete the process as quickly as possible - after all, you may be paying for multiple providers at once. Assessing your data quality and governance is likely to be less of a priority in the short term. We recommend once your data and users are migrated to utilize your learnings from these processes to assess the current state of your data trust and where you need to address data issues to gain adoption. This might mean needing to implement new datasets or improve existing tracking to increase the number of use cases which can be explored by end users. You can read more around our recommended approach and questions to ask yourself [here](https://mixpanel.com/blog/5-questions-for-planning-your-data-architecture/). ## Ongoing success planning After the migration, we recommend you focus on longer term goals like: * Improving Data Governance → Creating scalable processes and strategies for managing data at scale * Optimizing Analysis → Helping end users analyze data for more use cases, faster via training and documentation * Building a Product Analytics Practice → Cultural change to be a self-serve, data democratized organization You can read more about how we do this [here](https://mixpanel.com/blog/establish-a-product-analytics-practice/). ## Moving Data Out of Mixpanel Migration works in both directions. You can export your raw events, user profiles, and group profiles at any time, on any current plan, including Free. Use the Raw Event Export API and the Engage API for a one-time copy. To keep a continuous copy in your own warehouse or cloud storage, use Data Pipelines, a paid add-on on Growth and Enterprise plans. See [Export All Your Data](/docs/export-methods/export-all-data) for what each plan includes, rate limits, and a step-by-step recipe. ## Not sure where to start or need help? Mixpanel’s Customer Success team has worked with 10,000+ customers over the past 10+ years to help drive outcomes with product analytics. We’re always happy to discuss your team’s individual needs, our migration process, the support you’ll receive, or any other question you have — drop us a line at [success@mixpanel.com](mailto:success@mixpanel.com). # Migrating from Adobe Analytics Source: https://docs.mixpanel.com/docs/migration/adobe-analytics Migrate from Adobe Analytics to Mixpanel, covering data model differences, key metric mappings, and implementation steps If you haven't already, we recommend starting with our [Migration Guides Overview](/docs/migration) as it details the key components of migrating to Mixpanel from other analytics tools. Below we outline specific steps and considerations when migrating from Adobe Analytics. ## Differences in the data models ### Data Model Mixpanel’s data model is based on events and properties, rather than Adobe which is schema-based with many different configurable data types. While this might be a shift if you come from the schema model where you define your data to be captured upfront before sending any data, we’ve found [schema-on-read](https://medium.com/mixpaneleng/under-the-hood-of-mixpanels-infrastructure-0c7682125e9b#schema-on-read) to be both more flexible and easier to set up and use. * [Events](/docs/what-is-mixpanel#events) capture granular user actions, like a Pageview, Signup, or Purchase. * [Properties](/docs/what-is-mixpanel#properties) capture attributes of those events, like which page was viewed, the UTM Campaign that led to a Signup, or the Item that was purchased. Events and properties with schema-on-read let you get more granular than an enforced schema so you can spend your time analyzing data versus formatting it. Mixpanel automatically constructs a schema from the events and properties you send, so you can answer the same questions as before faster and with less development headaches. In contrast, on Adobe, every user interaction comes across as a “hit”. Within “hits”, there are what Adobe terms “eVars”, which are variables that can be customized to the organization’s requirements. The following diagram helps to illustrate the key differences between Adobe and Mixpanel’s instrumentation: on Adobe, an administrator needs to manually instrument every metric before it can be used in the platform. For example, the administrator would need to create a separate metric for “Total Page Views” and “Unique Page Views” before an end user can query it. Whereas on Mixpanel, once the event “Page View” is sent, the end user easily, on the fly, whip up a report to show the page views by total vs. unique users. ![image](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/adobe-vs-MP-instrumentation.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=7b935c89f5177af0938890ef7bc79e27) In Mixpanel, we also have a separate table for users and user properties. If using Mixpanel’s SDK, unique users are identified by a `$device_id` to associate events to the same anonymous user. Once a user signs up or logs in, you’ll call .identify(\) to map users’ known user\_id to their `$device_id`. In Adobe on the other hand, unique users are identified by the concatenation of post\_visid\_high and post\_visid\_low properties on the “hit”. Adobe will take the first ID present from in the “hit” as the official visitor ID, and then use the concatenation of post\_visid\_high and post\_visid\_low as the standard of identifying unique visitors regardless of how they were identified as a [unique visitor](https://experienceleague.adobe.com/docs/analytics/export/analytics-data-feed/data-feed-contents/datafeeds-calculate.html?lang=en). For example, if you are setting a custom visitor ID (included in the "vid" query parameter), that ID will be used before other IDs that might be present on that same hit. ### Frequently used key metrics on Adobe and how they differ on Mixpanel **A visit**: Always tied to a time period, so you know whether to count a new visit if the same user returns to your site. A visit ends when they meet any of the following criteria: * **30 minutes of inactivity**: Almost all sessions end in this manner. If more than 30 minutes lapse between hits, a new visit begins. * **12 hours of activity**: If a user consistently fires image requests without any 30-minute gaps for more than 12 hours, a new visit automatically starts. So for example, if a user visits the site for 20 hours without any 30-minutes gap: * In Mixpanel, we will register it as 1 session * In Adobe, this will be registered as 1 session, but 2 visits (assuming they default to the 30-minute gapped session) * **2500 hits**: If a user generates a large number of hits without starting a new session, a new visit is counted after 2500 image requests. * **100 hits in 100 seconds**: If a visit has more than 100 hits that occur in the first 100 seconds of the visit, the visit automatically ends. This behavior typically indicates bot activity, and this limitation is enforced to help increase report performance. ⚠️ **Caveats to behaviors that could affect Visit metrics** If a visitor performs any of these actions, a new visit starts: * Clears their cache mid-session and continues browsing your site * Leaves your site open in a tab for longer than 30 minutes, then continues browsing * Opens a different browser and navigates to your site on the same computer * The same person browsing your site on different devices **Page Views**: Not to be confused with Visits. Page views count the number of times a page is being viewed. Visits count the number of sessions for visitors. One visit can consist of one or more page views. **Unique visitors**: Adobe has a rather complicated mechanism of identifying unique user as illustrated in the table on their help docs [here](https://experienceleague.adobe.com/docs/analytics/components/metrics/unique-visitors.html?lang=en). It lists the ways a visitor is identified, along with its priority. Some hits can have multiple visitor identification methods; in these cases the higher priority method is used. \*\* As unique visitor identifiers are typically stored in a browser cookie, a new unique visitor is counted if they perform any of the following: * Clears their cache at any time * Opens a different browser on the same computer. One unique visitor is counted per browser. * The same person browsing your site on different devices. A separate unique visitor is counted per device. * Opens a private browsing session (such as Chrome’s Incognito tab). As a result, many internal Adobe users aren't too sure of how unique visitors are actually calculated given that it’s also dependent on how their data set up is done by the consultants they hire, eventually making these calculations somewhat of a black box. ## Track forward looking real-time data Choose your current implementation method for Adobe Analytics and follow the below steps for starting to send live data to Mixpanel. ### Warehouse Connectors [Mixpanel Warehouse Connectors](/docs/tracking-methods/warehouse-connectors), allows you to natively import data from Snowflake, BigQuery or Redshift into Mixpanel. With this feature, you can set up recurring syncs from your data warehouse and ensure that Mixpanel is always in sync with your trusted data. ### Client-side SDKs & Server-side SDKs You’ll have to setup Mixpanel fresh given Mixpanel leverages an event-based model that does not exist in Adobe Analytics. Depending on your current setup and how you’ve enabled data capture in Adobe, these steps will likely be as if you are starting an [entirely new implementation](/docs/what-to-track). The rest of this guide will cover the Mixpanel JavaScript SDK for brevity, but the steps apply for any of our libraries. We recommend the following steps to get started quickly: * Configure the [Mixpanel JavaScript SDK](https://developer.mixpanel.com/docs/javascript-full-api-reference) to automatically track page views, where UTM params are tracked by default ```js theme={"system"} mixpanel.init('YOUR_TOKEN', {track_pageview: true}); ``` * Track a few key [“value moment” events](/docs/what-to-track#choose-a-value-moment) of interest ```js theme={"system"} // Send a "Played song" event to Mixpanel // with a property "genre" mixpanel.track( "Played song", { "genre": "hip-hop" } ); ``` * Use the [Mixpanel Marketing KPI Template](https://mixpanel.com/project?show-template-selector=true) to build your initial board This will allow you to explore Mixpanel’s capabilities with the lowest amount of lift to see value. The reporting around marketing analytics will also showcase reporting that end users are used to coming over from Adobe Analytics. ### Customer Data Platforms (CDPs) CDPs like [Segment](https://segment.com/) have always tracked event data and synthesized them into a specific schema format for Adobe Analytics. You can add Mixpanel as a destination to your CDP and immediately start receiving the same data as your other destinations. Since CDPs already collect all your data via 1 SDK and route to many downstream destinations, enabling Mixpanel is straightforward. Simply go to your CDP settings and add Mixpanel as a destination: ![Segment Connection](https://user-images.githubusercontent.com/129823695/234812593-dffee962-bb34-49b8-9686-96bc0f0565d8.png) Once you set up the connection to Mixpanel, you can proceed with configuring key settings like: * Which events and properties to send → only send what matters * Edit any mappings/editing/filtering that has to be done on the data → ensure high data quality and governance * Connection settings, or CDP specific settings for data syncs → control over how data is sent We provide Mixpanel as a destination and setup guides for all of the most popular CDPs: * [Segment](https://segment.com/docs/connections/destinations/catalog/actions-mixpanel/) * [mParticle](https://docs.mparticle.com/integrations/mixpanel/audience/) * [Rudderstack](https://www.rudderstack.com/docs/destinations/streaming-destinations/mixpanel/) ### Data Warehouse If you have your Adobe Analytics instance sitting on top of data that you collect and store in your data warehouse, getting started is simple. Instead of transforming and modeling that data to send to Adobe, you would model the data as [Events](/docs/data-structure/concepts) and send it to Mixpanel via a Reverse ETL (RETL) tool or via directly hitting our [Import API](/reference/import-events). ## Loading historical data For most cases, we recommend starting fresh when migrating from Adobe Analytics. If you must import Adobe data, we strongly encourage loading historical data into a separate project as data structures, identity management, user cohort definitions, etc. are completely different in Adobe than in Mixpanel. In certain situations, retaining historical data in Mixpanel serves the purpose of enabling the team to visualize past trends. However, as this set of historical data would reside in a separate project, visualizing trends over time periods may pose challenges. For instances where historical data proves essential, we advise importing a year's worth (or less) of historical data during the migration process. Note that backfilling historical data can have significant impact on your billing. Refer to [this section](/docs/pricing#are-monthly-events-calculated-based-on-ingestion-time-or-event-timestamp) for more details. ### Undertaking discovery: Why and what is historical data for 1. **Whats the purpose of bringing in historical data?** It’s key to understand if you would just like a place to store historical data once Adobe is sunset or would you actually need those historical data for key metrics analysis. If its the former, the recommendation would be to send those data into a warehouse rather than Mixpanel. 2. **What is the time frame which you are looking at for historical data?** We recommend up to 2 years worth of data and usually the cut off time to be the last month before the complete set of data flows into Mixpanel. 3. **Are there specific events and event properties which you would most likely query on Mixpanel?** Instead of running the full load which would take a long time for the data to be available in the Mixpanel project, are there specific events and properties which are considered P0 for your team? In that case when running the script the data will be available in a much shorter period of time. 4. **Given the complexity of unique identifiers in Adobe (also dependent on consultants have implemented for the organization), what is the logic for the main identifier for your unique visitors.** 5. **What is the limit to the % of discrepancies in which they are willing to accept** The differences in the data model between Mixpanel and Adobe means that there will be a higher than expected discrepancy range and based on some previous projects we have done with customers. The range looks to be around 5% for most metrics. To backfill data, we recommend: * If you already have your historical data in a warehouse, * Utilize our [warehouse connector](/docs/tracking-methods/warehouse-connectors), to send historical data into a separate Mixpanel project * If you have a CDP, this should be straightforward * Utilize the CDPs backfilling feature, like [Segment Replay](https://segment.com/docs/guides/what-is-replay/), to re-send historical data to Mixpanel * For any other implementation method * First, export your data to the data warehouse so you have a record of Adobe Analytics * Once exported, your data warehouse tables can be transformed and modeled into the [event format](/docs/data-structure/events-and-properties) Mixpanel expects * Leverage our [Import API](/reference/import-events) to send us the formatted events from your data warehouse The process of importing old data with a different format has many potential issues - identity management, data discrepancies, etc. - as Mixpanel is fundamentally different than Adobe Analytics. It may be worth considering your use cases for importing old data before proceeding, as matching users and data across the systems can be time consuming. For Adobe Analytics specifically, due to the complexity of the data format and the fact it is a specific schema for each customer means we are unable to provide advice for all scenarios without speaking to your team directly. ### Setting Up the Project(s) To prevent any potential issues with identity management due to the drastic difference in data model, we recommend that the customer set up separate projects when importing historical data from Adobe. We recommend customers use Simplified API for their identity management, because they can easily designate their anonymous id and prefix it with a \$device. For any 3rd party integrations, the recommendation is to populate the identifiers that are being used on those 3rd party systems as user profile properties and utilize that as a mean to identify users when exporting out cohorts. ***This step needs to be done before any data is sent to the project.*** ## Not sure where to start or need help? If you're unsure how you currently track data, or might want to consider tracking data differently as you migrate to Mixpanel, we recommend starting [here](https://mixpanel.com/blog/guide-to-choosing-your-data-architecture/). Mixpanel Customer Success and Support have been helping thousands of customers migrate from other tools to Mixpanel over the past decade. For an overview of how a migration typically runs, from auditing your data and migrating live tracking to loading historical data and onboarding your teams, see our [Migration Guides Overview](/docs/migration). To move historical Adobe Analytics data, see [Loading historical data](#loading-historical-data) above, which covers the discovery questions to answer first, backfill options, and [setting up a separate project](#setting-up-the-projects) before any data is sent. If you need help, just [reach out here](https://mixpanel.com/get-support) and we'll be ready to assist with advice specific to your situation. # Migrating from Amplitude Source: https://docs.mixpanel.com/docs/migration/amplitude Migrate from Amplitude to Mixpanel, covering data model differences, historical data loading, and implementation steps If you haven't already, we recommend starting with our [Migration Guides Overview](/docs/migration) as it details the key components of migrating to Mixpanel from other analytics tools. Below we outline specific steps and considerations when migrating from Amplitude. ## Differences in the data models Both Mixpanel and Amplitude are product analytics tools which collect event-based behavioral data about your users. [Events](/reference/import-events) are commonly expressed as JSON which represent the name of the user action, the ID of the user, the time at which the action took place, and all associated metadata. Events are immutable, and represent data at the time of which an action takes place. ```json theme={"system"} { "event": "Signup", "properties": { "time": 1618716477000, "distinct_id": "91304156-cafc-4673-a237-623d1129c801", "$insert_id": "29fc2962-6d9c-455d-95ad-95b84f09b9e4", "Referred by": "Friend", "URL": "mixpanel.com/signup" } } ``` In addition to events, Mixpanel supports an additional type of data that Amplitude does not. This data is known as [user profiles](/reference/profile-set), which represents dimensional data that is always updated to the most recent value for a user. User data allows you to segment your reporting by both historical point-in-time data as well as real-time dimensional data about your users. ```json theme={"system"} { "$distinct_id": "13793", "$set": { "name": "Robert" } } ``` We also support additional data for extending your use cases with Mixpanel: * [Group profiles](/reference/group-set-property): Used with our Group Analytics product add-on to allow you to pivot quickly between users and other entities in your analysis. A common use case is for a B2B company to pivot between analyzing users and analyzing accounts. * [Lookup tables](/reference/lookup-tables): For event data which was already sent, you can use these to extend the data already sent into Mixpanel. A common use case is taking an identifier like a transaction ID, item ID, etc. and using lookup tables to enrich the data with additional information like the amount, category, etc. from your data warehouse. ## Loading historical data ### Mixpanel's Migration Service If you have under 15M events in Amplitude, you can migrate your historical Amplitude data using Mixpanel's free migration service. Note that while the migration tool is free to use, backfilling historical event data can have significant impact on your billing. Refer to [this section](/docs/pricing#are-monthly-events-calculated-based-on-ingestion-time-or-event-timestamp) for more details. Here's an example request to the migration service which you can customize: ```bash theme={"system"} curl --request POST \ --url https://migrate.api.mixpanel.com/amplitude \ --header "Content-Type: application/json" \ --data '{ "AMPLITUDE_API_KEY": "YOUR_AMP_KEY", "AMPLITUDE_API_SECRET": "YOUR_AMP_SECRET", "MIXPANEL_TOKEN": "YOUR_MP_TOKEN", "START_DATE": "YYYY-MM-DD", "END_DATE": "YYYY-MM-DD" }' ``` This service will use your provided credentials to export Amplitude data, transform the data, and load event + user profiles into your Mixpanel project. If no dates are provided, the service defaults to a 30 day duration relative to the present. [Watch the demo tutorial](https://www.loom.com/share/f947d42db01541a0b74953461e3c6cc0?sid=43c1ef52-d008-4b6d-9015-afa14b05901c) for more in-depth instructions on how to use the migration service. Notes: * Any events ingested via this method in the current month will count toward your plan. We recommend testing this while on a Free plan first. You may also pass a `"DRY_RUN" : true` param in the JSON which will show you how many events will be migrated. * If you are using Mixpanel or Amplitude's EU data residency, pass `"REGION": "EU"` with your request. * This migration service is in beta -- if you have questions or run into issues, please reach out to us [here](mailto:amplitude-migration@mixpanel.com). ### Data Warehouse Connectors If you have access to your Amplitude data in your data warehouse, the most scalable way to bring this historical data into Mixpanel is by using our warehouse connector. At a high-level, the migration consists of 3 steps: 1. Set up a new Mixpanel project which is on [Simplified ID Merge system](/docs/tracking-methods/id-management#identity-merge-apis). 2. Transform Amplitude data in your data warehouse (sample SQL transformation included below). 3. Set up [Mixpanel Warehouse Connector](/docs/tracking-methods/warehouse-connectors) to initiate data sync from your data warehouse to Mixpanel. ##### Amplitude event schema SQL query to flatten the JSON columns into individual columns: ```jsx theme={"system"} SELECT -- required fields event_type, -- to map Event Name event_time, -- to map Event Time -- to map Insert ID TO_HEX(SHA1(CONCAT( CONCAT('[amp] ', event_type), COALESCE(user_id, ""), "-", CAST(event_time as STRING), "-", COALESCE(CAST(amplitude_id as STRING), "") ))) AS insert_id, -- ID management user_id, -- to map User ID amplitude_id, -- to map Distinct ID device_id, -- to map Device ID -- event properties JSON_EXTRACT_SCALAR(event_properties, "$['artist']") AS artist, JSON_EXTRACT_SCALAR(event_properties, "$['genre']") AS genre, JSON_EXTRACT_SCALAR(event_properties, "$['song_title']") AS song_title, JSON_EXTRACT_SCALAR(event_properties, "$['song_name']") AS song_name, JSON_EXTRACT_SCALAR(event_properties, "$['page_name']") AS page_name, -- user properties as event properties JSON_EXTRACT_SCALAR(user_properties, "$['$email']") AS email, JSON_EXTRACT_SCALAR(user_properties, "$['$name']") AS name, JSON_EXTRACT_SCALAR(user_properties, "$['last_genre']") AS last_genre, JSON_EXTRACT_SCALAR(user_properties, "$['lifetime_purchase']") AS lifetime_purchase FROM `project.dataset.tablename` ``` Note: Make the `event_time` column as NOT NULLABLE so that it can be chosen to be a Full Sync. Amplitude does not export `insert_id` column but even when it is an optional field in Mixpanel, it is recommended to generate it and pass it as best practice. ##### Amplitude user schema For Users too, it would be important to flatten the JSON columns into individual columns. It is also important to reduce unnecessary engage calls hence, we’ll be extracting the latest event time of that user\_id to get all the user properties. ```jsx theme={"system"} SELECT event_time, user_id, -- user properties JSON_EXTRACT_SCALAR(user_properties, "$['$email']") AS email, JSON_EXTRACT_SCALAR(user_properties, "$['$name']") AS name, JSON_EXTRACT_SCALAR(user_properties, "$['last_genre']") AS last_genre, JSON_EXTRACT_SCALAR(user_properties, "$['lifetime_purchase']") AS lifetime_purchase FROM `project.dataset.tablename` t1 INNER JOIN ( SELECT user_id, MAX(event_time) as max_event_time FROM `project.dataset.tablename` WHERE user_id IS NOT NULL GROUP BY user_id ) t2 ON t1.user_id = t2.user_id AND t1.event_time = t2.max_event_time ``` ## Setting up Warehouse Connectors Once you've transformed your data in your data warehouse, you can set up the [Mixpanel Warehouse Connector](/docs/tracking-methods/warehouse-connectors) to migrate your historical data into Mixpanel. We'd recommend first sending a month of data into a test project for validation. You can learn more about event mappings [here](/docs/tracking-methods/warehouse-connectors#events). Here's an example of mappings for event table: ![image](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/amp_event_warehouse_connector.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=a8a85a0f3f5e3a71fc354019a389e4b4) You can learn more about user mappings [here](/docs/tracking-methods/warehouse-connectors#user-profiles). Here's an example of mappings for user table: ![image](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/amp_user_warehouse_connector.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=29cc8e8a80026b1630f781569c0bac7f) ##### Post-migration data validation You can use our [Lexicon](/docs/data-governance/lexicon) or Events page to check that your data has successfully been ingested. However, if your historical events are older than 30 days, they will not show up on Lexicon, Events page or in the event dropdown menu across all reports. In this case, you can leverage our [Insights report](/docs/reports/insights) to validate the historical events, by selecting the import time frame and filtering by the following default properties: * Warehouse Import ID (tracked as `$warehouse_import_id`) * Warehouse Import Job ID (`$warehouse_import_job_id`) * Import = true (`$import`) * Source = warehouse-import (`$source`) Please filter by tracked name, \$warehouse\_import\_id instead of the display name, “Warehouse Import ID”. You can find the properties values on the Warehouse Connector’ sync logs: ![image](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/amp_event_validation.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=88e016ae79e730b88e7c20c1078bf36f) ## Identifying your implementation method Mixpanel accepts event data from a variety of different sources. Choose your implementation method first and then you can follow the below steps for sending data to Mixpanel. We support the following data collection mechanisms: * [Data Warehouse Connectors](#data-warehouse-connectors): Natively import data from Snowflake, BigQuery, Redshift, & Databricks into Mixpanel. Set up recurring syncs from your data warehouse and ensure that Mixpanel is always in sync with your trusted data. * [Client-side SDKs & Server-side SDKs](#client-side-sdks--server-side-sdks): Simply replace Amplitude code calls to track events with Mixpanel calls instead * [Customer Data Platforms (CDPs)](#customer-data-platforms-cdps) like [Segment](https://segment.com/): Go into your CDP settings to add Mixpanel as a destination, and point your data stream to Mixpanel * [Import API](#import-api): Point your event ingestion pipeline to [Mixpanel’s robust API](/reference/import-events) for data ingestion * [Reverse ETL](#reverse-etl-retl) (RETL) tools like [Census](https://getcensus.com): Go into your RETL settings to add Mixpanel as a destination, and point your syncs to Mixpanel ### Data Warehouse Connectors You can set up the [Mixpanel Warehouse Connector](/docs/tracking-methods/warehouse-connectors) to set your implementation to Mixpanel. You can learn more about event mappings [here](/docs/tracking-methods/warehouse-connectors#events) and about user mappings [here](/docs/tracking-methods/warehouse-connectors#user-profiles). ### Client-side SDKs & Server-side SDKs Fortunately, Mixpanel and Amplitude’s client side SDKs have *very similar* developer facing APIs. This makes it fairly easy to “find and replace” embedded Amplitude calls and swap them for Mixpanel calls. This section will detail the Javascript SDKs (for the sake of brevity), although both analytics platforms have fairly uniform tracking APIs for other SDKs (mobile, server-side). Amplitude JS Docs: [https://amplitude.github.io/Amplitude-TypeScript/modules/\_amplitude\_analytics\_browser.html](https://amplitude.github.io/Amplitude-TypeScript/modules/_amplitude_analytics_browser.html) Mixpanel JS Docs: [https://developer.mixpanel.com/docs/javascript-full-api-reference](https://developer.mixpanel.com/docs/javascript-full-api-reference) Note: Ensure that your projects have been defaulted or updated to Simplified ID Management before any data is sent to the project. This is the ID management compatible with Amplitude’s. #### Installing the Mixpanel SDK Before getting started, initialize the Mixpanel SDK according to the directions [here](https://developer.mixpanel.com/docs/javascript-quickstart#1-initialize-the-library) #### Initialization Amplitude’s `init()` method: ```jsx theme={"system"} var amplitudeClient = new AmplitudeClient(); amplitudeClient.init('API_KEY') ``` Mixpanel’s `init()` method: ```jsx theme={"system"} mixpanel.init('new token') ``` [Docs Reference](https://developer.mixpanel.com/docs/javascript-full-api-reference#mixpanelinit) [Initialization (init) options](https://developer.mixpanel.com/docs/javascript-full-api-reference#mixpanelset_config) #### Events Amplitude’s `logEvent()` method: ```jsx theme={"system"} amplitudeClient.logEvent('Clicked Button', {'finished_flow': false }); ``` Mixpanel’s `track()` method: ```jsx theme={"system"} mixpanel.track('Clicked Button', {'finished_flow': false }) ``` [Docs Reference](https://developer.mixpanel.com/docs/javascript-full-api-reference#mixpaneltrack) #### Identity Management Amplitude’s `setUserId()` method: ```jsx theme={"system"} amplitudeClient.setUserId('joe@gmail.com'); ``` Mixpanel’s `identify()` method: ```jsx theme={"system"} mixpanel.identify('joe@gmail.com') ``` [Docs Reference](https://developer.mixpanel.com/docs/javascript-full-api-reference#mixpanelidentify) #### User Properties Amplitude’s `setUserProperties()` method: ```jsx theme={"system"} amplitudeClient.setUserProperties({'gender': 'female', 'sign_up_complete': true}) ``` Mixpanel’s `people.set()` method: ```jsx theme={"system"} mixpanel.people.set({'gender': 'female', 'sign_up_complete': true}) ``` Note: `identify()` should be called at some point in each user’s session to propagate people methods [Docs Reference](https://developer.mixpanel.com/docs/javascript-full-api-reference#mixpanelpeople) #### Group Analytics Amplitude’s `setGroup()` method: ```jsx theme={"system"} amplitudeClient.setGroup('orgId', 15); ``` Mixpanel’s `set_group()` method: ```jsx theme={"system"} mixpanel.set_group('orgId', 15) ``` [Docs Reference](https://developer.mixpanel.com/docs/javascript-full-api-reference#mixpanelset_group) ### Customer Data Platforms (CDPs) Since CDPs already collect all your data via 1 SDK and route to many downstream destinations, enabling Mixpanel is straightforward. Simply go to your CDP settings and add Mixpanel as a destination: ![Segment Connection](https://user-images.githubusercontent.com/129823695/234812593-dffee962-bb34-49b8-9686-96bc0f0565d8.png) Once you set up the connection to Mixpanel, you can proceed with configuring key settings like: * Which events and properties to send → only send what matters * Edit any mappings/editing/filtering that has to be done on the data → ensure high data quality and governance * Connection settings, or CDP specific settings for data syncs → control over how data is sent We provide Mixpanel as a destination and setup guides for all of the most popular CDPs: * [Segment](https://segment.com/docs/connections/destinations/catalog/actions-mixpanel/) * [mParticle](https://docs.mparticle.com/integrations/mixpanel/audience/) * [Rudderstack](https://www.rudderstack.com/docs/destinations/streaming-destinations/mixpanel/) Note depending on your CDP provider, they may also be able to help with migrating historical data as well. Features like [Segment Replay](https://segment.com/docs/guides/what-is-replay/) enable you to quickly backfill historical data during your migration versus needing to do this work with your developer resources. ### Import API If you currently send data to Amplitude directly to their API, you can simply swap out the Amplitude API with the Mixpanel API. #### Sending Events Amplitude’s `/track` API Endpoint is `https://api2.amplitude.com/2/httpapi` (documented [here](https://www.docs.developers.amplitude.com/analytics/apis/http-v2-api/)). A sample request from your server for this API would look like: ```bash theme={"system"} curl -X POST https://api2.amplitude.com/2/httpapi \ -H 'Content-Type: application/json' \ -H 'Accept: */*' \ --data '{ "api_key": "YOUR_API_KEY", "events": [{ "user_id": "203201202", "device_id": "C8F9E604-F01A-4BD9-95C6-8E5357DF265D", "event_type": "watch_tutorial" }] }' ``` Mixpanel’s `/track` API endpoint is `https://api.mixpanel.com/import` (documented [here](/reference/import-events)). A sample request from your server for this API would look like: ```bash theme={"system"} curl --request POST \ --url 'https://api.mixpanel.com/import?strict=1&project_id=%3CYOUR_PROJECT_ID%3E' \ --header 'Content-Encoding: gzip' \ --header 'Content-Type: application/json' \ --header 'accept: application/json' \ --header 'authorization: Basic cnlhbjpyeWFu' \ --data '[ { "event": "string", "properties": { "time": 0, "distinct_id": "string", "$insert_id": "string" } } ]' ``` The big difference between the APIs are: * **Authentication:** Amplitude authenticates in the request payload, whereas Mixpanel uses your project token in the request URL alongside basic auth. Mixpanel authentication can be done via a service account as described [here](/reference/ingestion-api-authentication). Be sure to move the authentication outside the payload. * **Event JSON Structure:** Amplitude and Mixpanel have slightly different structures (explained [here](/docs/migration/amplitude#differences-in-the-data-models)). You will want to remap the Amplitude event format to the expected Mixpanel JSON payload as described [here](/docs/migration/amplitude#differences-in-the-data-models). ### Reverse ETL (RETL) If you already send data to Amplitude with your data warehouse as the source of truth using reverse ETL, sending data to Mixpanel requires adding a new destination and syncing the same models you have been syncing to Amplitude. This option is like a hybrid between the CDP and Import API options above - you can use the reverse ETL tool to set Mixpanel up simply as a destination and then the tool will handle all of the remapping at the API level for you. Simply go to your RETL settings and add Mixpanel as a connection: ![Census Connection](https://user-images.githubusercontent.com/129823695/234812805-ded7dcef-9d47-4375-b52e-a229e4832477.png) We provide Mixpanel as a destination and setup guides for all of the most popular RETL tools: * [Census](https://docs.getcensus.com/destinations/mixpanel) * [Hightouch](https://hightouch.com/docs/destinations/mixpanel) * [Segment](https://segment.com/docs/connections/reverse-etl/) ## Not sure where to start or need help? If you're unsure how you currently track data, or might want to consider tracking data differently as you migrate to Mixpanel, we recommend starting [here](https://mixpanel.com/blog/guide-to-choosing-your-data-architecture/). Mixpanel Customer Success and Support have been helping thousands of customers migrate from other tools to Mixpanel over the past decade. For an overview of how a migration typically runs, from auditing your data and migrating live tracking to loading historical data and onboarding your teams, see our [Migration Guides Overview](/docs/migration). To move historical Amplitude data, use [Mixpanel's Migration Service](#mixpanels-migration-service) if you have under 15M events in Amplitude, or the [Data Warehouse Connectors](#data-warehouse-connectors) approach described above. We’re always happy to discuss your team’s individual needs, our migration process, the support you’ll receive, or any other question you have — drop us a line at [success@mixpanel.com](mailto:success@mixpanel.com). # Migrating from Google Analytics Source: https://docs.mixpanel.com/docs/migration/google-analytics Migrate from Google Analytics 4 to Mixpanel, including loading historical GA4 data through the BigQuery warehouse connector If you haven't already, we recommend starting with our [Migration Guides Overview](/docs/migration) as it details the key components of migrating to Mixpanel from other analytics tools. Below we outline specific steps and considerations when migrating from Google Analytics. ## Currently using Google Analytics 4 (GA4) and not seeing value? Try unifying your marketing and product data in one place. This guide will outline the steps needed in order to bring your GA4 data into Mixpanel allowing you to dig deeper into how users across different channels are interacting with your product, learn where the points of friction are, and where you should be investing your marketing spend to maximize engagement with your product. ### Loading historical data Given GA4 has a similar data format to Mixpanel, it is possible to migrate some of your historical data to see trends. In the cases where historical data is essential, we recommend loading a year’s worth (or less) of historical data during your migration. This will allow your team to review year-over-year trends easily and do historical analysis as needed. Note that backfilling historical data can have significant impact on your billing. Refer to [this section](/docs/pricing#are-monthly-events-calculated-based-on-ingestion-time-or-event-timestamp) for more details. #### Loading historical data via Mixpanel BigQuery Warehouse Connector ![image](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/ga4_overview.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=608a321409e17f809318d44a0f121c1f) At a high-level, the migration consists of 4 steps: 1. Set up a new Mixpanel project which is on [Simplified ID Merge system](/docs/tracking-methods/id-management#identity-merge-apis). 2. Set up GA4 BigQuery Export following the instructions [here](https://support.google.com/analytics/answer/9823238?hl=en#zippy=%2Cin-this-article). 3. Set up [Mixpanel Warehouse Connector](/docs/tracking-methods/warehouse-connectors) to initiate data sync from BigQuery to Mixpanel ##### Pre-migration data audit Before migrating your data to Mixpanel, you should conduct a data audit to quickly identify the key events and properties that you want to migrate over. You can learn more about the importance of pre-migration data audit [here](/docs/migration#data-audit). The following SQL queries can be used to conduct a data audit in BigQuery. SQL query to return events by volume: ```jsx theme={"system"} SELECT event_name, COUNT(event_name) AS total_rows FROM `bigquery-public-data.ga4_obfuscated_sample_ecommerce.events_20210131` GROUP BY event_name ORDER BY total_rows DESC ``` SQL query to return event properties by volume: ```jsx theme={"system"} SELECT DISTINCT event_name, ep.key AS event_properties, COUNT(event_name) as total_rows FROM `bigquery-public-data.ga4_obfuscated_sample_ecommerce.events_20210131` , UNNEST(event_params) as ep GROUP BY event_name, ep.key ORDER BY event_name ASC ``` SQL query to return sample values of the event properties: ```jsx theme={"system"} SELECT event_name, ep.key, COALESCE(ep.value.int_value, ep.value.float_value, ep.value.double_value) AS value FROM `bigquery-public-data.ga4_obfuscated_sample_ecommerce.events_20210131`, UNNEST(event_params) AS ep LIMIT 100 ``` SQL query to return user properties by volume: ```jsx theme={"system"} SELECT up.value.user_property_name AS user_properties, COUNT(up.value.user_property_name) AS total_users FROM `mixpanel-sa.analytics_406874950.users_20231002` , UNNEST(user_properties) AS up GROUP BY up.value.user_property_name ``` ##### Setting up BigQuery Warehouse Connectors Our [Warehouse Connector](/docs/tracking-methods/warehouse-connectors) will automatically detect GA4 datasets in BigQuery. You can use this to migrate your historical data from BigQuery to Mixpanel as well as seamlessly import new data going forward. Once you've given your new Mixpanel project, that is leveraging Simplified ID Merge, access to your [BigQuery Instance](/docs/tracking-methods/warehouse-connectors#step-1-connect-a-warehouse) in the [Warehouse Sources](https://mixpanel.com/report/settings/%23project%2F%24project_id%24%2Fwarehousesources/) tab of your project settings it's time to import your data. Navigate to [Project Settings → Warehouse Data](https://mixpanel.com/report/settings/%23project%2F%24project_id%24%2Fwarehousedata/) and click +Event Table. Under setup select your BigQuery source you gave Mixpanel access to. In the dataset drop-down, choose your GA4 dataset, then select the GA4 events table. Your Event Name, Event Time, and Distinct ID columns will automatically map for you. If you're tracking users in an anonymous state with GA4 you can select user\_pseudo\_id for the Device ID column. Under sync settings select One Time to backfill the data or Append to bring in new data based on Insert Time (sync mode doesn't include Mirror, only Append and One Time). If you choose Append for Sync Mode, set the frequency to daily. Insert time will default to event\_timestamp. Preview the events and associated event properties to ensure the data looks as expected then select Create to import the data into Mixpanel. ![image](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/ga4_events.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=64c3ac01d2a445d8df93085c8ad4eef3) Navigate to [Project Settings → Warehouse Data](https://mixpanel.com/report/settings/%23project%2F%24project_id%24%2Fwarehousedata/) and click +User Table. Under setup select your BigQuery source you gave Mixpanel access to. In the dataset drop-down, choose your GA4 dataset, then select the GA4 users table. Your Distinct ID column will automatically map to user\_id for you. Under sync settings select One Time to backfill the data or Append to bring in new data based on Insert Time (sync mode doesn't include Mirror, only Append and One Time). If you choose Append for Sync Mode, set the frequency to daily. > [!NOTE] > > GA4 Append syncs use BigQuery's change history ([time travel](https://docs.cloud.google.com/bigquery/docs/time-travel)) to detect newly appended rows. BigQuery retains change history for up to 7 days (configurable, minimum 2 days). If the Mixpanel sync does not run within this window, it must be reset for a full re-sync. We recommend keeping the default of 7 days to allow time to correct any unexpected access issues (e.g., a credentials change). Preview the users and associated user properties to ensure the data looks as expected then select Create to import the data into Mixpanel. Once the import is complete, navigate to the Users tab and ensure the profiles have been imported as expected. ![image](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/ga4_users.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=392f9ca988905e86c739af4fb216d1fe) ##### Post-migration data validation You can use our [Lexicon](/docs/data-governance/lexicon) or Events page to check that your data has successfully been ingested. However, if your historical events are older than 30 days, they will not show up on Lexicon, Events page or in the event dropdown menu across all reports. In this case, you can leverage our [Insights report](/docs/reports/insights) to validate the historical events, by selecting the import time frame and filtering by the following default properties: * Warehouse Import ID (tracked as `$warehouse_import_id`) * Warehouse Import Job ID (`$warehouse_import_job_id`) * Import = true (`$import`) * Source = warehouse-import (`$source`) Please filter by tracked name, \$warehouse\_import\_id instead of the display name, “Warehouse Import ID”. You can find the properties values on the Warehouse Connector’ sync logs: ![image](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/ga4_event_validation.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=e418170d82319683e04d5775dc76d49b) ### Track forward looking real-time data The Warehouse Connectors support for GA4 allows you to automatically bring in your event and user data. But if you're looking to replace tracking for your current GA4 implementation, you can follow the steps below to send live data to Mixpanel. #### Client-side SDKs & Server-side SDKs Mixpanel and GA4’s client-side SDKs have *very similar* developer facing APIs. This makes it fairly easy to “find and replace” embedded GA4 calls and swap them for Mixpanel calls. This section will detail the Javascript SDKs (for the sake of brevity), although both analytics platforms have fairly uniform tracking APIs for other SDKs (mobile, server-side, etc.) ##### Events GA4 method ```jsx theme={"system"} gtag('event', 'event_name', { 'param1': 'value1', 'param2': 'value2' }); ``` Mixpanel method ```jsx theme={"system"} mixpanel.track('event_name', { 'param1': 'value1', 'param2': 'value2' }); ``` ##### Identity Management GA4 method ```jsx theme={"system"} gtag('config', 'GA_MEASUREMENT_ID', { 'user_id': 'USER_ID' }); ``` Mixpanel method ```jsx theme={"system"} mixpanel.identify('USER_ID'); ``` ##### User Properties GA4 method ```jsx theme={"system"} gtag('set', 'user_properties', { 'property1': 'value1', 'property2': 'value2' }); ``` Mixpanel method ```jsx theme={"system"} mixpanel.people.set({ 'property1': 'value1', 'property2': 'value2' }); ``` ##### Super Properties GA4 method → GA4 doesn't have a direct equivalent, but you can set global properties on the SDK config we recommend moving to Mixpanel ```jsx theme={"system"} gtag('config', 'GA_MEASUREMENT_ID', { 'custom_map': { 'dimension1': 'property1', 'dimension2': 'property2' }, 'property1': 'value1', 'property2': 'value2' }); ``` Mixpanel method ```jsx theme={"system"} mixpanel.register({ 'property1': 'value1', 'property2': 'value2' }); ``` Keep in mind that you will need to initialize the [Mixpanel SDK](https://developer.mixpanel.com/docs/javascript-full-api-reference) by adding the Mixpanel snippet to your website before using these tracking calls. Replace the placeholders (e.g., 'event\_name', 'USER\_ID', 'value1', etc.) with the appropriate values from GA4 in your code as you migrate the code. #### Google Tag Manager (GTM) Mixpanel has a [Google Tag Manager (GTM) custom template](/docs/tracking-methods/integrations/google-tag-manager) which can be leveraged to implement events within an hour. Simply load the template, and you can send Mixpanel the same events you’ve setup for your GA4 instance. This method is straightforward since you’ve already setup your SDK to track “events” and are using Google Tag Manager. You can leverage this same setup to implement Mixpanel. #### Customer Data Platforms (CDPs) CDPs like [Segment](https://segment.com/) will already be tracking events to GA4 that you want to duplicate to Mixpanel. You can add Mixpanel as a destination to your CDP and immediately start receiving the same data as your other destinations. CDPs like [Segment](https://segment.com/) have always tracked event data and synthesized them into sessions for Universal Analytics. You can add Mixpanel as a destination to your CDP and immediately start receiving the same data as your other destinations. Since CDPs already collect all your data via 1 SDK and route to many downstream destinations, enabling Mixpanel is straightforward. Simply go to your CDP settings and add Mixpanel as a destination: ![Segment Connection](https://user-images.githubusercontent.com/129823695/234812593-dffee962-bb34-49b8-9686-96bc0f0565d8.png) Once you set up the connection to Mixpanel, you can proceed with configuring key settings like: * Which events and properties to send → only send what matters * Edit any mappings/editing/filtering that has to be done on the data → ensure high data quality and governance * Connection settings, or CDP specific settings for data syncs → control over how data is sent We provide Mixpanel as a destination and setup guides for all of the most popular CDPs: * [Segment](https://segment.com/docs/connections/destinations/catalog/actions-mixpanel/) * [mParticle](https://docs.mparticle.com/integrations/mixpanel/audience/) * [Rudderstack](https://www.rudderstack.com/docs/destinations/streaming-destinations/mixpanel/) ## Currently using Universal Analytics with Google? ### Differences in the data models Mixpanel’s data model is based on events and properties, rather than sessions. While this might be a shift if you come from the sessions-based model, we’ve found it to be both more flexible and easier to set up and use. * [Events](/docs/what-is-mixpanel#events) capture granular user actions, like a Pageview, Signup, or Purchase. * [Properties](/docs/what-is-mixpanel#properties) capture attributes of those events, like which page was viewed, the UTM Campaign that led to a Signup, or the Item that was purchased. Events let you get more granular than [sessions](/docs/features/sessions), so that you can deeply understand user behavior. At the same time, Mixpanel automatically constructs sessions from events, so you can answer session-level questions too. ### Track forward looking real-time data Choose your current implementation method for Universal Analytics (UA) and you can follow the below steps for starting to send live data to Mixpanel. #### Client-side SDKs & Server-side SDKs You’ll have to setup Mixpanel fresh given Mixpanel leverages an event-based model that does not exist in Universal Analytics. The good news is you can get started within an hour, which is lesser or equivalent work to setting up GA4 from an SDK perspective, since both need a fresh implementation to be setup on an “events” model vs UA’s “sessions” model. We recommend the following steps to get started quickly: * Configure the [Mixpanel JavaScript SDK](https://developer.mixpanel.com/docs/javascript-full-api-reference) to automatically track page views, where UTM params are tracked by default ```jsx theme={"system"} mixpanel.init('YOUR_TOKEN', {track_pageview: true}); ``` * Track a few key conversion events of interest ```jsx theme={"system"} // Send a "Played song" event to Mixpanel // with a property "genre" mixpanel.track( "Played song", { "genre": "hip-hop" } ); ``` * Use the [Mixpanel Marketing KPI Template](https://mixpanel.com/project?show-template-selector=true) to build your initial board #### Google Tag Manager (GTM) Mixpanel has a [Google Tag Manager (GTM) custom template](/docs/tracking-methods/integrations/google-tag-manager) which can be leveraged to implement events within an hour. The template initializes the Mixpanel JavaScript SDK with similar calls as outlined in the above section. We recommend setting up the following in the custom template to get started quickly: a) Choose to auto-track pages, b) Set your conversion events. Once done, Mixpanel will start receiving page views and key conversion events. #### Customer Data Platforms (CDPs) CDPs like [Segment](https://segment.com/) have always tracked event data and synthesized them into sessions for Universal Analytics. You can add Mixpanel as a destination to your CDP and immediately start receiving the same data as your other destinations. Since CDPs already collect all your data via 1 SDK and route to many downstream destinations, enabling Mixpanel is straightforward. Simply go to your CDP settings and add Mixpanel as a destination: ![Segment Connection](https://user-images.githubusercontent.com/129823695/234812593-dffee962-bb34-49b8-9686-96bc0f0565d8.png) Once you set up the connection to Mixpanel, you can proceed with configuring key settings like: * Which events and properties to send → only send what matters * Edit any mappings/editing/filtering that has to be done on the data → ensure high data quality and governance * Connection settings, or CDP specific settings for data syncs → control over how data is sent We provide Mixpanel as a destination and setup guides for all of the most popular CDPs: * [Segment](https://segment.com/docs/connections/destinations/catalog/actions-mixpanel/) * [mParticle](https://docs.mparticle.com/integrations/mixpanel/audience/) * [Rudderstack](https://www.rudderstack.com/docs/destinations/streaming-destinations/mixpanel/) ### Loading historical data Mixpanel's data model is fundamentally different from UA. As such, the process of importing old data with a different format has many potential issues - identity management, data discrepancies, etc. It may be worth considering your use cases for importing old data before proceeding, as matching users and data across the systems can be time consuming. [Mixpanel Support](https://mixpanel.com/get-support) is here to help if you need advice how to go about importing the historical data. Consequently, for most cases, we recommend starting fresh when migrating from UA. In the cases where historical data is essential, we recommend loading a year’s worth (or less) of historical data during your migration. This will allow your team to review year-over-year trends easily and do historical analysis as needed. To backfill data, we recommend: * If you have a CDP, this should be straightforward * Utilize the CDP's backfilling feature, like [Segment Replay](https://segment.com/docs/guides/what-is-replay/), to re-send historical data to Mixpanel * For any other implementation method * First, export your data to the data warehouse so you have a record of Universal Analytics * Once exported, your data warehouse tables can be transformed and modeled into the [event format](/docs/data-structure/events-and-properties) Mixpanel expects * Leverage our [Import API](/reference/import-events) to send us the formatted events from your data warehouse ## Not sure where to start or need help? If you're unsure how you currently track data, or might want to consider tracking data differently as you migrate to Mixpanel, we recommend starting [here](https://mixpanel.com/blog/guide-to-choosing-your-data-architecture/). Mixpanel Customer Success and Support have been helping thousands of customers migrate from other tools to Mixpanel over the past decade. For an overview of how a migration typically runs, from auditing your data and migrating live tracking to loading historical data and onboarding your teams, see our [Migration Guides Overview](/docs/migration). To move historical GA4 data, use the [BigQuery Warehouse Connector](#loading-historical-data-via-mixpanel-bigquery-warehouse-connector) approach described above; for Universal Analytics data, follow the backfill recommendations under Loading historical data in the Universal Analytics section above. If you need help, just [reach out here](https://mixpanel.com/get-support) and we'll be ready to assist with advice specific to your situation. # Mixpanel Agent Source: https://docs.mixpanel.com/docs/mixpanel-agent Ask Mixpanel Agent, the AI analyst built into Mixpanel, to run analyses, build reports, create cohorts, and investigate replays ## Overview Mixpanel Agent is an AI analyst built into Mixpanel. Ask it questions or give it tasks and the Agent interprets your intent and selects the right tools automatically. A single prompt can run an analysis, build a report, create a cohort, or walk you through a user's session replays without you specifying each step. ## Core Capabilities The Mixpanel Agent has access to a broad set of Mixpanel capabilities and selects tools automatically based on what you ask. | Capability | What the Agent can do | | - | - | | Report Creation & Editing | Create new Insights, Funnels, Retention, and Flows reports from a description. Adjusts existing report metrics, filters, breakdowns, and time ranges. | | Boards Creation & Editing | Create new Boards or use the Agent to edit an existing Board's layout and content | | Metrics | Define metrics in plain language and save them for reuse across your project | | Cohorts | Build behavioral cohorts from a description and save them for analysis or targeting | | Search project data | Search across your project's events, properties, saved reports, Boards, feature flags, and experiments to find what already exists before building something new | | Analyze reports & Boards | Interpret, explain, and investigate any report or Board. Automatically picks up the context of whatever you currently have open, so you don't need to describe your setup | | Session replay analysis | From a prompt or existing playlist, Mixpanel curates relevant replays, analyzes them alongside your events data, summarizes findings for follow-up questions, and surfaces timestamps for key moments | | Experiments & Feature Flags | Reference experiments and feature flags in any investigation, interpret experiment results in plain language, and create new experiments or flags through a conversational flow | | Mixpanel Docs | Answer questions about how Mixpanel features work | | Root Cause Analysis | Run a root cause analysis for a metric change. [See Root Cause Analysis for details](/docs/root-cause-analysis) | | Automations | Create, inspect, edit, activate, pause, and delete Agentic Automations, and check their run history. [See Agentic Automations for details](/docs/agentic-automations) | **Working on an analysis?** The Agent automatically picks up your current page as context. Ask it to explain a trend, dig into an anomaly, or modify what's in front of you. No need to describe what you're looking at first. ## Access Where you'll find the Mixpanel Agent: * **Side navigation:** Click Mixpanel Agent to open a full-page experience * **Contextual panel:** Click "Open in side view" to open the Agent in a side panel so you can bring the Agent with you as you navigate Mixpanel * **Create New:** Click Mixpanel Agent from the Create New menu ![Image](https://mintcdn.com/mixpanel-edb78807/OJM14VX6HVIgYNb1/images/image-4.png?fit=max\&auto=format\&n=OJM14VX6HVIgYNb1\&q=85\&s=29d1d1355cac3646db9296d7a061c4fc) ## Example Use Cases ### Explore a direction You have a theory or idea. The Mixpanel Agent helps you test it quickly. *Does our new onboarding flow actually improve activation?* *I think users who invite a teammate in their first week retain better. Can you validate that?* ### Put your ideas into action You've landed on a direction. Now ship the change and measure the impact. *Set up an experiment to test a simplified checkout against the current flow* *Roll out the new pricing page to 10% of users behind a feature flag* ### Investigate what happened Something moved in your metrics. The Agent helps you get a clear picture to get to the bottom of it. *Explain this spike in signups* *Did anything unusual happen with our checkout flow* ### Get up to speed fast You need context before a meeting or decision. The Agent searches what already exists in your project so you're not starting from scratch. *Show me our top of funnel KPIs.* *Summarize this analysis for me before my meeting* *What tracking do we have on our messaging feature* ### Build your analysis Build out boards, reports, metrics, and cohorts to share across your team for analysis. *Make a Board for our weekly growth review* *Save our activation definition* *Create a cohort of power users so we can target them in experiments* ### Understand your users Dive deeper to understand what individual users or segments actually experienced. *Find sessions where users hit an error during checkout, walk me through what they did, and surface timestamps of key moments* *This user churned after 3 days. Walk me through their sessions* ## Business Context The Mixpanel Agent uses your project's [Business Context](/docs/business-context) to give more relevant answers. The more context you provide, the better the Agent's answers. ## Verified Mode Admins can control how the Agent treats data by enabling Verified Mode in Project Settings. When enabled, the Agent still works with all requested data — Verified Mode does not remove or exclude anything — but it prioritizes [Verified Data](/docs/data-governance/lexicon#verify-data): events, metrics, behaviors, and cohorts that your team has explicitly reviewed and verified in Lexicon. The Agent prefers verified equivalents wherever they exist, so AI responses stay grounded in the data your organization trusts. Results that draw on unverified data are flagged as unverified, so users can see which parts of a response haven't yet been reviewed in Lexicon. ## Sharing To share a Mixpanel Agent chat, click on the chat name and select **Share Link.** ![Agent Share Link](https://mintcdn.com/mixpanel-edb78807/OJM14VX6HVIgYNb1/images/image-1.png?fit=max\&auto=format\&n=OJM14VX6HVIgYNb1\&q=85\&s=d0200a4e4988b8fdfd7f234a51dc51e6) Shared chats are view-only. Anyone with the link who has access to the project can view the chat. ![Agent Chat Sharing](https://mintcdn.com/mixpanel-edb78807/OJM14VX6HVIgYNb1/images/image.png?fit=max\&auto=format\&n=OJM14VX6HVIgYNb1\&q=85\&s=22c1ae0c938aef2eaba497b6985bd98e) The link shows the chat as it existed when you generated it, up to the most recent message at that time. Optionally, you can share the chat along with the current page content. This is useful if the context of your chat is about a Board, Report, Experiment, or Session Replay Playlist. To make a chat private again, select **Keep Private**. Existing share links stop working once the chat is private. ## Chat History Access more options for managing chats from the chat header, including: * **New Chat:** Click the pencil icon to start a new chat. When you start a new chat, your previously active chat is still available in history. * **Rename chat:** Change the title of a chat * **Delete chat:** Remove a chat from history * **Chat history:** Access all your previous chats when working in the side panel. If you're viewing the Agent as a full page you will see the chat history on the left automatically. ![2026 07 16 15 12 54](https://mintcdn.com/mixpanel-edb78807/XDZuPnZBu4We9qPZ/images/2026-07-16_15-12-54.png?fit=max\&auto=format\&n=XDZuPnZBu4We9qPZ\&q=85\&s=1d735ba8f711bc0bd5d6dcdebf29d597) ## Security & Privacy Mixpanel’s AI is built with privacy-by-design principles. For details: * [Mixpanel AI Compliance](https://mixpanel.com/legal/ai-compliance/) * [Mixpanel’s Data Processing Addendum](https://mixpanel.com/legal/dpa/) ## FAQ **1. What AI models does it use?**\ The Mixpanel Agent is powered by Claude. **2. How can I influence what Mixpanel Agent surfaces?**\ Adding Organization and Project [Business Context](/docs/business-context). Saving [Metrics and Behaviors](/docs/features/saved-metrics-and-behaviors). [Verifying Data](/docs/data-governance/lexicon#verify-data). The Agent uses all this context you provide to craft the best response for your prompt. **3. How do I share feedback or request new capabilities?**\ Use the feedback buttons inside the Agent experience to share what's working, what's missing, or what you'd like to see. We're actively building. Your feedback directly shapes the roadmap. ![Mixpanel Agent Feedback](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/mixpanel-agent-feedback.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=be6d91ecbe872002edb764a5365c39f8) **4. How can I enable or disable AI features?**\ Access to Mixpanel AI features can be managed from the "AI Settings" tab in your organization's settings by both Owners and Admins. Do note that disabling these features removes access for all users. ![Mixpanel AI Settings](https://mintcdn.com/mixpanel-edb78807/OJM14VX6HVIgYNb1/images/image-3.png?fit=max\&auto=format\&n=OJM14VX6HVIgYNb1\&q=85\&s=95320d79bf28fe8479a6b8185627fef6) **5. What happened to Spark?**\ Looking for Spark? This is the right page. Mixpanel Agent is the next evolution of Spark! # Mixpanel Headless Source: https://docs.mixpanel.com/docs/mixpanel-headless Open-source SDK exposing the full Mixpanel platform through a headless API Mixpanel Headless is an open-source SDK that exposes the full Mixpanel platform — every query engine, report type, and configuration — as a single Python object. Build agents, notebooks, scheduled scripts, or ETL pipelines that work with your product data the same way a human analyst would, without a browser. ## Choosing between Headless and MCP Mixpanel makes your data accessible through several interfaces: * [**Mixpanel Agent**](/docs/mixpanel-agent) is the conversational AI inside the Mixpanel UI. * [**MCP Server**](/docs/mcp) connects chat assistants (Claude, ChatGPT, and others) to your data for natural-language Q\&A. * **Mixpanel Headless** is the Python SDK for coding agents (Claude Code, Codex, Cursor) and for scripts, notebooks, and pipelines you write yourself. Headless and MCP both give AI tools access to Mixpanel, but they solve different problems. Neither is strictly more capable than the other — the question is what you're building. ### Use MCP to plug an LLM into Mixpanel MCP is the fastest path to an assistant that can query your data. The server is hosted, the tools are curated, and any MCP-compatible client works out of the box with no code to write. The fixed tool set is a feature. Each tool has a defined schema and a predictable result, which is what you want in a chat session where a person reads each answer and asks the next question. **Choose MCP when:** * You want natural-language Q\&A inside Claude, ChatGPT, Cursor, or another assistant * You want conversational, interactive Q\&A rather than logic composed in code * You value low lift and predictable behavior over customization * What you need is already covered by an existing tool ### Use Headless to build on top of Mixpanel Headless takes the opposite approach: instead of a fixed menu of tools, it gives the agent Python. That distinction matters more than it first appears. Writing code is what coding agents are best at, and code composes in ways a sequence of tool calls can't. An agent using Headless can run several queries, join the results, apply a filter no tool parameter exposes, and loop the whole thing over every project in the org. Results come back as typed objects with a `.df` property, so anything you can do to a DataFrame, an agent can do to your Mixpanel data. Two capabilities follow from that: * **Combining with other data sources.** Because results are DataFrames, a script can join Mixpanel data against your warehouse, a CSV, a billing export, or a CRM pull. An assistant with several MCP servers connected can compare figures in conversation, but joining full datasets is a job for code. * **Custom output.** The agent generates the chart, report, or interface you actually want, rather than the visualizations a tool happens to return. Headless also covers the full product surface — every report type, configuration, and asset — where MCP exposes a curated subset. **Choose Headless when:** * You're building something custom: an agent, a pipeline, a scheduled job, or a notebook * The analysis is complex or multi-step enough that expressing it in code beats chaining tool calls * You need to combine Mixpanel data with other sources * You want custom visualizations or output formats * You need a capability outside the MCP tool set ### Side by side | | MCP Server | Headless | | - | - | - | | **Built for** | Chat assistants | Coding agents | | **Best at** | Natural-language Q\&A | Custom agents, scripts, and pipelines | | **Interface** | Fixed set of tools | Python | | **Setup** | Connect a hosted server | `pip install`, then write code | | **Surface area** | Curated subset | Full product surface | | **Analysis** | What a tool exposes | Anything expressible in code | | **Other data sources** | Compared in conversation | Joined in code | | **Output** | Tool results and charts | Whatever you generate | > [!NOTE] > > The two aren't mutually exclusive. A common pattern is MCP for interactive exploration, then Headless for the automated workloads that come out of it. ## Get started ```bash theme={"system"} pip install mixpanel-headless ``` Then follow the [quickstart on GitHub](https://mixpanel.github.io/mixpanel-headless/getting-started/quickstart/). ## Rate limits The default API limit is 60 requests per hour. For production workloads or higher volume, [request early access](https://docs.google.com/forms/d/e/1FAIpQLScHVIS-rnKuvoHdkjRoG5YaevfQ2INXjD-pjiJlQQzJylmyJA/viewform). ## Resources * [Full documentation](https://mixpanel.github.io/mixpanel-headless/) * [GitHub repository](https://github.com/mixpanel/mixpanel-headless) * [Request early access](https://docs.google.com/forms/d/e/1FAIpQLScHVIS-rnKuvoHdkjRoG5YaevfQ2INXjD-pjiJlQQzJylmyJA/viewform) # Mixpanel Administrative System Source: https://docs.mixpanel.com/docs/orgs-and-projects The Mixpanel administrative system includes organizations, projects, and teams The Mixpanel administrative system includes organizations, projects, and teams. An **Organization** is the controlling entity that links projects, users, and a plan together. Each organization has a single Mixpanel plan associated with it and that plan is what determines the data volume limits and features available across all projects in the organization. A **Project** is a container for your product's analytics data, including saved entities like custom events, or saved reports. Projects house the events, properties and user profiles sent to them which can then be queried with Mixpanel’s web interface and APIs. A single organization can contain multiple projects and each project’s data tallies are summed together to give the organization-level usage. A **Team** is a group of users in your organization that shares the same project access permission, which makes it easier to manage roles and permissions for a group of users. A team contains a roster of users, the projects they are assigned to, the role permission in each project, Data View access, and Classified Data access. ![Organization Overview 1 Image](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/organization_overview.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=a616d413dbdbbb5939c4281cc28eb30b) # Managing Projects Source: https://docs.mixpanel.com/docs/orgs-and-projects/managing-projects Create, configure, and manage Mixpanel projects, including data residency and timezone settings, project tokens, and development projects ## Creating Projects > [!NOTE] > > To create a project, you will need an admin or owner organization role. Learn more about [Roles and Permissions](/docs/orgs-and-projects/roles-and-permissions). Your first project will be created automatically when you create an Organization in Mixpanel. You can create additional projects as follows -- we recommend creating a Development project to test any tracking changes before pushing them to production. ![manageprojects 1 Image](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/manageprojects1.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=a38e88001e4d0caee831e6e17cdf10d2) To create a new Mixpanel project: 1. In Organization Settings, click **Projects** in the left-side menu. 2. Click **Create Project**. A pop-up will appear. 3. Enter a name for the project and click **Create Project**. 4. Choose the residency of your data. **ATTENTION!** This can't be changed once the project is created. 5. Choose the timezone of your project. 6. Click on "Create". 7. The new project will appear now in the list of projects. ![manageprojects 2 Image](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/manageprojects2.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=2c32929ef1e098f86f8dcd01ed1c78ac) ## Viewing Project Information To view project information: 1. In Organization Settings, click **Projects**. 2. Click a project. You’ll see information about project details, usage statistics, and access keys. ### Project Details You can edit the name of the project and its time zone. To edit, click the Pencil icon in the "Name" and "Timezone" fields. ![manageprojects 3 Image](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/manageprojects3.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=6252d74717eb5017ba429f271ae6578d) This table describes the type of details Mixpanel provides for your project. | **Fields** | **Description** | | - | - | | Organization | The name of the organization where the project is. | | Project ID | The ID number of the project. | | Data Residency | Where the data centers hosting the data pool of this project are located. | | Timezone | The time zone you assign to the project. | | Created By | The name of the user who created the project. | | Date Created | The date when the project was created. | | Access URL | The URL where you can access the project. | ### Access Keys This table provides the values for the **project token** and the **API secret**. The token is necessary when setting up your tracking. > [!WARNING] > > **API Secret Deprecation** > > The project API secret is deprecated and will be retired on **March 3rd, 2027**. For new projects or integrations, use [Service Accounts](/reference/service-accounts) instead. Existing API‑secret workflows will continue to work until retirement, but should be migrated when convenient. ![manageprojects 4 Image](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/manageprojects4.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=e75d5f363e47d2585f07565c141d2752) ## Reset Projects > [!NOTE] > > Only project owners and organization owners may reset projects. Learn more about [Roles and Permissions](/docs/orgs-and-projects/roles-and-permissions). You can reset the current project in Project Settings. When you reset the project, Mixpanel deactivates the project and all its data and settings, and then generates a new project. ![manageprojects 11 Image](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/manageprojects11.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=e7027ad4bf6a05dc538f65ec8947dec5) A warning indicates this reset deactivates the project and all its data and project settings, and then generates a new project. Mixpanel stores a backup of the deactivated project and will delete it based on the data retention policy. > [!NOTE] > > Resetting a project does not remove the billing tallies it accumulated during the current billing month. Usage already counted toward your billing month is retained. ![manageprojects 12 Image](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/manageprojects12.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=cb101960dee7c2a5f6d6d4e9e648623b) ## Delete Projects > [!NOTE] > > Only project owners and organization owners may delete projects. Learn more about [Roles and Permissions](/docs/orgs-and-projects/roles-and-permissions). > [!WARNING] > > Data will be retained for **60–90 days** before being permanently deleted and unrecoverable. The project will be immediately inaccessible via the Mixpanel interface and API. To delete a project: 1. In **Organization Settings**, click **Projects**. 2. Select the project you want to delete. 3. Above the **Project Details** section, click **Delete Project**. 4. Review the warning, then click **Delete Project** to confirm. ![manageprojects 5 Image](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/manageprojects5.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=934ae043c355a6b7ca93480627c7bc8b) Learn more about our [data retention policy](/docs/privacy/gdpr-compliance#data-retention-policy). ## Find Your Project Tokens Each Mixpanel account can contain multiple projects. Each project has its own unique routing number, which we call a project token. Whenever you want to send data to a specific project, you'll need to specify the project token so we know where to put the data. ### Locate Current Project Token Click the Settings gear in the lower left-hand corner of your Mixpanel project and select Project settings to see your Project Token under the Access Keys table. ![manageprojects 4 Image](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/manageprojects4.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=e75d5f363e47d2585f07565c141d2752) ### Locate Tokens for All Projects in Your Mixpanel Account To view the project tokens for all your projects, click the **Settings** gear icon and select **Personal Settings**. ![manageprojects 7 Image](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/manageprojects7.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=6f88639bb58bb86673fe074198d4ebcc) Then select the Projects tab. ![manageprojects 8 Image](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/manageprojects8.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=b75493e61cb45a7e55eadb6af1a9bdb2) #### Reset Project API Secret and API Key You can reset the API Secret and API Keys for any projects you own. To do so, go to **Settings** → **Profile** → **Projects** → **Your Projects**, and click **Reset** next to the desired project. #### Reset Project Token Project Token cannot be reset in a self-serve manner. If you need to reset your project token for any reason, please [reach out to our Support team](https://mixpanel.com/get-support). After rotating it, the original one becomes invalid, so you will need to replace it with the new one in your implementation's code. Otherwise, no new events will be sent to your Mixpanel project. ## Manage Timezones for Projects > [!NOTE] > > For projects created before January 1st, 2023, Mixpanel converts event timestamps to your project timezone before writing the event to your Mixpanel data stores, meaning that event timestamps are stored based on the project timezone setting at the time of ingestion. Mixpanel records all events in [Coordinated Universal Time (UTC)](https://www.worldtimeserver.com/learn/what-is-utc/) at intake. Changing the timezone for any project under Project Settings only affects the timezone in which Mixpanel outputs results. Mixpanel sets project time zones by city or region. If a city or region observes Daylight Saving Time, the ingestion offset adjusts appropriately. ### Changing your Timezone > [!NOTE] > > You must have an admin or owner project role to change your project timezone setting. Learn more about [Roles and Permissions](/docs/orgs-and-projects/roles-and-permissions). By default, Mixpanel sets your timezone to UTC. Only project owners and admins can change project settings. To change the project's timezone: 1. Navigate to **Settings** -> **Project Settings**. 2. In **Overview**, select the pencil icon in the **Timezone** field to display a list of timezones. 3. Select a timezone and click **Save**. > Note that changing the timezone will not affect any data; it only affects the timezone in which we output results. #### Sending Date Properties to Mixpanel [Date properties are one of the five data types](/docs/data-structure/property-reference/data-type#date) Mixpanel accepts. Mixpanel events should be ingested with timestamps set to Coordinated Universal Time (UTC). If you overwrite the default timestamp, import old data, or set a property that is in date format (e.g., Account Created Date), be sure to send the timestamp or date in UTC. For this type of property, Mixpanel recommends an ISO-formatted date string (YYYY-MM-DDTHH:mm:ss) to use in your Mixpanel reports. Below are some code examples from Mixpanel's client-side libraries that allow you to send a property to Mixpanel with a correctly formatted UTC timestamp. ```text theme={"system"} JavaScript: new Date().toISOString() mixpanel.track("Sign Up", {"Account Created Date": new Date().toISOString()}); iOS: [NSDate date] NSDate *today = [NSDate date]; [mixpanel.people set:@{@"Account Created Date": @today}]; Android: dateFormat.format(new Date()) final DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss", Locale.US); dateFormat.setTimeZone(TimeZone.getTimeZone("UTC")); JSONObject props = new JSONObject(); try { props.put("time-example", dateFormat.format(new Date())); } catch (Exception e) { } Mixpanel.track("Account Created Date", props); ``` #### Exporting Data from Mixpanel > [!NOTE] > > For projects created before 1 January 2023, the `from_date` and `to_date` params for the Export API are interpreted using your project's current timezone setting. When you’re exporting raw data from Mixpanel using the [Export API](/reference/raw-event-export), your request requires the date parameters `from_date` and `to_date` to determine which date range of data to return. Mixpanel's raw export API interprets the "from\_date" and "to\_date" parameters using UTC timezone. The `$time` property values from your raw event export are Unix timestamps, which represent the number of seconds that have elapsed since 00:00:00 on January 1, 1970. Note that [the timezone of the `$time` property in your exports depends on how your project records time at ingestion](/docs/orgs-and-projects/managing-projects#manage-timezones-for-projects). #### Importing Data into Mixpanel Always send imported data to Mixpanel in UTC to ensure it displays correctly in your project. Mixpanel stores your data in UTC, then uses your project timezone setting to output data in your selected timezone. For projects created before January 1st, 2023, your UTC timestamps are converted to the project's timezone before ingestion, meaning that your event data is stored in the project's timezone. ## Time Period Settings Time period settings control how Mixpanel groups data into weeks and quarters across reports in your project. They are configured at the project level and apply to every report. To configure these settings, navigate to **Settings** -> **Project Settings**. You can set: * **Start of week** — the day Mixpanel treats as the first day of the week (for example, changing it from Monday to Saturday). This affects weekly bucketing and any report that groups or rolls up data by week. * **Start of quarter** — the month Mixpanel treats as the first month of each quarter, for organizations whose fiscal calendar doesn't begin in January. > [!NOTE] > > These settings are respected by relative date range presets. For example, [Week to Date](/docs/reports#to-date) begins counting from your configured start of week. Viewing and editing time period settings is governed by the **Access Time Period Settings** permission. Editing requires a role with edit access (project Owners and Admins), while Analysts and Consumers have view-only access. Learn more about [Roles and Permissions](/docs/orgs-and-projects/roles-and-permissions). ## Transfer Project to Another Organization Organization owners and project owners in a project can transfer that project to another organization to which they have permission. When a user transfers a project to another organization, the project members and service accounts don't transfer with the project. As a result, project members will lose access to the project if they aren't members of the target organization, and service accounts will need to be recreated. To transfer a project to another organization: 1. Under **Project Settings**, click a project. 2. Click the **Transfer** button on the top right of the page. ![manageprojects 13 Image](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/manageprojects13.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=a3ebb8ea28970a09fc7353d1d09b3ab1) 3. The Transfer Project box appears. In the dropdown menu, select the organization where you want to transfer the project and click **Done**. You'll see a message that indicates the project has been transferred successfully. ![manageprojects 14 Image](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/manageprojects14.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=69b2c0f71ce4dd6073452c80c7236e50) > Note that project tallies will be transferred along with your project to the new Organization. ## Merge Mixpanel Projects If, for any reason, you need to combine two or more Mixpanel projects, it is possible to do so. Here are a few things to consider before proceeding with the merge to ensure you maintain data integrity: * If you're using the 'alias' method, bear in mind that aliases are project-specific. As such, before importing data into the new project from the old project, you'd need to recreate the aliases from your old project. Mixpanel cannot provide a historical table of your project’s aliases. * Merging projects involves exporting and importing data, so to make sure you only have to go through the process once, ensure you have stopped sending data to the old project(s) before beginning to export. ### How to Merge To merge projects: 1. Stop sending data to the old project(s). 2. Begin sending all data to the new project. 3. Once the old project has completely stopped receiving data, export that data via the [raw data export API](/reference/raw-event-export) and import the data into the new project via Mixpanel’s [import API](/reference/import-events). ### Additional Tips * When you export raw event data, the timestamps on those events will be in the timezone of your project. * Before importing into your new project, convert those timestamps to UTC so that they are correctly transformed to the timezone of the new project. * Read more about timezones and how Mixpanel handles time [here](/docs/orgs-and-projects/managing-projects#understanding-how-timezones-affect-data). # Organizations Source: https://docs.mixpanel.com/docs/orgs-and-projects/organizations An Organization is an entity that links your projects, users, and subscription plan ## Overview An Organization is an entity that links your projects, users, and subscription plan. ## Creating an Organization A user who signs up for a new Mixpanel account without being invited by an existing Mixpanel user will be prompted to create a new organization. This is the only way a new organization is created. [Contact the Support team](https://mixpanel.com/get-support) if you need to create a new organization as a member of an existing organization. ## Accessing your Organization's Settings To access your organization's different settings, click the gear icon located on the bottom-left side of the screen, then 'Settings', and then the 'Organization Settings' option. ## Organization Discoverability Organization Discoverability makes it seamless for new users with a shared work email domain to connect with teammates in an existing organization in Mixpanel, allowing them to access their team’s projects, data, and reports, instead of joining a new, empty org. This feature is accessible to new users who have verified their email, as well as existing organizations that are on an Enterprise plan and do not have SSO enabled. ![Organization Discoverability 1 Image](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/discoverabilityone.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=d850c595e48514c052ce150847b97ead) ### Setting Discoverability Only **organization owners** and **billing admins** can access Organization Discoverability by going to Organization Settings > Users & Teams > Organization Discoverability. ![Organization Discoverability 2 Image](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/discoverabilitytwo.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=7da01fd1355d7505b8154e6450968cf9) They can enable Organization Discoverability by first specifying the private (i.e., work) email domain(s) that should be granted access when a new user signs up for Mixpanel. Please note that public email domains, such as Gmail or Yahoo, cannot be used. The org owner or admin can then designate the level of discoverability of their organization: **open to join**, **subject to admin approval**, or **invite only**. **Open Organization:** An organization designated “open to join” is discoverable and joinable to any new users with an admin-specified email domain(s). **Admin Approval:** An organization designated as requiring “admin approval” is discoverable to any new user signing up with a specified email domain, but can only be joined upon request. Admins will receive an email notification to authorize access. **Invite Only:** An organization designated “invite only” is undiscoverable regardless of email domain. New users must be invited by the admin. ## Transferring ownership of an Organization > [!NOTE] > > To complete this process, you will need the "Owner" organization role. Learn more about [Roles and Permissions](/docs/orgs-and-projects/roles-and-permissions). > > If the only organization owner is no longer with your company and you'd like to become its new owner, please [contact the Support team](https://mixpanel.com/get-support). ### Internally To make an existing user the new owner of your organization, follow these steps: 1. Under "Organization Settings", click **Users & Teams** and you will land on the Users tab. 2. Find the user's account in the list and click their name. 3. Change their organization role to 'Owner', and click 'Save'. ### Externally > [!NOTE] > > If you're using a paid plan and would like to remove your credit card details from your account for security reasons, please [contact the Support team](https://mixpanel.com/get-support) for assistance. To make a new person the owner of your organization, follow these steps: 1. Under "Organization Settings", click **Users & Teams** and you will land on the Users tab. 2. Click **Invite Users**. The “Invite New Users” box appears. 3. Enter the email address of the person and select their **Organization Role** ("Owner"), **Projects** to add them to, and **Project Role** ("Owner"). 4. Click **Invite** to complete the process. 5. They will receive an email to create a user account and, afterwards, have full control of the organization. ## Leaving an Organization To leave an organization you're a part of: 1. Go to **Personal Settings** (from the left nav, select→ **Settings** → **Personal Settings**). 2. Open the **Organizations** tab. 3. Click the **Leave** button on the right side of the organization you want to be removed from. 4. Confirm the selection. If you leave an organization, your board and reports will continue being available to any other users that you previously gave view/edit permissions to. ## Deleting an Organization > [!NOTE] > > Only **Organization Owners** may delete an organization. Learn more about [Roles and Permissions](/docs/orgs-and-projects/roles-and-permissions). > [!WARNING] > > Deleting an organization will remove all existing projects and all data contained within them. **This action is irreversible.** To delete your organization: 1. Go to **Organization Settings** (from the left nav, select→ **Settings** → **Organization Settings**). 2. Open the **Overview** tab. 3. Click the **Delete Organization** button. 4. Confirm the deletion. Users will maintain access for **90 days** before the organization and all its data are permanently deleted. Learn more about [privacy and compliance](https://docs.mixpanel.com/docs/privacy). [Contact the Support team](https://mixpanel.com/get-support) if you have any questions about deleting your organization or its data. # Roles & Permissions Source: https://docs.mixpanel.com/docs/orgs-and-projects/roles-and-permissions Manage organization and project roles, invite users, and control what each account can access in Mixpanel ## Overview Your team members access your organization and its projects using individual user accounts, which is what you use to sign into Mixpanel. An account must be part of an organization, but it does not need to be part of all projects in the organization. Each account will have a single organization role per organization and one or more project roles for each project it is a part of. These roles can further limit what an account will have access to in Mixpanel. > [!NOTE] > > To invite and manage users in your organization and project, you will need an admin or owner organization role. ### Invite Users You can invite users to an organization or to a project with specific role permissions. See [Permissions](/docs/orgs-and-projects/roles-and-permissions#permissions) to learn more about organization roles and project roles. Mixpanel enforces a domain-based rate limit of about 10 invite emails per hour per email domain for organization/project user invitations. #### Invite Users to an Organization To invite a user to an organization: 1. Under "Organization Settings", click **Users & Teams** and you will land on the Users tab. 2. Click **Invite Users**. The “Invite New Users” box appears. 3. Enter the email address of the user and select their **Organization Role**, **Projects** to add them to, and **Project Role**. 4. Click **Add another user** to invite additional users. 5. Click **Invite** to complete the process. ![image](https://mintcdn.com/mixpanel-edb78807/zIwFvUafFSjAERSV/images/Add_Org_Users.png?fit=max\&auto=format\&n=zIwFvUafFSjAERSV\&q=85\&s=60fb7b75d2c8b9c4db0b625576b05232) You may also bulk invite users by selecting **Bulk invite** and uploading a CSV file following the format of the provided **CSV template** linked in the UI. ![image](https://mintcdn.com/mixpanel-edb78807/t0w2ecW2bO4mKfCm/images/Bulk_Invite_Org_Users.png?fit=max\&auto=format\&n=t0w2ecW2bO4mKfCm\&q=85\&s=3701052e2c38bc52218629ccb9e89447) > [!NOTE] > > To invite a user to a project, you need at least an admin or owner role for that project. #### Invite Users to a Project To invite a user to a project: 1. Under "Project Settings", click **Project Users**. 2. Click **Invite Users**. 3. Click the **User** dropdown menu to select existing users in your organization or type an email to invite a new user. 4. Assign a role in the **Role** dropdown menu. 5. Click **Add another user** to invite additional users. 6. Click **Invite** to complete the process. ![image](https://mintcdn.com/mixpanel-edb78807/zIwFvUafFSjAERSV/images/Add_Proj_Users.png?fit=max\&auto=format\&n=zIwFvUafFSjAERSV\&q=85\&s=643c240ce1bd7879a7ddcc368199d6b1) If there are projects that you wish for everyone in your organization to have some baseline access, you can choose **All Users in the Organization** from the **User** dropdown menu and then select a default role to provide all current and future users in your organization with this default access. ![image](https://mintcdn.com/mixpanel-edb78807/zIwFvUafFSjAERSV/images/Add_All_Users_In_Org.png?fit=max\&auto=format\&n=zIwFvUafFSjAERSV\&q=85\&s=26b7710a47737e9a22b2729f80f74795) #### Resend an invite To resend an invite to a user: 1. Under "Organization Settings", click **Users & Teams**, and then the **Invited Users** tab. 2. After locating the user's email address, click the 'Resend Invite' button located on the right side of the screen. 3. A pop-up window appears, giving you the option to either automatically resend the invite email by clicking the "Resend" button or copy a link to manually send it to the user, in case they have problems receiving our emails. ### Change a User's Role Owners and Admins can update the role of an existing user at any time. You can only assign a role at or below your own permission level. #### Change an Organization Role To change a user's organization role: 1. Under "Organization Settings", click **Users & Teams** and you will land on the Users tab. 2. Find the user's account in the list and click their name. 3. Next to **Organization Role**, click the edit (pencil) icon, select the new role from the dropdown, and click **Save**. > [!NOTE] > > Only an Owner can assign the Owner role; Admins can assign roles up to Admin. See [Organization Roles](#organization-roles) for what each role can do. #### Change a Project Role To change a user's project role: 1. Under "Project Settings", click **Project Users** to open the **Current Users** tab. 2. Find the user in the list and click the **Role** dropdown in their row. 3. Select the new role from the dropdown. > [!NOTE] > > See [Project Roles](#project-roles) for what each role can do. ### Remove Users You can remove users from an organization or project. You can only remove users with a role permission below your own. #### Remove User from an Organization 1. Under "Organization Settings", click **Users & Teams**. 2. Find the user(s) to remove and click the checkbox next to their name. 3. Click the **Delete** button that appears at the top of the table. > [!NOTE] > > Deleting a user from an organization will remove them from all projects and teams within the organization and is non-reversible. ![image](https://mintcdn.com/mixpanel-edb78807/t0w2ecW2bO4mKfCm/images/Del_Org_Users.png?fit=max\&auto=format\&n=t0w2ecW2bO4mKfCm\&q=85\&s=b4ed279a41c9a9f9b241e5298e2e5d77) #### Remove User from a Project To remove a user from a project: 1. Under "Project Settings", click **Project Users**. 2. Find the user(s) to remove and click the checkbox next to their name. 3. Click the **Delete** button that appears at the top of the table. A user can belong to multiple projects. Removing a user from one project does not affect their access to other projects within the organization. Any assets the user created (such as boards or reports) remain available in the project and are not automatically removed when the user is removed. > [!NOTE] > > Only users with Organization Owner or Organization Admin roles can remove users who have access to a project granted through a [Team](/docs/orgs-and-projects/roles-and-permissions#teams). ![image](https://mintcdn.com/mixpanel-edb78807/t0w2ecW2bO4mKfCm/images/Del_Proj_Users.png?fit=max\&auto=format\&n=t0w2ecW2bO4mKfCm\&q=85\&s=12a4f7d9ceeebbac9e0867e2451eec3b) ## Permissions In Mixpanel, users have roles in an organization and in a project. The types of organization and project roles a user has should be based on the required permissions users need for specific levels. ### Organization Roles > [!NOTE] > > Users on an Enterprise or Growth plan have access to four roles: Owner, Admin, Billing Admin, and Member. > > Users on a Free plan have access to two roles: Owner and Billing Admin. > > See our [pricing page](https://mixpanel.com/pricing/) for more details. The table below breaks down the roles and permissions of each role: | **Organization Role** | **Owner** | **Admin** | **Billing Admin** | **Member** | | - | - | - | - | - | | Manage Billing Plans | ✅ | ❌ | ✅ | ❌ | | Create Projects | ✅ | ✅ | ❌ | ❌ | | Delete Projects | ✅ | ❌ | ❌ | ❌ | | Create/Delete Teams | ✅ | ✅ | ❌ | ❌ | | Transfer Projects Between Orgs | ✅ | ❌ | ❌ | ❌ | | Add/Invite/Remove Users to Org/Projects | ✅ | ✅ | ❌ | ❌ | | Add/Modify/Remove Service Accounts to Org/Projects | ✅ | ✅ | ❌ | ❌ | | Modify Roles - Org Level | ✅ | ✅ | ❌ | ❌ | | Modify Roles - Make Self Owner | ✅ | ❌ | ❌ | ❌ | | Modify Roles - Project/Team Level | ✅ | ✅ | ❌ | ❌ | | Modify 2FA and SSO | ✅ | ✅ | ❌ | ❌ | | Request Org Deletion | ✅ | ❌ | ❌ | ❌ | **Owner** > [!NOTE] > > It is recommended to have at least 2 Organization Owners at all times, in case an owner loses access to their account or is no longer working with the company. > > If all existing owners are no longer working with the company and you need to assign a new owner, please [reach out to the support team](https://mixpanel.com/get-support). Organization Owners have administrative permissions for the organization and all the projects in the organization. Multiple users can be Owners. However, each organization must have at least one Owner. **Admin** Organization Admins have permissions to manage projects, members, and roles in the organization. Organization Admins have the same permissions as Organization Owners **except** for the following: * Request Organization deletions * Delete Projects * Transfer Projects between Organizations * Manage Billing Plans In addition, an Organization Admin would not be able to assign any user to anything higher than Admin (i.e., Organization Owner). **Billing Admin** Organization Billing Admins can only manage billing plans for your company. The Billing Admin does not have to belong to a team or project. A user can be a Billing Admin and also a member of a Project or a Team simultaneously. Billing admins can view organization settings solely to: * Manage Billing Plans * Update Billing Information * View Receipts * Submit a Downgrade Request **Member** Organization Members have no permissions to control or manage organization settings. In order for a user to have access to project(s) and/or team(s), they must first be added to the organization as a Member. ### Project Roles Users in a Project can be assigned to 4 roles: Owner, Admin, Analyst, and Consumer. The table below is an overview of the permissions per role on a project level. | **Project Roles** | **Owner** | **Admin** | **Analyst** | **Consumer** | | - | - | - | - | - | | Transfer/Reset/Delete Projects | ✅ | ❌ | ❌ | ❌ | | Edit Project Timezones | ✅ | ✅ | ❌ | ❌ | | Edit Project Name | ✅ | ✅ | ❌ | ❌ | | View Access Keys | ✅ | ✅ | ❌ | ❌ | | View Usage Statistics | ✅ | ✅ | ❌ | ❌ | | Access Time Period Settings | Edit | Edit | View Only | View Only | | Invite Project Users | ✅ | ✅ | ❌ | ❌ | | Change Project Users Role | ✅ | ✅ | ❌ | ❌ | | Approve Access Requests | ✅ | ✅ | ❌ | ❌ | | Create Service Accounts | ✅ | ✅ | ❌ | ❌ | The table below is an overview of the permissions per role for reports and other features. | **Project Roles** | **Owner** | **Admin** | **Analyst** | **Consumer** | | - | - | - | - | - | | Create/View Insights Reports | ✅ | ✅ | ✅ | ✅ | | Create/View Flows Reports | ✅ | ✅ | ✅ | ✅ | | Create/View Funnels Reports | ✅ | ✅ | ✅ | ✅ | | Create/View Retention Reports | ✅ | ✅ | ✅ | ✅ | | Download Reports | ✅ | ✅ | ✅ | ❌ | | Create Custom Alerts | ✅ | ✅ | ✅ | ❌ | | Edit Custom Alerts | ✅ | ❌ | ❌ | ❌ | | View Users Report | ✅ | ✅ | ✅ | ✅ | | Export Users Report | ✅ | ✅ | ✅ | ❌ | | Create/Edit Cohorts | ✅ | ✅ | ✅ | ✅ | | Export Cohorts | ✅ | ✅ | ✅ | ❌ | | Create/Edit User Profiles | ✅ | ✅ | ❌ | ❌ | | Delete User Profiles | ✅ | ✅ | ❌ | ❌ | | Create/View Boards | ✅ | ✅ | ✅ | ✅ | | Create Subscriptions for Boards | ✅ | ✅ | ✅ | ❌ | | Edit Subscriptions for Boards | ✅ | Only Creator | Only Creator | Only Creator | | Create/Edit Custom Events | ✅ | ✅ | ✅ | ✅ Only for self | | Create/Edit Saved Behaviors | ✅ | ✅ | ✅ | ✅ Only for self | | Create/Edit Saved Formulas | ✅ | ✅ | ✅ | ✅ Only for self | | Create/Edit Custom Properties | ✅ | ✅ | ✅ | ✅ Only for self | | Create/Edit Borrowed Properties | ✅ | ✅ | ❌ | ❌ | | Upload a Lookup Table | ✅ | ✅ | ✅ | ✅ | | Map Property to Lookup Table in Lexicon | ✅ | ✅ | ❌ | ❌ | | Hide Data in Lexicon | ✅ | ✅ | ❌ | ❌ | | Edit Descriptions in Lexicon | ✅ | ✅ | ❌ | ❌ | | Add Tags in Lexicon | ✅ | ✅ | ❌ | ❌ | | Merge Data in Lexicon | ✅ | ❌ | ❌ | ❌ | | Drop Data in Lexicon | ✅ | ❌ | ❌ | ❌ | | Download CSV in Lexicon | ✅ | ✅ | ✅ | ❌ | **Owner** When a user creates a project, they own and have complete control over it. They have all permissions at the project level and can provision project ownership to other project users. Organization Owners, by default, have administrative permissions to assume an owner role in a project. **Admin** Project Admins have the same set of permissions as project owners. However, they cannot delete or reset the project or manage its security. In addition, a Project Admin would not be able to assign any user to anything higher than Admin (i.e., Project Owner). Organization Admins, by default, have administrative permissions to assume an admin role in a project. **Analyst** Project Analysts can create and save Mixpanel reports and Boards. They can also share their saved reports and Boards, along with reports and Boards in which they have editor permissions. They, however, do not have permissions to manage project user roles. **Consumer** Project Consumers can: * Add saved reports to their own Boards. * Duplicate another user's Board and edit it. * Edit reports and Boards on which they have been added as an editor. However, they cannot change the sharing settings of these reports and Boards. * Cannot create public Boards. Boards created by Project Consumers will not be surfaced to other users in Mixpanel. Project Consumers also cannot manage project user roles. #### Multiple Roles at Once It is possible to have multiple or conflicting roles on a project via teams or organization roles. Within Mixpanel, all roles are additive and strictly give permissions to an action. They do not remove any abilities. For example: 1. A project Owner who is an organization Admin will have both project Owner and project Admin permissions in the project. For all intents and purposes, this is the same as having just the project Owner role. 2. If a user is assigned both the Consumer role individually and the Analyst role via a team. The user would be able to do anything a Consumer can do and anything an Analyst can do. #### Grant Types A user's project role(s) can be granted in different ways: * Organization Role - Project Owner or Admin role was granted because the user is an Organization Owner or Admin * Team Grant (Team Name) - user is part of the indicated team where the project role was granted * Individual Grant - role was explicitly granted to the user at the project level * All Users Grant - current project has enabled "All Users in the Organization" to have the default indicated role ![image](https://mintcdn.com/mixpanel-edb78807/t0w2ecW2bO4mKfCm/images/Grant_Types.png?fit=max\&auto=format\&n=t0w2ecW2bO4mKfCm\&q=85\&s=ea7c0b04dc135315ead47bcf517b2871) ## Teams Mixpanel enables you to create and delete Teams within an organization. Teams make it easier to manage roles and permissions for a group of users. Users who are members of a Team will be provisioned with the same role and permissions that are assigned to the team. ![image](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Teams_List.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=3767833a488d11ed8b4b70e524b30684) ### Creating Teams To create teams in Mixpanel: 1. Under "Organization Settings", click **Users & Teams** and you will land on the Users tab. 2. Click **Teams** to see a list of current teams in your organization. 3. Click **Create Team** and provide a team name. 4. Click **Done** to complete the process and see the team's permission and membership. ### Adding Users to Teams All users added to a team will receive the same role and permissions that are assigned to the team. To add users to a team: 1. Under "Organization Settings", click **Users & Teams** and you will land on the Users tab. 2. Select the **Teams** tab and select the team to add users to. 3. Click **Add Users** to select users to add to the team. 4. Click **Done** to complete the process. [Service Accounts](/reference/service-accounts) can also be added to teams, similar to how you would add a user to teams. ### Managing Team Permission ![image](https://mintcdn.com/mixpanel-edb78807/YwnZf1T9eqEqTP5R/images/Manage_Team.png?fit=max\&auto=format\&n=YwnZf1T9eqEqTP5R\&q=85\&s=4372c794ac6186f8a8f68ab52412b28e) #### Adding Projects to Teams Adding projects to a team gives all individuals in the team access to that project with the specified project role. To add projects to a team: 1. Under "Organization Settings", click **Users & Teams** and you will land on the Users tab. 2. Select the **Teams** tab and select the team to manage. 3. Click **Add Projects** and select the project(s) and appropriate project role. 4. Click **Add** to complete the process. 5. You can also grant [Classified Data](/docs/data-governance/data-views-and-classification#data-classification) access by ticking the checkbox under **Classified Data** column. #### Adding Data Views to Teams Adding project [Data Views](/docs/data-governance/data-views-and-classification#data-views-overview) to a team will filter data access to all individuals within the team. Click [here](/docs/data-governance/data-views-and-classification#add-users-or-teams) for instructions on how to add a team to a Data View under **Project Settings --> Data Views**. ### Deleting Teams Deleting a team will revoke all access permissions that were granted to users and service accounts as part of their team assignments. Permissions given through other [grant types](/docs/orgs-and-projects/roles-and-permissions#grant-types) will be retained. To delete a team in Mixpanel: 1. Under "Organization Settings", click **Users & Teams** and you will land on the Users tab. 2. Click **Teams** to see a list of current teams in your organization. 3. Find the team(s) to remove and click the checkbox next to the team name. 4. Click the **Delete** button that appears at the top of the table. ![image](https://mintcdn.com/mixpanel-edb78807/t0w2ecW2bO4mKfCm/images/Del_Team.png?fit=max\&auto=format\&n=t0w2ecW2bO4mKfCm\&q=85\&s=0c82710500ea6d966f8e72c695791e99) ## Custom Roles > [!NOTE] > > Custom Roles is available to organizations on **Enterprise** plans. See our [pricing page](https://mixpanel.com/pricing/) for more details. Custom roles let you create specialized access profiles beyond the four default project roles (Owner, Admin, Analyst, Consumer). With custom roles, you can define granular permissions tailored to specific job functions or workflows. Each project can have up to **5 custom roles**. Only project **Owners** and **Admins** can create and manage custom roles. ### Creating a Custom Role To create a custom role: 1. Under "Project Settings", click **Project Users**. 2. Select the **Project Roles** tab to see a list of current roles in the project. 3. Click **Create Custom Role**. 4. Enter a **Name** and optional **Description** for the role. Names must be unique within the project. 5. Optionally, select an existing role as a template to start with its permissions pre-selected. 6. Configure permissions by toggling individual permissions on or off across the available categories (see [Permission Categories](#permission-categories) below). 7. Click **Save** to create the role. ![create\_custom\_role](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/create_custom_role.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=e88566a3421bff0c2452bd780f7fd60d) Once created, the custom role will appear alongside default roles when assigning project roles to users, teams, and service accounts. ### Permission Categories When creating or editing a custom role, you can configure permissions across six categories: | **Category** | **Configurable Permissions** | | - | - | | **Analysis** | Save Reports and Boards, Create Custom Data Definitions (cohorts, metrics, custom events and properties), Manage All Analysis and Custom Data Definitions | | **Feature Flags and Experimentation** | Experimentation Creation, Feature Flag Creation, Full Feature Flag Access | | **Data Management** | Edit Metadata, Set Event and Property Visibility, Data Verification, Manage Schemas, Manage Lookup Tables, Mark Data Classified, Edit Profiles, Data Deletion Dropping and Merging, Data Settings Access | | **Data Access, Exports, and Alerts** | Public Boards, Classified Data Access, Export Lexicon, Export Reports as CSV, Export Users as CSV, Export Events as CSV, Create Alerts, Create Board Subscriptions, Manage All Alerts | | **Data Sources and Definitions** | Create and Manage Cohort Syncs, Create and Manage Pipelines, Create and Manage Data Warehouses | | **Settings and Notifications** | View and Edit Project Settings | > [!NOTE] > > All custom roles automatically include base permissions: viewing reports, editing visibility of entities you created, and sharing entities you created. These permissions cannot be removed. ### Managing Custom Roles To manage a custom role, navigate to **Project Settings** → **Project Users** → **Project Roles** tab. Click the overflow menu (three dots) on any custom role card to access the following options. #### Editing a Custom Role Select **Edit** to modify the role name, description, or permissions, then click **Save**. Changes take effect immediately for all users assigned to that role. #### Copying a Custom Role to Another Project Select **Copy to Another Project** to copy a custom role from one project to another within the same organization. Choose the target project, then modify the name, description, or permissions as needed before saving. > [!NOTE] > > Cloning a role to another project requires the **manage custom roles** permission on the target project. Any permissions gated by features that are not enabled on the target project will be automatically excluded from the cloned role. #### Deleting a Custom Role Select **Delete** and confirm the deletion. When a custom role is deleted, all users, service accounts, and teams currently assigned to that role are automatically reassigned to the **Consumer** role — the least-privileged default role. Review the list of affected users before confirming deletion, and reassign them to an appropriate role afterward. > [!NOTE] > > When a custom role is deleted, all users currently assigned to that role will be automatically reassigned to the **Consumer** role. Review the list of affected users before confirming deletion. ### Assigning Custom Roles to Service Accounts Service accounts can be assigned custom roles the same way project users can. To assign a custom role to a service account, navigate to **Project Settings** → **Service Accounts** and select the custom role when creating or editing a service account. ### Assigning Custom Roles to Organization Teams Custom roles can be applied to organization-level teams for bulk role assignment. When a team is given access to a project that has custom roles, those custom roles appear in the role dropdown alongside the default roles. To assign a custom role to a team: 1. Navigate to **Organization Settings** → **Users & Teams** → **Teams**. 2. Select the team you want to configure. 3. Under **Projects**, add the project or find an existing project assignment. 4. Click the role dropdown for that project and select the custom role. All members of the team inherit the assigned role for that project. ### Changes to Classified Data Access (April 2026) Previously, classified data access was managed through a separate per-user toggle on the Project Users page. Admins could individually grant or revoke a user's ability to view sensitive properties, independent of their project role. With Custom Roles, classified data access is now a permission called **Classified Data Access** under the **Data Access, Exports, and Alerts** category. This gives you a single place to define what a role can and cannot do, rather than managing access through a separate toggle. No default role — including Owner and Admin — has the ability to view classified data by default. This is intentional: access to classified data should always be an explicit decision, not an inherited side effect of a role. Owners and Admins retain the ability to control who gets classified data access, but must be explicitly granted viewing access themselves through a custom role. Note the distinction between two related permissions: * **Mark Classified Data** (under Data Management) — Controls which properties are classified as sensitive. Does not grant the ability to view that data. * **Classified Data Access** (under Data Access, Exports, and Alerts) — Grants the ability to view properties that have been marked sensitive. These are intentionally separate so that someone can classify data without being able to see it. ### FAQs #### Can I modify the default project roles? No. Default roles (Owner, Admin, Analyst, Consumer) cannot be edited. Create a custom role instead — optionally starting from a default role as a template. #### Why can't Owners or Admins see classified data by default? By design, no role can view classified data by default — including Owner and Admin. Owners and Admins can control who gets access, but cannot view classified data themselves unless explicitly granted via a custom role. This ensures classified data access is always intentional. #### I'm an Owner and can still see classified data. Why? The Owner role does not grant viewing access, but you may have been granted it another way. Check the following: * **Custom role:** Your role in the project may be a custom role with the **Classified Data Access** permission enabled under **Data Access, Exports, and Alerts**. * **Team access:** You may belong to a team whose project assignment has the **Classified Data** checkbox ticked. See [Adding Projects to Teams](#adding-projects-to-teams). Marking a property as classified with the **Mark Classified Data** permission does not remove viewing access that you were already granted through one of these paths. #### Can Custom Roles change how Mixpanel looks for a user? No. Custom Roles control what actions a user can perform, not the UI. Navigation and layout do not change based on role. #### Does this include resource-level access control? No. Custom Roles operate at the project level. Per-board, per-report, or per-cohort permissions are not supported. #### Do service accounts support custom roles? Yes. Service accounts can be assigned custom roles the same way project users can. # Quickstart Source: https://docs.mixpanel.com/docs/overview Get up and running with Mixpanel quickly > [card] [Install Mixpanel](/docs/quickstart/install-mixpanel) > [card] [Identify Users](/docs/quickstart/identify-users) > [card] [Capture Events](/docs/quickstart/capture-events/track-events) ### Install Mixpanel with your coding agent The Mixpanel Implementation Skill guides your AI coding agent — Claude Code, Cursor, ChatGPT, or any other assistant — through setting up Mixpanel in your codebase. The skill handles SDK selection, identity management, event tracking, and compliance gates through a guided conversation, with paths ranging from a one-session Quick Start to a full production-ready rollout. [Get Started with AI](/docs/install-with-ai) # Capture Events Source: https://docs.mixpanel.com/docs/overview/capture-events Choose how to capture events in Mixpanel, either with autocapture or manually tracked events > [card] [Autocapture](/docs/quickstart/capture-events/autocapture) > [card] [Track Events](/docs/quickstart/capture-events/track-events) # Use Autocapture Source: https://docs.mixpanel.com/docs/overview/capture-events/autocapture Enable autocapture in the JavaScript SDK to automatically collect events, with custom configs to tune what gets captured Starting with SDK version 2.60.0, the Javascript SDK can autocapture events when you enable it. To do so, enable the autocapture configuration: ```javascript theme={"system"} // create an instance of the Mixpanel object mixpanel.init('YOUR_PROJECT_TOKEN', { autocapture: true, // enable autocapture }); ``` > [!WARNING] > > **EU and India data residency:** If your project uses EU or India data residency, you must explicitly set the API host in your init code: add `api_host: 'https://api-eu.mixpanel.com'` (EU) or `api_host: 'https://api-in.mixpanel.com'` (India) to `mixpanel.init()`. Otherwise, your data, including autocaptured events, will be dropped. If you send data through a proxy or custom domain, point it at your region's host instead and keep the proxy URL in your init code. See [EU Data Residency](/docs/tracking-methods/sdks/javascript#eu-data-residency) and [India Data Residency](/docs/tracking-methods/sdks/javascript#india-data-residency). If you'd like to change the default Autocapture settings, you can use custom configs. These are the default configs: ```javascript theme={"system"} mixpanel.init('YOUR_PROJECT_TOKEN', { autocapture: { pageview: "full-url", click: true, input: true, rage_click: true, dead_click: true, scroll: true, submit: true, capture_text_content: false, }, }); ``` [You can read more about custom configuration of Autocapture here](/docs/tracking-methods/sdks/javascript). # Tracking Events Source: https://docs.mixpanel.com/docs/overview/capture-events/track-events Use the track method to send events and understand how users engage with your product ## Overview This step introduces the `track` method, which allows you to see how your users are using your product. Use the track method to track events on behalf of your users. Add this code snippet to basic events like "Sign Up" and any additional events that may track the core features of your product. ## Code Replace `Sign Up` with a unique identifier for the event. Passing additional information is possible using the properties object. > [tab] Javascript > > ```js Javascript theme={"system"} > mixpanel.track('Sign Up', { > 'Signup Type': 'Referral' > }) > ``` > > 🎉 Congratulations, you've tracked your first event! You can see it in Mixpanel via the [Events page](https://mixpanel.com/report/events). > > **More resources:** \_ Video: [Debug Common Issues When Installing Mixpanel on Web](https://www.loom.com/share/fbba03274dc441b49b578e8a734b1d99). \_ Docs: [Read the Full Javascript SDK Docs](/docs/tracking-methods/sdks/javascript/) \* Github: [Browse the Open Source SDKs](https://github.com/mixpanel) > [tab] Python > > ```python Python theme={"system"} > # Note: you must supply the USER_ID > mp.track('USER_ID', 'Sign Up', { > 'Signup Type': 'Referral' > }) > ``` > > 🎉 Congratulations, you've tracked your first event! You can see it in Mixpanel via the [Events page](https://mixpanel.com/report/events). > > **More resources:** \_ Docs: [Read the Python SDK Doc](/docs/tracking-methods/sdks/python/) \_ Github: [Browse the Open Source SDKs](https://github.com/mixpanel) > [tab] PHP > > ```shell php theme={"system"} > $mp->track("button clicked", array("label" => "sign-up")); > ``` > > 🎉 Congratulations, you've tracked your first event! You can see it in Mixpanel via the [Events page](https://mixpanel.com/report/events). > > **More resources:** \_ Docs: [Read the Python SDK Doc](/docs/tracking-methods/sdks/php/) \_ Github: [Browse the Open Source SDKs](https://github.com/mixpanel) > [tab] Node > > ```js Node.js theme={"system"} > // Note: you must supply the USER_ID > mixpanel.track("Sign Up", { > distinct_id: "USER_ID", > "Signup Type": "Referral", > }); > ``` > > 🎉 Congratulations, you've tracked your first event! You can see it in Mixpanel via the [Events page](https://mixpanel.com/report/events). > > **More resources:** \_ Docs: [Read the Node.js SDK Doc](/docs/tracking-methods/sdks/nodejs/) \_ Github: [Browse the Open Source SDKs](https://github.com/mixpanel) > [tab] Go > > ```go Go theme={"system"} > exampleEvent = mp.NewEvent("Sign Up", "USER_ID", map[string]any{ > "Signup Type": "Referral", > }) > > err := mp.Track(ctx, > []\*mp.PeopleProperties{ > exampleUser, > }, > ) > ``` > > 🎉 Congratulations, you've tracked your first event! You can see it in Mixpanel via the [Events page](https://mixpanel.com/report/events). > > **More resources:** > > * Docs: [Read the Go SDK Doc](/docs/tracking-methods/sdks/go/) > * Github: [Browse the Open Source SDKs](https://github.com/mixpanel) > [tab] Ruby > > ```ruby Ruby theme={"system"} > # Note: you must supply the USER_ID > mp.track('USER_ID', 'Sign Up', { > 'Signup Type' => 'Referral' > }) > ``` > > 🎉 Congratulations, you've tracked your first event! You can see it in Mixpanel via the [Events page](https://mixpanel.com/report/events). > > **More resources:** \_ Docs: [Read the Ruby SDK Doc](/docs/tracking-methods/sdks/ruby/) \_ Github: [Browse the Open Source SDKs](https://github.com/mixpanel) > [tab] Java > > ```java Java theme={"system"} > import com.mixpanel.mixpanelapi.ClientDelivery; > > // You can send properties along with events > JSONObject props = new JSONObject(); > props.put("Signup Type", "Referral"); > > // Create an event > JSONObject sentEvent = messageBuilder.event(userId, "Sign Up", props); > > ClientDelivery delivery = new ClientDelivery(); > delivery.addMessage(sentEvent); > > // Send the update to mixpanel > MixpanelAPI mixpanel = new MixpanelAPI(); > mixpanel.deliver(delivery); > ``` > > 🎉 Congratulations, you've tracked your first event! You can see it in Mixpanel via the [Events page](https://mixpanel.com/report/events). > > **More resources:** > > * Docs: [Read the Java SDK Doc](/docs/tracking-methods/sdks/java/) > * Github: [Browse the Open Source SDKs](https://github.com/mixpanel) > [tab] React Native > > ```javascript theme={"system"} > mixpanel.track("Sign Up", { > "Signup Type": "Referral" > }) > ``` > > 🎉 Congratulations, you've tracked your first event! You can see it in Mixpanel via the [Events](https://mixpanel.com/report/events) page. > > **More resources:** \_ Docs: [Read the React Native SDK Doc](/docs/tracking-methods/sdks/react-native/) \_ Github: [Browse the Open Source SDKs](https://github.com/mixpanel) > [tab] Flutter > > ```java theme={"system"} > mixpanel.track('Sign Up', { > 'Signup Type': 'Referral' > }); > ``` > > 🎉 Congratulations, you've tracked your first event! You can see it in Mixpanel via the [Events](https://mixpanel.com/report/events) page. > > **More resources:** > > * Docs: [Read the Flutter SDK Docs](/docs/tracking-methods/sdks/flutter/) > * Github: [Browse the Open Source SDKs](https://github.com/mixpanel) > [tab] iOS (Objective-C) > > ```objc theme={"system"} > [mixpanel track:@"Signed Up" properties: > @{ @"Signup Type": @"Referral" } > ]; > ``` > > 🎉 Congratulations, you've tracked your first event! You can see it in Mixpanel via the [Events](https://mixpanel.com/report/events) page. > > **More resources:** > > * Docs: [Read the iOS (Objective-C) SDK Doc](/docs/tracking-methods/sdks/ios/) > * Github: [Browse the Open Source SDKs](https://github.com/mixpanel) > [tab] iOS (Swift) > > ```swift theme={"system"} > Mixpanel.mainInstance().track(event:"Sign Up", properties: [ > "Signup Type": "Referral", > ]) > ``` > > 🎉 Congratulations, you've tracked your first event! You can see it in Mixpanel via the [Events](https://mixpanel.com/report/events) page. > > **More resources:** \_ Docs: [Read the iOS (Swift) SDK Doc](/docs/tracking-methods/sdks/swift/) \_ Github: [Browse the Open Source SDKs](https://github.com/mixpanel) > [tab] Android > > ```java theme={"system"} > JSONObject props = new JSONObject(); > props.put("Signup Type", "Referral"); > mp.track("Signed Up", props); > ``` > > 🎉 Congratulations, you've tracked your first event! You can see it in Mixpanel via the [Events](https://mixpanel.com/report/events) page. > > **More resources:** \_ Docs: [Read the Android SDK Doc](/docs/tracking-methods/sdks/android/) \_ Github: [Browse the Open Source SDKs](https://github.com/mixpanel) > [tab] Unity > > ```csharp theme={"system"} > var props = new Value(); > props["Signup Type"] = "Referral"; > Mixpanel.Track('Sign up', props); > ``` > > 🎉 Congratulations, you've tracked your first event! You can see it in Mixpanel via the [Events](https://mixpanel.com/report/events) page. > > **More resources:** \_ Docs: [Read the Unity SDK Doc](/docs/tracking-methods/sdks/unity/) \_ Github: [Browse the Open Source SDKs](https://github.com/mixpanel) > [tab] HTTP API > > If you don't see an SDK or an integration in your language, you can send events to our API directly. > > Here's a sample script. Replace `YOUR_TOKEN` with your project token. You can find your token [here](https://mixpanel.com/settings/project). > > ```python test.py theme={"system"} > # Fill this out > import json > import time > import requests > > events = [ > {"event": "my_test_event", "properties": {"time": int(time.time()), "distinct_id": "test_user_1", "$insert_id": "04ce0cf4-a633-4371-b665-9b45317b4976", "city": "San Francisco"}}, > {"event": "another_event", "properties": {"time": int(time.time()), "distinct_id": "test_user_2", "$insert_id": "3b033b9a-6bc9-4b70-90c3-a53e11f6896e", "city": "Seattle"}} > ] > resp = requests.post( > "https://api.mixpanel.com/import", > params={"strict": "1"}, > auth=("YOUR_TOKEN", ""), > headers={"Content-Type": "application/json"}, > data=json.dumps(events) > ) > > print(resp.json()) > ``` > > 🎉 Congratulations, you've tracked your first event! You can see it in Mixpanel via the [Events](https://mixpanel.com/report/events) page. > > See our [API reference](/reference/import-events) for more details. > > **Best Practices for Scale** > > You can use this API at scale, for example to backfill historical data into Mixpanel or as part of a high-throughput streaming pipeline. We provide walkthroughs for [Amazon S3](/docs/data-pipelines/old-pipelines/integrations/schematized-aws-pipeline) and [Google Cloud Storage](/docs/data-pipelines/old-pipelines/integrations/schematized-gcs-pipeline) to provide a more production-grade example of how to use this API at scale. > > Here are some other best practices: > > * Be explicit about what is tracked to Mixpanel rather than implicitly tracking everything, both for performance and security reasons. Avoid sending user generated content, high-cardinality IDs, or large semi-structured objects. > * Import a more recent time window first (last 7 days or last 30 days) before backfilling historical data. Mixpanel's autocomplete menus populate events and properties based on the last 30 days of data, so this is the best way to test that data looks as expected. > * Leverage batching and compression. Each request to /import can send 2000 events to Mixpanel and can be sent compressed using gzip. The sample code in this guide does both. > * When using Cloud Storage, partition files into \~200MB of JSON (or \~200K records) each. Each file is processed in parallel by Cloud Functions/Lambda and must be ingested by the function within the configured timeout. > * Log any 400 errors returned by the API. These are non-retryable and indicate something malformed with the data. This should be extremely unlikely once the API is up and running. If a batch contains a mix of valid and invalid data, we will ingest the valid data. > > **Limits** > > Our Import API is built to ingest billions of events per day across our customers. That said, we do rate limit at very high scale to ensure quality of service and real-time ingestion. Please refer to our [Import API docs](/reference/import-events) for details. > > All of our sample code transparently retries and backoff from rate limit exceptions. If you require a higher-limit for a 1-time backfill, please reach out to us at [apis@mixpanel.com](mailto:apis@mixpanel.com). *** ## You're Ready to Start Using Mixpanel It's time to create your first [report](/docs/reports) or use one of our [many templates](/docs/boards/templates). [Open Mixpanel](https://mixpanel.com) ## FAQ > [accordion] Does Mixpanel automatically track page views? > > Yes, if you pass `track_pageview: true` in the `mixpanel.init()` call, Mixpanel will automatically track a "Page View" event every time a new page is loaded. Learn more [here](/docs/tracking-methods/sdks/javascript#tracking-page-views). > [accordion] Why aren't my events showing up? > > If tracking from the web, make sure you've disabled ad blockers and your Do Not Track (DNT) browser settings are set to false when testing your JavaScript implementation. If the DNT setting is set to true, then Mixpanel won't collect information from that Mixpanel instance. We also recommend [setting up a proxy server](/docs/tracking-methods/sdks/javascript#tracking-via-proxy) so that you don't lose events due to ad-blockers. > > If tracking from a mobile device, events may take 1-2 minutes to appear because Mixpanel's mobile SDKs buffer events for 1 minute, or when the app transitions to the background, to conserve battery life and bandwidth. You can call `.flush()` in the mobile SDKs to manually flush events to Mixpanel. # Identify Users Source: https://docs.mixpanel.com/docs/overview/identify-users Connect events to users using the identify method in Mixpanel ## Overview This step introduces the `identify` method, which allows you to see which users triggered each event in Mixpanel. It also introduces the `people.set` method, which allows you to define the attributes of each user. ## Code Replace `USER_ID` with a unique identifier, preferably the user ID from your database. Including the user's email is also suggested, along with any additional **User Properties** such as name, avatar, created date, etc. > [tab] Javascript > > ```js Javascript theme={"system"} > mixpanel.identify('USER_ID') > > mixpanel.people.set({ '$name': 'Jane Doe', > '$email': 'jane.doe@example.com', > 'plan' : 'Premium' > // Add anything else about the user here > }); > ``` > [tab] Python > > ```python theme={"system"} > mp.people_set('USER_ID', {'$name' : 'Jane Doe', > '$email' : 'jane.doe@example.com', > 'plan' : 'Premium' > # Add anything else about the user here > }) > ``` > > You may want to disable ip geolocation when using a server-side SDK. You can learn more in [Server-Side Best Practices](/docs/tracking-best-practices/server-side-best-practices) > [tab] PHP > > ```shell php theme={"system"} > // create/update a profile for user id 12345 > $mp->people->set('USER_ID', array( > '$name' => "John Doe", > '$email' => "john.doe@example.com", > '$phone' => "5555555555", > "Favorite Color" => "red" > )); > ``` > > You may want to disable ip geolocation when using a server-side SDK. You can learn more in [Server-Side Best Practices](/docs/tracking-best-practices/server-side-best-practices) > [tab] Node > > ```javascript theme={"system"} > mixpanel.people.set('USER_ID', { > $name: 'Jane Doe', > $email: 'jane.doe@example.com', > plan: 'premium' > // Add anything else about the user here > }); > ``` > [tab] Go > > ```go theme={"system"} > exampleUser := mp.NewPeopleProperties("USER_ID", map[string]any{ > "$name": "Jane Doe", > "$email": "jane.doe@example.com", > "plan": "Premium" > // Add anything else about the user here > }) > > err := mp.PeopleSet(ctx, []\*mixpanel.PeopleProperties{ > exampleUser, > }, > ) > ``` > > You may want to disable ip geolocation when using a server-side SDK. You can learn more in [Server-Side Best Practices](/docs/tracking-best-practices/server-side-best-practices) > [tab] Ruby > > ```ruby theme={"system"} > mp.people.set('USER_ID', { > '$name' => 'Jane Doe', > '$email' => 'jane.doe@example.com', > 'plan' => 'Premium' > # Add anything else about the user here > }); > ``` > > You may want to disable ip geolocation when using a server-side SDK. You can learn more in [Server-Side Best Practices](/docs/tracking-best-practices/server-side-best-practices) > [tab] Java > > ```java theme={"system"} > JSONObject props = new JSONObject(); > props.put("$name", "Jane Doe"); > props.put("$email", "jane.doe@example.com"); > props.put("plan", "Premium"); > JSONObject update = messageBuilder.set("USER_ID", props); > > // Send the update to mixpanel > mixpanel.sendMessage(update); > ``` > [tab] React Native > > ```javascript Javascript theme={"system"} > mixpanel.identify("USER_ID"); > > // Identify must be called before properties are set > mixpanel.getPeople().set("$name", "Jane Doe"); > mixpanel.getPeople().set("$email", "jane.doe@example.com"); > mixpanel.getPeople().set("plan", "Premium"); > ``` > > You may want to disable ip geolocation when using a server-side SDK. You can learn more in [Server-Side Best Practices](/docs/tracking-best-practices/server-side-best-practices) > [tab] Flutter > > ```java theme={"system"} > mixpanel.identify("USER_ID"); > > // Identify must be called before properties are set > mixpanel.getPeople().set("$name", "Jane Doe"); > mixpanel.getPeople().set("$email", "jane.doe@example.com"); > mixpanel.getPeople().set("plan", "Premium"); > ``` > [tab] iOS (Objective-C) > > ```objc Objective-C theme={"system"} > [mixpanel identify:@"USER_ID"]; > > [mixpanel.people set:@{@"$name": @"Jane Doe"}]; > [mixpanel.people set:@{@"$email": @"jane.deo@example.com"}]; > [mixpanel.people set:@{@"plan": @"Premium"}]; > ``` > [tab] iOS (Swift) > > ```swift Swift theme={"system"} > Mixpanel.mainInstance().identify(distinctId: "USER_ID") > > Mixpanel.mainInstance().people.set(properties: [ "$name":"Jane Doe", > "$email":"jane.doe@example.com", > "$plan":"Premium"]) > ``` > [tab] Android > > ```java Java theme={"system"} > // The second param is a flag for allowing profile updates > mp.identify("USER_ID", true); > > // Identify must be called before properties are set > mp.getPeople().set("$name", "Jane Doe"); > mp.getPeople().set("$email", "jane.doe@example.com"); > mp.getPeople().set("plan", "Premium"); > ``` > [tab] Unity > > ```csharp theme={"system"} > Mixpanel.Identify("USER_ID"); > > // Identify must be called before properties are set > Mixpanel.People.Set("$name", "Jane Doe"); > Mixpanel.People.Set("$email", "jane.doe@example.com"); > Mixpanel.People.Set("plan", "Premium"); > ``` > [tab] HTTP API > > If you don't see an SDK or an integration in your language, you can send events to our API directly. > > Here's a sample script. Replace `YOUR_TOKEN` with your project token. You can find your token [here](https://mixpanel.com/settings/project). > > ```python test.py theme={"system"} > import requests > > url = "https://api.mixpanel.com/engage#profile-set" > > payload = [ > { > "$token": "YOUR_TOKEN", > "$distinct_id": "USER_ID", > "$set": { > "$name": "Jane Doe", > "$email": "jane.doe@example.com", > "plan": "Premium" > } > } > ] > headers = { > "accept": "text/plain", > "content-type": "application/json" > } > > response = requests.post(url, json=payload, headers=headers) > > print(response.text) > ``` > > **Best Practices for Scale** > > You can use this API at scale, for example to backfill historical data into Mixpanel or as part of a high-throughput streaming pipeline. We provide walkthroughs for [Amazon S3](/docs/data-pipelines/old-pipelines/integrations/schematized-aws-pipeline) and [Google Cloud Storage](/docs/data-pipelines/old-pipelines/integrations/schematized-gcs-pipeline) to provide a more production-grade example of how to use this API at scale. > > Here are some other best practices: > > * Be explicit about what is tracked to Mixpanel rather than implicitly tracking everything, both for performance and security reasons. Avoid sending user generated content, high-cardinality IDs, or large semi-structured objects. > * Import a more recent time window first (last 7 days or last 30 days) before backfilling historical data. Mixpanel's autocomplete menus populate events and properties based on the last 30 days of data, so this is the best way to test that data looks as expected. > * Leverage batching and compression. Each request to /import can send 2000 events to Mixpanel and can be sent compressed using gzip. The sample code in this guide does both. > * When using Cloud Storage, partition files into \~200MB of JSON (or \~200K records) each. Each file is processed in parallel by Cloud Functions/Lambda and must be ingested by the function within the configured timeout. > * Log any 400 errors returned by the API. These are non-retryable and indicate something malformed with the data. This should be extremely unlikely once the API is up and running. If a batch contains a mix of valid and invalid data, we will ingest the valid data. > > **Limits** > > Our Import API is built to ingest billions of events per day across our customers. That said, we do rate limit at very high scale to ensure quality of service and real-time ingestion. Please refer to our [Import API docs](/reference/import-events) for details. > > All of our sample code transparently retries and backoff from rate limit exceptions. If you require a higher-limit for a 1-time backfill, please reach out to us at [apis@mixpanel.com](mailto:apis@mixpanel.com). 🎉 Congratulations, you've tracked your first user! You can see them in Mixpanel via the [Users page](https://mixpanel.com/report/users). *** ## Next: Track Events Once you've implemented `identify`, it's time to track what your users are doing in your product. [Track Events in Your Product](/docs/quickstart/track-events/) ## FAQ > [accordion] How do I connect events from logged-out to logged-in users? > > If tracking client-side, just call `.identify()` when a user logs in and `.reset()` when they log out. Mixpanel will automatically stitch the user journey across logged out and logged in. > > If tracking server-side, check out our [server-side best practices guide](/docs/tracking-best-practices/server-side-best-practices). For more information, read our comprehensive guide on [Identifying Users](/docs/tracking-methods/id-management/identifying-users-simplified). > [accordion] What does Mixpanel track automatically? > > Mixpanel's Data Ingestion APIs and Client-Side SDKs automatically collect certain properties on every event or user profile update. Examples include: location, operating system, device, etc. Mixpanel calls this auto-generated data "Default Properties". > > [Learn More About Default Properties](/docs/data-structure/property-reference#default-properties) > [accordion] How can I track in a privacy compliant way? > > If a user opts out of tracking, you can call the `.optOutTracking()` method on any of our client-side SDKs; this prevents any subsequent data being tracked from that user's device. Learn more [here](/docs/privacy/protecting-user-data). > > For iOS specifically: Mixpanel does not use IDFA, so it does not require user permission through the AppTrackingTransparency(ATT) framework. For more details, refer to our [Apple App Developer Privacy Guidance](https://mixpanel.com/legal/app-store-privacy-details). # Install Mixpanel Source: https://docs.mixpanel.com/docs/overview/install-mixpanel Install the Mixpanel SDK and initialize it in your application ## Overview Installing Mixpanel is easy. This guide will show you how to do it with our SDKs. Already collect product data? Connect your [**Data Warehouse**](/docs/tracking-methods/warehouse-connectors) or via [**3rd Party Integrations**](/docs/tracking-methods/integrations/). ## Code Choose from the methods below. Not sure how to choose? [Read our guide](/docs/tracking-methods/choosing-the-right-method). Mixpanel supports [EU](/docs/privacy/eu-residency) and [India](/docs/privacy/in-residency) data residency, which you choose per project. If your project uses either, point the SDK at that region's host. Each tab below shows how. Events sent to the wrong region aren't ingested. > [tab] Javascript > > ##### Install the SDK > > > [tab] snippet > > > > ```html theme={"system"} > > > > > > ``` > > > [tab] npm > > > > ```text theme={"system"} > > npm install --save mixpanel-browser > > ``` > > > [tab] yarn > > > > ```text theme={"system"} > > yarn add mixpanel-browser > > ``` > > ##### Configure the SDK > > Replace `YOUR_TOKEN` with your project token. You can find your token [here](https://mixpanel.com/settings/project). > > You can learn more about configuring Session Replay and Heatmaps [here](/docs/tracking-methods/sdks/javascript/javascript-replay). > > ```js Javascript theme={"system"} > //Import Mixpanel SDK (only required for npm and yarn) > import mixpanel from "mixpanel-browser"; > > // Near entry of your product, init Mixpanel > mixpanel.init("YOUR_TOKEN", { > debug: true, > track_pageview: true, > persistence: "localStorage", > record_sessions_percent: 100, //records 100% of all sessions > record_heatmap_data: true, > }); > ``` > > US projects use the SDK's default host and need no change. For an EU or India project, set `api_host`: > > ```js EU theme={"system"} > mixpanel.init("YOUR_TOKEN", { > api_host: "https://api-eu.mixpanel.com", > debug: true, > track_pageview: true, > persistence: "localStorage", > record_sessions_percent: 100, //records 100% of all sessions > record_heatmap_data: true, > }); > ``` > > ```js India theme={"system"} > mixpanel.init("YOUR_TOKEN", { > api_host: "https://api-in.mixpanel.com", > debug: true, > track_pageview: true, > persistence: "localStorage", > record_sessions_percent: 100, //records 100% of all sessions > record_heatmap_data: true, > }); > ``` > [tab] Python > > ##### Install the SDK > > ```shell Python theme={"system"} > pip install mixpanel > ``` > > ##### Configure the SDK > > Replace `YOUR_TOKEN` with your project token. You can find your token [here](https://mixpanel.com/settings/project). > > ```python Python theme={"system"} > from mixpanel import Mixpanel > > mp = Mixpanel("YOUR_TOKEN") > ``` > > US projects use the SDK's default host and need no change. For an EU or India project, pass a `Consumer` with `api_host` set: > > ```python EU theme={"system"} > from mixpanel import Mixpanel, Consumer > > mp = Mixpanel("YOUR_TOKEN", consumer=Consumer(api_host="api-eu.mixpanel.com")) > ``` > > ```python India theme={"system"} > from mixpanel import Mixpanel, Consumer > > mp = Mixpanel("YOUR_TOKEN", consumer=Consumer(api_host="api-in.mixpanel.com")) > ``` > [tab] PHP > > ##### Install the SDK > > **Install with Composer** > > 1. Add mixpanel/mixpanel-php as a dependency and run composer update: > > ```shell php theme={"system"} > "require": { > ... > "mixpanel/mixpanel-php" : "2.*" > ... > } > ``` > > **Install Manually** > > 1. [Download the Mixpanel PHP Library](https://github.com/mixpanel/mixpanel-php/archive/master.zip) > 2. Extract the zip file to a directory called "mixpanel-php" in your project root > > ##### Configure the SDK > > Replace `YOUR_TOKEN` with your project token. You can find your token [here](https://mixpanel.com/settings/project). > > ```shell php theme={"system"} > // import Mixpanel > require 'mixpanel-php/lib/Mixpanel.php'; > > // get the Mixpanel class instance, replace with your project token > $mp = Mixpanel::getInstance("YOUR_TOKEN"); > > ?> > ``` > > US projects use the SDK's default host and need no change. For an EU or India project, set the `host` option: > > ```php EU theme={"system"} > $mp = Mixpanel::getInstance("YOUR_TOKEN", array( > "host" => "api-eu.mixpanel.com" > )); > ?> > ``` > > ```php India theme={"system"} > $mp = Mixpanel::getInstance("YOUR_TOKEN", array( > "host" => "api-in.mixpanel.com" > )); > ?> > ``` > [tab] Node > > ##### Install the SDK > > ```shell Node.js theme={"system"} > npm install mixpanel > ``` > > ##### Configure the SDK > > Replace `YOUR_TOKEN` with your project token. You can find your token [here](https://mixpanel.com/settings/project). > > ```js Node.js theme={"system"} > // Grab the Mixpanel factory > var Mixpanel = require("mixpanel"); > > // Create an instance of the mixpanel client > var mixpanel = Mixpanel.init("YOUR_TOKEN"); > ``` > > US projects use the SDK's default host and need no change. For an EU or India project, set `host`: > > ```js EU theme={"system"} > var mixpanel = Mixpanel.init("YOUR_TOKEN", { > host: "api-eu.mixpanel.com", > }); > ``` > > ```js India theme={"system"} > var mixpanel = Mixpanel.init("YOUR_TOKEN", { > host: "api-in.mixpanel.com", > }); > ``` > [tab] Go > > ##### Install the SDK > > ```shell Go theme={"system"} > go get github.com/mixpanel/mixpanel-go > ``` > > ##### Configure the SDK > > Replace `YOUR_TOKEN` with your project token. You can find your token [here](https://mixpanel.com/settings/project). > > ```shell Go theme={"system"} > package main > > import ( > "context" > "github.com/mixpanel/mixpanel-go" > ) > > func main() { > ctx := context.Background() > mp := mixpanel.NewApiClient("YOUR_TOKEN") > } > ``` > > US projects use the SDK's default host and need no change. For an EU or India project, pass the matching residency option: > > ```go EU theme={"system"} > mp := mixpanel.NewApiClient("YOUR_TOKEN", mixpanel.EuResidency()) > ``` > > ```go India theme={"system"} > mp := mixpanel.NewApiClient("YOUR_TOKEN", mixpanel.InResidency()) > ``` > [tab] Ruby > > ##### Install the SDK > > ```shell Ruby theme={"system"} > gem install mixpanel-ruby > ``` > > ##### Configure the SDK > > Replace `YOUR_TOKEN` with your project token. You can find your token [here](https://mixpanel.com/settings/project). > > ```ruby Ruby theme={"system"} > require 'mixpanel-ruby' > > mp = Mixpanel::Tracker.new(YOUR_TOKEN) > ``` > > US projects use the SDK's default host and need no change. For an EU or India project, send messages through a consumer that uses the regional host: > > ```ruby EU theme={"system"} > consumer = Mixpanel::Consumer.new( > 'https://api-eu.mixpanel.com/track', > 'https://api-eu.mixpanel.com/engage', > 'https://api-eu.mixpanel.com/groups', > ) > > mp = Mixpanel::Tracker.new(YOUR_TOKEN) do |type, message| > consumer.send!(type, message) > end > ``` > > ```ruby India theme={"system"} > consumer = Mixpanel::Consumer.new( > 'https://api-in.mixpanel.com/track', > 'https://api-in.mixpanel.com/engage', > 'https://api-in.mixpanel.com/groups', > ) > > mp = Mixpanel::Tracker.new(YOUR_TOKEN) do |type, message| > consumer.send!(type, message) > end > ``` > [tab] Java > > ##### Install the SDK > > ```xml Java theme={"system"} > > > com.mixpanel > mixpanel-java > 1.4.4 > > ``` > > ##### Configure the SDK > > Replace `YOUR_TOKEN` with your project token. You can find your token [here](https://mixpanel.com/settings/project). > > ```java Java theme={"system"} > //Import Mixpanel API > import com.mixpanel.mixpanelapi.MessageBuilder; > import com.mixpanel.mixpanelapi.MixpanelAPI; > > // Set up an instance of MixpanelAPI > MixpanelAPI mixpanel = new MixpanelAPI(); > > MessageBuilder messageBuilder = new MessageBuilder('YOUR_TOKEN'); > ``` > > US projects use the SDK's default host and need no change. For an EU or India project, pass the regional endpoints to `MixpanelAPI`: > > ```java EU theme={"system"} > MixpanelAPI mixpanel = new MixpanelAPI("https://api-eu.mixpanel.com/track", > "https://api-eu.mixpanel.com/engage", > "https://api-eu.mixpanel.com/groups"); > ``` > > ```java India theme={"system"} > MixpanelAPI mixpanel = new MixpanelAPI("https://api-in.mixpanel.com/track", > "https://api-in.mixpanel.com/engage", > "https://api-in.mixpanel.com/groups"); > ``` > [tab] React Native > > ##### Install the SDK > > Under your app's root directory, run: > > ```sh theme={"system"} > npm install mixpanel-react-native > ``` > > Under your application's iOS folder, run: > > ```sh theme={"system"} > pod install > ``` > > On React Native 0.88+, you can link the SDK with Swift Package Manager instead of CocoaPods. See [Installing the Library](/docs/tracking-methods/sdks/react-native#installing-the-library). > > ##### Configure the SDK > > Replace `YOUR_TOKEN` with your project token. You can find your token [here](https://mixpanel.com/settings/project). > > ```javascript theme={"system"} > //Import Mixpanel API > import { Mixpanel } from "mixpanel-react-native"; > > // Set up an instance of Mixpanel > const trackAutomaticEvents = false; > const mixpanel = new Mixpanel("YOUR_TOKEN", trackAutomaticEvents); > mixpanel.init(); > ``` > > US projects use the SDK's default host and need no change. For an EU or India project, pass the regional host as the third argument to `init()`: > > ```javascript EU theme={"system"} > mixpanel.init(false, {}, "https://api-eu.mixpanel.com"); > ``` > > ```javascript India theme={"system"} > mixpanel.init(false, {}, "https://api-in.mixpanel.com"); > ``` > [tab] Flutter > > ##### Install the SDK > > Add `mixpanel_flutter` to your package's pubspec.yaml file and run: > > ```sh theme={"system"} > flutter pub get > ``` > > On Flutter 3.44+, iOS and macOS use Swift Package Manager instead of CocoaPods by default. See [Swift Package Manager](/docs/tracking-methods/sdks/flutter#swift-package-manager). > > ##### Configure the SDK > > Replace `YOUR_TOKEN` with your project token. You can find your token [here](https://mixpanel.com/settings/project). > > ```dart theme={"system"} > import 'package:mixpanel_flutter/mixpanel_flutter.dart'; > class _YourClassState extends State { > Mixpanel mixpanel; > > @override > void initState() { > super.initState(); > initMixpanel(); > } > > Future initMixpanel() async { > // Once you've called this method once, you can access `mixpanel` throughout the rest of your application. > mixpanel = await Mixpanel.init("YOUR_TOKEN", trackAutomaticEvents: false); > } > } > ``` > > US projects use the SDK's default host and need no change. For an EU or India project, pass `serverURL`: > > ```dart EU theme={"system"} > mixpanel = await Mixpanel.init( > "YOUR_TOKEN", > trackAutomaticEvents: false, > serverURL: "https://api-eu.mixpanel.com", > ); > ``` > > ```dart India theme={"system"} > mixpanel = await Mixpanel.init( > "YOUR_TOKEN", > trackAutomaticEvents: false, > serverURL: "https://api-in.mixpanel.com", > ); > ``` > [tab] iOS (Objective-C) > > ##### Install the SDK > > > [tab] Swift Package Manager > > > > Note: Swift Package Manager requires Xcode 12+ 1. In Xcode, select File > Swift Packages > Add Package Dependency. 2. Follow the prompts using the URL for this repository and must select a version greater than or equal to v4.0.0 > > > [tab] Cocoapods > > > > 1. Create a Podfile in your Xcode project directory by running `pod init` in your terminal, edit the Podfile generated, and add the following line: `pod > > 'Mixpanel'`. 2. Run `pod install` in your Xcode project directory. CocoaPods should download and install the Mixpanel library, and create a new Xcode workspace. Open up this workspace in Xcode or typing `open *.xcworkspace` in your terminal. > > > [tab] Carthage > > > > Add `github "mixpanel/mixpanel-iphone"` to your Cartfile. > > ##### Configure the SDK > > Replace `YOUR_TOKEN` with your project token. You can find your token [here](https://mixpanel.com/settings/project). > > ```objc theme={"system"} > #import "Mixpanel/Mixpanel.h" > > - (BOOL)application:(UIApplication _)application > didFinishLaunchingWithOptions:(NSDictionary _)launchOptions { > ... > Mixpanel \*mixpanel = [Mixpanel sharedInstanceWithToken:@"YOUR_TOKEN" > trackAutomaticEvents: NO]; > ... > } > ``` > > US projects use the SDK's default host and need no change. For an EU or India project, set `serverURL` after initialization: > > ```objc EU theme={"system"} > mixpanel.serverURL = @"https://api-eu.mixpanel.com"; > ``` > > ```objc India theme={"system"} > mixpanel.serverURL = @"https://api-in.mixpanel.com"; > ``` > [tab] iOS (Swift) > > ##### Install the SDK > > > [tab] Swift Package Manager > > > > Note: Swift Package Manager requires Xcode 12+ > > > > 1. In Xcode, select File > Swift Packages > Add Package Dependency. > > 2. Paste the URL `https://github.com/mixpanel/mixpanel-swift` and a minimum semantic version of v2.8.0. > > > [tab] Cocoapods > > > > 1. Create a Podfile in your Xcode project directory by running `pod init` in your terminal, edit the Podfile generated, and add the following line: `pod 'Mixpanel-swift'`. > > 2. Run `pod install` in your Xcode project directory. CocoaPods should download and install the Mixpanel library, and create a new Xcode workspace. Open up this workspace in Xcode or typing `open *.xcworkspace` in your terminal. > > > [tab] Carthage > > > > Add `github "mixpanel/mixpanel-swift"` to your Cartfile. > > ##### Configure the SDK > > 1. Import Mixpanel into `AppDelegate.swift` > 2. Initialize Mixpanel within `application:didFinishLaunchingWithOptions` as seen below > > Replace `YOUR_TOKEN` with your project token. You can find your token [here](https://mixpanel.com/settings/project). > > ```swift theme={"system"} > import Mixpanel > > func application(_ application: UIApplication, > didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { > ... > // Replace with your Project Token > Mixpanel.initialize(token: "YOUR_TOKEN", trackAutomaticEvents: false) > ... > } > ``` > > US projects use the SDK's default host and need no change. For an EU or India project, set `serverURL` in `MixpanelOptions`: > > ```swift EU theme={"system"} > let options = MixpanelOptions( > token: "YOUR_TOKEN", > serverURL: "https://api-eu.mixpanel.com" > ) > Mixpanel.initialize(options: options) > ``` > > ```swift India theme={"system"} > let options = MixpanelOptions( > token: "YOUR_TOKEN", > serverURL: "https://api-in.mixpanel.com" > ) > Mixpanel.initialize(options: options) > ``` > [tab] Android > > ##### Install the SDK > > Add `implementation 'com.mixpanel.android:mixpanel-android:7.+'` as a dependency to your `build.gradle` file. > > Once you've updated `build.gradle`, you can force Android Studio to sync with your new configuration by clicking the Sync Project with Gradle Files icon at the top of the window: > > ![Sync Android With Gradle](https://storage.googleapis.com/cdn-mxpnl-com/static/readme/android-sync-gradle.png) > > If it cannot find the dependency, you should make sure you've specified `mavenCentral()` as a repository in `build.gradle`. > > Next, add the following permissions in your AndroidManifest.xml: > > ```java theme={"system"} > > > > > > > > > ``` > > ##### Configure the SDK > > Replace `YOUR_TOKEN` with your project token. You can find your token [here](https://mixpanel.com/settings/project). > > ```java theme={"system"} > import com.mixpanel.android.mpmetrics.MixpanelAPI; > > public class MainActivity extends ActionBarActivity { > private MixpanelAPI mp; > > @Override > protected void onCreate(Bundle savedInstanceState) { > super.onCreate(savedInstanceState); > setContentView(R.layout.activity_main); > > trackAutomaticEvents = false; > // Replace with your Project Token > mp = MixpanelAPI.getInstance(this, "YOUR_TOKEN", trackAutomaticEvents); > } > } > ``` > > US projects use the SDK's default host and need no change. For an EU or India project, set `serverURL` with `MixpanelOptions`: > > ```java EU theme={"system"} > MixpanelOptions options = new MixpanelOptions.Builder() > .serverURL("https://api-eu.mixpanel.com") > .build(); > > mp = MixpanelAPI.getInstance(this, "YOUR_TOKEN", trackAutomaticEvents, options); > ``` > > ```java India theme={"system"} > MixpanelOptions options = new MixpanelOptions.Builder() > .serverURL("https://api-in.mixpanel.com") > .build(); > > mp = MixpanelAPI.getInstance(this, "YOUR_TOKEN", trackAutomaticEvents, options); > ``` > [tab] Unity > > ##### Install the SDK > > Add `https://github.com/mixpanel/mixpanel-unity.git#master` to the dependencies section of `com.mixpanel.unity`. > > Alternatively, you can download and install the .unitypackage file from our [releases page](https://github.com/mixpanel/mixpanel-unity/releases). > > ##### Configure the SDK > > To initialize the library, first open the unity project settings menu for Mixpanel. (Edit -> Project Settings -> Mixpanel) Then, enter your project token into the Token and Debug Token input fields within the inspector. You can find your token [here](https://mixpanel.com/settings/project). > > ![unity\_screenshots](https://user-images.githubusercontent.com/36679208/152408022-62440f50-04c7-4ff3-b331-02d3d3122c9e.jpg) > > US projects use the SDK's default host and need no change. For an EU or India project, set **API Host Address** in the same settings menu to `https://api-eu.mixpanel.com/` or `https://api-in.mixpanel.com/`. > > Note: If you prefer to initialize Mixpanel manually, you can select the `Manual Initialization` in the settings and call `Mixpanel.Init()` to initialize. > > To use mixpanel, add the following sample code to a part of your application: > > ```csharp theme={"system"} > using mixpanel; > ``` > > You're > [tab] HTTP API > > ##### Install the SDK > > > [!NOTE] > > > > No install required > > Using the HTTP API does not require an installation. **You're ready to move to the next step.** > > For an EU or India project, send [Ingestion API](/reference/ingestion-api) requests to `api-eu.mixpanel.com` or `api-in.mixpanel.com` instead of `api.mixpanel.com`. # Integration / Framework Guides > [card] [Segment](/docs/tracking-methods/integrations/segment) > [card] [Google Tag Manager](/docs/tracking-methods/integrations/google-tag-manager) > [card] [Ad Spend](/docs/tracking-methods/integrations/ad-spend) > [card] [Amazon S3](/docs/tracking-methods/integrations/amazon-s3) > [card] [Amazon Kafka](/docs/tracking-methods/integrations/aws-kafka) > [card] [CMS & E-Commerce](/docs/tracking-methods/integrations/cms-ecommerce) > [card] [Customer.io](https://customer.io/docs/cdp/destinations/connections/mixpanel?utm_source=mixpanel\&utm_medium=partner) > [card] [Freshpaint](/docs/tracking-methods/integrations/freshpaint) > [card] [Google Cloud Storage](/docs/tracking-methods/integrations/google-cloud-storage) > [card] [Google Pubsub](/docs/tracking-methods/integrations/google-pubsub) > [card] [Google Sheets](/docs/tracking-methods/integrations/google-sheets) > [card] [Langfuse](/docs/tracking-methods/integrations/langfuse) > [card] [LaunchDarkly](/docs/tracking-methods/integrations/launchdarkly) > [card] [mParticle](/docs/tracking-methods/integrations/mparticle) > [card] [Next.js](/docs/tracking-methods/integrations/nextjs) > [card] [Mobile Attribution Tracking](/docs/tracking-methods/integrations/mobile-attribution-tracking) > [card] [Rudderstack](/docs/tracking-methods/integrations/rudderstack) > [card] [Shopify](/docs/tracking-methods/integrations/shopify) > [card] [Vendo for Shopify](https://apps.shopify.com/vendo?utm_source=mixpanel\&utm_medium=partner) > [card] [Snowplow](/docs/tracking-methods/integrations/snowplow) > [card] [Stripe](/docs/tracking-methods/integrations/stripe) > [card] [Tealium](/docs/tracking-methods/integrations/tealium) *** ## Next: Identify Your Users With Mixpanel installed, you’re now ready to identify the users who use your product. [Identify Your Users](/docs/quickstart/identify-users/) ## FAQ > [accordion] Does Mixpanel automatically track page views? > > Yes, if you pass `track_pageview: true` in the `mixpanel.init()` call, Mixpanel will automatically track a "Page View" event every time a new page is loaded. Learn more [here](/docs/tracking-methods/sdks/javascript#tracking-page-views). > [accordion] What are the recommended web configuration options? > > When tracking on web, we recommend using localStorage, as this is more reliable: > > ```javascript theme={"system"} > mixpanel.set_config({ persistence: "localStorage" }); > ``` > > Please note that cross-subdomain tracking is not possible when using local storage. If your implementation requires cross-subdomain tracking, remove the persistence flag and use the default "cookie" persistence option. > [accordion] Does Mixpanel use third-party cookies? > > No, our Mixpanel JavaScript SDK does not set or use any third-party cookies. If you wish to disable cookies entirely, you can set the disable\_persistence option to true when initializing your Mixpanel JS instance. Note that disabling persistence will disable the use of super properties and anonymous -> identified user tracking. > [accordion] How can I track in a privacy compliant way? > > If a user opts out of tracking, you can call the `.optOutTracking()` method on any of our client-side SDKs; this prevents any subsequent data being tracked from that user's device. Learn more [here](/docs/privacy/protecting-user-data). > > For iOS specifically: Mixpanel does not use IDFA, so it does not require user permission through the AppTrackingTransparency(ATT) framework. For more details, refer to our [Apple App Developer Privacy Guidance](https://mixpanel.com/legal/app-store-privacy-details). # Pricing Source: https://docs.mixpanel.com/docs/pricing How Mixpanel pricing works ## How Mixpanel Pricing Works ### Events An event is a data point that represents an interaction between a user and your product. Events can be a wide range of interactions. Here are some examples: * Social: Post Created, Friend Added * E-Commerce: Added to Cart, Purchase Completed * Media: Video Watched, Article Read * SaaS: Document Created, Call Started To decide which Mixpanel plan is right for you, first think about [what events you want to track](/docs/what-to-track) and the number of active users you have. ### Computed Monthly Across Projects Event-based pricing calculates the amount you are charged based on the number of events across all projects in your organization. Certain events and API updates are non-qualifying and **excluded from the Monthly Events calculation**: * Identify (`$identify`) * Create Alias (`$create_alias`) * Merge (`$merge`) * Opt In (`$opt_in`) * Session Recording Checkpoint (`$mp_session_record`) * User profile creation/updates ### Plan Differences There are three event-based billing plans to choose from: Free, Growth, and Enterprise. Growth and Enterprise plans have optional add-ons for Group Analytics (recommended for B2B) and Data Pipelines (exports your events to a data warehouse or cloud storage bucket). Refer to our [pricing page](https://mixpanel.com/pricing/) for more information on the benefits and features of each plan. The high-level differences between the three are: * **Free:** Mixpanel is usage-based, and you can use it for free for as long as you want, no trial needed. If you are new to Mixpanel and want to test it out, we encourage you to use our free plan and upgrade once you have an estimate of your project’s volume. Limited to a maximum of 5 saved reports per user account and 1M total events. You can create cohorts but not save them, and features like lookup tables, custom properties, or permissions are not included. * **Growth:** The typical Growth plan customer is a small team using Mixpanel (fewer than 50 employees). Growth plans purchased after February 2025 include the first 1M events free. * **Enterprise:** Designed for large teams that require access controls and permissions, data governance features, dedicated onboarding support, and account management. Enterprise also unlocks exclusive analysis tools, including the Signal report and anomaly detection alerts. All plans include some [Experiments](/docs/experiments) and [Feature Flags](/docs/featureflags) usage, with the option to purchase additional volume on Growth and Enterprise plans. See [Experiments plan availability](/docs/experiments#plan-availability) and [Feature Flags plan availability](/docs/featureflags#plan-availability) for the included amounts. ## Choosing the Right Plan ### How do I estimate how much Mixpanel will cost? If you're already using another tool, you might have the exact numbers you need. However, if you aren’t using another tool, the best way to estimate costs is to [sign up](https://mixpanel.com/register/) and use our generous free plan. After a week, you'll get a good estimate of your projected volume on your "Plan Details & Billing" page (see below). ### **View Events Usage** If you are currently tracking data and have either the "Owner" or "Billing Admin" organization role, you can see your events’ consumption in your organization's Settings screen. To do so, click on the gear icon in the lower left corner of Mixpanel, “Organization Settings”, and then the “Plan Details & Billing” tab. From here, you can quickly view this billing period’s usage on the right side of the screen as well as the historical one by accessing the "Data Usage" tab and clicking the “View Historical Usage” button: ![Events Usage](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/2026_Plan_Details_Billing_tab.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=5bd362a6c04ec5fd1256b5514a0a7a1b) ![Historic Usage](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/2026_Data_Usage_tab.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=cac4bd09a83780a9ee3ccf9b12f9f9b6) ### Group Analytics Add-On The Group Analytics add-on enables behavioral analysis at the business or group level, as opposed to the individual level. Please view the [technical documentation for Group Analytics first](/docs/data-structure/group-analytics), keeping in mind that implementing this feature is not trivial and includes sending your events with the key of the [group](/docs/data-structure/group-analytics/group-analytics-implementation) they belong to. Group Analytics **can’t be implemented retroactively** for already ingested events. This is a recommended feature for all B2B products that want answers to questions such as: * What companies are engaging the most with a product? * In instances with more than one user per account, such as a video streaming service, how are events triggered at an account level? * What groups convert through a funnel to a goal event (as opposed to what individual users convert)? ### Data Pipelines Add-On The Data Pipelines Add-On exports the events in your Mixpanel project to a cloud storage bucket or data warehouse of your choice. It's useful if you want to analyze Mixpanel events using SQL in your own environment. We offer a 30-day free trial of this feature; see the [FAQ](/docs/data-pipelines#how-does-the-free-trial-work) on how to enable it. ### Metric Tree Add-on The Metric Tree Add-On enables you to map your growth strategy quantitatively and measurably, and understand the logical relationship between your input metrics and output business outcomes. It is a collaborative space for you and your team to identify opportunities, have prioritization and trade-off discussions across Exec to ICs, and eventually take data-backed decisions. You can read more about the functionality of Metric Trees [here](/docs/metric_tree). ## Billing & Payment Mixpanel runs on a subscription service in which your card is charged at the beginning of every month or every year (depending on the plan you purchased) to cover reporting services for that period of time. > [!NOTE] > > This can only be done by "Owner" and "Billing Admin" users. Learn more about [Roles and Permissions](/docs/orgs-and-projects/roles-and-permissions). > > If you don't see these sections, please contact your organization's owner or billing admin. If there isn't one, please [contact the Support team](https://mixpanel.com/get-support). ### Update billing information To update your credit card or download invoices, please follow these steps: 1. Click the gear icon at the lower-left corner of the purple menu at Mixpanel and then the “Organization Settings” option. 2. Then, select the “Plan Details & Billing” tab, and click “Manage Billing & Payment”. ![Manage Billing & Payment](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/2026_Manage_Billing_Payment_button.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=a11d5f1f5b3f204e027445805b92e60e) ### Troubleshoot payment issues If you received an email or in-app notification that your payment didn't go through, don't worry! It's quick and easy to get back up and running. 1. Click on “Update the Payment Method” in the notification to be taken to your organization's "Billing & Payment" section. 2. Edit the credit card details by clicking the “pencil” icon: ![Edit Payment Method](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/2026_Update_Credit_Card.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=b805fa340cee2e73af00927f9f46c4b4) 3. Lastly, click on the “Rerun Payment” button on the right side. If the payment is successful, you will see a success message in the bottom left corner, and an error icon should no longer appear next to your payment information - do note that this can take a few minutes to process. You may check back later, and it will not interrupt processing. If you and your bank are unable to resolve the issue, please reach out to our Support team. ### Downgrade your plan to Free > [!NOTE] > > You can only edit or downgrade your plan if you have “Owner” or “Billing Admin” permissions over your Mixpanel organization. > [!WARNING] > > Downgrading to the Free plan does not take effect immediately. You will keep your current plan through the rest of this billing cycle, and the Free plan starts on your next billing date. To submit a downgrade request: 1. In your organization's “Plan Details & Billing” tab, click "Modify Plan", and then "Downgrade to Free Plan". 2. A pop-up window will appear, informing you that your account will remain active and be automatically moved to a Free plan after your current monthly/annual subscription ends. 3. After clicking the "Submit" button, a Downgrade Request Email is sent to all organization owners as proof of your request, and a copy of it goes to Mixpanel's Billing Team for processing. ![Switch to Free](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/2026_Downgrade_To_Free.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=4b373cfee2031d16f163b3a84b9c6df8) ## FAQs ### How do I reduce my Mixpanel bill? The best way to reduce your bill is to send fewer events to Mixpanel. Check your project’s [Lexicon](/docs/data-governance/lexicon#viewing-query-volumes-for-events-and-properties) for events you are not querying, or for events with few queries and a high volume not providing value. You can also check the top events contributing towards your event count by creating a monthly Insights report querying “All Events” with a breakdown by “Event Name” ([example](https://mixpanel.com/project/3018488/view/3536632/app/insights#J1ZGYyVkWKpK)). [Hiding events](/docs/data-governance/lexicon#hide-events-and-properties) in Lexicon won’t stop their ingestion. [Dropping an event](/docs/data-governance/lexicon#dropping-events) in Lexicon will only block its ingestion from the moment it was dropped, not removing it retroactively. ### What if I go over my event plan allowance? Do you stop tracking my events? If you go over your plan's events, Mixpanel won't stop collecting your data: * If you’re using a Free plan, Mixpanel won’t stop collecting your data, but querying is paused once you go over 1M monthly events. The pause stays in place until you upgrade to a Growth plan. Growth starts at \$0, depending on the allowance and add-ons you choose, and requires a credit card. Your Growth plan starts from the first of the current month, so all of this month’s events count toward its allowance, and any events above it are billed at your à la carte rate on your next invoice. * If you're using a Growth plan, the additional cost will be charged at the beginning of the next month based on your À La Carte rate, which you can find in the "Plan Details & Billing" section in your Organization Settings. On the contrary, if you want to avoid paying for overages, you can either [downgrade your paid plan to the Free one](/docs/pricing#downgrade-your-plan-to-free) or upgrade to one that covers your additional usage before the end of the billing cycle - the more events your plan includes, the less you pay per event. #### Alerts for Additional Data Charges Organization owners and billing admins are sent an alert email if their account reaches the following percentages of their plan volume: 85%, 100%, 110%, 120%, 200%, 300%, and 400%. If an account reaches two or more of these thresholds, it is possible to receive multiple alerts in one month. Additionally, email addresses that are CC'd on invoice receipts will also be CC'd on alert emails. #### Can I set a billing limit? While it's not possible to set a billing limit at this moment, read [this article](https://github.com/orgs/mixpanel/discussions/526) to learn how to create a report and get warning alerts when you’re close to exceeding your plan limit. ### I’m on a Growth plan and paying for less than 1M monthly events. How do I switch to the more recent one? The easiest way to switch is to go to Mixpanel’s [pricing page](https://www.mixpanel.com/pricing) and select “Make the Switch” on the Growth plan card. From there, you can move to the latest plan. If you are unable to adjust your plan, reach out to our Support team. ### Why can I only select a volume of 1M monthly events on monthly Growth plans, but not annual ones? Our latest pricing plans include the first 1M events free each month. We require a larger pre-committed volume (more than 1M monthly events) in order to purchase an annual plan. Annual plans still include the first 1M events free each month. ### I signed up for the 1 million event Growth plan. What happens if I go over that amount? The first 1 million events ingested are free! If you go over 1 million events, each event ingested will be charged at the additional data rate seen in the “Plan Details & Billing” section in your Organization Settings. If you're only on a 1M monthly events plan, the additional data rate is \$.00028 per event. Purchasing higher volumes upfront will lower that additional data rate, as we include volume discounts in our pricing. If you have the Data Pipelines or Group Analytics add-ons, they are also charged on the additional data ingested: the Data Pipelines add-on has a 20% charge over the base plan; the Group Analytics add-on has a 40% charge over the base plan for 6 group keys on Growth, and 20% for group keys on Enterprise. As an example: * You signed up for the 1 million monthly event Growth plan with Group Analytics * If you send 1.1 million events in a month, you’ll be charged for the 100,000 events over the plan at the additional data rate, along with 40% of the calculated overage for the Group Analytics add-on. We bake volume discounts into our pricing, so if you are often tracking more than 1 million monthly events, it may be better to upgrade to the right-sized plan on the Pricing page — you’ll pay less per event. ### Is Mixpanel’s pricing based on MTUs? Mixpanel’s default pricing option is based on events because it is a better option for the majority of customers. Mixpanel also offers an MTU-based Enterprise plan, which **starts at \$20,000 per year** and isn’t available online. If you are interested in learning more about it, [contact our sales team](https://mixpanel.com/contact-us/sales/). If you are an existing customer on an MTU plan, [refer to our MTU Pricing Guide](/docs/pricing/legacy-mtu-billing). ### Are monthly events calculated based on ingestion time or event timestamp? Events are calculated based on the ingestion time, defined as the time an event is processed by Mixpanel servers. Ingestion time is [stored by default](/docs/data-structure/property-reference/default-properties#event-properties) as the Time Processed (UTC) property on all events. For example, if on January 10th an event is sent to Mixpanel that is timestamped December 10th, it will be included in January's monthly tallies. Some accounts are on legacy event timestamp billing. In this case, monthly events are tallied based on the timestamp of the event. For example, if on January 10th an event is sent to Mixpanel that is timestamped December 10th, it won’t be included in any tallies because the timestamp is from a previous month. You can see if your account is on ingestion time billing in Organization Settings > Plan Details & Billing > Data Usage. ### Is old event data billed when imported to Mixpanel? This depends on whether your account is on ingestion time or event timestamp billing. Refer to the section above for details. For accounts on ingestion time billing, old events will be included in billing tallies since they’re calculated based on ingestion time. For example, if April 1st - April 30th is the current billing cycle, importing data from March **will** be included in the April event count. If you’re planning on backfilling a significant amount of historical events and need help understanding how it will impact your costs, please reach out to your Mixpanel account manager or [contact support](https://mixpanel.com/get-support). For legacy accounts on event timestamp billing, events imported with timestamps outside the current billing cycle will not contribute to event tallies. For example: if April 1st - April 30th is the current billing cycle, importing data from March will **not** be included in the April event count. ### I am using the Warehouse add-on for ingesting data. How does this impact billing? Events imported through a warehouse connection are treated as any other source (same as importing through our SDKs or API directly). Warehouse data, similar to other sources, is billed in accordance with general Mixpanel pricing policies. There is one additional field you will see in the Billing Page on your Data Usage Table called "Updates". Updates (updating an existing event or deleting an event) are generated by Mirror-type syncs and are tracked separately from event volume. Each update is counted as one event towards billing, and they are counted and billed for the month they were triggered on, even if the record being updated is for a previous month. You can read more about these updates and how warehouse connectors may affect billing from the warehouse perspective [here](/docs/tracking-methods/warehouse-connectors#faq) ### I received an email asking me to upload my company's tax information. Is it a scam? Why are you asking for that? Those emails are real and part of our ongoing efforts to ensure that our customers' billing and tax data is as up-to-date as possible. This allows us to generate invoices with the correct information and helps reduce billing issues. To do so, you can either use the link provided in the email or go to your organization's Settings -> 'Plan Details & Billing' tab -> 'Billing Info' tab -> 'Manage Billing & Payment' button -> 'Tax Information' tab -> 'Manage Tax Info' button on the top-right side of the screen. If you or your Finance team have any additional questions about it, please [contact the Support team](https://mixpanel.com/get-support). # MTU billing Source: https://docs.mixpanel.com/docs/pricing/legacy-mtu-billing Billing based on Monthly Tracked Users — the number of visitors performing qualifying events ## What is an MTU? Monthly Tracked User (MTU) is a way to calculate your billing based on the number of visitors that perform a qualifying event each month, rather than individual user profiles or events. MTU plans start at \$20,000 per year and are **not available to be purchased directly via our Pricing page**. [Our sales team can consult you](https://mixpanel.com/contact-us/sales/) to choose the best option. MTU can be considered when tracking more than 100k users or 5M monthly events. ## MTU Calculation An MTU is a visitor that **tracks at least one qualifying event** within your projects within the calendar month, independent of whether they have a user profile in [Users](/docs/users#basic-features). Mixpanel determines unique users using the `$distinct_id`. Users are only counted once per month, even if they perform multiple actions across devices. An organization is charged based on the total number of MTUs across all projects. This means that if a user performs a qualifying event in multiple projects, they are **counted once per project**. MTUs are *not* User Profiles – the number of MTUs in your project will not match the number of [User Profiles](/docs/data-structure/user-profiles) in your project. ## MTU Guardrail In most cases, the tally of MTUs is equal to the number of distinct IDs who have performed a tracked event this month. The only exception to this rule is **if your users average more than 1,000 events each**, in which case MTUs are equal to: Total number of events / 1,000 ## Excluded Events Certain events and API updates are non-qualifying and excluded from the MTU calculation: * 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`) * Experiment Started (`$experiment_started`) * Mailchimp Campaign - Open * Mailchimp Campaign - Click * Mailchimp Campaign - Sent * Mailchimp Campaign - Unsubscribed * Mailchimp Campaign - Bounce * Updates to user profiles * Warehouse Mirror Event Updates * Warehouse Mirror Profile Updates While Mixpanel events generated by messages do not count toward your total MTU calculation, Message Open events do count towards MTU Guardrail. Similarly, while Mixpanel Warehouse driven Event Updates & Deletes and Profile Mirror Updates do not count towards your total MTU calculation, they do count towards the MTU Guardrail. > Note: Mixpanel has deprecated the Messages & Experiments feature since Jan 1, 2022; the above documentation is kept for existing customers who may have had these events in the past while using those features. In addition, Mixpanel also excludes a number of inbound events sent by partner products. Refer to a given partner's [integration page](/docs/cohort-sync/integrations/airship) to see if it has events excluded from MTU calculations. ## Estimate MTU Usage If you haven't implemented tracking yet, you can estimate your current MTU usage by looking at your Monthly Active User (MAU) count. Your MTU and MAU counts should be similar, provided they account for anonymous visitors identically. ## View MTU Usage MTU calculations **include anonymous visitors**. This means users who only visit your homepage can still count towards MTU calculations. You can see your MTU consumption in your Organization Settings: 1. Click on the gear icon in the upper right corner of Mixpanel, and select “Organization Settings” 2. Then click on "Plan Details & Billing" and then on “Data Usage” To view detailed historical data usage, or download a CSV of usage from the last 12 months for each project, click on “View Historical Usage” in the top right of Plan Details & Billing. ![Plan Details and Billing](https://mintcdn.com/mixpanel-edb78807/OGSpXJYAgHuRUK7O/images/mtu-usage-details.png?fit=max\&auto=format\&n=OGSpXJYAgHuRUK7O\&q=85\&s=cd247743c39a1679b9f634e8ff1d7d40) View the top events contributing towards your MTU count by creating a monthly Insights report and querying \$all\_mtu\_events which filters out event names excluded from Mixpanel's MTU calculation and applying a breakdown by “Event Name” (example report) ## What if I go over my MTU plan allowance? If you go over the limit of your plan, Mixpanel won't stop collecting your data. You'll be charged the additional data rate for each additional MTU. Automatic alerts are in place to notify Organization Owners and Billing Admins of potential additional data charges. For example, let’s say you are on a Growth plan including 1,000 MTUs: * In January you tracked 1,500 MTUs, which went over by 500 MTU. * Around January 1, you would have paid your base monthly fee for January. * Then around February 1, you will pay your base monthly fee for February plus the January additional data rate charges you incurred. We recommend upgrading to a pricing plan that fits all your traffic. View the additional data rate for your paid plan in Organization Settings > Plan Details & Billing: ![Additional Data Rate](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/additional-data-rate.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=fa2b490f6bfa8f0839d04d3969d29e96) ## What caused an unexpected spike in my MTU count? Typically, MTU counts increase when you have an increase in users in your app. The main scenarios that usually increase the number of MTUs: * A marketing campaign (can lead to an increase in tracked users due to an influx of anonymous visitors). * An update that adds tracking to new parts of your product. To assist in analyzing potential sources of MTU spikes, create a copy of [this board](https://mixpanel.com/project/3409416/view/3914056/app/boards#id=10860850) from our demo project into the main project contributing to MTU charges. Once you open the board linked above, you can click on the 3 dots menu located on the top right-hand corner to duplicate the board, then move the duplicated board into your project. # Startup Program Source: https://docs.mixpanel.com/docs/pricing/startup-program Use Mixpanel for free for the first year The Mixpanel for Startups program empowers early-stage companies to easily track and analyze data to find product-market fit and more. The program is open to startups that meet the following requirements: * Incorporated less than five years ago. * Raised no more than \$8 million (USD) in total funding. * Haven't previously redeemed other Mixpanel offers. * Haven’t been on a paid plan. Eligible startups receive their first year free on the Startup Plan, an exclusive offering for startup program participants. The Startup Plan allows you to take advantage of the full analytics capabilities of Mixpanel. This includes access to all advanced reports such as [Signal](/docs/reports/apps/signal), [Experiments](/docs/experiments) with [Feature Flags](/docs/featureflags), our add-on packages (Data Pipelines, Group Analytics, Warehouse Connectors), and Session Replays. The Startup Plan covers data volumes of up to 1 billion events per year. With the Startup Plan, unlock all the power of Mixpanel you'll need to launch, grow, and scale your product. In order to maintain status in the program, participants must begin sending data to Mixpanel within 90 days of acceptance. If you are not ready to begin implementation, we encourage you to wait and apply once ready. Participants will be invited to join our exclusive Mixpanel for Startups Community in Slack where you’ll have access to curated content, workshops, resources, and opportunities to learn from other startups as well as the team at Mixpanel. [Apply for the startup program](https://mixpanel.com/startups-apply/) ### Startup Plan Details #### What is included in the Startup Plan? The Startup Plan gives you every advanced report, plus four add-on packages: [Data Pipelines](/docs/data-pipelines/), [Group Analytics](/docs/data-structure/group-analytics), [Warehouse Connectors](/docs/tracking-methods/warehouse-connectors), and [Session Replay](/docs/session-replay). It runs for 12 months and includes: * 1 billion events per year * 1M Session Replay recordings * [Experiments](/docs/experiments), with 1.2M MEUs per year * [Feature Flags](/docs/featureflags), with 50 flags and 120M Feature Flags API requests per year The plan is available only to participants in the Mixpanel for Startups program, and it doesn't support BAAs or MSAs. #### What is the implementation requirement? Once accepted into the program, startups must start sending data to Mixpanel within the first 90 days to maintain eligibility. If a participating startup doesn’t meet the implementation requirement within the first 90 days, they’ll be removed from the program and prohibited from rejoining. This isn’t to deter startups from joining, but rather encourage them to only apply once truly ready so as to take full advantage of the program and maximize value from Mixpanel. #### What happens if my usage exceeds 1B events? If you send over 1B events to Mixpanel during the startup program, you’ll have the option to upgrade to a paid Growth or Enterprise plan, or downgrade to the Free plan. If you’re close to exceeding the limit of the Startup Plan, our team will reach out in advance to discuss your options. #### Can I continue with the Startup Plan after the first year and receive a second year free? No. The Mixpanel for Startups program offers eligible companies their first year of Mixpanel for free on the Startup Plan. After the first year, startups are able to move to a Free, Growth, or Enterprise plan. The Startup Plan is only available through the startup program, and cannot be purchased as a standalone plan. ### Program FAQ #### How does the startup program work? Once accepted into the program, your Mixpanel account will be provisioned with the Startup Plan. This plan is valid for one year and the term will begin once your application is approved. In order to maintain your eligibility status in the program, startups must begin sending data to Mixpanel within 90 days of your acceptance. If you are not ready to begin implementation, we encourage you to wait and apply once ready. #### How do I apply? Eligible startups can [apply here](https://mixpanel.com/startups-apply/)! If you were referred to the program through your VC or accelerator, please select the referral partner from the dropdown menu. Once you confirm your eligibility and submit the form, your account will automatically be provisioned with the Startup Plan and your free year in the program will begin. #### What if my VC or accelerator is not listed in the application dropdown? Not all of our partners are currently listed on the application. Please select “Other” from the dropdown menu and enter the name of your VC, accelerator, incubator, or other referral partner. If you were not referred, please select "I do not have a referral partner". #### Will I receive help getting started with Mixpanel? Yes! We’ll provide self-serve resources to help with your onboarding and provide access to our [Mixpanel Community](https://community.mixpanel.com/) where you’ll be able to engage with other users and our team. Our Support team is on hand to assist with technical questions as needed, too. #### Can I apply now and save the offer for later? No. Once you confirm your eligibility and enroll in the program, the offer through Mixpanel for Startups is activated. Your one free year on the Startup Plan begins at enrollment. Additionally, if you do not start sending data to Mixpanel within 90 days of joining, you will be removed from the program. If you are not ready for the startup program, you can sign up for a [Free plan](https://mixpanel.com/pricing/) and apply to the program when you’re ready to take advantage of the offer. Startups are in Mixpanel’s DNA — so we have a generous free plan (1M events per month) to help you get started. #### What happens after my year in the startup program? Once you complete your year in the startup program, our team will work with you and advise on the best Mixpanel plan based on your usage and growth plans. We can help determine whether a Free, Growth, or Enterprise plan will best suit your needs going forward. #### Why is the startup program offer so generous? Startups are a part of Mixpanel’s DNA! We are dedicated to having the best startup program on the market and supporting as many founders as we can. The Mixpanel for Startups program provides the first year free on our exclusive Startup Plan, which allows participants to utilize all our features and functionality. Startups should focus on building world-class products and not worry about short-term trials, restrictive data plans, and hidden pricing. ### Eligibility Criteria #### What do you consider a startup? To be eligible for the program and considered a startup, you cannot have raised more than \$8 million USD and must have been founded less than 5 years ago. The Mixpanel for Startups program is not available for startups who are already a paid customer, have been on a paid plan in the past, or previously participated in the program. If you have questions about your eligibility status, please reach out to our team at [startups@mixpanel.com](mailto:startups@mixpanel.com). #### Do I have to be new to Mixpanel to join the program? No. As long as your startup has not redeemed another exclusive offer or has already been a paid customer, you are eligible to apply. #### What offers prevent me from qualifying for the startup program? If you have already redeemed an offer through the [Product School](https://productschool.teachable.com/p/productanalytics) or another partner, you are not eligible for the startup program. Startups are only able to participate in the Mixpanel for Startups program once. #### Do I need to be associated with a VC or accelerator to join? No! As long as you meet the eligibility criteria, you’re welcome to join. When you submit the form, please select ‘I do not have a referral partner’ from the dropdown menu. #### What happens if I misrepresent my eligibility status? When you applied to participate in the Startup Program, you are asked to confirm that you meet the following eligibility criteria: 1. Have not been on a paid Mixpanel plan; 2. The entity you represent was founded less than 5 years ago (at the time of sign up); 3. The entity you represent has not raised more than \$8M in total funding (at the time of sign up). If Mixpanel becomes aware that your entity may not meet one or more of the aforementioned eligibility criteria, Mixpanel may, at its sole discretion, work with you to transition the account to a paid account, suspend the account until additional information is provided to validate adherence to the eligibility criteria, or where sufficient evidence is present to indicate that your account does not meet the eligibility criteria, terminate your startup account, by providing written notice. ### \[Legacy] Credit-Based Program FAQ If you are in the earlier version of the Mixpanel for Startups program which utilized “startup credits” and have specific questions regarding your account, please reach out to [startups@mixpanel.com](mailto:startups@mixpanel.com). #### What is the credit-based startup program? Prior to September 2024, the Mixpanel for Startups program provided eligible startups with their first year of Mixpanel free, valued up to \$50,000. Startups in this program are able to purchase an annual Growth plan as well as Group Analytics and Data Pipelines add-on packages utilizing credits. After acceptance to the program, \$50,000 in credits were added to participants’ Mixpanel account and automatically applied to eligible line items when purchasing an annual [Growth plan](https://mixpanel.com/pricing/#edit-plan) via our plan-builder. The credits cover up to \$50,000 in total usage within the first year. Any additional usage costs in excess of \$50,000 are not covered by the program and will be charged to the credit card on file. #### Is eligibility different for the credit-based startup program? No. The startup program – be it the credit or Startup Plan version – have the same eligibility requirements ([outlined above](/docs/pricing/startup-program#eligibility-criteria)). #### How do I know if I am in the credit-based startup program? The credit-based startup program was valid prior to September 4, 2024. If you are currently in this version of the program, \$50,000 worth of credits were added to your account to apply to eligible purchases and upgrades made in your first year. You can see these credits in your Mixpanel account under Organization Settings > Plan Details & Billing. The Manage Billing & Payment section displays detailed information about the credits that are used to cover your first year of Mixpanel. Eligible credits will also appear in the checkout process when purchasing a Growth plan and premium features through the online plan-builder. #### Will the startup credits in my account expire? Yes. The credit-based startup program provides your first year of Mixpanel for free, valued up to \$50,000. After one year, the unused credits expire and are no longer valid. You can see the expiration date in the Credits tab under Plan Details & Billing in the Organization Settings. Once the year elapses, the credits expire and the credit card on file will be charged to cover the subscription renewal and additional data costs. #### Other questions about Mixpanel for Startups? Please reach out to the team at [startups@mixpanel.com](mailto:startups@mixpanel.com). # Privacy Overview Source: https://docs.mixpanel.com/docs/privacy Mixpanel believes in respecting and protecting people’s fundamental online privacy and data rights Mixpanel believes in respecting and protecting people’s fundamental online privacy and data rights. This is why we've built Mixpanel's analysis tools in compliance with industry best practices and global data regulations like the GDPR and the CCPA. Visit our [Privacy Hub](https://mixpanel.com/legal/privacy-hub/) to see how we comply with various privacy guidelines. ## Storing Your Data in the European Union Mixpanel provides you with the option to process and store your customers' personal data in Europe via our [EU Data Residency Program](https://mixpanel.com/legal/eu-data-residency/). You can enable this by selecting the "EU Data Residency" option when creating a new project and using our EU subdomain during all API calls. See [EU Data Residency](/docs/privacy/eu-residency) for detailed information on how to use EU Data Residency with Mixpanel. ## Storing Your Data in India You may process and store your customers' personal data in India via our [India Data Residency Program](/docs/privacy/in-residency). Contact your Mixpanel account manager to learn more about enabling India Data Residency for your account. See [India Data Residency](/docs/privacy/in-residency) for detailed information on how to use India Data Residency with Mixpanel. ## Manage Personal Data [Mixpanel deletion and retrieval APIs](/reference/gdpr-api) are in place to help Mixpanel implementations meet the requirements outlined by the General Data Protection Regulation (GDPR) legislation. > [!NOTE] > > **GDPR Request Rate Limits** > > You can batch up to 2000 distinct IDs per deletion request and up to 2000 for a retrieval request. Request rates are limited for GDPR API requests. ### User Opt-Out While the following API can be used to delete or retrieve personal data as outlined by the GDPR, it is important to also opt users out of subsequent tracking. If tracking using a client-side Mixpanel library, you can opt users out of tracking using Mixpanel's opt-out methods. These are available in the following client-side libraries: * [JavaScript](/docs/tracking-methods/sdks/javascript#opting-users-out-of-tracking) * [iOS - Objective-C](/docs/tracking-methods/sdks/ios#opting-users-out-of-tracking) * [iOS - Swift](/docs/tracking-methods/sdks/swift#opting-users-out-of-tracking) * [Android](/docs/tracking-methods/sdks/android#opting-users-out-of-tracking) See Mixpanel’s [Managing Personal Information](/docs/privacy/protecting-user-data) guide for more information on best practices when handling personal information in Mixpanel. ### Authentication Authentication occurs via a user-specific OAuth token with a scope that only includes the following deletion and retrieval APIs. Users can retrieve this token from their [Account Settings](https://mixpanel.com/settings/account#data-privacy) by selecting their initials in the top right of Mixpanel and selecting **Profile & Preferences**, and then the Data & Privacy tab. The OAuth token has a one-year expiry. It should be passed in the Authentication header. Users are eligible to generate an OAuth token if they are the [project owner](/docs/orgs-and-projects/roles-and-permissions#project-roles), or if they are a project owner or admin of a project that supports [team member roles](/docs/orgs-and-projects/roles-and-permissions#project-roles). ![](https://mintcdn.com/mixpanel-edb78807/LIWtWr4Am6t1wkkk/images/Personal-Data-and-Privacy-Settings.png?fit=max\&auto=format\&n=LIWtWr4Am6t1wkkk\&q=85\&s=43e65e1c406b95019cf0a231f17fbf35) # Compliance Status Callbacks Source: https://docs.mixpanel.com/docs/privacy/compliance-status-callbacks Receive a signed POST when a GDPR or CCPA request changes status When you submit a data deletion or data retrieval request, Mixpanel can POST to your endpoint every time that request changes status, instead of you polling the status endpoint. Callbacks follow the [OpenDSR](https://github.com/opengdpr/OpenDSR) specification: the field names, the status vocabulary and the signature scheme are the spec's. See [Limitations](#limitations) for where Mixpanel stops short of full conformance. > [!NOTE] > > Callbacks are available on API version 3.0 only, and must be enabled for your project. Contact your Mixpanel representative to request access. ## Subscribing Pass `status_callback_urls` when you create the request. Every URL you name receives its own copy of every callback. ```bash Create a deletion with callbacks theme={"system"} curl --request POST \ --url 'https://mixpanel.com/api/app/data-deletions/v3.0/?token=YOUR_PROJECT_TOKEN' \ --header 'authorization: Bearer YOUR_GDPR_OAUTH_TOKEN' \ --header 'content-type: application/json' \ --data '{ "distinct_ids": ["9f8c2d41-6b3e-4f0a-8d21-5c7a1e9b4f33"], "compliance_type": "GDPR", "subject_request_id": "3f2b8c14-9d7e-4a06-b153-2e8f7c4a9d51", "status_callback_urls": ["https://example.com/mixpanel/dsr-callback"] }' ``` | Field | Required | Notes | | - | - | - | | `status_callback_urls` | No | A JSON array of up to 5 HTTPS URLs. A non-HTTPS entry, or more than 5, is rejected with a 400. | | `subject_request_id` | **Yes, whenever `status_callback_urls` is set** | Your own identifier for the request. Must be a lowercase canonical UUID v4. | Mixpanel does not generate a `subject_request_id` for you. It must be unique within your project. It is echoed on every callback and on the status endpoint's response. Correlate on it rather than on Mixpanel's `tracking_id`. ## The callback request Mixpanel sends an HTTP `POST` with a JSON body and these headers: | Header | Value | | - | - | | `Content-Type` | `application/json` | | `X-OpenDSR-Processor-Domain` | `opendsr.mixpanel.com` | | `X-OpenDSR-Signature` | Base64 RSA signature over the raw request body | Return `202 Accepted` once the signature validates, and `403 Forbidden` if it does not, which is what OpenDSR §8.8 asks for. Mixpanel treats any `2xx` as delivered; any other response, a timeout, or a TLS failure is a failed delivery and is retried. > [!WARNING] > > Redirects are not followed. The URL you register must accept the POST directly. ### Example callback ```http Completed retrieval theme={"system"} POST /mixpanel/dsr-callback HTTP/1.1 Host: example.com Content-Type: application/json X-OpenDSR-Processor-Domain: opendsr.mixpanel.com X-OpenDSR-Signature: TWl4cGFuZWwgc2lnbmF0dXJlLCBiYXNlNjQtZW5jb2RlZA== { "api_version": "3.0", "controller_id": "2195832", "expected_completion_time": "2026-10-23T14:22:07.318402Z", "extensions": { "opendsr.mixpanel.com": { "project_id": 2195832, "status": "completed", "tracking_id": "7c4e1a90-3b52-4d68-9f01-6a8d2e5b7c43" } }, "request_status": "completed", "results_url": "https://storage.googleapis.com/mixpanel-compliance-exports/...", "status_callback_url": "https://example.com/mixpanel/dsr-callback", "subject_request_id": "3f2b8c14-9d7e-4a06-b153-2e8f7c4a9d51", "subject_request_type": "portability" } ``` | Field | Type | Notes | | - | - | - | | `api_version` | string | Always `3.0`. Mixpanel's DSR API version, which is not the discovery document's `api_version`. | | `controller_id` | string | Your Mixpanel project ID, as a string. | | `expected_completion_time` | string | RFC 3339. The request's creation time plus 30 days — the response window, restated per request. It does not move between callbacks. | | `subject_request_id` | string | The identifier you supplied at creation. | | `subject_request_type` | string | `erasure` for a deletion. `access` for a retrieval, or `portability` for one whose disclosure type is Data. | | `request_status` | string | One of `pending`, `in_progress`, `completed`, `cancelled`. See [Status vocabulary](#status-vocabulary). | | `status_callback_url` | string | The URL this callback was addressed to. | | `results_url` | string or null | The signed export link on a completed retrieval, valid for just under 30 days from completion. Re-reading the status endpoint does not extend it. `null` on deletions, on any non-completed status, and on a retrieval whose export has aged out. | | `extensions` | object | Mixpanel-specific fields, keyed by `opendsr.mixpanel.com`. | Every field is always present. `results_url` is `null` rather than omitted when it does not apply. #### Extensions Everything under `extensions` is Mixpanel's own, not part of OpenDSR. A subscriber that ignores this object entirely still works. | Field | Type | Notes | | - | - | - | | `tracking_id` | string | Mixpanel's identifier for the request, returned as `task_id` when you created it. Stable across internal retries. | | `project_id` | number | The project ID, as a number. | | `status` | string | The unmapped status. Identical to `request_status` except on a failure, where this reads `failed`. | ## Verifying the signature > [!WARNING] > > Verify against the **raw request body**, before anything parses it. > > Mixpanel signs the exact bytes it sends. A body that has been parsed and re-serialized is not those bytes and will not verify. Most frameworks parse the body before your handler runs. Use `request.get_data()` in Flask, `express.raw()` in Express, `request.body` in Django, or a `ContentCachingRequestWrapper` in Spring. First, reject the callback unless `X-OpenDSR-Processor-Domain` is exactly `opendsr.mixpanel.com`. Compare that header against a value you have hardcoded — never treat it as an instruction about which certificate to fetch. `X-OpenDSR-Signature` is a base64-encoded RSA signature (PKCS#1 v1.5, SHA-256) over the raw body. Verify it against the public key from Mixpanel's certificate. Fetch the certificate once from `https://opendsr.mixpanel.com/v1/certificate.pem` and store it; do not fetch it per callback. When you fetch it, confirm it chains to a trusted authority, was issued to `opendsr.mixpanel.com`, and has not expired. ```python Python theme={"system"} import base64 from cryptography.hazmat.primitives import hashes, serialization from cryptography.hazmat.primitives.asymmetric import padding from cryptography.exceptions import InvalidSignature from cryptography import x509 with open("opendsr-mixpanel-com.pem", "rb") as f: public_key = x509.load_pem_x509_certificate(f.read()).public_key() def verify(raw_body: bytes, signature_header: str) -> bool: try: public_key.verify( base64.b64decode(signature_header), raw_body, padding.PKCS1v15(), hashes.SHA256(), ) return True except InvalidSignature: return False ``` ```javascript Node.js theme={"system"} const crypto = require("crypto"); const fs = require("fs"); const certificate = fs.readFileSync("opendsr-mixpanel-com.pem"); const publicKey = new crypto.X509Certificate(certificate).publicKey; function verify(rawBody, signatureHeader) { return crypto .createVerify("RSA-SHA256") .update(rawBody) .verify(publicKey, signatureHeader, "base64"); } ``` After verifying the signature, confirm that `status_callback_url` in the body matches the endpoint the request arrived on. OpenDSR includes this step so that a valid callback captured from one of your endpoints cannot be replayed against another. ### Certificate renewal Mixpanel's certificate is reissued periodically, but **the keypair does not change across renewals**. Extract and pin the public key rather than the certificate, and renewals require no action from you. If you pin the certificate itself, refresh your copy before it expires. > [!NOTE] > > There is no timestamp or nonce in the body, so a captured callback and its signature stay valid indefinitely. A retrieval callback carries a working `results_url` — treat a stored body as sensitive and keep it out of your logs. ## Status vocabulary `request_status` is always one of OpenDSR's four values. Branch on this field. | `request_status` | Meaning | | - | - | | `pending` | Accepted, not yet started. | | `in_progress` | Running. | | `completed` | Finished successfully. On a retrieval, `results_url` is populated. | | `cancelled` | Final, without asserting the request was fulfilled. | OpenDSR defines no failure status. A request that errors reports `cancelled` — the only terminal value that does not assert fulfilment — and `extensions["opendsr.mixpanel.com"].status` reads `failed`. Check that field if you need to distinguish a genuine cancellation from an error. > [!WARNING] > > These are not the values the status endpoint returns. `GET /data-deletions/v3.0/{tracking_id}` reports Mixpanel's internal task states — `PENDING`, `STAGING`, `STARTED`, `SUCCESS`, `FAILURE`, `REVOKED` — while callbacks report OpenDSR's four. If you consume both, map them separately rather than assuming one vocabulary. The first callback arrives shortly after you create the request, while it is still `pending`. Use it to confirm your endpoint is reachable and your signature verification works against a real body. ## Delivery semantics **At-least-once.** A retry sends the identical body with the identical signature. Deduplicate on the body, or on the pair of `subject_request_id` and `request_status`. An exactly-once assumption will double-process. **Retry cadence.** Deliveries are attempted every 15 minutes, which is also how quickly a status change reaches a healthy endpoint. A failed delivery is retried on the next cycle. **When Mixpanel stops.** Retries stop 90 days after the request was created — longer than the 30-day `expected_completion_time`, so a request that misses its deadline still delivers its completion callback. After 90 days you receive nothing further. The status endpoint remains the source of truth throughout. If a callback you expected has not arrived, poll it. ## Discovery Mixpanel publishes an OpenDSR discovery document at `https://opendsr.mixpanel.com/v1/discovery`. It needs no authentication. ```json GET /v1/discovery theme={"system"} { "api_version": "2.0", "supported_subject_request_types": ["access", "erasure", "portability"], "supported_identities": [ { "identity_type": "controller_customer_id", "identity_format": "raw" } ], "processor_certificate": "https://opendsr.mixpanel.com/v1/certificate.pem" } ``` > [!WARNING] > > `api_version` in this context does not carry the same meaning as in a callback body. > > Here, it's the version of the OpenDSR specification Mixpanel implements. In a callback, it is Mixpanel's own DSR API version, which is why the two differ. `controller_customer_id` with format `raw` is the identity type Mixpanel accepts: it corresponds to the `distinct_id` you already use. The other identity types OpenDSR lists are device and advertising identifiers, which Mixpanel does not resolve requests by. ## Limitations Mixpanel's callbacks are **OpenDSR-aligned**, not a full OpenDSR implementation. Field names, status vocabulary, signing and discovery follow the specification, but Mixpanel does not serve `POST /v1/requests`. Create requests through the endpoints above instead. # End User Data Management Source: https://docs.mixpanel.com/docs/privacy/end-user-data-management Making GDPR and CCPA requests Mixpanel supports account holders’ ability to request the deletion or export of end user data. Requests can be submitted through either a form found in a Mixpanel project or through a personal data export and deletion API that is documented below. Only organization owners and admins can access or submit end user export or deletion requests. These tools can be used to exercise Right to Access, Right to Portability, and Right to be Forgotten for end users or “data subjects” as part of the General Data Protection Regulation (GDPR). [Learn more about GDPR here](https://mixpanel.com/legal/mixpanel-gdpr/). These tools can also help satisfy requirements stated in the California Consumer Privacy Act (CCPA). [Learn more about CCPA here](https://mixpanel.com/legal/mixpanel-ccpa/). Requests to export or delete end user data can take multiple weeks to process. ## Generate OAuth Token In order to submit a request, you must first generate a GDPR OAuth token from your Personal Settings. This token is required for requests submitted both through the Mixpanel interface and through Mixpanel's APIs. Users can retrieve this token from their [Account Settings](https://mixpanel.com/settings/account#data-privacy) by selecting their initials in the top right of Mixpanel, selecting **Profile & Preferences**, and then the Data & Privacy tab. The OAuth token has a one-year expiry. For requests submitted via API, the token should be passed in the Authentication header. Users are eligible to generate an OAuth token if they are the Organization Owner, or if they are a Project Owner or Admin of a project that supports team member roles. ![](https://mintcdn.com/mixpanel-edb78807/LIWtWr4Am6t1wkkk/images/Personal-Data-and-Privacy-Settings.png?fit=max\&auto=format\&n=LIWtWr4Am6t1wkkk\&q=85\&s=43e65e1c406b95019cf0a231f17fbf35) ## Gather the Project Information and Distinct\_ids Mixpanel exports or deletes end user data according to the user's distinct\_id. To export or delete end user data, first select a project that you own and collect the distinct\_id of the user(s). Like all data in Mixpanel, the distinct\_id can be custom specified in a tracking implementation. As this is the case, it is necessary to ensure that any provided distinct\_id is accurate and stored in a project. Any incorrect identifiers submitted as part of export or deletion requests will result in an inability to process the request. It is possible to submit a request from Mixpanel once you gather the distinct\_ids of end users requesting exports or deletions. If you implemented Mixpanel before 2020 and are using the alias method to manage user identity, it is possible to submit either the end user’s alias or their distinct\_id as part of a deletion request. All data associated with a submitted alias will be deleted. In addition, all data associated with the distinct\_id(s) that the alias maps to will be deleted. ## Submit Requests via Request Form in Mixpanel To access the "Data & Privacy" modal containing the end user data request form: 1. Navigate to "Data & Privacy" by clicking on the settings gear in the lower-left corner and navigating to Organization Settings. 2. Select Data & Privacy on the left-hand side. ![Data & Privacy](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/export-deletion-request-form.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=9069ad8b35f822a6f0880e6e0d03dbca) ### Exporting User Data You must submit an export request to export end user data. This is done to satisfy a GDPR right to access request from your users. 1. In the “Data and Privacy” section, click Request Export. 2. In the “Export User Data” box: * Select either CCPA or GDPR under type of export. * Select a project in the "Project" dropdown. * Under “User Data To Export”, select to export data for a single user or multiple users. * For a single user, provide the distinct\_id of the user. * For multiple users, upload a list of distinct\_ids as a .csv file. There is a limit of 2000 Users. 3. Click Submit Request. Note that requests can take multiple weeks to process. ![Data & Privacy](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/export-user-data-form.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=112f594a580bb342622d58e4e0e09773) ### Deleting User Data You must submit a deletion request to delete end user data. This is done to satisfy a GDPR right to erasure request from your users. 1. In the “Data and Privacy” section, click Request Deletion. 2. In the “Request User Data Deletion” box: * Select either CCPA or GDPR under type of export. * Select a project in the "Project" dropdown. * Select to delete data for a single user or multiple users. * For a single user, provide the distinct\_id of the user. * For multiple users, upload a list of distinct\_ids as a CSV file. There is a limit of 2000 users per request, which may be lower if your project uses Group Analytics. 3. Click Submit Request. Note that requests can take up to several weeks to process. ![Data & Privacy](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/delete-user-data-form.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=2b7d466e49babde4b7bb70cde004d98d) ### GDPR Requests GDPR requests are specifically designed to satisfy requirements as outlined in the General Data Protection Regulation. **Export** A GDPR export contains all data connected to the requested `distinct_id`, reaching back 10 years. You receive a ZIP archive of three JSON files. | File | Contents | | - | - | | `events.json` | Every event Mixpanel holds for the requested `distinct_id`, as one JSON object per event. | | `people.json` | The user profile, as a `$distinct_id` and `$properties` pair. | | `summary.json` | An index of every event name, event property, and profile property found in the other two files. | The examples below show one record from each file, and a shortened `summary.json`. A real export holds one record per event and the complete property lists. ```json events.json theme={"system"} { "event": "Document Shared", "properties": { "distinct_id": "9f8c2d41-6b3e-4f0a-8d21-5c7a1e9b4f33", "time": 1730462700, "$insert_id": "c92a7f38-1b64-40de-a5f7-8e30b1c94d27", "$browser": "Chrome", "$os": "Mac OS X", "$city": "Portland", "$current_url": "https://example.com/docs/quarterly-report", "plan": "growth", "recipient_count": 3 } } ``` ```json people.json theme={"system"} { "$distinct_id": "9f8c2d41-6b3e-4f0a-8d21-5c7a1e9b4f33", "$properties": { "$email": "alex.rivera@example.com", "$name": "Alex Rivera", "$city": "Portland", "$region": "Oregon", "$country_code": "US", "$last_seen": "2024-11-01T10:05:00", "plan": "growth", "signup_source": "organic_search" } } ``` ```json summary.json theme={"system"} { "event_names": { "Document Shared": {}, "Page View": {}, "Sign Up": {} }, "event_column_names": { "$browser": {}, "distinct_id": {}, "plan": {}, "time": {} }, "profile_column_names": { "$email": {}, "plan": {}, "signup_source": {} } } ``` **Deletion** A GDPR deletion includes all data connected to the requested `distinct_id`. ### CCPA Requests CCPA requests are specifically designed to satisfy requirements as outlined in the California Consumer Privacy Act. **Export** A CCPA export contains all data from the previous 366 days connected to the requested `distinct_id`. You receive a ZIP archive of CSV files, and which files you get depends on the disclosure type. | File | Contents | | - | - | | `events.csv` | One row per event. The first column is `event_name`, followed by a column for every event property in the export. | | `profiles.csv` | One row per profile. The first column is `distinct_id`, followed by a column for every profile property in the export. | | `event_names.csv` | Every event name in the export. | | `event_properties.csv` | Every event property name in the export. | | `profile_properties.csv` | Every profile property name in the export. | A property an event does not carry is an empty cell. The `events.csv` example below shows a subset of columns. ```csv events.csv theme={"system"} event_name,$browser,$city,$current_url,$os,distinct_id,plan,recipient_count,time Page View,"Chrome","Portland","https://example.com/pricing","Mac OS X","9f8c2d41-6b3e-4f0a-8d21-5c7a1e9b4f33",,,1730376000 Sign Up,"Chrome","Portland","https://example.com/signup","Mac OS X","9f8c2d41-6b3e-4f0a-8d21-5c7a1e9b4f33","free",,1730376240 Document Shared,"Chrome","Portland","https://example.com/docs/quarterly-report","Mac OS X","9f8c2d41-6b3e-4f0a-8d21-5c7a1e9b4f33","growth",3,1730462700 ``` ```csv profiles.csv theme={"system"} distinct_id,$browser,$city,$country_code,$email,$last_seen,$name,$os,$region,plan,signup_source 9f8c2d41-6b3e-4f0a-8d21-5c7a1e9b4f33,"Chrome","Portland","US","alex.rivera@example.com","2024-11-01T10:05:00","Alex Rivera","Mac OS X","Oregon","growth","organic_search" ``` ```csv event_names.csv theme={"system"} Document Shared,Page View,Sign Up ``` ```csv profile_properties.csv theme={"system"} $browser,$city,$country_code,$email,$last_seen,$name,$os,$region,plan,signup_source ``` **Deletion** A CCPA deletion includes all data connected to the requested `distinct_id`. **Disclosure types** There are three different disclosure types as outlined in the CCPA. Select the one that matches the request you received. | Disclosure Type | What the Export Contains | | - | - | | Data | All five files. The complete export. | | Categories | `event_names.csv`, `event_properties.csv`, and `profile_properties.csv` only — the names of the data Mixpanel holds about the end user, and no end user data itself. | | Sources | All five files, with the columns in events.csv and the entries in event\_properties.csv narrowed to the properties that describe how the data was collected, such as browser, operating system, device, location, and referrer. Event names and profile data are not narrowed. | ### Reading an Export > [!NOTE] > > The download link for a completed end-user export expires 30 days after the export finishes. Personal data export requests from Mixpanel (those submitted from your Personal Settings > Data & Privacy in Mixpanel) expire after 14 days. Submit a new request if you need the data after that. * The `time` property on an event is a Unix timestamp in seconds. For projects created on or after January 1, 2023, timestamps are stored in UTC. For older projects, timestamps are stored in the project's timezone at ingestion. * In `profiles.csv`, a `$transactions` profile property is collapsed to a single number: the sum of every transaction's `$amount`. A GDPR export keeps the full list. * In `summary.json`, the three values are sets. The keys hold the information and every value is an empty object. ## Opt Out Users While the following API can be used to delete or retrieve personal data as outlined by the GDPR, it is important to also opt users out of subsequent tracking. Deleting data from Mixpanel will remove it permanently, but it will not prevent the data from being collected moving forward. If tracking using a client-side Mixpanel library, you can opt users out of tracking using Mixpanel's opt-out methods. These are available in the following client-side libraries: * [JavaScript](/docs/tracking-methods/sdks/javascript#opting-users-out-of-tracking) * [iOS - Objective-C](/docs/tracking-methods/sdks/ios#opting-users-out-of-tracking) * [iOS - Swift](/docs/tracking-methods/sdks/swift#opting-users-out-of-tracking) * [Android](/docs/tracking-methods/sdks/android#opting-users-out-of-tracking) See Mixpanel’s [Privacy-Friendly Tracking](/docs/privacy/protecting-user-data#opting-users-out-of-tracking) guide for more information on best practices when handling personal information in Mixpanel. ## Submit Requests via API Mixpanel deletion and retrieval APIs are in place to help Mixpanel implementations meet the requirements outlined by the General Data Protection Regulation (GDPR) legislation. > [!NOTE] > > **GDPR Request Rate Limits** > > You can batch up to 2000 distinct IDs per deletion request and up to 2000 for a retrieval request. Request rates are limited for GDPR API requests. Please [see our GDPR API Reference](/reference/gdpr-api) to learn more about the deletion/retrieval endpoints. # EU Residency Source: https://docs.mixpanel.com/docs/privacy/eu-residency Store and process your Mixpanel data within the European Union ## Overview Mixpanel believes in respecting and protecting people’s fundamental online privacy and data rights, which is why we've built Mixpanel's analysis tools in compliance with industry best practices and global data regulations like the GDPR and the CCPA. Visit our [Privacy Hub](https://mixpanel.com/legal/privacy-hub/) to see how we comply with various privacy guidelines. ## Storing Your Data in the European Union By default, Mixpanel stores user data on its US Servers via the Google Cloud Platform. However, Mixpanel also provides you with the option to process and store your customers' personal data in Europe via our [EU Data Residency Program](https://mixpanel.com/legal/eu-data-residency). You can enable this by selecting the "EU Data Residency" option when creating a new project and using our EU subdomain during all API calls. > [!WARNING] > > No data will be ingested into your EU Data Residency project unless your implementation sends data to the EU Ingestion URL. Make sure you use the EU Ingestion URL in your SDK/implementation configuration. > > For most EU Projects created before August 18, 2025, US-to-EU Data Forwarding ended in July 2026. **Please ensure your implementation is updated to point to Mixpanel’s EU Servers** `api-eu.mixpanel.com`. See [changelog here](https://docs.mixpanel.com/changelogs#2026-02-20). For existing EU projects created prior to August 18, 2025, we encourage you to update your SDK configuration to use the dedicated EU endpoint. This is a best practice that ensures your project is correctly aligned with its data residency. | API | Standard Server | EU Residency Server | | - | - | - | | [Ingestion API](/reference/ingestion-api) | `api.mixpanel.com` | `api-eu.mixpanel.com` | | [Query API](/reference/query-api) | `mixpanel.com/api` | `eu.mixpanel.com/api` | | [Raw Data Export API](/reference/raw-data-export-api) | `data.mixpanel.com/api/2.0/export` | `data-eu.mixpanel.com/api/2.0/export` | | [Data Pipelines API](/reference/create-warehouse-pipeline) | `data.mixpanel.com/api/2.0/nessie` | `data-eu.mixpanel.com/api/2.0/nessie` | | [Lexicon Schemas API](/reference/lexicon-schemas-api) | `mixpanel.com/api/app/projects` | `eu.mixpanel.com/api/app/projects` | You can find where your data is stored under Project Settings > Data Residency for existing projects. Additionally, projects stored in the EU will have a URL that starts with 'eu.mixpanel.com', whereas projects stored in the US will have a 'mixpanel.com' URL. If the wrong Data Residency location was chosen before implementation, you will need to create a new project with the applicable data storage option and migrate all your existing data. Mixpanel cannot assist with migrating an existing project with the wrong residency location. You can find out more about creating a new project [here](/docs/orgs-and-projects/managing-projects#creating-projects). ## Using Our SDKs Next, you'll need to set the server location to EU when initializing the Mixpanel library. You can find instructions for the required config settings for each SDK below: * [JavaScript](/docs/tracking-methods/sdks/javascript#eu-data-residency) * [Objective-C](/docs/tracking-methods/sdks/ios#eu-data-residency) * [Swift](/docs/tracking-methods/sdks/swift#eu-data-residency) * [Android](/docs/tracking-methods/sdks/android#eu-data-residency) * [Python](/docs/tracking-methods/sdks/python#eu-data-residency) * [Java](/docs/tracking-methods/sdks/java#eu-data-residency) * [Ruby](/docs/tracking-methods/sdks/ruby#eu-data-residency) * [Node.js](/docs/tracking-methods/sdks/nodejs#eu-data-residency) * [React Native](/docs/tracking-methods/sdks/react-native#eu-data-residency) * [Flutter](/docs/tracking-methods/sdks/flutter#eu-data-residency) ## Log in via SSO If you want the IdP-initiated flow to direct to [eu.mixpanel.com](https://eu.mixpanel.com/), prepend "eu." to your postback URL. For example, `mixpanel.com/security/login/1` would need to be changed to `eu.mixpanel.com/security/login/1`. ## EU Residency and CDPs If you are coming to use Mixpanel from a Customer Data Platform (CDP), we cannot guarantee that data ingestion, processing, and storage will always stay within the EU region. Please work with your CDP to ensure they are sending your data to the EU endpoint. The following diagram shows how Mixpanel's Data Residency works: ![image](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/230121513-b3a8bb84-4a64-45d9-ad41-f38b3fe977ea.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=c620ec6bc35723523ea9b8b0b1e5ac78) # GDPR Compliance Source: https://docs.mixpanel.com/docs/privacy/gdpr-compliance How Mixpanel supports GDPR data subject rights, including access, erasure, objection, and its data retention policy ## Supporting Data Subject Rights As controllers of personal data, Mixpanel and its customers must uphold certain rights stated by the GDPR, including: ## Right to Access and Data Portability Mixpanel supports individuals’ right to access and right to portability of their personal data through individual export requests. Any Mixpanel account holder will be able to request an export of one’s personal data, as well as the personal data of their end-users. [The form for submitting end-user personal data export requests](/docs/privacy/end-user-data-management) and for submitting account holder data export requests is available through Personal Settings > Data & Privacy. ## Right to Erasure We support individuals’ right to erasure through a permanent deletion of personal data upon request. [Deletion API](/reference/create-deletion) is available to all users. ## Right to Object Our customers control what data is sent to Mixpanel, and may decide to halt the sending of personal data at any time. To assist with supporting individuals’ right to object to the collection of one’s personal data, Mixpanel also has built dedicated methods for our client-side SDKs that can be used to [opt end users out of tracking](/docs/privacy/protecting-user-data). Mixpanel collects information about how customers use the product, and uses this data to identify product gaps and improve existing products. While this information is useful, Mixpanel recognizes the importance of an individual's right to object. Mixpanel has therefore streamlined opt-out systems for its customers, who can opt out of tracking through simple controls, located under Personal Settings > Data & Privacy. ## Data Retention Policy As the processor of its customers’ data and to protect the privacy of information it stores, Mixpanel holds data no longer than is needed to provide its services. To further support this, Mixpanel has implemented the following data retention policy: Section 1. Events are automatically deleted after 2\* years on an ongoing basis from all projects. * The start of the retention period is the date that is transferred to Mixpanel with an Event (i.e., the “Event Date”), which typically corresponds to the date a user completed an action on a web or mobile application. In the event that an Event Date is not transferred to Mixpanel with an Event by our Customer, the Event Date is recorded as the date we received the Event. * \*As of September 1, 2025, Mixpanel's event retention period is 2 years. If your project was created prior to September 1, 2025 the retention period is 5 years; provided, that your project retention period will be reduced to 2 years in the event that you modify your plan or move to Mixpanel's Free Plan. Section 2. User data is retained for the duration of an active Subscription Plan. Customers are given the ability to delete profiles using the [Engage API](/reference/delete-profile). * Custom data retention windows can be set for user data by sending regular deletion requests to the Engage API. For more questions about setting custom data retention windows, [contact our support team](https://mixpanel.com/get-support). Section 3. Session Replays (i.e., all of the session data necessary for replaying user sessions in Mixpanel's user interface) are stored for 30 days from ingestion date. * Custom retention periods for Session Replay are available to customers on certain plans for a period of up to 12 months. Please review Mixpanel's Session Replay Documentation for additional information regarding custom retention period. Changes to the retention period impact replays ingested after the change. Sessions captured and ingested before a retention period change retain the previous retention period. * Underlying Events (e.g., for visualization in metrics, dashboards, etc.) will be retained for the period set out in Section 1 of this Policy. This policy includes projects that were deleted or reset through the Project Settings - deleting a project through the Project Settings triggers a soft deletion. The data in the deleted or reset project will remain stored in Mixpanel for 60-90 days, after which it will be hard deleted and unrecoverable. ## Rate Limit We place a [rate limit](/docs/privacy/end-user-data-management#rate-limit) in place to ensure the integrity of our system as well as prevent a single project from monopolizing the available resources for other projects # India Data Residency Source: https://docs.mixpanel.com/docs/privacy/in-residency Store and process your Mixpanel data within India ## Overview Mixpanel believes in respecting and protecting people’s fundamental online privacy and data rights, which is why we've built Mixpanel's analysis tools in compliance with industry best practices and global data regulations like India's DPDPA. Visit our [Privacy Hub](https://mixpanel.com/legal/privacy-hub/) to see how we comply with various privacy guidelines. > [!NOTE] > > If you would like access to the India Data Center, reach out to your Mixpanel account manager or [contact us here](https://mixpanel.com/m/india-mixpanel-analytics-for-fintech/). ## Storing Your Data in India Mixpanel provides you with the option to process and store your customers' personal data in India via our India Data Residency Program. You can enable this by selecting the "India Data Residency" option when creating a new project and using our India subdomain during all API calls. > [!WARNING] > > No data will be ingested to your India data residency project unless your SDK is sending data to the India URL endpoint. Ensure you are using the India URL endpoint in your SDK configuration. | API | Standard Server | India Residency Server | | - | - | - | | [Ingestion API](/reference/ingestion-api) | `api.mixpanel.com` | `api-in.mixpanel.com` | | [Query API](/reference/query-api) | `mixpanel.com/api` | `in.mixpanel.com/api` | | [Raw Data Export API](/reference/raw-data-export-api) | `data.mixpanel.com/api/2.0/export` | `data-in.mixpanel.com/api/2.0/export` | | [Data Pipelines API](/reference/create-warehouse-pipeline) | `data.mixpanel.com/api/2.0/nessie` | `data-in.mixpanel.com/api/2.0/nessie` | | [Lexicon Schemas API](/reference/lexicon-schemas-api) | `mixpanel.com/api/app/projects` | `in.mixpanel.com/api/app/projects` | You can find where your data is stored under Project Settings > Data Residency for existing projects. Additionally, projects stored in the India will have a URL that starts with 'in.mixpanel.com', whereas projects stored in the US will have a 'mixpanel.com' URL. If the wrong Data Residency location was chosen before implementation, you will need to create a new project with the applicable data storage option and migrate all your existing data. Mixpanel cannot assist with migrating an existing project with the wrong residency location. You can find out more about creating a new project [here](/docs/orgs-and-projects/managing-projects#creating-projects). ## Using Our SDKs Next, you'll need to set the server location to India when initializing the Mixpanel library. **This is required for all SDKs.** No data will be ingested to your India data residency project unless your SDK is sending data to the India endpoint. You can find instructions for the required config settings for each SDK below: * [JavaScript](/docs/tracking-methods/sdks/javascript#india-data-residency) * [Objective-C](/docs/tracking-methods/sdks/ios#india-data-residency) * [Swift](/docs/tracking-methods/sdks/swift#india-data-residency) * [Android](/docs/tracking-methods/sdks/android#india-data-residency) * [Python](/docs/tracking-methods/sdks/python#india-data-residency) * [Java](/docs/tracking-methods/sdks/java#india-data-residency) * [Ruby](/docs/tracking-methods/sdks/ruby#india-data-residency) * [Node.js](/docs/tracking-methods/sdks/nodejs#india-data-residency) * [React Native](/docs/tracking-methods/sdks/react-native#india-data-residency) * [Flutter](/docs/tracking-methods/sdks/flutter#india-data-residency) ## Log in via SSO If you want the IdP initiated flow to direct to [in.mixpanel.com](https://in.mixpanel.com/), prepend the "in." subdomain to your postback URL. For example, `mixpanel.com/security/login/1` would need to be changed to `in.mixpanel.com/security/login/1`. ## India Residency and Customer Data Platforms (CDPs) If you are coming to use Mixpanel from a CDP, please work with your CDP to ensure they are sending your data to the India endpoint. No data will be ingested to your India data residency project unless your CDP is sending data to the India endpoint. # Protecting User Data Source: https://docs.mixpanel.com/docs/privacy/protecting-user-data Opting users out of tracking and anonymizing data ## Overview Mixpanel gives you full control over the data you send to Mixpanel and provides you with the tools necessary to respect a customer's request to opt out of tracking. When a user is opted out, no data is sent to Mixpanel for that user, meaning their events won't be tracked or available in Mixpanel. Here, we share best practices for tracking in a privacy-friendly way. ## Opting Users Out of Tracking Mixpanel's client-side libraries include an 'opt\_out' method that allows you to manage a user's request to opt out of tracking. This allows you to quickly flag a user when they choose to opt out of tracking during the cookie consent management process. The client-side 'opt\_out' method sets a flag in the user's browser cookie or local storage, preventing data from being sent to Mixpanel. The opt-out state persists across sessions, meaning that if a user has opted out, they will remain opted out even if they close and reopen the app or website, unless the cookie/local storage is cleared or they explicitly opt back in. For mobile SDKs, when the 'opt\_out' method is called, any events and people updates that have not been sent to Mixpanel (i.e., those still in the local queue) are deleted from the device. This ensures that even data collected just before opting out, like App Open events, does not get sent to Mixpanel. Once opted out, the Mixpanel SDKs will continue to function normally, but will not send any data to the Mixpanel project. This means that calls to tracking methods, like track or identify, will essentially be ignored for the opted-out user. The client-side 'opt out' call will not affect server-side events. For server-side implementations, you need to manage the opt-out process manually. The server is responsible for generating IDs, maintaining ID persistence, and managing the opt-out state of users. ```javascript Javascript theme={"system"} mixpanel.opt_out_tracking(); ``` ```objc Objective-C theme={"system"} Mixpanel *mixpanel = [Mixpanel sharedInstance];\n[mixpanel optOutTracking]; ``` ```swift Swift theme={"system"} Mixpanel.mainInstance().optOutTracking(); ``` ```java Android theme={"system"} mixpanel.optOutTracking(); ``` ```javascript React Native theme={"system"} mixpanel.optOutTracking(); ``` You can also configure our SDKs to opt users out of tracking by default: ```javascript Javascript theme={"system"} mixpanel.init(YOUR TOKEN, {opt_out_tracking_by_default: true}); ``` ```objc Objective-C theme={"system"} Mixpanel *mixpanel = [Mixpanel sharedInstanceWithToken:@YOUR_API_TOKEN trackAutomaticEvents:NO optOutTrackingByDefault:YES]; ``` ```swift Swift theme={"system"} let mixpanel = Mixpanel.initialize(token: YOUR PROJECT TOKEN, trackAutomaticEvents: no, optOutTrackingByDefault: true) ``` ```java Android theme={"system"} MixpanelAPI mixpanelOptOutDefault = MixpanelAPI.getInstance(context, YOUR PROJECT TOKEN, true, true /* opt out by default */); ``` ```javascript React Native theme={"system"} const trackAutomaticEvents = false; const optOutTrackingDefault = true; const mixpanel = new Mixpanel('your project token', trackAutomaticEvents, optOutTrackingDefault); mixpanel.init(); ``` ## Opting Users In For Tracking The 'Opt In' methods in used to allow users to opt into tracking after they have been previously opted out or when the SDK is initialized with users opted out by default. When the Opt In method is called, it triggers an event called "\$opt\_in", which appears as "Opt In" in your project. This event is sent to Mixpanel to indicate that the user has opted into tracking. Locally, a flag is set in the user's cookie/local storage to indicate to the SDK that the user consents to data tracking. After calling the 'Opt In' method, Mixpanel will start collecting and sending data for that user. This includes events, user properties, and other tracking information. ```javascript Javascript theme={"system"} mixpanel.opt_in_tracking(); ``` ```objc Objective-C theme={"system"} Mixpanel *mixpanel = [Mixpanel sharedInstance];\n[mixpanel optOutTracking]; ``` ```swift Swift theme={"system"} Mixpanel.mainInstance().optInTracking(); ``` ```java Android theme={"system"} mixpanel.optInTracking(); ``` ```javascript React Native theme={"system"} mixpanel.optInTracking(); ``` ## Disabling Geolocation Mixpanel's Web and Mobile libraries use IP addresses to enrich events with geographic information like city, country, and region. Mixpanel does not store IP addresses, but rather, only uses IPs to assign [geolocation properties to data upon ingestion](/docs/tracking-best-practices/geolocation). You can disable this using the following configuration options in each of our SDKs: ```javascript Javascript theme={"system"} mixpanel.init("YOUR_TOKEN", {"ip": false}) ``` ```objectivec Objective-C theme={"system"} useIPAddressForGeoLocation = NO ``` ```swift Swift theme={"system"} Mixpanel.initialize(token: "MIXPANEL_TOKEN", useIPAddressForGeoLocation: false) ``` ```xml Android theme={"system"} ``` ```javascript React Native theme={"system"} setUseIpAddressForGeolocation(false) ``` You can also disable geolocation for individual payloads by setting the `ip` property value to 0. Learn more about ignoring IP addresses [here](/docs/tracking-best-practices/geolocation#ignore-ip-address). ## Anonymizing Users Mixpanel does not know, or need to know, any identifying information about users (like email or phone number). Mixpanel only needs to know that a set of events was performed by a particular user ID. You choose the ID and how you want to send that to Mixpanel. If you want to analyze aggregate user behavior without being able to drill down into any particular user, we recommend generating a hash of some unique ID of the user and using that hash as the user's ID when you call the `.identify()` method in our SDKs. ## Blacklisting Default Properties Our JavaScript library [automatically captures default properties](/docs/data-structure/property-reference/default-properties) to help enrich your data, but you can choose to prevent the setting of default properties using the property\_blacklist config option. To prevent default event properties from being sent, specify a list of properties to blacklist on library load, for example: ```javascript Javascript theme={"system"} mixpanel.init("YOUR_TOKEN", { property_blacklist: ['$referrer', 'custom_property'] }); ``` ## FAQ **Is opting users out of tracking compliant with privacy regulations like GDPR?** While Mixpanel provides tools to help our customers remain compliant with privacy regulations (such as methods for opting users in and out of tracking), it is the responsibility of the implementing company to ensure compliance with privacy regulations. Typically, organizations must obtain explicit consent from individuals before collecting, using, or sharing their personal data. For GDPR purposes, Mixpanel is considered the data processor, whereas you (the customer) are considered the data controller. Your end user's data is your responsibility. **Can users request a copy of their data?** Yes, Mixpanel provides tools for handling user data requests. However, it is important to note that Mixpanel doesn't handle end-users' requests directly. The company implementing Mixpanel is responsible for using Mixpanel's tools to fetch the data and provide it to its end-users. Learn more about our [GDPR Data Retrieval API Endpoint](/reference/create-retrieval-1). **What happens to previously collected data when a user opts out?** When a user is opted out of tracking, no subsequent data moving forward is sent to Mixpanel for that user. This means that future events won't be tracked or available in Mixpanel. However, data previously collected will remain in your project until the data retention period has passed, a data deletion is performed for that user's data, or a GDPR deletion is requested and performed. Learn more about [Data Deletion](/docs/data-governance/data-clean-up#2-deleting-problematic-data) and [GDPR Deletion requests](/docs/privacy/end-user-data-management). # Real-Time Event Streams Source: https://docs.mixpanel.com/docs/real-time-event-streams Stream Mixpanel events to a custom webhook within seconds of ingestion to power activation, personalization, and downstream data workflows. # Delivery and Reliability Source: https://docs.mixpanel.com/docs/real-time-event-streams/delivery-and-reliability How Real-Time Event Streams retry failed deliveries, handle at-least-once semantics, and expose failed events for debugging. > [!NOTE] > > Real-Time Event Streams are in Beta. Contact your Mixpanel account team to enable the feature for your project. Real-Time Event Streams are designed for at-least-once delivery with automatic retry of transient failures. This page describes the delivery, retry policy, failed events log, and headers you can use to deduplicate on your side. ## Latency Real-Time Event Streams target delivery to webhook endpoints within **p50 ≤ 60 seconds** of ingestion under normal load. ## Batching Events are batched per Sync before delivery. Mixpanel flushes a batch when it\ reaches **500 events** or **5 seconds** since the first event in the batch,\ whichever comes first.\ \ Each flush is a single \`POST\` whose body is a \*\*JSON array\*\* of rendered events,\ even when the array contains only one event: ​json\ \[\ \{ "event": "Signup", "user\_id": "abc" },\ \{ "event": "Signup", "user\_id": "def" }\ ]\ \ Your endpoint must accept a JSON array and return a single 2xx for the whole\ batch. A non-2xx fails the entire batch (all events are retried together). ## Retry policy Transient delivery failures are retried automatically. Permanent failures are not retried and surface as configuration errors. ### What gets retried | Failure type | Retried? | Notes | | - | - | - | | `5xx` response | Yes | Server-side error at the destination. | | Connection timeout / network error | Yes | Includes DNS failures and TLS handshake errors. | | `429 Too Many Requests` | Yes | Handled via backpressure. See [Rate limits](#rate-limits-and-backpressure). | | `401`/`403` (auth) | No | Terminal auth failure. Sync is paused. | | Other `4xx` response | Yes | Retried as "destination unreachable". If retries exhaust, Sync is paused. | ### Backoff schedule Up to **4 retries** (1 initial + 4 retries) with exponential backoff starting at 200ms, totaling roughly **3 seconds**: | Attempt | Delay before attempt | | - | - | | 1 (Initial) | Immediate | | 2 | 200ms | | 3 | 1 second | | 4 | 5 seconds | | 5 | 30 seconds | For `429` responses, the `Retry-After` header is honored when present, capped at 10 seconds. ### 4xx errors `401` and `403` responses indicate an authentication failure. These are terminal: * The Sync is paused immediately. * The Destination surfaces an authentication error. * A project admin must fix credentials or the webhook URL before restarting. Other `4xx` responses (e.g., `400`, `404`, `422`) indicate the destination is unreachable or misconfigured and are retried like transient failures. If retries exhaust: * The Sync is paused. * The error state is visible in the UI so a project admin can fix the endpoint or payload template. ## Failed Events Log When events cannot be delivered after retries, they move to a **failed events log** retained in-product for debugging. Each entry is an aggregated roll-up per failed stream. One row per Sync + status code + error type + count of failed events in that window ## Alerting on failure Failure alerting happens when a terminal failure is encountered (auth error, or non-auth 4xx after retries): the Sync moves into the `error` state and pauses streaming until a Project Admin re-enables it. See [States and monitoring](/docs/real-time-event-streams/states-and-monitoring) for state transitions. ## Rate limits and backpressure When a destination returns `429 Too Many Requests`: * The request is retried after respecting the `Retry-After` header (if present, capped at 10 seconds). * If retries exhaust, the Sync enters the `error` state and pauses. See [States and monitoring](/docs/real-time-event-streams/states-and-monitoring) for the full list of Sync states. ## What to build on your side To get the most out of the delivery model: * **Return 2xx quickly.** Acknowledge the request before doing heavy downstream work; process asynchronously on your side. * **Return 4xx for permanent errors, 5xx for transient ones.** This lets Mixpanel retry the right failures and surface the right errors. * **Honor `Retry-After`** on `429` responses so Mixpanel can back off cleanly. ## Next steps > [card] [States and monitoring](/docs/real-time-event-streams/states-and-monitoring) > > Destination and Sync states, and how to monitor Sync health. > [card] [Set up a Sync](/docs/real-time-event-streams/setup) > > Configure a webhook Destination and Liquid payload template. # Real-Time Event Streams Overview Source: https://docs.mixpanel.com/docs/real-time-event-streams/overview Stream Mixpanel events to a custom webhook within seconds of ingestion to power activation, personalization, and downstream data workflows. > [!NOTE] > > **Beta.** Real-Time Event Streams are currently available to a limited set of customers during Beta. If you'd like to participate, reach out to your Mixpanel account team. Real-Time Event Streams deliver Mixpanel events to your infrastructure within seconds of ingestion, so you can react to user behavior without waiting for a batch export. ## What you get in the beta > [card] Low-latency delivery > > Targeting p50 delivery within 60 seconds of event ingestion. > [card] Custom webhook destination > > Send events to any HTTPS endpoint you control, with your own auth and payload shape. > [card] Event and property filters > > Stream only the event types and property values that matter to your use case. > [card] Liquid-templated payloads > > Fully control the outbound request body, including field names and identity. ## When to use streams Use Real-Time Event Streams when latency matters and your workflow needs individual events as they happen: * **Live activation** — trigger emails, pushes, or in-app messages seconds after a qualifying event. * **Operational alerting** — feed on-call systems when key events are triggered. * **Personalization** — update recommendations and experiences based on the user's current behavior. * **Downstream pipelines** — fan events into your own queues or services for custom processing. ## How Real Time Streams compare to Data Pipelines [Data Pipelines](/docs/data-pipelines) deliver batches of events to warehouses and object stores on a schedule. Real-Time Event Streams deliver individual events with low latency to an HTTP endpoint you control. Use pipelines for analytics and reporting workloads; use streams when you need to act on events within seconds. ## Key Concepts * **Destination** — the webhook endpoint and its authentication configuration. * **Stream** — a rule that binds a set of filtered events and a Liquid payload template to a Destination. ## Real Time Delivery at a glance * **At-least-once delivery.** You can include the Mixpanel Insert ID property in the payload so you can deduplicate on your side. * **Automatic retries.** Transient failures (5xx, timeouts, network errors) are retried up to 4 times with exponential backoff. Permanent failures (4xx) are surfaced as configuration errors. * **Latency.** Target of p50 ≤ 60 seconds from ingestion to a confirmed 2xx response at your endpoint under normal load. See [Delivery and reliability](/docs/real-time-event-streams/delivery-and-reliability) for the full behavior. ## Next steps > [card] [Set up a webhook Sync](/docs/real-time-event-streams/setup) > > Configure a destination, choose events and property filters, and write your Liquid payload template. > [card] [Delivery and reliability](/docs/real-time-event-streams/delivery-and-reliability) > > Understand retries, the failed events log, and at-least-once delivery. > [card] [States and monitoring](/docs/real-time-event-streams/states-and-monitoring) > > Read Destination and Sync states and monitor Sync health. > [card] [Request beta access](mailto:support@mixpanel.com) > > Reach out to your Mixpanel account team to join the private beta. # Set Up a Webhook Sync Source: https://docs.mixpanel.com/docs/real-time-event-streams/setup Configure a Destination, filter events, authenticate outbound requests, and shape the payload with a Liquid template. > [!NOTE] > > Real-Time Event Streams are in private beta. Contact your Mixpanel account team to enable the feature for your project. This page walks through creating a webhook Sync end to end: configuring the Destination, selecting which events stream, adding property-level filters, authenticating outbound requests, and shaping the payload with a Liquid template. ## Prerequisites * Your project has access to the Real-Time Event Streams feature. * You have Project Admin permissions. * You have an HTTPS endpoint that can accept POST requests and return a 2xx response. ## Create a Sync **1. Open Real-Time Event Streams** **2. Add a Destination** Create a new webhook Destination with the endpoint URL and authentication method. See [Webhook authentication](#webhook-authentication). **3. Select events to stream** Choose one or more event types. See [Event-type filtering](#event-type-filtering). > [!WARNING] > > There is no "All events" default. You must explicitly select event types to prevent accidentally streaming a firehose of data. **4. Add property conditions (optional)** Narrow the stream further using [property-level filters](#property-level-filters). **5. Write the payload template** Define the outbound request body using [Liquid template syntax](#liquid-payload-template). **6. Save and enable** Mixpanel validates the template on save. Once enabled, matching events will begin streaming within seconds. ## Event-type filtering Users select one or more event types to stream. Only matching events are forwarded; all others are discarded before entering the streaming pipeline. Filtering happens before delivery, so unmatched events do not consume retry budget or queue capacity. * You must explicitly select at least one event type. There is no "All events" option. * You can update the selected event types at any time without recreating the Sync. ## Property-level filters Add one or more property conditions that must all be true for an event to stream. Conditions are combined with logical AND. **Example:** Stream `Purchase Completed` events only when `plan = "premium"` AND `country = "US"`. * Filters apply to event properties. * All conditions must evaluate to true for the event to be forwarded. * Events that fail filter evaluation are discarded and never counted against retry or delivery metrics. ## Webhook authentication Configure how Mixpanel authenticates outbound requests. The current authentication method is always visible on the Destination card. > [tab] API key header > > Set a custom header name and value. Mixpanel adds this header to every outbound request. > > ```http theme={"system"} > X-API-Key: abc123 > ``` > [tab] Bearer token > > Standard `Authorization: Bearer ` header. > > ```http theme={"system"} > Authorization: Bearer eyJhbGciOi... > ``` > [tab] No auth > > No authentication header is added. Use this only for internal endpoints that are otherwise protected (for example, IP-allowlisted or on a private network). > [!WARNING] > > If the destination returns an authentication failure, the Destination immediately moves to the `auth_error` state. Authentication failures are never silently swallowed. Re-authenticating updates the existing Destination in place — you do not need to delete and recreate it. ## Liquid payload template The full outbound request body is customer-controlled via a [Liquid](https://shopify.github.io/liquid/) template. This is the primary mechanism for shaping payloads, naming fields, and including identity information. There is no separate field-mapping UI. ### Available template variables | Variable | Description | | - | - | | `{{ event_name }}` | Event name | | `{{ event_time }}` | Event timestamp (ISO 8601) | | `{{ distinct_id }}` | Mixpanel user identifier | | `{{ insert_id }}` | Mixpanel deduplication ID | | `{{ project_id }}` | Mixpanel project ID | | `{{ properties['key'] }}` | Any event property | > [!NOTE] > > User properties are **not** currently available in the payload template. Only event properties and the top-level variables above are supported. If you need user attributes on the destination side, include them as event properties at tracking time or enrich after delivery. ### Example template ```liquid Payload template theme={"system"} { "user_id": "{{ distinct_id }}", "event": "{{ event_name }}", "timestamp": "{{ event_time }}", "insert_id": "{{ insert_id }}", "properties": { "plan": "{{ properties['plan'] }}", "country": "{{ properties['country'] }}", "revenue": "{{ properties['revenue'] }}" } } ``` ### Validation Template syntax is validated on save. Invalid syntax surfaces a clear error and blocks the Sync from enabling, so you cannot ship a broken template into production. > [!TIP] > > Include `{{ insert_id }}` in your payload if you plan to deduplicate on the destination side ## Next steps > [card] [Delivery and reliability](/docs/real-time-event-streams/delivery-and-reliability) > > Retries, failed events log, and at-least-once delivery. > [card] [States and monitoring](/docs/real-time-event-streams/states-and-monitoring) > > Destination and Sync states, plus how to monitor health. # States and Monitoring Source: https://docs.mixpanel.com/docs/real-time-event-streams/states-and-monitoring Reference for Destination and Sync states, audit logging, and the observability panel for Real-Time Event Streams. > [!NOTE] > > Real-Time Event Streams are in Beta. Contact your Mixpanel account team to enable the feature for your project. Every Stream and Destination has an explicit state that is visible without opening the detail view. This page is the reference for what each state means, how state transitions are logged, and which metrics you can use to monitor health. ## Stream states Stream state is shown as a status badge on the Syncs list view. | State | Meaning | | - | - | | `enabled` | The Stream is actively streaming matching events. | | `disabled` | The Stream is manually paused by a Project Admin. Events are discarded; no backlog accumulates. | | `error` | The Stream was paused after a terminal failure (auth error, or non-auth 4xx after retries). An Alert is sent when a stream enters this state and streaming stops until a Project Admin re-enables the Stream. | > [!WARNING] > > When a Stream is `disabled`, events matching the filter are **discarded**. Mixpanel does not accumulate a backlog to replay when the Stream is re-enabled. ## Destination states | State | Meaning | | - | - | | `authenticated` | Credentials are valid and have been tested against the endpoint. | | `auth_error` | Credentials are invalid or expired. Deliveries are failing on auth. | | `disabled` | The Destination has been manually disabled by a Project Admin. | Authentication failures on delivery immediately flip the Destination to `auth_error`. Re-authenticating updates the existing Destination in place; you do not need to delete and recreate it. See [Webhook authentication](/docs/real-time-event-streams/setup#webhook-authentication). ## Audit logging All state changes are audit-logged with a timestamp and the acting user. Use the audit log to trace who paused a Stream, when credentials were rotated, or when a Destination first tripped into `auth_error`. ## Related > [card] [Delivery and reliability](/docs/real-time-event-streams/delivery-and-reliability) > > Retry policy, failed events log, and at-least-once delivery. > [card] [Set up a Sync](/docs/real-time-event-streams/setup) > > Create a Destination and configure a webhook Sync. # Reports Overview Source: https://docs.mixpanel.com/docs/reports A report is a visual display of your tracked Mixpanel data A report is a visual display of your tracked Mixpanel data. Mixpanel has several types of reports: [Insights](/docs/reports/insights), [Funnels](/docs/reports/funnels/funnels-overview), [Flows](/docs/reports/flows), [Retention](/docs/reports/retention) and other advanced reports, each with their specialized use, and they can be accessed from the top-left side of the screen by clicking the '+ Create New' button. This article focuses on the key concepts that are applicable across the four basic report types (Insights/Funnels/Flows/Retention). > [!NOTE] > > Mixpanel's core reports are available on all free and paid subscription plans. ## Metrics Metrics are the values that the report will display. Every metric consists of a **measurement** of a **behavior**. An example of a metric is "Unique Users" doing "Sign up", which is the measurement of unique users, on the behavior of "Sign up". ## Behaviors A behavior is an event or a sequence of events performed within some criteria. A behavior can be something simple, such as a single event, or it can be more complex, like completing a multi-step funnel. ## Measurements The measurement tells the metric how to evaluate the behaviors. Some examples of measurements are: total events, unique users, total sessions, conversion rate, retention rate, and aggregate property. Depending on the behavior, certain measurements may not be possible. For example, you cannot use the conversion rate measurement when the metric only has a single event. The measurement is selected in the bottom-left area of the metric. ![measurement](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/report-measurement.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=934a6ef37ff4c47592fb6c7008987333) ## Visualizations You can change the type of visualization by clicking the dropdown in the upper right corner of the report. The options available will depend on the type of report that you started with. In this case, we switched to a bar view, allowing us to see the total number of "login" events across the entire time range, broken down by the "Platform" property. ![/Screen\_Shot\_2022-07-11\_at\_3.07.02\_PM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2022-07-11_at_3.07.02_PM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=4e27cd4e061b25b477caaa12ae5b915f) ## Filters Filters are used to narrow events or behaviors that qualify for analysis. For example, you may want to only consider "Sign Up" events that came from Android. In this case, you would be filtering the "Sign Up" event to only include the "Sign Up" events where the property "Device" is equal to "Android". ### Global Filters A global filter applies to the entire report. Filter by properties or cohorts by clicking the **Filter** button. This will filter the results of the entire report to show only data with that property or cohort. ![image](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/global-filter.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=50c0b397e6034433f7100f0ea15a7aeb) ### Inline Filters An inline filter applies to one particular event in the report. Add a filter to your query by clicking on the **…** icon beside an event, profile, cohort, or step. ![image](https://mintcdn.com/mixpanel-edb78807/2dQbP7q9Vb6iLUv1/images/3e36bd7e-f5b8-462a-890c-bf396ff98f69.png?fit=max\&auto=format\&n=2dQbP7q9Vb6iLUv1\&q=85\&s=4e1b4dda596ef2cbffe125cafcd307e1) Then, select a property from the drop-down list that appears and specify which values to filter. ![image](https://mintcdn.com/mixpanel-edb78807/LSnTJ-J777r9Qkr8/images/c7cce429-3c9c-4759-8ea1-b09345fa0b4e.png?fit=max\&auto=format\&n=LSnTJ-J777r9Qkr8\&q=85\&s=fea6322a43fe589c7db1f5c750256088) In Funnels, filtering a step by a particular property will limit the data you see in the funnel to events with that property value. You can choose multiple property filters for each item in your query. You can select whether you would like the query to match any of these filters, or all of the filters, by clicking on **and/or** beside the filters. ![image](https://mintcdn.com/mixpanel-edb78807/2dQbP7q9Vb6iLUv1/images/9e3bcd31-2b12-48d1-b04f-cdda85dd2584.png?fit=max\&auto=format\&n=2dQbP7q9Vb6iLUv1\&q=85\&s=a9eb77907356c7740917b49bb32b9cf3) ### First Time Ever Filter Sometimes, you might want to filter an event to only the first time that it's performed by a user. This helps answer the following questions: * How many users sign up or perform another key event for the first time each week? * Which referrers do most first-time users come from? * How quickly do users make a purchase after their first time engaging with the app? * How well do users retain after performing a key event for the first time? * What events do users perform before and after making their first purchase? You can do this by adding a First Time Filter to any event in Mixpanel. This filters the event down to only the first instance of the event performed by a user: ![233894752-93851682-9d83-4c87-937d-8fd90db465c6.png](https://user-images.githubusercontent.com/2077899/233894752-93851682-9d83-4c87-937d-8fd90db465c6.png) Mixpanel computes this on-the-fly by scanning each user's history to determine if this was the first instance of the event performed by the user, based on timestamp. Note that when there's a tie in the timestamps of the first event (e.g., the user does multiple first-time Purchases in the same second), all of those events will be considered the "first time" and will match the filter. The impact will be that Mixpanel includes multiple events for those users, so if you break down by user ID, you may see that the user did multiple first events. ## Breakdowns Breakdown groups the results of your metrics in Insights, Funnels, Flows, or Retention reports by a property or cohort, allowing you to examine which properties or cohorts have a significant impact on your query. This feature is useful for determining if a group factor, such as browser type, is having an impact on the way users interact with your product. Breakdown will display counts, such as the number of events performed or the conversion rates with that property value. Select the **Breakdown** button, and select the property or cohort you want to break down your results by. ![image](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/report-breakdown.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=bb1df214ba75a937476df27755f9f639) For cohorts, you will be shown groups of users both in and not in the cohort in your results. It is only possible to either group by properties or group by cohorts, but not both. ## Events Menu This is the menu that appears under "Add Metric" or "Select Step". By default, the event menu shows all events, except for [hidden events](/docs/data-governance/lexicon#hide-events-and-properties). If you organize your events using [tags](/docs/data-governance/lexicon) in Lexicon, the tags will show up as filtering options in the event menu. When you select a tag, a list of events that share the same tag appears: ![/Untitled\_\_1\_.png](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/Untitled__1_.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=92f42c23dfbdec01c83e862fa45f4f8d) ## Properties Menu This menu appears when adding a filter, an inline filter on an event, or a breakdown. By default, the menu shows all properties; this includes event properties, profile properties, group properties, lookup properties, and cohorts. You can select the following filtering options to show a subset of the properties in the menu: * Select "Event" to show only the [Event properties](/docs/data-structure/events-and-properties). * Select "User" to show only the [Profile properties](/docs/data-structure/events-and-properties). * Select "Computed" to show only the [Computed properties](/docs/features/computed-properties). * If you set up [Group Analytics](/docs/data-structure/group-analytics), the group keys will appear individually under their respective display names. You can select any Group key to show only the Group properties relevant to the selected Group key. * Select "Cohorts" to show only the [Cohorts](/docs/users/cohorts). * If you set up [Experiments](/docs/experiments), they will appear individually under their respective display names. ![/insights\_properties\_section.png](https://mintcdn.com/mixpanel-edb78807/4DDX4SOt7-BCjBUy/insights_properties_section.png?fit=max\&auto=format\&n=4DDX4SOt7-BCjBUy\&q=85\&s=a3e922faed4b6448097e6bfcb43e95d9) ### Duplicating Metrics To duplicate any metrics or properties in your query, select the inline action menu and choose **Duplicate**. Delete any events or properties by clicking the **Remove** button. ![Event Options](https://mintcdn.com/mixpanel-edb78807/4DDX4SOt7-BCjBUy/images/event_options.png?fit=max\&auto=format\&n=4DDX4SOt7-BCjBUy\&q=85\&s=1bb0d769054b3a10684c18a3631977a2) ## Date Range Determine the time range of a query by clicking on the date range selector. The date range selector is common across all reports. All dates and times in Mixpanel reflect the project's timezone [(by default, UTC)](/docs/orgs-and-projects/managing-projects#changing-your-timezone). The default for most reports is “Last 30 days” (displayed as "30D"), but there are a variety of preset options, as well as the option to select a custom date range. ![new date rate](https://mintcdn.com/mixpanel-edb78807/4DDX4SOt7-BCjBUy/images/new_date_range.png?fit=max\&auto=format\&n=4DDX4SOt7-BCjBUy\&q=85\&s=c036f72b68cab15d581f524b1dbd5ed0) For these date ranges, the output shows results from the last complete days, plus any results from the current incomplete day. | Preset | Description | | - | - | | Custom | Gives multiple customization possibilities, explained below. | | Today | Includes the current incomplete day up to the current second. | | Yesterday | Includes the whole of the previous day from midnight to midnight. | | Last 7 days | Last 7 days and the query count from the current incomplete day up to the current second. | | Last 30 days | Last 30 days and the query count from the current incomplete day up to the current second. | | Last 3 months | Last 3 months and the query count from the current incomplete day up to the current second. | | Last 6 months | Last 6 months and the query count from the current incomplete day up to the current second. | | Last 12 months | Last 12 months and the query count from the current incomplete day up to the current second. | ### Custom Selecting **Custom** on the date range selector opens up some additional options: "Recently Applied", "Fixed", Last", Since", "Period to date", and "Previous period". ### Recently Applied This option will give you access to a prompt field, where you can type the range you're looking for (*'last 16 days starting on June 4th'*) for the AI to resolve for you, and also see a list of the last ranges used. ![Date Picker Recently Applied](https://mintcdn.com/mixpanel-edb78807/4DDX4SOt7-BCjBUy/images/date_picker_recently_applied.png?fit=max\&auto=format\&n=4DDX4SOt7-BCjBUy\&q=85\&s=9b965a87733d768de691f84d5d0f8bd5) ### Fixed “Fixed” allows you to select two dates to query between by entering the same start and end date. ![Date Picker Fixed](https://mintcdn.com/mixpanel-edb78807/4DDX4SOt7-BCjBUy/images/date_picker_fixed.png?fit=max\&auto=format\&n=4DDX4SOt7-BCjBUy\&q=85\&s=2b7d2290afebbda6b94f73963acedb6c) ### Last “Last" allows you to select a rolling time range similar to the default “last 30 days”, but you have the flexibility to choose the time value and scale, either days, weeks, months, or quarters. ![Date Picker Last](https://mintcdn.com/mixpanel-edb78807/4DDX4SOt7-BCjBUy/images/date_picker_last.png?fit=max\&auto=format\&n=4DDX4SOt7-BCjBUy\&q=85\&s=f060d0d900fa21ef3b4bd729ce19eb17) If needed, you can adjust the desired time window backward by the selected number of days in the "Ending" section. For instance, in the example below, we are still looking at a 2-week window that is shifted 7 days back. ![Date Picker Last Rolling Window](https://mintcdn.com/mixpanel-edb78807/4DDX4SOt7-BCjBUy/images/date_picker_last_rolling_window.png?fit=max\&auto=format\&n=4DDX4SOt7-BCjBUy\&q=85\&s=7041e079178d9b78e406d6c99a80e3bc) ### Since “Since” allows you to select a specific date to query for all data since that start date. ![Date Picker Since](https://mintcdn.com/mixpanel-edb78807/4DDX4SOt7-BCjBUy/images/date_picker_since.png?fit=max\&auto=format\&n=4DDX4SOt7-BCjBUy\&q=85\&s=f155d5effbdf93c282347091d9b650f5) ### Period to date This option allows you to select a date range that will update dynamically to fit the current interval - you can choose "Day", "Week", "Month", "Quarter", and "Year". When the boundary of the interval is passed, the date range will automatically update to include only the current interval. For example, if "Month" was selected on June 27, the date range would include Jun 1 - Jun 27. The next month, after June has passed, the date range would include Jul 1 - Jul 8, as shown in the image below.\ "Period to date" respects the start of the week and start of quarter settings under Project Settings. ![Date Picker Period To Date](https://mintcdn.com/mixpanel-edb78807/4DDX4SOt7-BCjBUy/images/date_picker_period_to_date.png?fit=max\&auto=format\&n=4DDX4SOt7-BCjBUy\&q=85\&s=3d4eca3b3c72c6e31331811706f2dfc3) ### Previous period Choosing this option allows you to query information tracked only in the selected period: "Day", "Week", "Month", "Quarter", and "Year". ![Date Picker Previous Period](https://mintcdn.com/mixpanel-edb78807/4DDX4SOt7-BCjBUy/images/date_picker_previous_period.png?fit=max\&auto=format\&n=4DDX4SOt7-BCjBUy\&q=85\&s=300df152ab95a7f03d25ed2bde7554cf) ### Minute Level Granularity Enable hourly and minute-level granularity by clicking the "Enable Time Ranges" toggle on the bottom-left side of the date range picker. This enables you to select time ranges up to the minute. You can also use this for the "Last" time range to monitor only the past few hours or minutes.\ This setting only works for the "Fixed", "Last", and "Since" options; it's not available for "Period to date" and "Previous period". ![Date Picker Fixed Time Ranges](https://mintcdn.com/mixpanel-edb78807/4DDX4SOt7-BCjBUy/images/date_picker_fixed_time_ranges.png?fit=max\&auto=format\&n=4DDX4SOt7-BCjBUy\&q=85\&s=cd4d0cb62b4a311548468b0f543ef90f) ## Zoom In To zoom in, click on the graph and drag to highlight a specific window of time in your report. Click **Reset zoom** to return to the previous view. ![zoom (1)](https://mintcdn.com/mixpanel-edb78807/2dQbP7q9Vb6iLUv1/images/3add64ad-3fea-4d74-a3bf-303fcc1f4d9d.gif?s=d8fed7be0ed9b6fdb2d24e605790cfba) ## Comparisons Comparisons allow you to compare metrics or broken-down segments of metrics against each other. Depending on the type of comparison, you are also able to see the lift of a segment or metric against another. ### Compare to Past 'Compare to Past' allows for comparing a metric against itself on a different time period. You are able to compare against the previous day, week, month, quarter, and year. You are also able to choose a custom time comparison window. ![/compare\_to\_past.png](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/compare_to_past.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=055e47b764cce3e5b336883898f71eff) By default, Mixpanel will visualize the values for both time periods. If you wish to see the lift of the current time period against the past time period, you can select the "Percent Change over Baseline" option to see the lift of your metric over time. ![/compare\_to\_past\_lift.png](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/compare_to_past_lift.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=b701f3c8a011c20945cc9c9019072656) ### Compare to Segment Compare to segment allows you to set a property value as a baseline and see how every other property compares. ![/compare\_to\_segment.png](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/compare_to_segment.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=db0d028dad28abc6abe30ca1b4a22497) ### Compare to Overall 'Compare to Overall' allows you to compare each segment value and see what proportion it makes of the overall value. ![/compare\_to\_overall.png](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/compare_to_overall.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=3b14445a4fd517376a7785c9f1a9a854) #### Supported Charts Comparisons are supported across all insights chart types. Depending on the exact configuration chosen, certain comparison operations may be disabled. | Chart Type | Time Comparison Supported | Percentage change over Baseline Supported | Percentage of Overall Supported | | - | - | - | - | | Insights Line | Yes | Yes | Yes | | Insights Stacked Line | No | No | Yes | | Insights Bar | Yes | Yes | Yes | | Insights Stacked Bar | Yes | No | No | | Insights Pie | No | No | No | | Insights Metric | Yes | Yes | Yes | | Funnels Steps | Yes | Yes | No | | Funnel Trends | Yes | Yes | No | | Retention Curve | No | Yes | No | | Retention Trends | Yes | Yes | No | ## Saving to a board > [!NOTE] > > Free plans allow each user to save up to 5 reports, while Growth and Enterprise plan users can save an unlimited number of reports. See our [pricing page](https://mixpanel.com/pricing/) for more details. When you are satisfied with the analysis and decide that this is something that you are likely to revisit, you save the report to a [board](/docs/boards) by pressing "Save" in the top right and selecting the board you would like to save to, or creating a new board. All reports are saved to a board, which inherits the sharing settings and permissions applied to that board. Learn more about saving, sharing, and permission for your reports and boards [here](/docs/boards/sharing-and-permission). ![Reports Save To Board](https://mintcdn.com/mixpanel-edb78807/4DDX4SOt7-BCjBUy/images/reports_save_to_board.png?fit=max\&auto=format\&n=4DDX4SOt7-BCjBUy\&q=85\&s=4b13cf85ab1dea2b61911dc31e3ae77f) ## Typecasting Mixpanel allows you to force Properties into another [data type](https://help.mixpanel.com/hc/en-us/articles/115004547063) by using the **"Data Type"** option in the overflow menu for property filters and breakdowns. ![/Kapture\_2022-01-04\_at\_11.38.41.gif](https://mintcdn.com/mixpanel-edb78807/YwnZf1T9eqEqTP5R/images/Kapture_2022-01-04_at_11.38.41.gif?s=f8c6fceef2abb8c1340c9b3ebbb8c9ad) Typecasting is helpful when one of your properties is a number but is sent to Mixpanel as a string, and you want to see histogram data for that property. Or if one of your properties is a Unix timestamp and got sent as a number, and you want it to be treated as a date Property instead. **How do I see the exact numeric values when applying a breakdown to a number data type in Insights?** Insights will automatically bucket high-cardinality segments of number data types into ranges. You can either customize the ranges by clicking "[Customize Range](/docs/features/custom-buckets)". Alternatively, if you'd like to see the exact numeric values, you can typecast the Number property to a String to remove the range bucketing. ## View Users View Users is a streamlined process for exploring the users contributing to a specific metric or point on a chart. By interacting with the chart, you can view a group of users experiencing friction or dig deep into which users are driving feature adoption. View Users can help you: * See the users contributing to any metric and view their recent activities & properties. * Save these users as a cohort. * Export these users to a CSV file. ![Reports View Users](https://mintcdn.com/mixpanel-edb78807/4DDX4SOt7-BCjBUy/images/reports_view_users.gif?s=9e97a9a4aab360704991ff78aff84fa3) ## Segment Limits and Ordering > [!WARNING] > > When you encounter a "cardinality limit" error or see a "-" in your report despite having data, it indicates that the query returned more unique segments than the UI can display. To resolve this, narrow the time range, apply filters to specific events or properties, or reduce the number of breakdowns. These steps limit the segments, making your report easier to interpret and reducing the strain on the querying capacity of your projects. In order to keep the interactive analysis experience snappy for projects of all sizes, Mixpanel limits how many segments are returned when using breakdowns. When breakdown (also referred to as segmentation) limits are reached, the response will be truncated to only return the top N segments. We have higher limits available via CSV exports. ### UI We are changing how many segments are returned to the report (visible limit), how many segments can be selected at a time for visualization (selection limit), as well as the number of segments selected by default (default selection). Here is the breakdown per report visualization type: | **Report Viz** | **Default Selection** | **Selection Limit** | **Visible Limit** | | - | - | - | - | | Insights (table) | 12 | 3000 | 3000 | | Insights (bar) | 12 | 300 | 3000 | | Insights (line & pie) | 12 | 50 | 3000 | | Insights (metric, column) | 6 | 12 | 3000 | | Retention | 6 | 12 | 200 | | Funnels | 6 | 12 | 200 | ### CSV Export When exporting a report as CSV, we offer elevated limits. For most reports, the CSV export limit is 10,000. For insights non-line charts, we allow for up-to 50,000. ### Top Segments logic The way we pick the top segments differs according to the type of query. We choose the top segments based on the value shown in the metric value column. | **Query type** | **How we select top segments** | | - | - | | Total | Total number of occurrences of the chosen event | | Unique | Number of unique users who performed the chosen event | | Sum of property values | Sum of the chosen property | | Min/max of property values | Lowest/highest value of the chosen property | | Average | Number of events (or users) that contribute to the average | | Median/Percentile/Distribution | Number of events (or users) that contribute to the distribution | | Distinct count | Number of distinct values of the chosen property | | DAU/WAU/MAU | Number of unique users | | Sessions | Number of sessions that contain the chosen event | | Funnels | Total number of times the first funnel step was completed | | Retention | Total number of times the first event was completed | ### Multi-metric and formula reports Since our top N logic is determined per metric, multi-metric and formula reports that have breakdowns that exceed segment cardinality limits may experience a few awkward edge cases where the different metrics’ top N segments are misaligned. We highly recommend using filters to bring your segment count under our cardinality limit to ensure the same segments are selected across metrics - ensuring formula accuracy and a more user-friendly report viewing experience. You may also wish to use CSV exports for these cases. ### Multi-breakdown reports For multi-segmentation or multi-breakdowns, we define the top N segments based on the top N flattened segments, which are the combination of the individual segment values across all breakdowns. For example, for a breakdown by Country and Browser, we treat “United States/Chrome” as one flattened segment for our segmentation limits. ### How will I know if my results are being truncated? You will see a banner at the top of your report indicating that results were truncated, what limit was applied, and what CSV export limit is available. ![image](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Segment_limits.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=85bbf9e12ebfd37edf37c33f567c3bb1) ## Query Time Sampling > [!NOTE] > > This feature is available to customers with an Enterprise subscription plan in projects with over 2 billion monthly events. Query-time sampling allows you to query a subset of users and shorten the time it takes for a report to load results. The Insights, Funnels, Retention, and Flows reports all support sampling at query time. ### Enable Sampling From the report in which you would like to use sampling, click the **lightning bolt** in the upper-right corner of the query builder. This will enable sampling on the report and will be indicated by the lightning bolt symbol turning blue.\ The percentage of the total that is included in the query calculations will be indicated in the banner shown above the report. ![Reports Query Time Sampling](https://mintcdn.com/mixpanel-edb78807/4DDX4SOt7-BCjBUy/images/reports_query_time_sampling.png?fit=max\&auto=format\&n=4DDX4SOt7-BCjBUy\&q=85\&s=3e747f07317e813d957944a6f850fa04) To turn off sampling, simply click the lightning bolt toggle again. ### Query Time Sampling Calculation and Presentation Mixpanel will not sample or drop events at ingestion. Instead, Mixpanel will ingest all event data and sample it at query time. This prevents the loss of important data and, therefore, allows you to toggle sampling on and off depending on need. For example, if you need iterative querying, then sampling will greatly speed up this process. When you build the proper query, you can turn off sampling and query the entire dataset. The following occurs when sampling is enabled: 1. Mixpanel selects a uniformly random sample of users on which to run the analysis. 2. The sample size is 10% of the total population. 3. The report is generated using that subset of users. 4. Mixpanel up-samples the data by multiplying by the inverse of the sampling factor. This is done for [functions](/docs/reports/insights) such as totals and uniques. Functions that do not scale with users (average, min, max) will not be up-sampled. 5. The effect is that numbers should closely approximate results seen without sampling enabled. This works better as the number of users increases, particularly for customers with more than 5 million users. 6. Mixpanel adds an annotation to reports. > [!NOTE] > > If you save a report that uses query time sampling, then a version of the report *without* sampling is saved. This ensures that boards and saved reports are computed on the entire dataset for high fidelity. ## Query Result Caching Mixpanel stores the results from a report query in our server cache and presents these results from there when appropriate. This saves time when running a complicated query multiple times, and allows you to surface previously calculated results near-instantaneously. The date range of the query will adjust how Mixpanel presents results from the server cache. * If the query date range is 1 year or over, then the query results are cached for up to 14 days. * If the query date range is under 1 year, then the query results are cached for up to 7 days. * If the query date range is under 6 months, then the query results are cached for up to 3 days. * If the query date range is under 2 months, then the query results are cached for up to 2 days. * If the query date range is under 1 month, then the query results are cached for up to 1 day. * If the query date range is under 1 week, then the query results are cached for up to 12 hours. * If the query date range is under 1 day, then the query results are cached for up to 1 hour. While this highlights the default server cache behavior, you can always refresh a report to include the most current data as described below. ### Refreshing the Query Results Cache To refresh the query results cache, navigate to the report, click the three dots overflow menu at the top of the report and select **Refresh Data**. ![public/Refresh\_Data\_Report.png](https://mintcdn.com/mixpanel-edb78807/LIWtWr4Am6t1wkkk/images/Refresh_Data_Report.png?fit=max\&auto=format\&n=LIWtWr4Am6t1wkkk\&q=85\&s=031a8585597cc6cb84034718087adfbe) To refresh the query results' cache in a board, click the three dots overflow menu at the top of the board and select **Refresh Data**. ![public/Refresh\_Data\_Board.png](https://mintcdn.com/mixpanel-edb78807/LIWtWr4Am6t1wkkk/images/Refresh_Data_Board.png?fit=max\&auto=format\&n=LIWtWr4Am6t1wkkk\&q=85\&s=018f6ea53c4b5ca8cae6d339981c6018) To refresh the query results' cache in a board card, click the three dots overflow menu at the top of the card and select **Refresh Data**. ![public/Refresh\_Data\_Board\_Card.png](https://mintcdn.com/mixpanel-edb78807/LIWtWr4Am6t1wkkk/images/Refresh_Data_Board_Card.png?fit=max\&auto=format\&n=LIWtWr4Am6t1wkkk\&q=85\&s=ddf100244c47b6273ae7fb69ed2eec19) ## Find Interesting Segments Determine which users are either driving conversion and retention or behaving as outliers by using the built-in “Find Interesting Segments” feature. Find Interesting Segments can help you discover: * Whether certain property segments outperform the overall funnel conversion or retention rates. * Cohorts that perform best to optimize for those behaviors. * Segments that are under-performing. * Changes in the conversion or retention rates of segments. * Change in population over time in funnels. User properties are not yet supported. ### Interesting Segments in Funnels View the top and bottom converting segments in your funnel by clicking the **Find interesting segments** button at the bottom of the segmentation chart. ![/10038188905364](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/10038188905364.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=48197ee9e630fb9b122262892e50077c) Rather than searching through multiple property breakdowns to find significant data, this feature automatically identifies this data for you. Mixpanel combs through your event properties and cohorts to show you which of those segments convert higher or lower than average, and are therefore statistically significant. There are two reports you will receive in your email: segment analysis and time comparison. ### Segment Analysis An email that breaks down the top and bottom converting segments of your funnel based on statistical significance and other factors is automatically sent after you click the button. If no statistically significant segments are found, then the email shows non-statistically significant segments. Segment Analysis helps answer questions such as: * Which groups of users are driving my conversion rate? * Which groups of users are decreasing my conversion rate? This is done by examining which segments of users are converting at a high rate and have a large enough population size, or which segments are converting at a low rate and have a large enough population size. In the first scenario, this segment would raise the overall conversion rate, while in the second scenario, this segment would lower the overall conversion rate. ### Time Comparison A time comparison chart is also included in the email. This chart shows a segment's behavior over time (in terms of both conversion rate change and population size change) as it relates to the overall population trend (population and conversion rate change). Time comparison answers questions such as: * Which groups of users are trending in a way that is different from the overall behavior? * Which groups of users are driving the overall behavior? Mixpanel automatically compares the currently selected date period to the previous one. For example, if you are viewing the current week, the email will compare to the week before. ### Interesting Segments in Retention View the top and bottom converting segments in your retention report by clicking the **Find interesting segments** button at the bottom of the retention chart. This feature is not currently available for Frequency Retention. ![/10037069627156](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/10037069627156.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=e4fb114239cc4d99516e11e942b413c1) Rather than searching through multiple segment breakdowns to find significant data, this feature automatically identifies that data for you. Mixpanel combs through your event properties and cohorts and shows you which of those segments retain at a higher or lower rate than average. An email that breaks down the top and bottom retaining segments of your Retention report based on changes in retention rates is automatically sent after you click the button. ### Interpret Email Results When your analysis email says “no interesting segments”, this means that none of the segments you analyzed were behaving significantly differently from the overall population at a large enough volume. To resolve this issue, try extending the date range of the report or try a different report. If the analysis request included dates in the past five days and is sent from the mobile SDK, data may be delayed and therefore not included at the time of the analysis. Likewise, the date window selected might still fall under the conversion window, and more conversions have yet to come through. Results are sorted by taking into consideration the property, the number of users in the report, as well as the deviation from overall conversion or retention behavior to surface the most meaningful segments to you. ## Version History Version History lets you see a log of every saved version of a report, review what changed in each one, and preview, restore, or duplicate a previous version. Version History is available on Insights, Funnels, Flows, and Retention reports. Open it by clicking the **clock icon** in the top-right corner of a report. ![Version History panel on a report](https://mintcdn.com/mixpanel-edb78807/eg1PdhJ-44_MQV4m/images/version-history.png?fit=max\&auto=format\&n=eg1PdhJ-44_MQV4m\&q=85\&s=2300ec846518cfb361d7c7dfb0216027) ### How versions are created Every time a report is saved, Mixpanel creates a new version. For each version, the panel shows: * The date and time of the save, in the project's timezone. * The user who made the save. * Key details about what changed from the previous version, such as added, removed, or updated metrics, or a renamed report. If a report is changed through the [Mixpanel Agent](/docs/mixpanel-agent) or the [MCP server](/docs/mcp), the version is attributed to the user who authorized the changes, not to the agent. ### Preview, restore, or duplicate a version Click any previous version to preview it. From the version's overflow menu, you can: * **Restore this version** — makes the selected version the current version of the report. * **Duplicate report** — creates a separate copy of the report from the selected version, leaving your current report unchanged. * **Copy link** — copies a link to that version of the report. ![Restore, duplicate, or copy a link to a previous version](https://mintcdn.com/mixpanel-edb78807/eg1PdhJ-44_MQV4m/images/version-history-restore.png?fit=max\&auto=format\&n=eg1PdhJ-44_MQV4m\&q=85\&s=a681e77188e3924c449c9a355f68371f) > [!NOTE] > > If you preview an older version, make changes, and save, those changes are logged as a new version and overwrite your current version. To make changes based on an older version while keeping your current version intact, duplicate the older version instead so that you have two separate copies. Version History goes back 90 days on Free and Growth plans, and 2 years on Enterprise plans. > [!NOTE] > > Some actions are not currently shown in Version History, including deleting a report, linking a report to a new board, and moving a report between boards. # Other Apps Source: https://docs.mixpanel.com/docs/reports/apps Explore Mixpanel's Impact, JQL, and Signal analysis tools > [card] [Impact](/docs/reports/apps/impact) > [card] [JQL](/docs/reports/apps/jql) > [card] [Signal](/docs/reports/apps/signal) # Impact Source: https://docs.mixpanel.com/docs/reports/apps/impact Measure the effect of a launch on your KPIs > [!NOTE] > > Users on a Growth or Enterprise plan can access the Impact report. See our [pricing page](https://mixpanel.com/pricing/) for more details. ## Overview Mixpanel’s Impact report measures the effects of product or marketing launches on your key metrics. Impact calculates the user adoption of the launch, the impact of the launch on an important event, and the differences between users who adopt the launch and those who do not. To access **Impact**, go to the Applications section on the bottom left-side of the screen, and then select **Impact**. ![Applications Impact](https://mintcdn.com/mixpanel-edb78807/4DDX4SOt7-BCjBUy/images/applications_impact.png?fit=max\&auto=format\&n=4DDX4SOt7-BCjBUy\&q=85\&s=df9a1386febf8848230374b056698267) ## Use Cases Here are some of the sample questions you can answer in Impact: * How is the adoption of my feature changing over time? * Did my feature launch affect the rate of another key value moment? ## Quick Start [https://www.youtube-nocookie.com/embed/wH-dzEn02rw](https://www.youtube-nocookie.com/embed/wH-dzEn02rw) ### Step 1: Select a launch event To build an Impact query, first select a launch event. This is the event that you are measuring as the cause of change. ![Impact Add Event](https://mintcdn.com/mixpanel-edb78807/4DDX4SOt7-BCjBUy/images/impact_add_event.png?fit=max\&auto=format\&n=4DDX4SOt7-BCjBUy\&q=85\&s=3c73e4c96a1e8ddcc14605544b30e13b) Select the start date of this launch event. Add any additional filters to narrow the launch event parameters by clicking the "**..." button** and then "Filter". ![Impact Add Filters](https://mintcdn.com/mixpanel-edb78807/4DDX4SOt7-BCjBUy/images/impact_add_filters.png?fit=max\&auto=format\&n=4DDX4SOt7-BCjBUy\&q=85\&s=5ac7612dfe3df1e9e5ef0a51b8a10903) ### Step 2: Select metric events Select a metric event by clicking the **Add** button under **IMPACTED EVENTS**. You are measuring the impact of the launch event on this metric event. Add additional filters to narrow the impacted event parameters. ![Impact Add Impacted Event](https://mintcdn.com/mixpanel-edb78807/4DDX4SOt7-BCjBUy/images/impact_add_impacted_event.png?fit=max\&auto=format\&n=4DDX4SOt7-BCjBUy\&q=85\&s=6082647f797d03c86954eb32223e1a1d) ### Step 3: Add breakdown (optional) Breakdown impacted events further by clicking the "**…" icon**, selecting **Add Aggregation**, and then selecting an event property, such as “Amount”. This will add up the value of this property for all of the times this event happened in this time range. All aggregate properties are typecast to numeric properties to calculate the sum of that property. For example, aggregate the property “Amount” under the event “Process Payment” to analyze revenue. ![Impact Aggregate Event](https://mintcdn.com/mixpanel-edb78807/4DDX4SOt7-BCjBUy/images/impact_aggregate_event.png?fit=max\&auto=format\&n=4DDX4SOt7-BCjBUy\&q=85\&s=619b33128fbf2f44aa4791055481d176) ### Step 4: Select user group Under **USER DEFINITION,** select whether you would like to count users who did **only the impacted event** or **any event**. ![Impact User Definition](https://mintcdn.com/mixpanel-edb78807/4DDX4SOt7-BCjBUy/images/impact_user_definition.png?fit=max\&auto=format\&n=4DDX4SOt7-BCjBUy\&q=85\&s=03599039746687e7461ed0569cea5d84) ### Step 5: Select time range The time range is a fixed period of time that determines the adopters and non-adopters of the launch event. The default is "15 days before and after", meaning that the 15 days preceding the fixed launch event date and the 15 days following the launch event will be included in the results. This will allow you to see the difference in the metric event before and after the launch event. The chart will not necessarily change if you change the time range. ![Impact Date Range Picker](https://mintcdn.com/mixpanel-edb78807/4DDX4SOt7-BCjBUy/images/impact_date_range_picker.png?fit=max\&auto=format\&n=4DDX4SOt7-BCjBUy\&q=85\&s=87f8d6a06a0d2ec7b94b7bf8145f506c) ## Reference ### Adoption Adopters are users who have triggered the launch event. Non-adopters are users who haven't triggered the launch event. Both adopters and non-adopters must perform the metric event to be included in the report. The Adoption Rate is the number of users who perform the launch event divided by the total user count: $\%\,adoption = average\left( (adopters) \over (adopters + non\,adopters) \right)$ ### Impact Chart The Impact Chart shows how the rate of metric event occurrence changes over time. The y-axis of the chart is the average number of the metric event's count, and the x-axis is time spanning 30 days. Unlike other Mixpanel charts, the Impact Chart displays time in relative time, not calendar time. The chart centers around the first day that the launch event is available, or “day zero”. The chart displays the 15 days before and after day zero. ![Impact Impact Trends Graph](https://mintcdn.com/mixpanel-edb78807/4DDX4SOt7-BCjBUy/images/impact_impact_trends_graph.png?fit=max\&auto=format\&n=4DDX4SOt7-BCjBUy\&q=85\&s=4750f3070d7d055fc92846c97db13172) Every user in the report can have a different day zero. For users in the adopter group, day zero is the first day that they perform the launch event. For users in the non-adopter group, day zero is the day the first adopter performed the launch event (which is most likely the launch day of the feature). Each data point on the chart is calculated as follows: $metric\,event\,rate = { (metric\,event\,count) \over (total\,user\,count)}$ Each point on the line is the average number of times users in the group did the metric event on that relative day. For example, if 10 adopters did the launch event for the first time five days ago, and they then did the metric event a total of 30 times today. The +5 days point on the adopter line would read 3. The math would be as follows: * 30 = The number of metric events performed by the adopters on day 5. * 10 = The number of users who did the launch event 5 days before the first day. * 3 = 30/10. You can see how frequently users in each group perform the metric event, both before and after the launch. The chart also contains average lines for non-adopters and adopters both before and after day zero (or launch), and the unobserved counterfactual of the adopters (UCA), formerly called projected adopters, average after day zero. ![/Screen\_Shot\_2019-12-09\_at\_2.05.03\_PM\_copy.png](https://mintcdn.com/mixpanel-edb78807/LIWtWr4Am6t1wkkk/images/Screen_Shot_2019-12-09_at_2.05.03_PM_copy.png?fit=max\&auto=format\&n=LIWtWr4Am6t1wkkk\&q=85\&s=a03d8e5c8b33558c53a5326b85c8e18d) ### Impact Table The Impact Table summarizes the results of the Impact chart. It displays the average rate at which users in the adopter and non-adopter groups performed the metric event over the course of the 15 days before and after launch. The table is broken down into three sections: “Pre-Launch”, “Post-Launch”, and “Impact”. ![Impact Impact Chart](https://mintcdn.com/mixpanel-edb78807/4DDX4SOt7-BCjBUy/images/impact_impact_chart.png?fit=max\&auto=format\&n=4DDX4SOt7-BCjBUy\&q=85\&s=37d785788a32ea29863cb71011246546) The Impact Table compares users who performed the launch event and those who did not. For both groups of users, Mixpanel calculates the average number of times per day that users performed the metric event before the launch, after the launch, and the difference between the two (the delta). The average number of times that users performed the metric event before the launch is calculated by: $group\,average\,value = average\left( (group\,metric\,event\,count \div group\,user\,count) \over (day\,count) \right)$ The average rate is calculated before the first day of the launch event, after the launch event, and the report also displays the difference between those rates. These values are reported in the three sections of the table. A relative delta is also present in each section of the table. ### Pre-Launch The Pre-Launch section contains columns for adopters, non-adopters, and the relative delta between them. Adopters are users who perform the launch event after launch, and non-adopters are users who do not perform the launch event after the selected launch date. The relative delta is calculated using the equation: $relative\,delta= { (adopter\,average - non\,adopter\,average) \over (non\,adopter\,average)}$ ### Post-Launch The Post-Launch section contains columns for actual adopters, non-adopters, unobserved counterfactuals of adopters, and the relative delta between them. Adopters are users who perform the launch event, and non-adopters are users who do not perform the launch event after the selected launch date. The UCA value is the projected behavior of adopters if the launch event never happened. This calculation controls for any difference between the adopters and non-adopters that is not a result of the launch event. This value is calculated by the following, where NA is non-adopters, pre is pre-launch, and post is post-launch: $UCA=\mu_{NA\,post} + ({\mu_{NA\,post}*\Delta_{relative\,pre})}$ The relative delta is calculated using the equation: $relative\,delta= { (adopter\,average - non\,adopter\,average) \over (non\,adopter\,average)}$ ### Impact The Impact section of the table contains the final calculations that indicate if and by how much the launch event affected your impacted metrics. These calculations are the delta, the relative delta, and the confidence score. The delta is the difference between the UCA and adopters in the post-launch period. The relative delta divides that value by the UCA. Confidence indicates the statistical significance of the report calculations. [See below for details on the calculation of confidence](/docs/reports/apps/impact#confidence-calculation). ### Interpret the Results In general, when the overall delta is positive and the confidence score is 95% or more, it indicates a successful launch. The most successful launches will see the rate at which adopters perform the metric event increase post-launch, while the same rate for the non-adopters remains relatively constant. In the Impact Chart, look at the average gap in usage between the adopters and non-adopters. Typically, it is preferable for the increase in the gap to be mostly driven by an increase in the rate at which adopters perform the metric event, rather than a decrease in the rate at which non-adopters perform it. ### Confidence Calculation Impact includes confidence to indicate the statistical significance of the report calculations. Interpret the confidence as the probability that the final delta is primarily caused by the launch event, as opposed to existing by chance. The confidence is calculated as a confidence interval using a cumulative distribution function while assuming a normal distribution. The confidence variables are as follows: * **X** = The number of events per day performed by adopters in the pre-launch period. * **Y** = The number of events per day performed by adopters in the post-launch period. * **A** = The number of events per day performed by non-adopters in their pre-launch period. * **B** = The number of events per day performed by non-adopters in their post-launch period. * **Y - X** = The difference in the number of events per day performed by adopters between post-launch and pre-launch periods. * **B - A** = The difference in the number of events per day performed by non-adopters between the post-launch and pre-launch periods. * The mean of **Y - X** over time is denoted by: $\mu_{Y-X}$ * The mean of B-**A** over time is denoted by: $\mu_{B-A}$ * The standard deviation of **Y - X** over time is denoted by: $\sigma_{Y-X}$ * The standard deviation of **B - A** over time is denoted by: $\sigma_{B-A}$ With the variables assigned, the calculations for confidence are as follows: $\mu_{final} = \mu_{Y-X} - \mu_{B-A}$ $\sigma_{final} =\sqrt{{\sigma_{Y-X}^2 \over N_{Y-X}} - {\sigma_{B-A}^2 \over N_{B-A}}}$ $z_{score} = \left|\mu_{final} \over \sigma_{final}\right|$ $p_{value} = 1-cdf(z_{score})$ $confidence = 1 - p_{value}$ ### Causal Impact Causal impact uses propensity score methods (a class of causal inference techniques) to refine Impact report results by controlling for self-selection bias. Self-selection bias refers to the tendency of active users to be likely to use your new feature and to perform the impacted metrics, independent of the launch. Propensity score methods control for self-selection bias by simulating what would occur in a hypothetical, randomized A/B test. Propensity scores are estimated using L2-regularized logistic regression. Features are selected via chi-square feature selection, zero-imputed for missing values, and users without any feature data are excluded. To learn more about Causal Impact in detail, read this [Mixpanel Whitepaper](https://storage.googleapis.com/cdn-mxpnl-com/site_media/pdf/Mixpanel_Causal_Inference_Whitepaper.pdf). Click **View Causal Impact** to use the propensity matching model. ![Impact Causal Report](https://mintcdn.com/mixpanel-edb78807/4DDX4SOt7-BCjBUy/images/impact_causal_report.png?fit=max\&auto=format\&n=4DDX4SOt7-BCjBUy\&q=85\&s=cbae6cf6f572e21472cd22395a1c7036) Please note that Causal Impact can take up to a few minutes to calculate results. Causal Impact requires at least 200 total samples and a minimum of 10 features. Each stratum must contain at least 3 treated (adopter) and 3 control (non-adopter) units. ### Propensity Score Stratification Propensity score stratification addresses self-selection bias by comparing adopters and non-adopters who are equally as likely to perform the launch event. Users are broken into 10 subclasses after the propensity matching model runs. The 10 subclasses are deciles based on the logit of the estimated propensity score, and weights across subclasses are based on subclass size. Each subclass contains adopters and non-adopters that have a similar likelihood of performing the launch event. Mixpanel determines the rate at which the adopters and non-adopters performed the impacted metric and calculates the difference for each subgroup. Lastly, we average those values across all 10 subclasses to produce the Average Treatment Effect, or ATE. The ATE indicates, on average across all users, how many more or fewer times per day the newly launched feature led users to perform the impacted metric. ### Causal Impact Chart The Causal Impact chart plots the ATE on each Impacted Metric. The dark line shows the ATE, and the surrounding box shows the 95% confidence interval bounds of the ATE. When the confidence interval does not include 0, it indicates that the positive or negative effect of the launch event is statistically significant. ### Causal Impact Table The Causal Impact Table provides additional detail on the treatment effects on the impacted metrics in each subclass. For each impacted metric, the table displays the ATE, the ATT (the average treatment effect on the treated), the 95% confidence interval (CI) bounds for those, and the number of adopters and non-adopters in the calculation. Click the caret to expand the impacted metric row into the 10 subclasses considered. For each subclass, Mixpanel displays the number of matched adopters in the subclass, the number of matched non-adopters in the subclass, and the [rates at which each performed the impacted metric](/docs/reports/apps/impact). The Delta column shows the difference between those rates. Note that these values can differ from those reported in the Adoption and Impact Trends charts because Causal Impact only considers users who can be found to have a similar propensity to perform the launch event to other users. ### Interpret the Causal Impact Results Mixpanel's causal model is confident that your new feature successfully changed the rate at which users perform the impacted metric if the ATE on any impacted metric is positive and the 95% confidence interval does not contain zero. This holds as long as there are no confounding factors outside of your event data. # JQL Source: https://docs.mixpanel.com/docs/reports/apps/jql Create custom queries using Javascript code > ❗️JQL is currently in maintenance mode. We recommend discontinuing use of JQL and using an [alternate method](/docs/export-methods) to get the data you need. Below are alternatives for common use cases and you need help deciding the best method for you, reach out to [support](https://mixpanel.com/contact-us/support). > > * Raw Event export: [Export API](/reference/raw-data-export-api) or [Data Pipelines](/docs/data-pipelines) > * User Profile export: [Engage Query API](/reference/engage-query) or [Data Pipelines](/docs/data-pipelines) > * Other reporting: [Query API](/reference/query-api) or in-app [Core Reports](/docs/reports) > > ❗️JQL is a self-serve tool. If you choose JQL, your developer team will be responsible to write and maintain the query logic. The JQL JavaScript code must define a `main()` function. This JavaScript will be compiled, and the `main()` function will be executed by the query engine. The return value of `main()` must be a sequence of zero or more transformations applied to a collection of events, user records or joined records.\ Events are retrieved by calling the `Events()` function. For example, the following query counts the number of events that happened on one day in 2016: ```javascript theme={"system"} function main() { return Events({ from_date: "2016-01-04", to_date: "2016-01-04" }).reduce(mixpanel.reducer.count()); } ``` ## Querying Events The events collection is fetched by calling `Events()` with a single object argument that describes what events should be fetched. ```javascript theme={"system"} function main() { // Get all signups and purchases by users with email addresses // from Yahoo or Gmail between January 1st and January 2nd return Events({ from_date: '2016-01-01', to_date: '2016-01-02', event_selectors: [ {event: 'signup', label: 'Signup'}, {event: 'purchase', selector: '"yahoo" in properties["$email"]', label: 'Purchase (Yahoo)'}, {event: 'purchase', selector: '"gmail" in properties["$email"]', label: 'Purchase (Gmail)'} ] }) } ``` ## Event Object Specification The event objects returned from `Events()` have the following attributes: | Attribute | Type | Description | | :- | :- | :- | | **name** | string | The name of the event. | | **distinct\_id** | string | The distinct\_id of the user associated with this event. If distinct\_id was not sent with the event, this will be undefined. | | **time** | integer | The timestamp of the event, expressed as milliseconds since January 1, 1970 in your project's timezone, not UTC. | | **sampling\_factor** | float | The rate at which this event was sampled (if you are using Mixpanel's sampling feature). 0.05 means the event is being sampled at 5%. This is important for getting accurate counts of sampled events. If you are not using sampling, this will always be 1.0. | | **properties** | object | An object containing all of the properties of the event. | ## Querying Profiles Profile data is fetched by calling `People()` | Argument | Type | Description | | :- | :- | :- | | **user\_selectors** | array optional | An optional list of \{selector: "Segmentation expression"} objects that restrict user records retrieved. A record is retrieved if it matches any of the expressions. Segmentation expression in user selectors expressions can only access user properties, not event properties. See also information on Segmentation expressions as [argument to Events()](/reference/segmentation-expressions). | ```javascript theme={"system"} function main() { // get all users who signed up in 2016 return People( ).filter(function(user){ return user.properties.signup_date >= new Date("2016-01-01") && user.properties.signup_date < new Date("2017-01-01"); }); } ``` or, equivalently: ```javascript theme={"system"} function main() { // get all users who signed up in 2016 return People({ user_selectors:[{selector: 'has_prefix(string(user["signup_date"]), "2016")'}] }); } ``` ## User Object Specification The user objects returned from `People()` have the following attributes: | Attribute | Type | Description | | :- | :- | :- | | **distinct\_id** | string | The distinct\_id of the user. | | **time** | integer | The timestamp of the most recent user record update, expressed as milliseconds since January 1, 1970 in your project's timezone, not UTC. | | **last\_seen** | integer | The timestamp of the most recent user record update provided via Set() method, expressed as milliseconds since January 1, 1970, in your project's timezone. | | **properties** | object | An object containing all of the properties of the user. | ## Combining Events and Profiles You can combine (join) events and profile data using `join(Events(), People())` expression. Apart from joined collection, join() accepts an optional third argument: an object with join options: | Argument | Type | Description | | :- | :- | :- | | **type** | string optional | Join type: full, left, right or inner. Default is a full join. | | **selectors** | string optional | An optional list of \{event: "event name", selector: "Segmentation expression"} objects that restrict event/user pairs retrieved. A record is retrieved if it matches any of the selector objects. To learn more about selectors, refer to [Segmentation API](/reference/segmentation-expressions). Segmentation expressions in join() selectors can access both events and user properties. | ```javascript theme={"system"} function main() { return join( Events({ from_date: "2016-01-01", to_date: "2016-06-01", }), People(), // Fetch tuples that satisfy multiple conditions: // * They're both event and user records. // * Event is sent from US. // * User age is above thirty. { type:"inner", selectors:[{selector: 'properties["country"] == "US" and user["age"] > 30'}] } ); } ``` ## Joined Object Specification The objects returned from `join()` have the following attributes: | Attribute | Type | Description | | :- | :- | :- | | **distinct\_id** | string | The distinct\_id of both event and matching user. | | **event** | object | Event object. For users with no events, this property is undefined | | **user** | object | User object with distinct\_id matching the event. For events without distinct id or when there's no matching user record, this property is undefined. | ## join() Operation Details You cannot apply any transformations to the collections inside `join()`. For example, this is not legal: `join(Events(...).map(...)`, `People(...).filter())` ## Passing Parameters to a Query The query engine creates and populates a `params` object inside the global context. The object is constructed from a JSON blob passed as the params argument to the JQL HTTP endpoint. Query parameters allow you to write more flexible and reusable queries. We recommend populating Events `from_date/to_date` using params to make the query code reusable across different date ranges. For example, you could pass these params: ```javascript theme={"system"} params = { start_date: "2016-01-01", end_date: "2016-01-10", event: "View Blog" } ``` to this query: ```javascript theme={"system"} function main() { return Events({ from_date: params.start_date, to_date: params.end_date, }).filter(function(event) { return event.name == params.event }) } ``` Alternatively, and more efficiently, you can pass multiple events as a list in a `params` object using `_.map`. For example, you could pass these params: ```javascript theme={"system"} params = { start_date: "2016-01-01", end_date: "2016-01-10", events: ["View Blog", "View Landing Page", "pageview"] }; ``` to this query: ```javascript theme={"system"} function main() { return Events({ from_date: params.start_date, to_date: params.end_date, event_selectors: _.map(params.events, event => ({event: event})) }); } ``` # Transformations Transformations are applied to collections, taking one collection as input and producing another. A transformation takes a user-defined function (or a built-in function) that controls how the transformation works. The JQL API provides the following set of transformations, which can be chained together to do complex analysis. ## filter(function(item) ) Filter the collection by calling the provided function on each of its elements. If the function evaluates to true, keep the element. Otherwise, discard it. ```javascript theme={"system"} // filter for "login" events from users who signed up in January. function main() { return join( Events({ from_date: "2016-01-01", to_date: "2016-04-01" }), People()) .filter(function(tuple) { return tuple.event && tuple.user && tuple.event.name == "login" && tuple.user.properties.signup_date >= new Date("2016-01-01") && tuple.user.properties.signup_date <= new Date("2016-02-01"); }); } ``` ## map(function(item) ) Build a new collection by applying the provided function to each element of the input collection. The output collection contains the return value of the provided function for each element in the input collection, so an input collection of size N will result in an output collection of size N. ```javascript theme={"system"} // Extract the email domain name for further analysis. // The resulting collection contains strings. function main() { return Events({ from_date: "2016-01-01", to_date: "2016-01-07" }) .map(function(event) { var pos = event.properties.$email.indexOf("@"); return event.properties.$email.slice(pos + 1); }); } ``` ## reduce(\[reducer function(s)]) `reduce()` turns the input collection into just a single value. It takes one argument - a reducer or list of reducer functions, which must implement the following signature: ```javascript theme={"system"} function(accumulators, items) { // Combine previously-aggregated "accumulators" // with new "items" and return the result. } ``` A reducer function accepts two arguments: an array of its previous results (accumulators), and an array of items to reduce. The first argument - accumulators - is used to break down the initial set of values into many calls of the reducer function. JQL runs the reduction in a hierarchical fashion, where some subsets of inputs are reduced to accumulator values first, and multiple accumulator values are combined subsequently. There are no guarantees on the order of input. The example below is using a reduce function that counts elements up. ```javascript theme={"system"} // Count events. function main() { return Events({ from_date: "2016-01-01", to_date: "2016-01-07" }) .reduce(function(previous_counts, events) { var count = events.length; for (var i = 0; i < previous_counts.length; i++) { count += previous_counts[i]; } return count; }); } ``` Counting is a common use case, so JQL provides a built-in `mixpanel.reducer.count()` that could be used in place of the snippet above. ```javascript theme={"system"} // Count events. function main() { return Events({ from_date: "2016-01-01", to_date: "2016-01-07" }) .reduce(mixpanel.reducer.count()); } ``` While there are built-in reducer methods to address common use cases, a reducer function is flexible and can be used to aggregate inputs into a single value. For example, returning the earliest timestamp and latest timestamp could be done using a reducer function. ```javascript theme={"system"} // Return earliest timestamp and latest timestamp of events function main() { return Events({ from_date: "2016-01-01", to_date: "2016-01-07" }) .reduce(function(accumulators, items){ var result = { earliest: null, latest: null }; for (var i = 0; i < accumulators.length; i++) { result.earliest = minimum(result.earliest, accumulators[i].earliest); result.latest = Math.max(result.latest, accumulators[i].latest); } for (var j = 0; j < items.length; j++) { result.earliest = minimum(result.earliest,items[j].time); result.latest = Math.max(result.latest,items[j].time); } return result; }); } // Helper function to return minimum value (ignoring null) function minimum(x,y) { if (x === null) { return y; } if (y === null) { return x; } return Math.min(x,y); } ``` ## groupBy(\[keys], \[reducer function(s)]) Group the collection according to the provided list of keys, then apply the provided reducer function(s) to each group. The underlying action of `groupBy()` is similar to the one of `reduce()` - aggregating many input values into one. However, the output collection is different: while `reduce()` aggregates everything into a single value, `groupBy()` produces a collection with the following structure: ```json Result theme={"system"} { "key": , "value": } ``` The group key is computed from a key specification - the first argument of the `groupBy()` transformation. This argument is a list containing property names or functions that compute a key from a collection element. If you use property names as keys, you can use dot notation (i.e., a ".") to access values inside nested objects. For example, if you had a list of objects that looked like `{"item": "t-shirt", "info": {"size": "XL"}}`, you could group by `["item", "info.size"]` It is common to use dot notation to group on event properties. For example, in `Events(...).groupBy(['properties.$city', 'properties.$browser'], ...)`, each unique combination of City and Browser becomes a group, so the following groups may be output: * \["New York", "Firefox"] * \["San Francisco", "Firefox"] * \["San Francisco", "Safari"] * etc. As with a list of keys, the `groupBy()` can accept a single reducer or a list of reducer functions. Each reducer supplied in this argument is then applied to each group key. When a list of reducer functions is provided, the value for each group key will be a list of the results from each function. Reducer functions can include both built-in and custom reducer functions. The signature of a reduce function provided to a `groupBy()` is: ```javascript theme={"system"} function(accumulators, items) { // Analyze items, return accummulators } ``` ```javascript theme={"system"} function main() { return Events({ from_date: "2016-01-01", to_date: "2016-02-01", event_selectors: [{event: "Change Plan"}], }) .groupBy( [ "properties.New Plan", "properties.Previous Plan", // use a function to dynamically calculate a day of the event. function(ev) { return (new Date(ev.time)).toDateString(); } ], [ mixpanel.reducer.count(), mixpanel.reducer.any() ] ); } ``` The group key can only include scalars - strings, numbers, booleans, nulls. If a group-by property evaluates to a list of multiple scalars, `groupBy()` can treat in two different ways: Inline that list into group key (this is the default behavior). The following query computes, for every sequence of notification campaigns each user participated in, the total number of profiles that have that sequence: ```javascript theme={"system"} function main() { return People().groupBy(["properties.$campaigns"], mixpanel.reducer.count()); } ``` Create a different group key for each list element. The following query computes the number of users that participated in each campaign. ```javascript theme={"system"} function main() { return People().groupBy( mixpanel.multiple_keys(["properties.$campaigns"]), mixpanel.reducer.count()) } ``` A single query can use both key treatments, even with the same property, like in a query below: ```javascript theme={"system"} function main() { return People().groupBy([ mixpanel.multiple_keys(["properties.$campaigns"]), "properties.$campaigns"], mixpanel.reducer.count()); } ``` ## groupByUser(\[optional additional keys], \[reducer function(s)]) Group events by distinct\_id and, optionally, additional keys, then apply the provided reducer function(s) to each group. This transformation is a specialization of `groupBy()` that guarantees that the reduce function(s) will process all events of a single user in temporal order. This guarantee is reflected in the signature of the reduce function provided to `groupByUser()`: ```javascript theme={"system"} function(state, events) { // Analyze events, aggregate in state. Return the new state. } ``` Its first argument is a single accumulator or a list of accumulators, but not an array of accumulators as used in `groupBy()` and `reduce()` cases. The accumulator value is always the value of last call to the reduce function, with an initial value of Undefined. The difference in signature means that reducer function implementations can not be used interchangeably between `groupByUser()` and `groupBy()/reduce()`. Built-in reducers, however, can be used in both contexts. The output of `groupByUser()` is a collection of objects with the following structure: ```json theme={"system"} { "key": [] + , "value": } ``` `groupByUser()` can only be applied to the source data collection. This means it must be called either on the `Events()`, `People()` or `join()` collections directly, or on the collection returned by `Events({ ... }).filter(...) or People({ ... }).filter(...) or join( ... ).filter(...)` A very common use-case for `groupByUser()` is to compute some property of each user based on their behavior. For example, the code below computes what events users typically perform after a "login" event. **Frequencies of Events Following "Login":** ```javascript theme={"system"} // For each user, find how often they perform each event // after signing up. function main() { return Events({ from_date: "2016-01-01", to_date: "2016-02-01" }) .groupByUser(function(state, events) { state = state || { distribution: {} }; if (events.length == 0) { return state; } for (var i = 0; i < events.length - 1; ++i) { if (events[i].name == "login") { state.distribution[events[i + 1].name] = state.distribution[events[i + 1].name] || 0; ++state.distribution[events[i + 1].name]; } } // Previous call for this user may have contained // "login" as the last event. if (state.last_event_login) { state.distribution[events[0].name] = state.distribution[events[0].name] || 0; ++state.distribution[events[0].name]; } // If last event is "login", next call should see that. if (events[events.length - 1].name == "login") { state.last_event_login = true; } return state; }); } ``` It is possible to compute more fine-grained aggregation with `groupByUser()` by providing a list of additional keys in the first argument. User distinct\_id always remains the implicit first key. The following example computes, for each user and each day, when they did their first event on that day. **Multiple Groups per User:** ```javascript theme={"system"} // figure out the hour where the most users do something // for the first time that day function main() { return Events({ from_date: "2016-01-01", to_date: "2016-01-07" }) // group the events for each user by day, then get // the first hour we saw them in each of those days. .groupByUser([getDay], function(first_hour, events) { if (first_hour === undefined) { first_hour = (new Date(events[0].time)).getHours(); } return first_hour; }) } function getDay(event) { return (new Date(event.time)).toISOString().split('T')[0]; } ``` `groupByUser()` places the same restriction on group keys as `groupBy()` does: a key can only include scalars, and list keys can be treated in two different ways depending on presence of the `mixpanel.multiple_keys()` decorator. ## flatten() Flatten the collection by inlining array elements of the input collection. The contents of arrays in the input collection are placed into the output collection. Input elements that are not arrays are forwarded into the output collection without modification. ```javascript theme={"system"} // Compute percentiles on counts for number // of events each user has done. function main() { return Events({ from_date: "2016-01-01", to_date: "2016-01-07" }) // Compute the number of events for each user. .groupByUser(mixpanel.reducer.count()) .reduce(mixpanel.reducer.numeric_percentiles('value', [10, 25, 50, 75, 90])) .flatten(); } ``` ## sortAsc(accessor) Sort the input collection by the provided sort key - either property name or a function. Sort key must be a scalar. ```javascript theme={"system"} // Find the users who have used the product the least. function main() { return Events({ from_date: "2016-01-01", to_date: "2016-01-07" }) .groupBy(['properties.$email'], mixpanel.reducer.count()) .sortAsc('value'); } ``` ## sortDesc(accessor) Similar to `sortAsc()`, but sort in descending order. ```javascript theme={"system"} // Find the most popular events. function main() { return Events({ from_date: "2016-01-01", to_date: "2016-01-07" }) .groupBy(['name'], mixpanel.reducer.count()) .sortDesc('value'); } ``` # Chained Aggregations Chaining `groupBy()` operations in JQL can be used to compute complex statistics. The simplest case for chained aggregations is the query below that computes the number of unique users that had events from each country: ```javascript theme={"system"} function main() { return Events({ from_date:"2016-01-01", to_date:"2016-06-01", }) .groupByUser(["properties.country"], mixpanel.reducer.null()) .groupBy([mixpanel.slice("key", 1)], mixpanel.reducer.count()); } ``` The first `.groupByUser()` transformation results in a collection of objects with the following structure: `{key:[distinct_id, country], value: null}`. The second aggregation instructs JQL to strip off position 0 of the key holding the distinct\_id, and aggregate again, counting results up. The result is going to be a number of unique users for each country. `mixpanel.slice("key", , )` is a built-in function that instructs JQL to strip away key components that don't fall into \[start, limit) interval, coalescing some groups and producing a more coarse grouping. This approach can be extended for computing more complex statistics. For example, here is median over a maximum number of events users had in each country: ```javascript theme={"system"} function main() { return Events({ from_date:"2016-01-01", to_date:"2016-06-01", }) .groupByUser(["properties.country"], mixpanel.reducer.count()) .groupBy([mixpanel.slice("key", 1)], mixpanel.reducer.max("value")) .reduce(mixpanel.reducer.numeric_percentiles("value", 50)); } ``` > [!NOTE] > > **NOTE** > > An important note on data serialization: the query engine is sometimes forced to serialize and transfer collections during transformations using JSON. Complex data types such as functions and dates are not preserved, so you should avoid storing these types in accumulator objects. # JQL Builtins We provide a set of useful helper functions for use with the `groupBy()`,` groupByUser()`, and `reduce()` transformations. These functions are provided by the query engine, so they are available with no extra work to you. Some of built-in reducers, e.g. `avg()` or `sum()`, compute statistics over numeric collections. Each of the numeric built-in reducers accepts an optional first argument - an accessor - that instructs it how to convert the input object to a numeric value. An accessor can be a JavaScript function, a string with a dot-separated property path, or a built-in mapper function, like `mixpanel.numeric_bucket()`. For example, the following query computes the average age of your users: ```javascript theme={"system"} function main() { return People().reduce(mixpanel.reducer.avg("properties.age")); } ``` This example makes use of the property name accessor to `mixpanel.reducer.avg()` built-in. A custom function could be used too; in the example below, that function computes length of an array property: ```javascript theme={"system"} function main() { return People().reduce(mixpanel.reducer.avg( function(u) { return u.properties.$campaigns.length; })); } ``` ## mixpanel.reducer.count() Count the number of elements in the collection (or group, if passed to groupBy()). For example, you could use groupBy() and this reducer to implement Mixpanel's Segmentation report. **Example:** ```javascript theme={"system"} // count the number of events between two dates function main() { return Events({ from_date: "2015-08-01", to_date: "2015-08-30" }).reduce(mixpanel.reducer.count()); } ``` **Result** ```json theme={"system"} // 15834 total events [15834] ``` ```javascript theme={"system"} // count the number of people of each age function main() { return People().groupBy(["properties.age"], mixpanel.reducer.count()); } ``` ```json Result theme={"system"} [ { "key": [0], "value": 109 }, { "key": [1], "value": 120 }, ... ] ``` ## mixpanel.reducer.sum(accessor) Sum a collection of numeric values together. | Argument | Type | Description | | :- | :- | :- | | **accessor** | function | Optional property accessor to retrieve a numeric property from the item. | ```javascript theme={"system"} // compute the total number of notification hits function main() { return People() .reduce(mixpanel.reducer.sum( function(u) { return u.properties.$campaigns.length; })); } ``` ```json Result theme={"system"} [11301] ``` ## mixpanel.reducer.numeric\_summary(accessor) Get a numeric summary of a collection. Returns the count, sum, sum of squares, average and standard deviation for a collection of numeric values. | Argument | Type | Description | | :- | :- | :- | | **accessor** | function | Optional property accessor to retrieve a numeric property from the item. | ```javascript theme={"system"} // understand page load times function main() { return Events({ from_date: "2015-10-01", to_date: "2015-10-02", event_selectors: [{event: "pageview"}], }) .reduce(mixpanel.reducer.numeric_summary('properties.load_time_ms')); } ``` ```json Result theme={"system"} // count = 221 events // sum(load time) == 32624 milliseconds // sum squares = 9199564 ms^2 [{ "count": 221, "sum": 32624, "sum_squares": 9199564, "avg": 147.61991, "stddev": 140.838023 }] ``` ## mixpanel.reducer.avg(accessor) Compute the average of a numeric collection. `avg()` is a shortcut replacement for the two-step process: aggregate with `numeric_summary()`, and follow-up with a `.map()` step that computes average. | Argument | Type | Description | | :- | :- | :- | | **accessor** | function | Optional property accessor to retrieve a numeric property from the item. | ```javascript theme={"system"} function main() { return Events({ from_date: "2016-01-01", to_date: "2016-06-01", event_selectors: [{event:"pageview"}] }) .reduce(mixpanel.reducer.avg("properties.load_time_ms")); } ``` ```json Result theme={"system"} [148.9087] ``` ## mixpanel.reducer.numeric\_percentiles(accessor, percentiles spec) Compute percentiles of a numeric collection. Note: this built-in samples the numeric stream; it's output will differ from exact percentile value up to a fixed error bound. The result may also fluctuate between runs. | Argument | Type | Description | | :- | :- | :- | | **accessor** | function | name of a numeric property or a function that computes number from input. | | **percentile** | number | A percentile number, in (0, 100) interval (alternative 1). | | **percentile** | array | Array of percentile numbers (alternative 2). | ```javascript theme={"system"} // Find median page load time function main() { return Events({ from_date: "2015-06-01", to_date: "2016-06-01", event_selectors: [{event: "pageview"}], }) .reduce(mixpanel.reducer.numeric_percentiles( "properties.load_time_ms", 50)); } ``` ```json Result theme={"system"} [118] ``` ```javascript theme={"system"} // Find 90th, 95th, 99th, 99.9th percentiles of page load time. function main() { return Events({ from_date: "2015-06-01", to_date: "2016-06-01", event_selectors: [{event: "pageview"}], }) .reduce(mixpanel.reducer.numeric_percentiles( "properties.load_time_ms", [90, 95, 99, 99.9])); } ``` ```json Result theme={"system"} [ [ {"percentile":90,"value":356}, {"percentile":95,"value":468}, {"percentile":99,"value":732}, {"percentile":99.9,"value":1725} ] ] ``` ## mixpanel.reducer.min(accessor)/max(accessor) Compute minimum (or maximum) element in a numeric collection. | Argument | Type | Description | | :- | :- | :- | | **accessor** | function | Name of a numeric property, or a function that computes a number from input. | ```javascript theme={"system"} // Find minimum page load time. function main() { return Events({ from_date: "2015-06-01", to_date: "2016-06-01", event_selectors: [{event: "pageview"}], }) .reduce(mixpanel.reducer.min("properties.load_time_ms")); } ``` ```json Result theme={"system"} [0] ``` ## mixpanel.reducer.min\_by(accessor)/max\_by(accessor) Find the element in a collection that gives the minimum (or maximum) value of a numeric property. | Argument | Type | Description | | :- | :- | :- | | **accessor** | function | Name of a numeric property, or a function that computes a number from input. | ```javascript theme={"system"} // Find the pageview event with lowest load time. function main() { return Events({ from_date: "2015-06-01", to_date: "2016-06-01", event_selectors: [{event: "pageview"}], }) .reduce(mixpanel.reducer.min_by("properties.load_time_ms")); } ``` ```json Result theme={"system"} [ { "name":"pageview", "distinct_id":"8bcf7259-5c6c-4b10-9b8a-34148607aa95", "time":1437541412000, "sampling_factor":1, "properties":{ "$email":"Sylvia.Harper@outlookx.com", "$import":true, "country":"MX", "load_time_ms":0 } } ] ``` ## mixpanel.reducer.top(limit) Limit the response to the top N values of a collection. This function expects the input collection to be of the `groupBy()` format: `{ "key": [...], "value": }`. The output of this function is a collection containing a single item, the list of the top N items. | Argument | Type | Description | | :- | :- | :- | | **limit** | integer | The number of items to return | ```javascript theme={"system"} // get the top 3 countries sending any event function main() { return Events({ from_date: "2015-06-01", to_date: "2016-06-01", event_selectors:[{event: "pageview"}] }) .groupBy(["properties.country"], mixpanel.reducer.count()) .reduce(mixpanel.reducer.top(3)); } ``` ```json Result theme={"system"} [ [ { "key": ["USA"], "value": 1234 }, { "key": ["MEX"], "value": 678 }, { "key": ["CAN"], "value": 345 } ] ] ``` ## mixpanel.reducer.applyGroupLimits(limit spec)/ Limit the response of each group to the top N values of a collection and optionally to the top N values of the entire collection. This function expects the input collection to be of the `groupBy()` format: `{ "key": [...], "value": }`. The output of this function is a collection with the following structure. | Argument | Type | Description | | :- | :- | :- | | **limits** | array | Array of limits per group. | | **global** | number | limit Maximum number of results to display. | ```javascript theme={"system"} // Get the top events by user, by date, limited to the top 12 results function main() { return Events({ // Collect our events from_date: '2016-01-01', to_date: '2016-01-31', }) // Group the events by multiple keys .groupBy(["name","properties.$email","properties.signup_date"], mixpanel.reducer.count()) // Sort the results in the desired order by the desired property .sortDesc('value') // Limit the results of each group displayed .applyGroupLimits([5,5,5], 12) } ``` ```json Result theme={"system"} [ { "key": [ "login", "Ralph.Vargas@aolx.com", "2015-11-29T05:55:40" ], "value": 30 }, { "key": [ "login", "Frances.Mendoza@gmailx.com", "2015-12-12T06:50:28" ], "value": 28 }, ... { "key": [ "View Blog", "Henry.Murray@gmailx.com", "2015-12-22T20:14:32" ], "value": 8 } ] ``` ## mixpanel.reducer.object\_merge() Merge a collection of JavaScript objects into a single object. Numeric leaf values are summed. ```javascript theme={"system"} // alternate way of calculating the same thing as // mixpanel.reducer.numeric_summary() function main() { return Events({ from_date: "2015-10-01", to_date: "2015-10-02", event_selectors: [{event: "pageview"}], }) .map(function(event) { var load_time_ms = event.properties.load_time_ms; return { count: 1, sum: load_time_ms, sum_squares: load_time_ms * load_time_ms } }) .reduce(mixpanel.reducer.object_merge()); } ``` ```json Result theme={"system"} [{ "count": 221, "sum": 32624, "sum_squares": 9199564}] ``` ## mixpanel.reducer.any() ```javascript theme={"system"} function main() { return Events({ from_date: "2015-10-01", to_date: "2015-10-02", }) .filter(function(e) { return e.properties.country == "US"; }) .reduce(mixpanel.reducer.any()); } ``` ```json Result theme={"system"} [ { "name": "pageview", "distinct_id": "75a54352-33c9-4606-9d5f-c5eca9b77b5d", ... } ] ``` ## mixpanel.reducer.null() Always return null. ```javascript theme={"system"} // Dump distinct ids of users who had events in January 2016. function main() { return Events({ from_date: "2016-01-01", to_date: "2016-01-31", }) .groupByUser(mixpanel.reducer.null()) } ``` ```json Result theme={"system"} [ {"key": "1f83aed1-63c4-48ec-aa44-91b90fc1917d", "value": null}, ... ] ``` ## mixpanel.numeric\_bucket(accessor, buckets spec) Bucketize a numeric value by normalizing it to the lower boundary of the bucket it falls into. It is commonly used to reduce the number of distinct keys when aggregating over numeric values. | Argument | Type | Description | | :- | :- | :- | | **spec** | array | List of bucket boundaries (alternative 1). | | **spec** | object | with bucket\_size and offset fields specifying regular bucket intervals (alternative 2). | ```javascript theme={"system"} // Bucketize all users into five age groups. function main () { return People().groupBy( [mixpanel.numeric_bucket('properties.age', [0, 5, 18, 30, 60])], mixpanel.reducer.count()); } ``` ```json Result theme={"system"} [ { "key": [0], "value": 539 }, { "key": [5], "value": 1041 }, ... ] ``` ```javascript theme={"system"} // Bucketize all users into regular buckets by event count. function main() { return Events({ from_date: "2015-10-01", to_date: "2015-10-02", }).groupByUser(mixpanel.reducer.count()) .groupBy( [mixpanel.numeric_bucket('value', {bucket_size: 10, offset:1})], mixpanel.reducer.count()); } ``` ```json Result theme={"system"} [ { "key": [1], "value": 422 }, { "key": [11], "value": 15 } ] ``` ## mixpanel.to\_number(accessor) Convert input into a number. mixpanel.to\_number() is commonly used when executing numeric aggregations over a collection of mixed non-numeric data. When unable to interpret input as a number, return undefined. | Argument | Type | Description | | :- | :- | :- | | **accessor** | function | Name of property to convert (or a javascript function). | ```javascript theme={"system"} // Compute the distribution of signup times function main() { return People() .reduce(mixpanel.reducer.numeric_summary( mixpanel.to_number('properties.signup_date') )); } ``` ```json Result theme={"system"} [ { "count": 4411, "sum": 6369278974417, "sum_squares": 9.1971e+21, "avg": 1443953519.477896, "stddev": 5988562.937055 } ] ``` ## mixpanel.numeric\_bucket() `mixpanel.numeric_bucket()` can be used to segment events over calendar period, when applied to time property. ```javascript theme={"system"} function main() { return Events({ from_date: "2016-01-01", to_date: "2016-01-30", }).groupBy([mixpanel.numeric_bucket('time', {bucket_size: 86400 * 1000})], mixpanel.reducer.count()); } ``` JQL defines several constants with bucket specs for widely used time bucket boundaries, when applied to milliseconds since Unix epoch. * `mixpanel.daily_time_buckets` - buckets for calendar days * `mixpanel.weekly_time_buckets` - buckets for calendar weeks, starting on Monday * `mixpanel.monthly_time_buckets` - buckets for calendar months * `mixpanel.quarterly_time_buckets` - buckets for calendar quarters: Jan - Mar, Apr - Jun, ... * `mixpanel.annual_time_buckets` - buckets for calendar years The following is an equivalent of the query above. ```javascript theme={"system"} function main() { return Events({ from_date: "2016-01-01", to_date: "2016-01-30", }).groupBy([ mixpanel.numeric_bucket('time', mixpanel.daily_time_buckets)], mixpanel.reducer.count()); } ``` # Signal Source: https://docs.mixpanel.com/docs/reports/apps/signal Quantify correlation between two events > [!NOTE] > > Users on an Enterprise plan can access the Signal report. See our [pricing page](https://mixpanel.com/pricing/) for more details. ## Overview Signal measures the association between a correlation event and a goal event and quantifies the correlation between the two. This facilitates a deeper understanding of the behaviors that drive customer conversions and can help guide product decisions. ## Use Cases Using a social media app as an example can highlight the value of quantifying correlations between events. The customer may want to understand the correlation between top events and users who like a video on the app. Building this query in Signal would involve selecting the target users and how the "like video" goal event is correlated with the top events. ![Impact3](https://mintcdn.com/mixpanel-edb78807/4DDX4SOt7-BCjBUy/images/impact3.png?fit=max\&auto=format\&n=4DDX4SOt7-BCjBUy\&q=85\&s=fcdc74a859e8e5467af7d80c33c8b5ef) Values are returned after running the correlation. “channel subscribe” could have a strong positive correlation with liking a video; most of the users who subscribed to a channel liked a video. ![Impact Correlation Events](https://mintcdn.com/mixpanel-edb78807/4DDX4SOt7-BCjBUy/images/impact_correlation_events.png?fit=max\&auto=format\&n=4DDX4SOt7-BCjBUy\&q=85\&s=4718493d583fe96f8bd6db0d89b2fb58) This information can be used in future product decisions. By knowing that those who subscribed to a channel are more likely to like a video, it is possible to build tools to encourage video liking and, in the end, lead to a dramatic increase in the number of users interacting with creators. ## Quick Start [https://www.youtube-nocookie.com/embed/sF36C9RUNRo](https://www.youtube-nocookie.com/embed/sF36C9RUNRo) By default, Mixpanel will build a query to show how your top 50 events correlate with 2nd week retention in the last quarter for all users. This translates to, “How do the top events correlate with two-week retention in the last quarter for all users?" To access **Signal**, go to the Applications section on the bottom left-side of the screen, and then select **Signal**. ![Signal Access](https://mintcdn.com/mixpanel-edb78807/4DDX4SOt7-BCjBUy/images/signal_access.png?fit=max\&auto=format\&n=4DDX4SOt7-BCjBUy\&q=85\&s=ce5a9b1133d53363a1924a0318ba8249) Signal queries require a minimum of 60 days' worth of data. Queries with less data history than that will return a calculation error. Signal currently supports filtering only by event properties. Custom events with profile property filters will now be shown in the event dropdown. 1. Determine and specify the target users. “All Users” is the default. ![/Screen\_Shot\_2022-07-13\_at\_10.13.57\_PM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2022-07-13_at_10.13.57_PM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=af52ae0edc8e70accaa89b665c570cc0) 2. Select any event performed by the target user by clicking the **+** sign. ![/Screen\_Shot\_2022-07-13\_at\_10.13.57\_PM\_copy.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2022-07-13_at_10.13.57_PM_copy.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=8c8e76ae2ab4dcbb692cce94d69d9b92) 3. Further filter by property by clicking "**+ Filter**" and selecting any properties, as well as the frequency of occurrence. ![/Screen\_Shot\_2022-07-13\_at\_10.19.21\_PM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2022-07-13_at_10.19.21_PM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=5e6245c67f7398677d8bce80dbb4e801) 4. Determine and select the Goal Event and its properties. The goal event can be a specific event with a frequency (users did Goal Event at least x number of times) or one of the default Signal retention events calculated by Mixpanel. ![Signal Query Builder](https://mintcdn.com/mixpanel-edb78807/4DDX4SOt7-BCjBUy/images/signal_query_builder.png?fit=max\&auto=format\&n=4DDX4SOt7-BCjBUy\&q=85\&s=5d78e2e8cca77da4fdba07f9e3ae785d) The default retention events available in Signal include: * 2nd week retention: Users doing a specific action or set of actions in your project and then returning to do anything within two weeks. * 3rd week retention: Users doing a specific action or set of actions in your project and then returning to do anything within three weeks. * 4th week retention: Users doing a specific action or set of actions in your project and then returning to do anything within four weeks. * 2nd month retention: Users doing a specific action or set of actions in your project and then returning to do anything within two months. 5. Determine and select the Correlation Event and its properties. It is possible to add up to ten different correlation events by clicking the "**+**" button at the bottom of the query builder. * The correlation event can be [broken down by property](/docs/reports#breakdowns). To do this, select "**+ Breakdown**" and select the property to break the data down by. * The correlation event can be [filtered by property](/docs/reports#event-inline-filters). To do this, select "**+ Filter**" and select the property and property value you want to filter by. ![/Screen\_Shot\_2022-07-13\_at\_10.22.08\_PM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2022-07-13_at_10.22.08_PM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=45aa7f25fc52460244f7650932c76fa0) 6. Select the time frame for the query and the users who are to be evaluated. It’s important to select a long enough time frame that allows users to complete both the correlation event(s) and the goal event. ![/Screen\_Shot\_2022-07-13\_at\_10.24.59\_PM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2022-07-13_at_10.24.59_PM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=e960f1f610b13b2345e25f8b37362d4d) 7. Click **Correlate**. ![/Screen\_Shot\_2022-07-13\_at\_10.22.08\_PM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2022-07-13_at_10.22.08_PM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=45aa7f25fc52460244f7650932c76fa0) ## Interpreting Results ### Summary View Each correlation will be represented by one card in the summary view results. The list-view will display the optimal action, correlation with the goal event, and key findings about the event. Results can be sorted by correlation strength or by Mixpanel opportunity score. ![/Screen\_Shot\_2022-07-13\_at\_10.32.35\_PM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2022-07-13_at_10.32.35_PM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=a986bf135078f1bfdbc55e8793c48bea) ### Scores By default, the results will be sorted by Opportunity. “Opportunity” is Mixpanel’s proprietary calculation of how important a given correlation might be. The correlation strength is calculated using the phi coefficient. [See here](/docs/reports/apps/signal#correlation) for more details on how Opportunity and correlation strength are calculated. ### Key Findings The key findings presented are rarity analysis results and conversion measurements. Rarity defines how common or uncommon it is for users to complete an individual event. The conversion measurements qualify how likely a given conversion is to be helpful. **Rarity Analysis** can be broken down into: * Rare in user group. * Never performed in user group. * Uncommon in user group. * Common in user group. * Majority of user group performed. **Conversion Measures** can be broken down into: * No users converted to goal. * Unlikely to be useful. * Associated almost perfectly with not converting. * Associated almost perfectly with converting. ### Detailed view To access the detailed view, click on a card in the summary view. ![/Screen\_Shot\_2022-07-13\_at\_10.33.37\_PM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2022-07-13_at_10.33.37_PM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=d15fc46baa9b120fd7eb131c7e1a3d14) The detailed view provides the correlation calculations for each event evaluated. This view uses a heat map to show the strength of the correlation with the goal event. The x-axis represents the velocity, or the number of days it took users to complete the event (up to 15 days), and the y-axis shows the frequency of the event, or the number of times the event was done, up to ten times. ![/DetailedView.png](https://mintcdn.com/mixpanel-edb78807/t0w2ecW2bO4mKfCm/images/DetailedView.png?fit=max\&auto=format\&n=t0w2ecW2bO4mKfCm\&q=85\&s=43aeab5c15fbd676e3860efe4ae9c1dc) ### Optimal Action The optimal action will be highlighted in green on the heat map. The optimal action tells you how many times and in how many days your customers should trigger the event in order to achieve your optimal correlation. Frequency labels are listed below the action and provide precise information, based on the correlation, about when your users should complete the event. For example, if you have a music streaming app and want to see how a “Play Song” event correlates with two-week retention, you might see something like “Play song once within ten days” as an optimal action. ### Supporting Statistics For each combination, Mixpanel will provide supporting statistics for further analysis: * **Precision**: Percent of users who convert to your goal among those who did this event at least x times within y days. * **False omission rate**: Percent of users who convert to your goal among those who did this event fewer than x times within y days. * **Recall**: Percent of converted users who did this event at least x times within y days. * **Fall-out**: Percent of unconverted users who did this event at least x times within y days. * **Correlation**: Association between performing this event at least x times in y days and converting to your goal. ![/Screen\_Shot\_2022-07-13\_at\_10.35.27\_PM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2022-07-13_at_10.35.27_PM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=59190501bb16b395111a852b3de75ba4) To see the calculations of the optimal correlation data, hover over the ƒx in the upper right-hand corner of the chart at the bottom of the heat map. ![/Screen\_Shot\_2022-07-13\_at\_10.35.35\_PM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2022-07-13_at_10.35.35_PM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=57e8fb3994caa77fc8c5b10e1640f9f4) ### Key Findings Signal also presents two key findings, rarity analysis results and conversion measurements. Rarity defines how common or uncommon it is for users to complete an individual event. The conversion measurements qualify how likely a given conversion is to be helpful. For example, if all users are converting because the application forces this by design, then the conversion measurement will flag this as "unlikely to be useful". ### CSV Download To download the results to a CSV, click the **Download CSV** icon in the upper right-hand corner of the Summary Results view or the Detailed Results view after you have run your correlation. ![/Screen\_Shot\_2022-07-13\_at\_10.37.09\_PM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2022-07-13_at_10.37.09_PM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=ae69a8dcfc3a8e0a7de9054d1fa5889f) ## Reference ### New Users vs All Users New users are users who have completed their first event in the selected time frame. All users will look at all users in your Mixpanel project who have completed the event in the selected time frame. ### Download Glossary * **Frequency:** Number of times, up to 10, a user should complete the event for the correlation. * **Intervals:** Number of days, up to 15, when a user should complete the event for the correlation. * **True positive:** Number of positive correlations that are correctly identified. * **True negative:** Number of negative correlations that are correctly identified. * **False positive:** Number of positive correlations that are incorrectly identified. * **False negative:** Number of negative correlations that are incorrectly identified. * **Correlation:** The association between your event and your goal event. * **Precision:** Percent of users who convert to your goal among those who did this event at least x times within y days * **Fall-out:** Percent of unconverted users who did this event at least x times within y days. * **Recall:** Percent of converted users who did this event at least x times within y days. * **False Omission Rate:** Percent of users who convert to your goal among those who did this event fewer than x times within y days. * **Phi max:** A single number between -1 and 1 that indicates how closely an event moves toward your goal event, where 1 means that 100% of all users who did your goal event also did the event you are evaluating, and -1 means the opposite - 0% of users who did your goal event also did the event you are evaluating. * **Mixpanel Opportunity Score:** Mixpanel’s proprietary calculation of how important a given correlation might be. ### Calculations Signal calculates correlation using a well-known statistical algorithm called the phi coefficient. In addition to correlation, Mixpanel calculates what is called an opportunity score and also presents a list of key findings. #### Correlation The phi coefficient is a single number between -1 and 1, and it indicates how closely an event moves with your goal event. 1 means that 100% of all users who did the goal event also did the correlation event. -1 means that 0% of users who did the goal event also did the correlation event. #### Opportunity Score “Opportunity” is Mixpanel’s proprietary calculation of how important a given correlation might be. Opportunity helps pare down results by eliminating false positives and highlighting weak correlations that may be actionable. Based on this assessment, which determines how much an event impacts conversion on your goal, Mixpanel will tell you if there is an opening to make a change in your product or not. Once we correlate, the results on the summary page will display the optimal action, correlation with the goal event, and our key findings about that optimal action. The optimal action tells you how many times and in how many days your customers should trigger the event in order to achieve your optimal correlation. Frequency labels are listed below the action and provide precise information, based on the correlation, about when your users should complete the event. For example, if you have a music streaming app and want to see how a “Play Song” event correlates with two-week retention, you might see something like “Play song once within ten days” as an optimal action. **Frequency Labels** -- \*these will be supplemented with temporal labels, i.e. At least 4 times in 10 days.\* * Many times * Just once * At least x times * Always avoid * As few times as possible * No strong correlations found * Is complex The correlation with the goal event presents to you the optimal correlation for the event and tells you whether this indicates a strong or weak association with your goal. We calculate the association using a well-known statistical measure called the phi coefficient. The phi coefficient is a single number between -1 and 1 that indicates how closely an event moves with your goal event. Finally, we will display the key findings. The key findings contain the rarity analyses and the impact on conversion. The rarity analyses define how common or uncommon it is for users in your user group to complete your event, and the impact to conversion explains how the event impacts conversion to your Goal event (i.e., retention). These help you interpret the correlations. A certain event may have a strong correlation to a goal event, but may not have been completed by many users in your group, and thus is unlikely to be useful. Below, we have listed the different messages you can see as a part of the rarity analysis and the impact on conversion. **Rarity Analyses** * Rare in user group * Never performed in user group * Uncommon in user group * Common in user group * Majority of user group performed **Conversion Measures** No users converted to goal. * Example: None of the users analyzed converted to the goal in question. Unlikely to be useful. * Example: There may be no correlation (positive or negative) between the two events. Associated almost perfectly with not converting. Something might be off here. * Example: Users who trigger an “uninstall” event are not going to complete your Goal event. Associated almost perfectly with converting. Too good to be true? * Example: Users who trigger a Purchase event will always trigger an Add To Cart event. Add To Cart and Purchase will always have a high correlation. # Flows Source: https://docs.mixpanel.com/docs/reports/flows See frequent paths taken by users to or from any event ## Overview ![/flows\_header.png](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/flows_header.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=97990e8825a0f3b00023f0ff5af7d783) A Flows report identifies the most frequent paths taken by users to or from any event. Use Flows to understand how your users sequentially perform events in your product and analyze drop-offs or unsuccessful behavior. Flows can be accessed from the left-side navigation by clicking the '+ Create New' button. > [!NOTE] > > The Flows report is available on all free and paid subscription plans. ## Use Cases Here are some of the sample questions you can answer in Flows: * What did users do immediately after signing up? * What are the most common sets of actions taken after opening the app? * What actions lead up to creating a channel? * How do users navigate between account creation and sending their first message? ## Quick Start [https://www.youtube-nocookie.com/embed/lB9lQ8Xw9-8](https://www.youtube-nocookie.com/embed/lB9lQ8Xw9-8) Building a Flows report follows the same high-level steps as building any other report. You can read about report-building basics [here](/docs/reports). Building a report in Flows takes just a few clicks, and results arrive in seconds. Let's build a simple report together. Using a B2B messaging example, imagine you wanted to answer the following question: > What are the top paths leading Chrome users from Landing Page to Sign Up? ### Step 1: Choose Events Events are the basic building block of a Flow. In this case, since we want to know how users navigated from the landing page to signing up, we would add two events, "Landing Page" and "Sign Up", within the "Steps" section. ### Step 2: Choose Steps Before/After Events Above and below your selected events, you can choose how many steps to show before and after each event, respectively. In this case, we're curious to see at least 3 steps after our first selected event, so we input "3" below "Landing Page." At this point, your query should look like this: ![/Screen\_Shot\_2022-07-11\_at\_3.19.59\_PM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2022-07-11_at_3.19.59_PM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=6bf21af5ed099dcb966bf7cb3692a75f) ### Step 3: Choose Filters Filters exclude unwanted data. In this case, we only care about events performed by Chrome users. Therefore, add a "Browser" filter, where Browser equals "Chrome". At this point, your query should look like this: ![/flows\_3.png](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/flows_3.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=7fc9d94456c9b61482982665b705b7f1) ### Step 4: Expand The Events Transforms a high-level view of a certain flow step into a more granular, segmented analysis at any given point. However, if we wanted to see how the flow varies by city for a "Check Out" event, we could expand the "Check Out" event by "City", which can either be an event property or a user profile property. ### Step 5: Choose Breakdowns The "Breakdown" feature in Mixpanel's Flows report helps you understand how the complete user journey differs for various segments of your audience. What it does: Instead of seeing one combined flow for all users, "Breakdown" separates the report into multiple, parallel flows. This lets you clearly compare the entire user journey (from entry to exit or drop-off) for specific groups, helping you identify where their paths diverge and where you might need to optimize for different audiences. ### Step 6: Analyze Results Flows features two visualizations to help you view the results of your query in the clearest chart type. By default, Flows displays the User Flows chart, which uses a Sankey diagram to visually display multiple paths on the same chart. This visualization excels when trying to identify different variants of a similar path or following one particular trail. User Flows displays a Sankey diagram where the height of the bar is proportional to the number of users who perform that specific event, and the height of the lines that connect bars is proportional to the number of users who perform the two events in sequence. ![/Screen\_Shot\_2021-07-20\_at\_7.14.37\_PM.png](https://mintcdn.com/mixpanel-edb78807/LIWtWr4Am6t1wkkk/images/Screen_Shot_2021-07-20_at_7.14.37_PM.png?fit=max\&auto=format\&n=LIWtWr4Am6t1wkkk\&q=85\&s=c4fde6b975a42687067753e114693ace) In the above example, more users moved from the A event “Exit Tutorial” to “Experiment Started” than any other path. This is graphically signified by the height of the line. Hover over a stage of the diagram to highlight it and see details of that section. This includes the total number of unique users who moved between those two steps on that path, as well as the percentage. ![/Screen\_Shot\_2021-07-20\_at\_7.15.41\_PM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2021-07-20_at_7.15.41_PM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=79865b61df22b78faedadea231b1c785) Select any blue node representing an event on the Sankey chart to highlight the most popular paths that led to or from that node. The selected node is indicated in a lighter blue. ![/Screen\_Shot\_2021-07-20\_at\_7.16.15\_PM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2021-07-20_at_7.16.15_PM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=8e6a3a4122a8d32c309630aafdb4287d) ## Basic Features ### Viewing More Steps By default, Flows shows you the first 3 events performed by users after the selected event. If you wish to see what users did further along in the path, you can adjust the number of steps directly in the Sankey visualization, as shown below. Use the "+" icon on the right of the visualization to add steps after your selected events of interest to see what paths your users took following these key events. ![/Screen\_Shot\_2021-07-20\_at\_7.34.41\_PM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2021-07-20_at_7.34.41_PM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=3935200c3be5cd68c68a1244cbf57e11) The "+" on the left of the visualization will add steps before the events you've added in the query builder. This will allow you to see what paths your users took that led up to these events of interest. ![/Screen\_Shot\_2021-07-20\_at\_7.35.06\_PM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2021-07-20_at_7.35.06_PM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=f9852e80c2e30c9e2d6464a0c53520cc) To add steps in larger quantities, you can adjust the number of steps directly in the query builder section as well. ![/Screen\_Shot\_2021-07-20\_at\_7.40.10\_PM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2021-07-20_at_7.40.10_PM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=8a9e2dbfb94eeecbb8639b6df711bc15) ### Multiple Anchor Steps You can add multiple steps in the query builder. ![/Screen\_Shot\_2021-07-20\_at\_7.51.32\_PM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2021-07-20_at_7.51.32_PM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=a7d64bc16a1d9caeaa8b69b648e32c16) This allows you to examine flows between targeted events. The "+" on the left of the breakpoint line (marked with ≈) will show you the events that happened directly after the first anchored event. In the following example, Flows is showing the event that happened right after 'App Open' before 'In-App Purchase'. ![/Screen\_Shot\_2021-07-20\_at\_7.52.07\_PM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2021-07-20_at_7.52.07_PM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=7484cbbbcee691f96f78810e1bf04f34) Use the "+" on the right of the breakpoint line (marked with ≈) to show you the events that happened right before the later anchored event. As an example, below we see the event that happened directly before 'In-App Purchase', but only after the user did 'App Open'. ![/Screen\_Shot\_2021-07-20\_at\_7.53.04\_PM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2021-07-20_at_7.53.04_PM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=ffe755cb18c15e6fd4ac4b4dfb24cc30) ### Viewing More Event Flows By default, Flows only show you the top 3 events performed by users, ordered by the number of users who performed them. Less common events performed by fewer users are combined into an "Other events" section. To view more events, simply right-click the 'Other events' node and `Add a row of events`. ![/Screen\_Shot\_2021-07-20\_at\_7.46.45\_PM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2021-07-20_at_7.46.45_PM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=04f978c5775134e144d6b6f789f81789) To expand a large number of steps at the same time, you can select the number of rows you want directly in the advanced settings ![/Screen\_Shot\_2021-07-20\_at\_7.47.31\_PM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2021-07-20_at_7.47.31_PM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=a161909ff97187e1d51d86d67be5a493) ### Sankey Chart #### Selected Events These are significant moments in a user's lifecycle around which you would like to explore user behavior (for example, you may wish to view what users do after a Sign Up event). Selected events are picked in the query builder and are annotated with an alphabetical label (A, B, C) that is shown in the query builder and the sankey diagram. ![/Screen\_Shot\_2021-07-20\_at\_7.20.39\_PM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2021-07-20_at_7.20.39_PM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=3c2c06aef164a69e3c0e5bd53a94fda1) In the above example, we picked two anchor events, "Exit Tutorial" and "Experiment Started", and are viewing the events that were performed by users between them. #### Intermediate Events Once an event is selected, Mixpanel calculates the most common events performed by users immediately before or after the selected event. These intermediate events can match either regularly tracked events OR the most used custom events in your project. The icon will let you know at a glance the type of event being displayed. ![/Screen\_Shot\_2021-07-20\_at\_7.27.00\_PM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2021-07-20_at_7.27.00_PM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=be00b5de36693204b6bde7648b95ab0e) In the above example, Install or Open is a custom event, while Experiment Started is a regular event. [Click here](/docs/reports/flows#custom-events-in-flows) to learn more about custom events in flows. #### Other Events At each step in the flow, Mixpanel by default displays the top 3 intermediate events performed by users, ordered by the number of users who performed them at that step. The rest of the events performed are grouped into a single bar called "Other events". ![/Screen\_Shot\_2021-07-20\_at\_7.28.39\_PM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2021-07-20_at_7.28.39_PM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=4bf3771636a333c90815035f301ef8b5) #### Drop off “Drop-off” represents users who did not do any further events in the next step during the time period specified in the report, and therefore dropped out of the flow. Users are considered dropped off at future anchor steps selected in the query builder if they do not perform that particular anchor in the time period. ![/Screen\_Shot\_2021-07-20\_at\_7.28.54\_PM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2021-07-20_at_7.28.54_PM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=53319f379f73d162c2f610fc6aff4756) ### Conversion Criteria #### Counting Method Your selected counting method determines how many times Mixpanel will count a particular user's activity. Mixpanel Flows can be calculated by uniques, totals, or sessions, the same as the Funnels report. By default, Flows calculations are based on **uniques**. To change to a different counting method, click on the word **Uniques** in the conversion criteria, and select between **totals or sessions** from the drop-down list. ![/Screen\_Shot\_2021-12-15\_at\_10.16.00\_AM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2021-12-15_at_10.16.00_AM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=91ceb2dc790c5f981fff07e6e07f160e) **Uniques:** counts a single entry per user (determined by distinct\_id). Each can do the first step only once, and this is on the first time they perform the Step A event in the date range. Even if a particular user completes the funnel multiple times in the date range, they will only be counted towards conversion once, and on the first time they entered in the span of the funnel. **Totals:** counts multiple entries per user.  Users can restart the flow, and every time a user starts the flow, they are counted. Users may re-enter a totals flows only after they have exited their previous attempt. Users exit a flow in 3 ways: 1. They complete the last required step in the flow 2. They fail to get to the last required step in the conversion window and time out, 3. They are excluded from the current flow by an exclusion step. **Sessions:** ensure every step in the flow is performed in the same session. Like totals flows, users will be allowed to restart the flow in subsequent sessions. Learn more about Sessions [here](/docs/features/sessions). #### Conversion Window The Conversion Window determines how much time a user has to finish the last required step in the flow. By default, all customers have 30 days to complete a flow from the timestamp they perform the Step A event. To adjust this conversion window, click on the words **30 days** in the conversion criteria. You will be able to adjust both the unit of time and the amount for Flows consisting of two or more events. ![/Screen\_Shot\_2021-12-15\_at\_11.12.25\_AM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2021-12-15_at_11.12.25_AM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=a3ee84859f548b4d02402d1057811341) The maximum amount of time you can choose for the conversion window is 366 days, or otherwise equivalent (12 months, 52 weeks, etc). #### Hold Property Constant Holding a property constant in flows requires that a user retain the same value of a given event property for an event to be considered part of the flow. For example, let's say your product is an e-commerce retail site, and you want to see flows between Add to Cart -> Purchase as long as they purchased the same item - meaning they must be interacting with the same item in every step of the flow - you would hold the Item Name property constant. The way this is calculated depends on whether you have selected a counting method that does not allow users to re-enter the flow ("Uniques") or allows re-entry ("Totals" or "Sessions). * **Uniques:** When you select "Uniques" and hold a property constant, because users of this counting method only enter the flow once and on the first time they do the Step A event, Mixpanel will hold constant the property value from the first Step A event. * **Totals or Sessions:** When you select "Totals" or "Sessions" and hold a property constant, since these counting methods allow users to re-enter the flow, Mixpanel will hold the property constant that is set with each new re-entry at the Step A event. To add a property constant to your flows, select the **Holding property constant** button in the conversion criteria section. ![/Screen\_Shot\_2021-12-15\_at\_11.10.42\_AM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2021-12-15_at_11.10.42_AM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=5f05757245b157a57f3ab64b88869dbe) Some things to keep in mind are that you are only able to select event properties that apply to all of the required steps. Also, you can select multiple properties, but when you do, **all** must be kept constant. ## Advanced ### Top Paths Another way to visualize your user flows is by "Top Paths", which condenses the flows down to unique paths on each row. This visualization is great for understanding the most common paths users take, though they may not be similar. In this case, since we want to understand the most common paths, we choose Top Paths. Your report should look like this: In the top bar of the visualization, you will see the option to toggle between User Flows and Top Paths. ![/Screen\_Shot\_2022-07-12\_at\_4.31.17\_PM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2022-07-12_at_4.31.17_PM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=cf8054667ceda918390e5ac24a40ed38) Top paths will show the 50 most common event sequences of up to the number of steps you had selected in the User Flow sankey visualization. ![/Screen\_Shot\_2022-07-12\_at\_4.32.15\_PM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2022-07-12_at_4.32.15_PM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=3aa8233040221ae90c39bbc83ab1b64d) The total percentage of users who reached the ultimate destination of a flow is indicated on the top left, while the total number of users that reached a given step and the percentage of users who converted from the previous step are indicated on the bottom of each step. ![image](https://mintcdn.com/mixpanel-edb78807/LSnTJ-J777r9Qkr8/images/c36fcfb5-edbb-4374-86fc-6e3d3f5aa316.png?fit=max\&auto=format\&n=LSnTJ-J777r9Qkr8\&q=85\&s=fafe02679b66c32a3df21e2a56546bc7) ### Expand Event by Property You can choose to expand the results of your report by a particular property to see how that property may impact user flows. You can select multiple properties. For instance, what if I wanted to understand how the specific Purchase Type changes the most common flow that leads to a Purchase event? Click the **Expand** button, select an event, and then select a property under that event. ![Flows Expand Event Property](https://mintcdn.com/mixpanel-edb78807/4DDX4SOt7-BCjBUy/images/flows_expand_event_property.gif?s=4148baf29f613c4336cfe5d9ebc85693) You can also expand on a specific event in the chart below by right-clicking on an event and selecting **Expand by property**. ![Flows Expand Event Property2](https://mintcdn.com/mixpanel-edb78807/4DDX4SOt7-BCjBUy/images/flows_expand_event_property2.gif?s=e1c7682bf15df00669f3ed51a799e060) ### Breakdown and Compare by Cohorts Beside the **Filter** button, select the **Breakdown** button to select one or more cohorts from the drop-down list. You will be shown both users in and not in the cohort. ![Flows Breakdown Cohort](https://mintcdn.com/mixpanel-edb78807/4DDX4SOt7-BCjBUy/images/flows_breakdown_cohort.png?fit=max\&auto=format\&n=4DDX4SOt7-BCjBUy\&q=85\&s=4a8eb0feb7bb4ecf493f06d64bde9b0a) If you have selected multiple cohorts, the chart below will be broken down by those cohorts. Cohorts will appear in the chart in different colors, making it easy to follow the paths the cohorts took in your flows. In the following example, the cohorts “Android Users” and “iPhone Users” are being compared. As shown in the Legend on the left of the chart, “iPhone Users” are indicated in purple, “Android Users” in orange. ![/Screen\_Shot\_2021-07-20\_at\_5.42.31\_PM.png](https://mintcdn.com/mixpanel-edb78807/LIWtWr4Am6t1wkkk/images/Screen_Shot_2021-07-20_at_5.42.31_PM.png?fit=max\&auto=format\&n=LIWtWr4Am6t1wkkk\&q=85\&s=0d15c8bb41e25341116116cc1708c55c) To see the percentage breakdowns of these cohorts in more detail, click on a node to highlight the strongest path to that node. The box that pops up shows the percentage of each cohort that followed that path. In the following example, of the users that reached this Exit Tutorial event, 22.2% of users are iPhone users, 77.8% of users are Android users. ![/Screen\_Shot\_2021-07-20\_at\_5.42.41\_PM.png](https://mintcdn.com/mixpanel-edb78807/LIWtWr4Am6t1wkkk/images/Screen_Shot_2021-07-20_at_5.42.41_PM.png?fit=max\&auto=format\&n=LIWtWr4Am6t1wkkk\&q=85\&s=6092fa2ecae8dfb95c1fdd0248a82743) ### Hide Events You can choose to hide events from the flows report to simplify and clarify the results. This is useful if you have common events that add noise because they are not relevant to the workflow you are examining. Click the **Hide Events** button at the top of the chart and check any events you want to hide from the query, then click **Apply**. ![/Screen\_Shot\_2021-07-20\_at\_5.45.22\_PM.png](https://mintcdn.com/mixpanel-edb78807/LIWtWr4Am6t1wkkk/images/Screen_Shot_2021-07-20_at_5.45.22_PM.png?fit=max\&auto=format\&n=LIWtWr4Am6t1wkkk\&q=85\&s=55e62f5ea9631329e3e7cd9a8827b7ad) You can also choose to hide a specific event from the flow by right-clicking on it in the Flows chart. ![/Screen\_Shot\_2021-07-20\_at\_5.45.58\_PM.png](https://mintcdn.com/mixpanel-edb78807/LIWtWr4Am6t1wkkk/images/Screen_Shot_2021-07-20_at_5.45.58_PM.png?fit=max\&auto=format\&n=LIWtWr4Am6t1wkkk\&q=85\&s=3453ca935f42301f34aa14f4cb46be18) ### Custom Events in Flows #### Custom events as start/end events You may pick custom events as the starting or ending events directly in the query. For custom events that are composed of multiple events, paths consisting of either event are combined into a single flow. #### Custom events as intermediate events Mixpanel automatically considers the most used and common custom events in your project, displaying them in intermediate steps instead of showing the underlying events. When a custom event is shown instead of the underlying event, it is annotated with the custom event icon to indicate that the event displayed is custom. ![/Screen\_Shot\_2021-07-20\_at\_7.04.29\_PM.png](https://mintcdn.com/mixpanel-edb78807/LIWtWr4Am6t1wkkk/images/Screen_Shot_2021-07-20_at_7.04.29_PM.png?fit=max\&auto=format\&n=LIWtWr4Am6t1wkkk\&q=85\&s=c2a86f05e778bb718adfda6b748c23e9) Mixpanel uses the following criteria to decide which custom events are shown in user flows: 1. Custom events that are shared with all users in the projects are the only ones picked to be shown in flows right now 2. Only the 50 most frequently queried custom events in the project are used in Flows analysis. 3. If custom events have overlapping definitions (e.g., both custom events operate on the same event), we will choose the more frequently queried custom event to show in the report. #### Expanding custom events You may also expand custom events by event name to view the underlying events if required. ![/Screen\_Shot\_2021-07-30\_at\_1.21.26\_PM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2021-07-30_at_1.21.26_PM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=5476b212949f31ef07b6fb146e6d9047) #### Disabling custom events You can disable custom events for flows by toggling the Show Custom Events in the dropdown menu below. Custom events that have been manually chosen as steps in the flow will continue to show up, but no other custom events will be shown. ![/Screen\_Shot\_2021-10-29\_at\_10.48.22\_AM\_\_1\_.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2021-10-29_at_10.48.22_AM__1_.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=832d4772d94910cc3178868a3b9e6342) ### Collapse repeated events Turn on Collapse Repeated to combine consecutive occurrences of the same event into a single step. For example, if a user performs Search three times in a row, the flow shows one Search step rather than three. A run of any length collapses into one step. Repeats of the same event that are separated by a different event stay separate. ### Exclusion Steps You can add exclusion steps, which exclude users who did a particular step. This is useful for digging into a particular view, for example, to explore the 2nd most popular path taken. # Funnels Source: https://docs.mixpanel.com/docs/reports/funnels Measure conversions through a series of events Take a look at these pages to learn about our Funnels Report. > [card] [Overview](/docs/reports/funnels/funnels-overview) > [card] [Quickstart](/docs/reports/funnels/funnels-quickstart) > [card] [Advanced Concepts](/docs/reports/funnels/funnels-advanced) > [card] [FAQ](/docs/reports/funnels/funnels-faq) # Funnels Advanced Concepts Source: https://docs.mixpanel.com/docs/reports/funnels/funnels-advanced Advanced funnel configuration including steps, filters, and conversion windows ## Overview This page covers advanced concepts related to funnels, including how their metrics are measured and their various configurations. ## Conversion Criteria [https://www.youtube-nocookie.com/embed/Nk0u-oTOHfo](https://www.youtube-nocookie.com/embed/Nk0u-oTOHfo) ### Conversion Window The Conversion Window determines how much time a user has to convert through all steps of the funnel after entering it. By default, all customers have 7 days to complete a funnel from the timestamp they perform the Step 1 event. To adjust this conversion window, click on the words 7 **days** in the conversion criteria. You will be able to adjust both the unit of time and the amount. ![/Screen\_Shot\_2021-12-15\_at\_11.12.25\_AM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2021-12-15_at_11.12.25_AM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=a3ee84859f548b4d02402d1057811341) The maximum amount of time you can choose for the conversion window is 366 days, or otherwise equivalent (12 months, 52 weeks, etc). For session-based conversion windows, the maximum is 12 sessions. Keep in mind that the conversion window starts on the first instance of the Step 1 event per funnel entry, and will not be updated by later instances of the same event in the same funnel entry. For example, let's say a user tracks the following: 1. Event A at 1:00 pm 2. Event A at 1:30 pm 3. Event B at 1:45 pm 4. Event C at 2:15 pm You create a Funnel looking at A → B → C, with a conversion window of 1 hour. This user enters the funnel when they first track Event A at 1:00 pm. They convert through Event B at 1:45 pm, and then time out of the funnel. They do not show as converting through Event C since Event C took place more than 1 hour after the entry event at 1:00 pm. The second instance of Event A at 1:30 pm does not reset the conversion window timer. Event B and Event C would need to be completed within 1 hour of Event A, and tracked for the user to be counted as converted. ### Optimized Re-entry When **Optimized Re-entry** mode is enabled, we actively evaluate all funnel entry attempts - even if the user's previous funnel is still in progress. This allows us to capture potential conversions that might occur from subsequent entries, maximizing total conversions. If any user funnel entries within the report date range result in a conversion, we count the user as converted. ![image](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/funnel_reentry.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=b2a9d184333c5bb7416592b533b279cf) **Scenario 1** * Funnel Steps: A -> B * Event Stream: A -> Conversion Window Ends for A Ends -> A^ -> B **Default Mode** Since event A occurred first and did not convert within its window, we count the user as not converted. This mode only considers the user’s first funnel entry. **Optimized Reentry Mode** We treat A^ → B as a valid conversion because A^ initiates a new funnel which converts within its active conversion window. Therefore, we count the user as converted. **Scenario 2** * Funnel: A -> B * Event Stream: A -> A^ -> Conversion Window for A Ends -> B **Default Mode** Since A^ took place while the funnel entry triggered by A was still active, we ignore it. We only evaluate the first funnel entry (A), which did not convert. The conversion rate would be 0% from the drop-off for A since A^ is ignored. **Optimized Reentry Mode** We treat A^ as a new funnel entry and restart the funnel history. When B occurs, it completes the new funnel A^ → B, which we count as a conversion. The conversion rate would be 50% from the successful conversion for A^ and the drop-off for A. (A′^ / \[A + A^]) **PLEASE NOTE:** 1. For [Unique aggregation](/docs/reports/funnels/funnels-advanced#counting-methods) during a date range with multiple funnel conversions, we consider the first converted funnel only. For example, in scenario A → B → A^ → B^, there are 2 user funnels converted: A → B and A^ → B^. We only consider the first A → B as the user conversion. 2. In a multi-step funnel, we only consider the first step for re-entries. For every subsequent step, we pick the first instance of the step. 3. For the first step in a funnel, if there are multiple entries prior to step 2, we consider the most recent entry. For example, in scenario A → A^ → A^^ → B, where all actions happen within the conversion window, A^^ → B would be recorded as the funnel. 4. For all other counting types - [TTC](/docs/reports/funnels/funnels-advanced#time-to-convert), [Property Sum](/docs/reports/funnels/funnels-advanced#property-sum) - we compute these based on the funnels selected to optimize maximum conversions. For example, in scenario A → A^ → A^^ → B, where all actions happen within the conversion window, in the Optimized Reentry mode, TTC would be calculated for A^^ → B. However, in the Default mode, TTC would be calculated for A → B. ### Ordering The order control determines how much flexibility there can be in the sequence of your user's actions to be counted as a conversion. By default, funnels are based on a specific order. #### Specific Order Specific Order Funnels require the user to complete each of the funnel steps in the order laid out to be counted as a conversion from one step to another. In other words, Step 1 must be completed before Step 2, which must be completed before Step 3, and so on. The user can engage in other actions in between funnel steps - including additional occurrences of the actions listed as funnel steps - but they will only be counted as converted if they complete all the funnel steps in order. To illustrate with an example, let's say a specific order funnel has steps: A → B → C → D → E 1. The user does events A → B → C → D → E in exact order. Mixpanel counts this as a conversion. 2. The user does event A → B → **F** → C → D → E. Mixpanel counts this as a conversion. Users can do additional actions in between funnel steps and still convert. 3. The user does events A → B → **D** → C → D → E. Mixpanel counts this as a conversion. Even though the user did D before the first time they did C, they will continue to convert because they eventually did a D after C. 4. The user does events A → B → C → E. Mixpanel will not count this as a full conversion, and the customer will drop off after step C. The customer's completion of step E is excluded from the funnel because step D did not occur. #### Any Order In Any Order Funnels, users can complete unanchored funnel steps in any particular sequence and still convert. This type of funnel is most useful in situations where a user must complete all actions to be considered converted, but the exact order is not important. A good example of this could be a job application flow, where a user must input multiple pieces of information (their name, email address, current job title, etc.) to complete the form and submit their application, but they can provide all the information in any order. To switch to **Any Order**, expand the “Advanced” menu in the Conversion Criteria and toggle on “Any Order”. When you switch to **Any Order,** you have the option to anchor specific steps in your funnel by clicking on the step number. A step will either appear with a number beside it, indicating where it must fall in the funnel, or with an asterisk (\*), indicating that it can be performed in any order before the next anchored step. If you have selected any order for your funnel steps, you have the option to select **Top paths** from the drop-down visualization list to view a [Sankey visualization](/docs/reports/flows#sankey-chart) of how your users are performing the steps in your funnel. ![/funnels\_any.png](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/funnels_any.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=7eb85f4502358322dc64ff555cfb79ad) ### Hold Property Constant Holding a property constant in a funnel requires that a user retain the same value for a given event property for each step to convert. In other words, a user must perform the funnel events in the order you specified with the same property value. For example, let's say your product is an e-commerce retail site, and you have a three-step funnel of Browse → Add to Cart → Purchase. If you want to examine the conversion of users through this funnel who browse, add to cart, and purchase the same item - meaning that they cannot convert if they do not complete each step with the same item - you would hold the Item Name property constant. Since all the events must have the property, you can only select event properties that apply to all of the events in your funnel. You can select multiple properties, but when you do, **all** of them must be kept constant. A maximum of 3 properties can be held constant at the same time. The way entry values are determined when "Holding Property Constant" depends on the selected counting method: * **Uniques:** With the “Uniques” counting method, users will only enter the funnel once, the first time they do Step 1. Mixpanel will hold the property value constant from the first Step 1 event. * **Totals or Sessions:** “Totals” and “Sessions” counting methods allow users to re-enter the funnel. Mixpanel will hold the property constant that is set with each new re-entry at the Step 1 event. This means the user can enter multiple times with different property values. To hold a property constant in your funnel, expand the “Advanced” menu and click “Holding property constant”. ![/funnels\_hold.png](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/funnels_hold.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=e68207dd12bd2e47c6af6dd1fde1f126) ## Exclusion Steps (Exclude users who did…) Exclusion steps operate as a “did not do” filter for funnels. This provides the ability to create a funnel where users are excluded from converting if they track a specific event between the funnel steps. A few things to note about exclusion steps: 1. An exclusion step can be placed between any steps in the funnel. It cannot be the first or last step. Example scenario: The user tracks (1) Event A → (2) Event A → (3) Event A → (4) Event B Totals conversion funnel looking at A → B, with Exclusion Step: Event A The user enters the funnel when they track (1). They then drop off when they track (2) since Event A is excluded. With the totals conversion criteria, the user will re-enter the funnel at (3) and then convert with (4). Overall, there will be two entries and one conversion. Example reports for reference from our demo dataset: * [User activity](https://mixpanel.com/s/2it5gE) * [Funnel](https://mixpanel.com/s/2CpCuq) 2. A user will qualify for each step in the funnel until they track the exclusion step. This means users who tracked the exclusion step are still able to enter the funnel and convert through the steps. Use a [cohort](/docs/users/cohorts) filter if you want users who did a particular event at any point to be excluded from entering the funnel. 3. There may be any number of exclusion events between steps. 4. Exclusion steps have the same two-second [grace period](/docs/reports/funnels/funnels-faq#how-does-the-funnel-handle-simultaneous-events) as other steps in the funnel. As an example, let's say you want to understand if users who add additional products to their cart and check out are less likely to complete a purchase. To answer this question, you could create a funnel with four steps: Step 1: Product Viewed Step 2: Product Added Step 3: Checkout Started Step 4: Purchase Completed You can exclude users who did another “Product Added” event between Step 2 and Step 3 to see how that affects your funnel's conversion rate. To add an exclusion step in your funnel, expand the “Advanced” menu and click “Exclude users who did…”. Select an event from the list and choose whether you would like the event to be excluded from all steps or between specific steps. Click the Filter icon beside the step to filter that event by an event or user profile property. ![/exclude\_2.png](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/exclude_2.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=3e1077339d74a17aaf235fb527d89846) ## Saved Funnel Behaviors You can save the Funnel Behavior you built and reuse it in other reports. This can be helpful when there is a sequence of events that you frequently analyze (such as sign-up flow), or if you want to analyze your Funnels Behavior alongside other metrics in an Insights report. Select the "..." button in the top right corner of the metric, then click "Save Behavior". Note that saving a behavior and saving a metric are different; a saved behavior consists of the events/Funnels/Retention, while a saved metric consists of the saved behavior and the measurements of the behavior. ![/saved-funnel-behavior1.png](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/saved-funnel-behavior1.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=522c4f2177c0d71004673a776b4f81b2) Learn more about [Saved Metrics and Behaviors](/docs/features/saved-metrics-and-behaviors). ## Counting Methods and Measurements You have a variety of options to measure your funnel behavior. ### Counting Methods | Counting Method | Description | | - | - | | Uniques | Users will enter the funnel the first time that they track Step 1 in the time period selected. When a breakdown is applied, they can enter up to once per segment. | | Totals | Users can re-enter a totals funnel after they have exited their previous attempt through the funnel. Users exit in three ways: successful conversion through the funnel, time out of the [conversion window](/docs/reports/funnels/funnels-advanced#conversion-window), or track an [exclusion step](/docs/reports/funnels/funnels-advanced#exclusion-steps-exclude-users-who-did). | | Sessions | Users can enter the funnel in each session that qualifies. | ### Measurements | Measurements | Description | Counting Method | | - | - | - | | Conversion Rate | The rate at which funnels are completed for the selected steps of the funnel. | Uniques (default), Totals, or Sessions. | | Unique Users | The number of users who completed the selected steps of the funnel. | Uniques | | Total Conversions | The total number of funnels that have reached the selected step of the funnel. | Totals | | Total Sessions | The total number of unique users sessions that reached the selected step of the funnel | Sessions | | Time to Convert | Allows for selection of an aggregation: Average, Median, Percentile, Min and Max. Measures the aggregated time to convert for the selected steps of the funnel. See more [here](/docs/reports/funnels/funnels-advanced#time-to-convert-measurement). | Totals | | Property Sum | Sums up a chosen property value for each step of the funnel, and measures the total amount of the property converted for the selected step of the funnel. See more [here](/docs/reports/funnels/funnels-advanced#property-sum). | Totals | ### Step Selection You can select which step of the funnel you would like to measure. By default, this is set to All Steps. To change your step selection, press “All Steps” and choose the desired range. When measuring “Unique Users”, “Total Conversions”, or “Total Sessions”, you can select “Entering Funnel” in order to get a top-of-funnel count. Similarly, if you would like to get the bottom-of-funnel count, you can choose “All Steps”. ![step selection](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/step-selection.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=b90126d2744c48890029a1ca0c47b8b6) ## Time to Convert Time to Convert is a feature within the Funnels report that measures how long it takes users to move through the steps of a funnel, from the first event to the last (or between any two specific steps). ### Time to Convert Measurement You can select a Time to Convert aggregation to see how quickly or slowly your funnel converts. You can see this as a summarized value by selecting “Metric” or “Bar” visualizations, or you can see it as a trend using the “Line” visualization. You can also see the time to convert for a particular chosen step selection. (Note: Our percentiles are calculated using an approximate algorithm, and when this algorithm is run on small/sparse datasets, the results can be non-deterministic, i.e., the results can differ by a small amount across runs.) ![toc\_measurement.png](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/toc_measurement.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=9e4e842478edf394db643a4a911dd79b) ### Time to Convert Breakdown You can select the Time to Convert breakdown to see a distribution of the time users took across the funnel or between any two steps. The steps selected in the breakdown are independent of the step of the metric you are measuring. For example, you can measure the overall conversion rate broken down by Time to Convert between Steps 1 and 2. Time to Convert works like any other property in that you can filter to a specific range of times or customize the bucketing of the breakdown. You can't use it as an inline filter since it is used to filter funnels, which have been measured, rather than changing the per-step conversion window. You can see a distribution of the conversion time to convert by using the 'Time to Convert' breakdown in combination with measuring total conversion. You can also use this to see how other metrics, such as conversion rate, are affected based on how quickly users convert on a particular step range. ![toc\_breakdown.png](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/toc_breakdown.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=156319ee1973b0571cceed17b2657fcc) ## Property Sum This measurement type allows you to visualize a numeric event property through a funnel. Instead of seeing how many users move through your flow, you can select an event property that exists on each step of the funnel. Mixpanel will sum up the total value of this property at each stage of the funnel and visualize the total amount converted, or the drop-off at each step if “Funnel Steps” visualization is selected. For example, this could be used to visualize the revenue across the funnel steps. **Note**: For many e-commerce flows, you will want to pair the property sum with [hold property constant](/docs/reports/funnels/funnels-advanced#hold-property-constant) on item ID so you can track each individual item. To use this property, select Property Sum from the measurement menu and select a numeric property. ![funnels\_property\_sum.png](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/funnels_property_sum.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=80543eec719cc96db411e2ba811d69d6) ## Behavioral Properties Behavioral properties allow you to use your user’s activity and use it as a property in your other analysis. Behavioral properties work like any other numeric property in that you can filter to a specific range of frequencies or customize how it is bucketed. In funnels, the behavioral property is computed in the time range between 2 steps in your funnel. You can specify which steps in the funnel this applies to. The step selection is separate from the overall funnel measurement; for example, you can measure the overall conversion rate but break it down by the frequency of an event between Steps 1 and 2. The behavioral properties will only count the events in the chosen range. The event that originally satisfied the funnel definition does not count towards the behavioral property between steps. For example, if a user performs “Step 1 → Step 2”: * Frequency: “0 times” — there is no extra “Step 1” event, so the frequency will be “0 times” For example, if a user performs “Step 1 → Step 1 → Step 2”: * Frequency: “1 time” — we will count the second “Step 1” event, so the frequency will be “1 time” See [here](/docs/features/computed-properties#behavioral-properties) for more information about behavioral properties. ![funnels\_behavioral\_props.png](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/funnels_behavioral_props.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=f33714b34a2131d48a03c2e8fa2c9c18) ### Frequency per User Use the Frequency per User to see the number of times users performed an event between any two funnel steps. For example, see the number of times a user listened to a song between signing up and purchasing the song. ### Aggregate Property per User Use 'Aggregate Property per User' to see the aggregation on an event property between steps. For example, you can see the sum of a purchase amount between steps. ## "Attributed by..." Breakdown You can select this breakdown to attribute credit for the funnel to touchpoints along the user journey. The attribution is calculated on the first step of the funnel. See the [Attribution doc](/docs/features/computed-properties#attribution) for more information. ## Comparison Events You can select multiple events at a particular step in a funnel, and Mixpanel will compute a segmented funnel that shows what percent of users reached each of these comparison events. To do this, click on the ”…” menu and select “Event Comparison” ![funnels\_comparison.png](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/funnels_comparison.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=5bbf574ab7764cbb298686b3324c0ded) ## Breakdowns ### User Count in Breakdown Users will count in each breakdown segment in which they qualify. In order to qualify for a new segment, the user must have exited their previous funnel attempt unless the funnel is [holding a property constant](/docs/reports/funnels/funnels-advanced#hold-property-constant). The breakdown segment value is determined by the selected [property attribution](/docs/reports/funnels/funnels-advanced#property-attribution). For example, let's say a user tracks the following: 1. Browse Product, item = shirt 2. Browse Product, item = jeans 3. Add to Cart 4. Browse Product, item = shoes The funnel looks at Browse Product → Add to Cart, with a breakdown on "item" set to attribute the funnel on the value of "Step 1". This user would enter the funnel when they first track "Browse Product" with "item = shirt". The second "Browse Product" event is not counted as a new entry since the user has not exited the current funnel attempt. They then convert on event 3, when they track "Add to Cart". With the breakdown applied to "item", they will re-enter the funnel when they track "Browse Product" with the new item value of "shoes". Overall, the funnel would show two entries, "shirt" and "shoes", with one conversion on "shirt". ### Significance Statistical significance in funnels validates an increase or decrease in conversion rate for a property or cohort segment. It attempts to identify random chance with respect to overall conversion. A p-value indicating statistical significance is calculated in the overview table when you choose a property or cohort to group by. In statistical hypothesis testing, the p-value or probability value is the probability that the variation in a segment's conversion rate, compared to the overall conversion rate, is not driven by random chance. This value is shown for every segment by default. To learn more about how this is calculated, click [here](/docs/reports/funnels/funnels-faq#how-does-mixpanel-calculate-statistical-significance). In order to clarify this statistical significance, the segmentation chart shows the confidence level of each segment. Confidence level is defined as 1 - p. * \> 0.95 = statistically significant, indicated in green. This variation in conversion rate is likely **not** driven by random chance. * \< 0.95 = not statistically significant, indicated in red. This variation in conversion rate is likely driven by random chance. ![funnels\_significance.png](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/funnels_significance.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=6dca1b73c5e927451bb1f36b96bca097) Scrolling further down the table takes you to the statistically insignificant segments. If a segment has fewer than 30 samples, the p-value is not shown, as the sample size is too low to detect differences from the overall population. This is indicated by “Insufficient samples”. The number of samples is the same as the count of entries into the funnel. If the funnel is looking at the unique count, this is the number of unique users who entered the funnel in that segment. If the funnel is looking at the total count, this is the total number of entries into the funnel in that segment. You can choose to sort by any of the columns of the overall table in descending or ascending order by clicking on the header. If you sort by statistical significance, the secondary sorting is determined by the overall conversion rate for the funnel. Click on the **dot** beside the statistical significance number to make that property value the Control value that the other property values are compared to. To return to the default view, click the **dot** beside “Overall”. ## Filters ### Inline Filtering (Pre-Query) Inline filters allow you to apply event or user property filters to each step of your funnel. This adds granularity and specificity to your conversion criteria. In selecting an inline filter, you are tightening the parameters of events that qualify for conversion. Inline filters are performed pre-query. Thus, these filters will impact your funnel's conversion by removing events that don't qualify from consideration of being included in a funnel calculation. ![funnels\_filter1.png](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/funnels_filter1.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=d25013eafb3081ad41ac22cb845f0360) Let's illustrate this with some examples. Consider a three-step funnel where a user must View Item → Add to Cart → Purchase, all within a one-hour conversion window. As you can see in the activity feed below, this user's first "View Item" event happens more than one hour before they "Add to Cart", so they would drop off after the initial "View Item". As such, the funnel would show one entry with no conversions. ![funnels\_filter2.png](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/funnels_filter2.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=1d567be985165aa935daface17155f52) However, if you put an **inline filter on the "View Item" event with "Browser = Safari"**, then users will only enter the funnel with "View Item" events on Safari browsers. Below we see the same user's activity stream, where their first "View Item" is with the Chrome browser, and thus this user's first "View Item" event **is not** included in a funnel's calculation. They have a second "View Item" that is using Safari, and this event qualifies them to enter into the funnel. Each of their subsequent steps happens within the conversion window, and this user reaches full conversion at the end of the funnel. ![funnels\_filter3.png](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/funnels_filter3.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=7037df0289e4e35363b41a339387303c) If we were to take it further and place an inline filter on each and every step in this funnel, so that all steps must be completed with events where Browser = Safari, then this user would only convert to the second step of "Add to Cart". This is because the "Purchase" event doesn't have a browser set. ### Global Filtering (Post-Query) Global filters apply your selected filters to the entire report after the Funnels query has been run. Since Funnels will calculate conversions first and then apply your global filters, entire conversions that do not meet the filter requirements will be excluded from the report's results. The filter value is determined based on the [property attribution](/docs/reports/funnels/funnels-advanced#property-attribution) selected. For example, let's use the same three-step funnel where a user must View Item → Add to Cart → Purchase, all within a one-hour conversion window. This time, we apply a **global filter of "Browser = Safari", filtering on "First Step Defined".** In the below example, the same user's funnel entry would be their first "View Item" event, with a "Browser = Chrome" since this is the first defined property value. When the global filter is applied, the entire entry is filtered out since it doesn't meet the filter criteria. This means the report would show no users entering the funnel at "View Item". ![funnels\_filter4.png](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/funnels_filter4.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=f2787e32da49b0f63421235596da8f2c) ## Property Attribution ### First Step Defined vs Last Step Defined Event property values can vary from step to step in your funnel. You can choose which step the value is derived from for breakdowns and filters. To access this feature, filter or breakdown by a property in the funnel chart below the query builder. Click on **Step 1** to select either “Last Step Defined”, “First Step Defined”, or a specific step number. Your selected choice will determine which step of your funnel determines the property value for the whole funnel. ![funnels\_attribution1.png](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/funnels_attribution1.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=a7e8ae6e2e9bd7f60e253dc40a764de1) ### "First Step Defined" Attribution and Forwardfilling By default, Mixpanel *forward-fills* [event properties](/docs/data-structure/events-and-properties) in instances where properties are sent in earlier steps of a Funnel but not sent in subsequent steps of the same funnel. This means that the property that is present in the early steps of a funnel is appended to the later steps of the funnel, where it was previously absent. Select **First Step Defined** to attribute the first property value to the whole funnel, regardless of whether the property value changes in subsequent steps. First Step Defined is not the same as the first step of the funnel; it is the first time the property is given a non-null defined value. For example, say that the user is shopping on your website and you want to track a funnel from Page View → View Item → Add to Cart → Checkout, with a breakdown on "color". With "First Step Defined", the first color will be applied to the entire funnel, in this case, "red" seen on View Item. ![funnels\_attribution2.png](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/funnels_attribution2.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=ae42a02cb543043f4b354a451b7aca28) ### Last Step Defined Attribution By default, Mixpanel “backfills” [event properties](/docs/data-structure/events-and-properties) in instances where properties are sent in later steps of a Funnel but not sent in the earlier steps of the same funnel. This means that the property that is present in later steps of a funnel is appended to the earlier steps of the funnel, where it was previously absent. Select **Last Step Defined** to attribute the last property value to the whole funnel, regardless of the property value in previous steps. Last Step Defined is not the same as the last step of the funnel; it is the last time the property is given a non-null defined value. For example, say that the user is shopping on your website and you want to track a funnel from Page View → View Item → Add to Cart → Checkout, with a breakdown on "color". With "Last Step Defined", the last defined color value will be applied to the entire funnel, in this case, "blue" seen on Add to Cart. ![funnels\_attribution3.png](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/funnels_attribution3.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=352c9dc8513aa0faa4b0d7bfae00095b) ### Per-Step Attribution You can choose to attribute a property value from any step to the whole funnel by selecting the step number. Note that with this option, you may see an “undefined” null value for the property, as this option is not tied to when the property value was defined. ## View as Flow You can click into any funnel step and select “View as Flow”. This takes you to the [flows](/docs/reports/flows) report and lets you see: * What events did users do before or after converting? * What events did the users who dropped off do instead? For example, you might use this to discover that most users who dropped off are hitting a specific bug in your platform. You can then fix the bug and revisit your funnel to see if there's been an improvement. ## Rename a Step Click on the “...” icon beside a step and click "Rename" to rename it. ## Next: Frequently Asked Questions Still got questions? Get answers to the most frequently asked Funnels questions below. [Funnels FAQ](/docs/reports/funnels/funnels-faq) # Funnels FAQ Source: https://docs.mixpanel.com/docs/reports/funnels/funnels-faq Answers to common Funnels questions, including ID merge delays in conversion, loose step ordering, Funnels vs Insights counts, and breakdown segment limits #### Why is my user shown as dropped off even though they've just completed the full funnel today? Assuming that the user performed all actions in the funnel, on their first try, in the right sequence, within the conversion window, the user should be counted as converted. However, there is an ID Merge delay where it can take up to 24 hours for the anonymous and identified user activity to be linked together across Mixpanel. If you are looking at the Funnel report for today, the events may not be linked to one user if they are soon after ingestion. Once the identities are merged, the funnel should display the conversion if the user performs the steps in the funnel in the specified sequence. #### Can users do other actions during the funnel? Users can complete the steps you designate in your funnel in loose order. Loose order means that a customer can engage in other actions in between funnel steps, as long as they complete all the funnel steps in order. See the [Ordering](/docs/reports/funnels/funnels-advanced#ordering) section for more information. #### Why do I get differing numbers when comparing Funnels and Insights? Funnels and Insights are fundamentally different when it comes to counting events. A Funnels report expects users to convert through a series of events within a specified time period, with additional logic around re-entries and filtering. An Insight metric gives the actual count of users or events. For example, let's say we are looking at a Funnel from Step 1 → Step 2. In the Funnel report, the user will need to enter the report at "Step 1" and then track "Step 2" within the conversion window. If they don't do both of those things, "Step 2" will not be counted in the report. An Insight metric, on the other hand, will count the "Step 2" event without those criteria being met. In a "Totals" funnel, users will only re-enter after exiting their previous attempt. This means the count for "Step 1" in a funnel may not match the overall total number of events tracked for "Step 1". As an example, let"s say a user tracked Step 1 → Step 1 → Step 2. This user would only enter the funnel once when they first track "Step 1", but the "Total" count on an Insight report would show a count of 2 "Step 1" events. #### Can multiple events count towards the same Funnel step? Custom events allow multiple events to count towards the same step in the funnel. With custom events, you can essentially “combine” events into a single event so that you can create Funnels that measure the following: **Step 1:** Event A OR Event B **Step 2:** Event C This allows users to make multiple paths to the same end goal. Learn more about creating custom events [here](/docs/features/custom-events). #### Why are there only 200 segments in my Funnels breakdown report? When breaking down a Funnel by a Property, only the top 200 property values will be returned. All other segments will be grouped into an "\$other" category. If you would like to view all of the individual segments beyond the 200-property limit, you can export a CSV of the report. The export will contain up to 10k segments. #### How does the Funnel handle simultaneous events? Funnels include a built-in two-second grace period. This means any consecutive steps that have timestamps within two seconds of one another are interchangeable. This window allows for inconsistencies that arise with cross-platform tracking, batch event sending, mobile time tracking, or variations in connection speed. What does this mean in terms of your funnel? In a funnel with step A → B, if a user completes event B first and then performs event A within two seconds, the Funnel will count this as a conversion from A → B or B → A. #### Can I use the same event as Step 1 and Step 2 to measure repeat behavior? Yes. To measure how many users perform an action and then perform it again within a time window (for example, a 7-day repeat rate), build a two-step funnel with the same event as both Step 1 and Step 2, and set the [conversion window](/docs/reports/funnels/funnels-advanced#conversion-window) to the window you care about. Funnel steps require the events to be separate instances, so the same tracked event cannot satisfy both Step 1 and Step 2. The second occurrence must be a later event, subject to the two-second grace period described above. The Step 1 → Step 2 conversion rate is your repeat rate over the chosen window. #### Can I require a minimum time gap between funnel steps, or require the next step to fall on a different calendar day? No. The [conversion window](/docs/reports/funnels/funnels-advanced#conversion-window) sets the maximum time allowed between Step 1 and the final step (up to 366 days). There is no setting for a minimum time gap between steps and no setting to require the next step to occur on a different calendar day. Aside from the two-second grace period for simultaneous events, any later event that falls inside the conversion window counts. If you need "different calendar day" or "at least N hours later" semantics, precompute that on your side. For example, track a separate event (such as `Repeat Action - New Day`) only when the repeat occurs after a day boundary or after your required gap, then use that event as Step 2. #### What is the difference between Inline Filtering and Global Filtering? You can use both inline and global filters to decide which users and events to include in a funnel. Inline filters apply pre-query to a specified step, while global filters apply post-query based on the [property attribution](/docs/reports/funnels/funnels-advanced#property-attribution) selected. At a high level, an inline filter query will filter for the funnel entry for the user that meets the filter criteria. With a global filter, the user will enter the funnel the first time that they track Step 1. That entry will then be filtered based on the global filter criteria. See the [Filters](/docs/reports/funnels/funnels-advanced#filters) for more information. #### Why do the Line chart (by day) and Table (with a day breakdown) show different numbers for the same funnel? The two visualizations calculate conversions differently. The Line chart runs a separate funnel for each day (based on the time interval) in your date range, so a user can enter the funnel on multiple days and be counted multiple times. The Table (with a day breakdown) runs a single funnel across the full date range, then segments the results by day afterward, so each user is only counted once. #### How does Mixpanel calculate statistical significance? This section is intended for users who want to understand the mathematics involved in statistical significance in depth. To determine whether a particular segment's conversion rate is significantly different from the overall conversion rate, we use a hypergeometric distribution to calculate statistical significance. The hypergeometric distribution is used to model the probability of picking k items of a particular type in n attempts without replacement from a population of size N having K items of the same type. For example, let's say we have a sock drawer with 20 socks, 10 blue and 10 red. If we randomly picked 10 socks one at a time from the drawer without putting them back between picks, and we wanted to know the probability of 9 of those socks being red and 1 of them being blue, we would use a hypergeometric distribution to calculate that. This is applied to funnels by considering the total number of users who enter the funnel to be a finite population of size N, out of which a subset of users convert (K). We then estimate the probability of getting k conversions in a particular segment (given that there were n users who entered the funnel in that segment) if users in that particular segment were picked at random from the overall user set. The higher the probability, the higher the likelihood that variations we see in conversion rate are due to random chance. To calculate the actual p-value, we estimate the hypergeometric cumulative distribution function (CDF) for N, K, n. ![funnels\_statsig.png](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/funnels_statsig.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=1d5b72cb7ce9c045301b361be393008f) In the CDF, the value of any point (X) represents the probability that a random draw would result in fewer conversions, P(k \< X). 1 - P(k \< X) represents the probability that a random draw would result in more conversions, P(k >= X). These two probabilities are used to represent the probability that the selected segment will either outperform (P(k \< X)) or underperform (P(k > X)) the overall set of users. Mixpanel takes the higher probability of the two and calculates the p-value as 1 - max(P(outperform), P(underperform)). # Funnels Source: https://docs.mixpanel.com/docs/reports/funnels/funnels-overview Measure conversions through a series of events ## Overview ![/funnels\_result\_header.png](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/funnels_result_header.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=110731efbd86333450c34e500b56994c) Mixpanel's Funnels allows you to examine how end-users perform events in a series. Funnels calculate and display conversions from one event to another within a particular time window. This allows you to identify where your users drop off, what segments convert the most, and other important facets of the user journey. Funnels can be accessed from the left-side navigation by clicking the '+ Create New' button. > [!NOTE] > > The Funnels report is available on all free and paid subscription plans. ## Use Cases Imagine your product is a B2B messaging application. You might use Funnels to answer these questions: * What percent of users converted through my signup funnel within 7 days? * At what step of the signup funnel did most users drop off? * How did my A/B test impact conversions in the signup funnel? * How has the payment funnel conversion rate in the US changed over time? * How long does it take most users to complete my payment funnel? * What departments complete the payment funnel most often? * Why did the successful users purchase? ## Next: Build a Funnels Report Build your first Funnels report using the Quickstart below. [Funnels Quickstart](/docs/reports/funnels/funnels-quickstart) # Funnels Quickstart Source: https://docs.mixpanel.com/docs/reports/funnels/funnels-quickstart Build your first funnel to measure user conversion in Mixpanel [https://www.youtube-nocookie.com/embed/oG1JQ-M-32k](https://www.youtube-nocookie.com/embed/oG1JQ-M-32k) A funnel is a sequence of events done within a defined period of time. A converted user is one who triggers the funnel events, in the specified order, within the defined time period. ## Step 1: Define your Funnel Behavior A Funnel Behavior is the basic building block of the Funnels report. A Funnel Behavior is a sequence of events done within a defined period of time. For example, let's say your signup flow contains five steps. Within the funnel definition, you can add one event for each step, in the following order: “Product Viewed” → “Product Added” → “Checkout Started” → “Purchase Completed”. At this point, your query should look like this. ![/funnels\_beta\_1.png](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/funnels_beta_1.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=de1561198ae00cb7a503e93c31184e17) You can save the Funnel Behavior you built and reuse it in other reports. Select the "..." button in the top right corner of the metric, then click "Save Behavior". Note that saving a behavior and saving a metric are different; a saved behavior consists of the events/Funnels/Retention, while a saved metric consists of the saved behavior and the measurements of the behavior. Learn more about [Saved Metrics and Behaviors](/docs/features/saved-metrics-and-behaviors). ## Step 2: Choose your Measurement After your Funnel Behavior is defined, you can choose how you want to measure the Funnel. By default, the Funnels report will select the unique conversion rate of the funnel as the measurement. > [!NOTE] > > **Advanced** - See [Counting Method and Measurements](/docs/reports/funnels/funnels-advanced#counting-methods-and-measurements) section for more information on the measurements. ![/funnels\_beta\_2.png](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/funnels_beta_2.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=34b258c26e6df27ec0a1d83f05e5508f) Your Funnel Behavior combined with the measurement forms a Metric. You can save the Funnels Metric you built and reuse it in other reports (such as the Insights report). Select the "..." button in the top right corner of the metric, then click "Save Behavior". Note that saving a behavior and saving a metric are different; a saved behavior consists of the events/Funnels/Retention, while a saved metric consists of the saved behavior and the measurements of the behavior. Learn more about [Saved Metrics and Behaviors](/docs/features/saved-metrics-and-behaviors). ## Step 3: Choose Filters In this case, we only care about events performed on the iOS platform. Therefore, add a “Platform” filter, where Platform equals “iOS Native”. At this point, your query should look like this. > [!NOTE] > > **Advanced** - See [Filter](/docs/reports/funnels/funnels-advanced#filters) section for more information on the filters. ![/funnels\_beta\_3.png](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/funnels_beta_3.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=5478cea833902c115d3b4c05ec6fd5b4) ## Step 4: Choose Breakdowns Breakdowns segment data into groups. In this case, we want to break our funnel down by marketing medium, tracked via UTM tags. Therefore, you can add a “UTM Medium” breakdown. > [!NOTE] > > **Advanced** - See [Breakdowns](/docs/reports/funnels/funnels-advanced#breakdowns) section for more information on the breakdowns. ![/funnels\_beta\_4.png](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/funnels_beta_4.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=bf96801567329af7d32f5764009d7263) ## Step 5: Choose Visualization You can visualize your metric in a variety of ways. Mixpanel allows you to choose how you would like to visualize your data. Select “Funnel Steps” in the top right to change your visualization. In Funnels, you can choose: * Funnel Steps - see how users are progressing through the funnel * Line - see how your metric is trending over time * Bar - see a summary view of your metric * Metric - see a summary view of your metric ![/funnels\_beta\_5.png](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/funnels_beta_5.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=93aa8052f432cf234bdce6c2f117330d) ## Next: Advanced Funnels Concept Explore how funnel metrics are measured and the various configuration options below. [Funnels Advanced Concepts](/docs/reports/funnels/funnels-advanced) # Insights Source: https://docs.mixpanel.com/docs/reports/insights Visualize trends and compositions within your data ## Overview ![Insights Overview Image](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/overview.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=f6173601e5079abb62f06ef261c0211d) Insights is a powerful and flexible tool designed to visualize trends and compositions within your data. You can analyze events, cohorts, and user profiles, and display the data in a wide variety of chart types. Advanced Insights features also allow you to create formulas, compare current data to past data, and generate custom events and properties for deeper analysis. Insights can be accessed from the left-side navigation by clicking the '+ Create New' button. > [!NOTE] > > The Insights report is available on all free and paid subscription plans. ## Use Cases Here are some of the sample questions you can answer in Insights: * Product Analytics * How is my WAU changing over time? (unique users) * How often are my users getting value? (frequency analysis) * What is the distribution of my users across regions/devices etc? (property breakdown) * [Lifecycle analysis](https://mixpanel.com/blog/growth-through-segmentation-lifecycle-analysis-to-understand-your-users/) * B2B (in this case, a messaging application) * How many messages were sent in the US in the past 30 days? (total events, filtered) * How many users had a mobile app session yesterday? (unique events) * How many messages are sent per session? (formulas) * How much revenue was generated on plans purchased in the past year? (property aggregation) * How has the power users cohort grown over the past 6 months? (cohort trends) * Marketing * Which advertising campaigns generate the most checkouts? (property breakdown) #### Frequency Analysis It's important to know what's the natural frequency at which your users use your product and experience the core value proposition of your product--do the majority of your users use your product daily? Weekly? Monthly? A16Z wrote a great article about the [Power User Curve](https://www.reforge.com/blog/brief-understand-your-most-engaged-users-with-the-power-user-curve), and this [video](https://www.loom.com/share/0c05ac17742a4d49a4c6879c0fe9f0de) shows how you can reproduce that within Mixpanel. ## Quick Start [https://www.youtube-nocookie.com/embed/Popsy5G4i54](https://www.youtube-nocookie.com/embed/Popsy5G4i54) ### Step 1: Define your Behavior Metrics are the basic building blocks of an Insights report, and consists of profiles (users, groups, Cohorts) or behaviors (events, Funnels behavior, or Retention behavior) along with a measurement of those entities. Press the "Select Metrics" button to add a metric. To select an event and start with an event-based simple behavior metric, choose "Events" in the left column of the metrics menu, then select the events you want to measure. This creates a simple behavior. ![Choose Events](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/choose-events.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=cd39a2979ef1df967e4bce0cf9e4d097) You can save the behavior you built and reuse them in other reports. Learn more about [Saved Metrics and Behaviors](/docs/features/saved-metrics-and-behaviors). ### Step 2: Choose your Measurement Once you've selected your behavior, you can choose how to measure that behavior. A behavior combined with a measurement forms a Metric. Depending on the type of behavior selected, Insights will default to a different measurement. If you're measuring a Simple Behavior (events), Insights will default to measuring the number of unique users who have done that event. ![Choose Measurement](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/choose-measurement.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=6f978d88a7141ec510f02686a72d0806) You can save the metric you built and reuse it in other reports. Select the "..." button in the top right corner of the metric, then click "Save Metric". Note that saving a metric and saving a behavior are different; a saved behavior consists of the events/Funnels/Retention, while a saved metric consists of the saved behavior and the measurements of the behavior. Learn more about [Saved Metrics and Behaviors](/docs/features/saved-metrics-and-behaviors). ### Step 3: Choose Filters Filters exclude unwanted data. In this case, we only care about events performed on the iOS platform. Therefore, add an "Operating System" filter, where OS equals "iOS". At this point, your query should look like this: ![Choose Filters](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/choose-filters.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=36efea30cd27b69e9dab46572f580f54) Insights supports two filter scopes, and where you click determines which one you get: * **Inline filter (per metric):** Click the options menu next to the event or metric (the ... icon beside it), then add the filter there. The filter applies only to that metric, so you can filter one metric while leaving other metrics in the same report unfiltered * **Global filter (whole report):** Click the **Filter** button at the top of the report. The filter applies to every metric in the report. See [Filters](/docs/reports#filters) for more on the two scopes. ### Step 4: Choose Breakdowns Breakdowns segment data into groups. In this case, we want to count sign-ups based on users in different cities. Therefore, add a "City" breakdown. At this point, your query should look like this: ![Choose Breakdowns](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/choose-breakdowns.png?fit=max\&auto=format\&n=qosfcyvqREDownRB\&q=85\&s=1f25d4f024a7cf0b8221d29aea12066f) ### Step 5: Change Visualization Choosing a different chart can help you visualize data better. Line charts help you see a trend, but other charts will help you see the aggregate value. ![Change Visualization](https://mintcdn.com/mixpanel-edb78807/f8futtLpmSLP3U3y/images/change-visualization.png?fit=max\&auto=format\&n=f8futtLpmSLP3U3y\&q=85\&s=89e3dcfcbb0e2866663863cd80b72711) ### Step 6: Analyze Results You now have a full analysis that you can use and add onto a Board, or use as a starting point to dig in further. This might mean adding more filters or breakdowns, or adding another metric and seeing if there's an interesting comparison to be made. You could also change the counting type or the chart type. ## Basic Features ### Metrics Metrics are the basic building blocks of an Insights report, and consists of profiles (users, groups, Cohorts) or behaviors (events, Funnels behavior, or Retention behavior) along with a measurement of those entities. The table below outlines the types of Metrics that can be analyzed in the Insights report. **Behavioral Metrics** | Metric Type | Description | | - | - | | Simple Behavior (events) | A metric based off of an event or group of events. The metric could measure the total number of occurrences, unique users, or aggregates a property of this event. | | Funnel Behavior | A metric based off a funnel behavior. You can select a saved funnel behavior or define a new funnel, then choose a measurement on that funnel to form a funnel metric. By default measures conversion rate on all steps of the funnel. | | Retention Behavior | A metric based off a retention behavior. You can select a saved retention behavior or define a new retention, then choose a measurement to form a retention metric. By default, measures retention rate. | **Other Metrics** | Metric Type | Description | | - | - | | Profile | A metric based off of the user or group profiles. You can measure the number of profiles, or an aggregate on properties of the profiles. | | Cohort | A metric based off of a defined cohort. Measures the number of users who are part of that cohort. | | Formula | A metric that is a function of other metrics. You can select a saved formula, or create a new formula based on the existing metrics in the report. | #### Saving Metrics and Behaviors You can save the metric and behaviors you built and reuse them in other analysis. Select the "..." button in the top right corner of the metric, then click "Save Metric" or "Save Behavior". Note that saving a metric and saving a behavior is different; a saved behavior consists of the events/Funnels/Retention, while a saved metrics consists of the behavior together with the measurements of the behavior. Learn more about [Saved Metrics and Behavior](/docs/features/saved-metrics-and-behaviors). ![Insights Saved Behaviors](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/insights-saved-behavior.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=966932babe16fc9df0dd208665e779b5) #### Metric Limits Insight reports are limited to 40 metric/behavior blocks. This includes all metric and behavior blocks, such as hidden metrics and formulas. If you hit this limit, you can: * Migrate some metrics to a new report. * Use Saved Formulas if your report contains formulas. Learn more about [Saved Formulas](/docs/reports/insights#save-formulas-for-re-use). * Combine multiple events into a behavior. Learn more about [Saved Behaviors](/docs/features/saved-metrics-and-behaviors#simple-behaviors). ### Charts Insights feature multiple visualizations to help you view the query results in the clearest chart type. By default, Insights displays the results on the line chart, which helps you understand how metrics trend over time. However, another chart type might present the results with more clarity. In Insights, you can choose to get a metric calculated either across the entire time period selected in the date picker or on a time-segmented view of the metric (e.g. daily breakdown). * Metric calculated across the entire time period * Bar chart * Stacked bar chart * Pie chart * Metric chart * Table chart * Metric time-segmented * Line chart * Stacked line chart * Column chart * Stacked Column chart ### Rename an Event within a Report Click on the "three dots" icon beside an event and click Rename to rename it. This will only affect the current report, and will not change the event's name in other reports. ### Hide a Metric within a Report You can hide or unhide individual metrics in a report to focus the visualization on the metrics that matter. Hidden metrics stay in the query but aren't drawn on the chart, so the chart scales to the metrics that remain visible. To change the visibility of a metric, click the "three dots" icon beside it and select **Show / Hide Metric**. This is especially useful with [Formulas](/docs/reports/insights#formulas). For example, if a report has two events and a formula based on them, the formula can be hard to read because its values are much smaller than the events. Hide the two events so the chart scales to show the formula clearly. Hiding a metric only affects the current report. To hide events across your whole project, see [Hiding Data in Lexicon](/docs/data-governance/lexicon#hiding-data). ![Hide and unhide metrics in an Insights report](https://mintcdn.com/mixpanel-edb78807/qosfcyvqREDownRB/images/changelog/hideunhide.gif?s=d80ad4f2e6fa304d04198cfd1657d63d) ### Sorting #### Bar chart When you view a bar chart, you have four different sorting options: A-Z Ascending, Z-A Descending, Value Ascending, or Value Descending. To switch the sorting view, select the **Events** or **property name** column header in the upper left hand of the results and then select which sorting order you would like to see. ![Sorting Bar Chart](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sorting-bar-chart.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=9880592db9378525f428fb3b25c32634) #### Line chart Line charts in Insights are accompanied by a table of values that gives users another way to consume the trends information. This data table can also be sorted by clicking the column headers. Click on a column header to sort by that column. Click the header again to reverse the sorting order. For example, the table below is sorted by event counts on August 2nd: ![Sorting Line Chart](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sorting-line-chart-1.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=3f966a1b9471c710b95067cc533c027c) Results that are segmented (from one or more "group by" clauses in your query) have four different sorting options when you click on the "segment column" headers: * Segment A-Z Ascending: sort by segment name in ascending order * Segment Z-A Descending: sort by segment name in descending order * Value Ascending: sort by segment value in ascending order * Value Descending. sort by segment value in descending order When sorting by segments, the sort is carried out from left to right. ![Sorting Line Chart](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sorting-line-chart-2.gif?s=e82e883ccc123fd1d6a66332766dd8cc) Clicking on the "Average" data column performs a flat sort across all segments: ![Sorting Line Chart](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sorting-line-chart-3.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=9b4da71172d5bb1ee6a0dc43f0e7a0a8) #### Table chart Tables are useful to see the precise values of your data and to quickly scan multiple metrics per segment. In general, tables work similarly to the rest of Insights, with a few extra features. ##### Sort Order You can configure how you want rows in the table to be sorted, with our global sorting control. ![Sorting.gif](https://mintcdn.com/mixpanel-edb78807/5hQDmq4cJsrPPF4r/images/a61948a6-3e4a-4e5d-9b75-3f4b14cb1450.gif?s=08eb64b94d79317f99e03b2f6c65a3fd) ###### Grouped View vs Ungrouped View The Ungrouped View removes all hierarchy and makes the table flat. Each combination of segment values is treated as a row, independently of the other rows. ![image](https://mintcdn.com/mixpanel-edb78807/O5CFUc6kGJpeLxIg/images/e57400a1-a86c-4d46-9ffb-379306586d8d.png?fit=max\&auto=format\&n=O5CFUc6kGJpeLxIg\&q=85\&s=7fa181ee716b817244527c061f583e05) The Grouped View preserves the hierarchy of breakdowns. It shows you segments within a breakdown as displayed below. This view is only applicable when you have 2 or more breakdowns ![image](https://mintcdn.com/mixpanel-edb78807/2dQbP7q9Vb6iLUv1/images/2a72e93c-c332-4418-83e1-91bb24e2d271.png?fit=max\&auto=format\&n=2dQbP7q9Vb6iLUv1\&q=85\&s=561b6fd850198d2372f382890b5e9a3f) ###### Alphabetical vs Value-Based Sorting You can sort segments alphabetically or by the value of a particular metric. In the grouped view, sorting is configured on a per-breakdown level and respects the breakdown hierarchy. In the below image, we sort Country *within* Item Category, which respects the hierarchy. ![image](https://mintcdn.com/mixpanel-edb78807/2dQbP7q9Vb6iLUv1/images/4697ce00-d394-46ce-b538-66ec91ccd6e7.png?fit=max\&auto=format\&n=2dQbP7q9Vb6iLUv1\&q=85\&s=df098ed8897d75a14544f7bcdffc14cb) Hierarchy is defined by the breakdown order in the query panel. ##### Overall and Segment Sub-Totals **Overall:** This refers to the value considering all the segments, independent of whether displayed or not based on your View N control; i.e changes to View N will not affect Overall numbers ![image](https://mintcdn.com/mixpanel-edb78807/2dQbP7q9Vb6iLUv1/images/3d6556a4-9468-4d1f-8979-4fdb512f2aaa.png?fit=max\&auto=format\&n=2dQbP7q9Vb6iLUv1\&q=85\&s=9abb4c9e31be608d79796b1cd1dd9420) **Sub-Totals:** In the grouped view, in addition to the Overall, segment sub-totals are also displayed. Similar to “Overall”, these values are independent of the View N control ![image](https://mintcdn.com/mixpanel-edb78807/O5CFUc6kGJpeLxIg/images/ee7d8c9b-f738-4a5b-8967-300cf8322f76.png?fit=max\&auto=format\&n=O5CFUc6kGJpeLxIg\&q=85\&s=f80321b3e69bf7f154e4998b9989d7eb) ##### Dynamic & Manual Segments Dynamic Segments let you decide how many segments to display per breakdown in your report. With Dynamic Segments, the segments selected in the report will change based on your latest data and the current sort order. Manual Segments let you choose specific segments that will always display in the report, regardless of the data or sorting. ![image](https://mintcdn.com/mixpanel-edb78807/MLHukxsJcUmeXk0p/images/dynamic_segments.png?fit=max\&auto=format\&n=MLHukxsJcUmeXk0p\&q=85\&s=e23e64bd8b15de8b3ef3f3b536bb9180) When using Dynamic Segments, you can select the number of segments to display from the column headers. ![View\_N\_gif](https://mintcdn.com/mixpanel-edb78807/2dQbP7q9Vb6iLUv1/images/4fb0fd18-2ef7-416b-adaa-c7299da0f7b3.gif?s=f5c70cafe7fe2923678878141d5ef301) In the ungrouped view, choose the number of rows to display: ![image](https://mintcdn.com/mixpanel-edb78807/LSnTJ-J777r9Qkr8/images/b1b25b19-51be-4934-bbfd-7562e0f98d4a.png?fit=max\&auto=format\&n=LSnTJ-J777r9Qkr8\&q=85\&s=9e79c991bc97f5398140ac99f74a253f) In the grouped view, you can choose the number of rows you want to display for each breakdown: ![image](https://mintcdn.com/mixpanel-edb78807/LcmSrwWEPbGSfa6B/images/f9f8c83c-34ed-44bd-b4e7-f60b70255a6f.png?fit=max\&auto=format\&n=LcmSrwWEPbGSfa6B\&q=85\&s=d86edb1fea8523b1db87a2f198edd58e) ![image](https://mintcdn.com/mixpanel-edb78807/LSnTJ-J777r9Qkr8/images/b09c1ad1-1392-4ec0-9358-361f677c600d.png?fit=max\&auto=format\&n=LSnTJ-J777r9Qkr8\&q=85\&s=cf09b056e89ca95955c8b08cf95bd4a6) **Notes about Dynamic Segments** * View N only controls how many segments to display. To decide which segments to display i.e if it’s the top segments by value or bottom segments by value or alphabetical, please change the “Sort Order”. * View N will show the minimum of N and how many segments are in your report. For example, if you set N=10 but you only have 7 segments, we will only show 7 rows. * When selecting “Show All”, the maximum number of segments displayed in the UI will depend on the chart type. ## Advanced ### Formulas Use Formulas to make calculations using simple arithmetic operators. Mixpanel supports the following operators: * \+ : Add * * : Subtract * \* : Multiply * / : Divide * () : Use parentheses to influence the order of operations You can also use numbers as constants in a formula. Multiply a ratio by 100 to display as a percentage, for example. Divide a property value tracked in seconds by 3,600 to display the value in hours. You can rename a formula by selecting Rename in the overflow menu of the formula. Click the **Metrics** button, then select Formula.. Each event in the query shows a letter next to it, which indicates its variable name. Use these letters in combination with the operators to calculate a more advanced query. For example, you can use the DAU, WAU, and MAU functions in Formulas to calculate the stickiness of your product: ![Formulas 1](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/advanced-formulas-1.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=b2294264a07ec1e48b39608a82ee89b1) To note, you cannot nest a formula metric when constructing another formula. Adding a formula doesn't remove the metrics it references from the chart. To focus on just the formula, [hide the original metrics](/docs/reports/insights#hide-a-metric-within-a-report). #### Save formulas for re-use > [!NOTE] > > 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. See our [pricing page](https://mixpanel.com/pricing/) for more details. Use existing events to create calculated formulas, like Bounce Rate & % Active Users, that can be saved and reused by others within the project. ![saveformula.gif](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/saveformula.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=b8932806bf8ff3347eb1219c3e884f3b) Some nuances to note: * Once you save a formula, A,B,C refer to what’s **within** the saved formula modal * To edit a saved formula, expand the metric and edit inline, and then save * When a saved metric is updated, it will update across all reports it’s being used in * A saved formula can’t reference another formula To access and re-use saved formulas, click on “+Formula”, and then see the list of saved formulas. You can also look at all the saved formulas in the Lexicon tab “Metrics”. Some callouts regarding permissions: * All roles can create a saved formula, but only some roles can share them with the whole project for re-use * You can only look at saved formulas created by you or shared with you ### Custom Bucketing Insights will automatically group your high-cardinality segments into buckets. Buckets can be edited by using the "Custom Buckets" option in the overflow menu: You can choose "Even" to get buckets of uniform size, and you can choose "Varied" to get buckets of different sizes. This helps with organizing outliers, or with drilling deeper into particular ranges. ![Bucketing](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/advanced-bucketing.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=103d1b5da085074270a67dd7e827c269) ### Time Period Comparisons Compare the current period of time to previous periods to track trends and growth in your product’s use. Compare traffic from a specific campaign period or event from one year to the next, or compare the success of that campaign to your normal traffic. Note that if a data point for a previous year falls on a weekend, the data point is automatically moved to the next Monday to give a clearer picture of the data change from one year to the next. Click on the **Compare to past** button at the top of your Insights graph and select the time period you wish to compare to. You can also select a custom date range. ![Time Period Comparison](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/advanced-time-period-comparison.gif?s=b7ccab918dc658c8deb84056af5db062) ### Value Comparisons When you have multiple metrics, or have broken down a metric by a property, you can compare them against each and the relative value. Click on **Compare** -> **Overall**. This works for all measurements. For a "totals" measurement, you can see the percentage that a particular segment makes up. For non-sumable aggregations, it compares the segment value to the whole, unsegmented value. ![Value Setting](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/advanced-value-comparison.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=0764cfadb269c2136d25eefb8c0a5bdd) ### Expected Range Comparisons Not every dip or spike is worth a look. Expected Range shades the band your metric would normally land in, forecast from its own history, so the points that fall outside it stand out on the chart. Click on **Compare** -> **Expected Range** to turn it on. Hovering a point outside the band puts **Root Cause Analysis** at the top of the popover, so you can go straight from spotting the outlier to [explaining it](/docs/root-cause-analysis). Expected Range works on line charts of absolute values over time, for date ranges of up to about three months of data points, and shows the band for up to 12 segments. It can't be combined with a time period or value comparison; pick one or the other. ### Profile Analysis Profile metrics allow you to access profile data and visualize your users with filters and breakdowns based on their profile properties. When exploring Profiles, you are always analyzing all user profiles. Select the [Measurement](/docs/reports/insights#measurements) you want to use to calculate results by clicking on **Total** and selecting an option from the drop-down. You can calculate based on users or profile property value. [Link to Demo](https://www.loom.com/share/dc5e909f2d7f427ca962e493e87894ad) ### Annotations To clarify the results in your Insights report, add detailed annotations directly to your time-series charts (such as line, stacked line, column, and stacked columns charts). Annotations are tied to a specific date on the chart, rather than a particular point of data on the chart. Learn more about [Annotations](/docs/features/annotations). ### Measurements [Link to Demo](https://www.loom.com/share/22d760d014234a1eb566f68dda79c58f) Measurements in Mixpanel reports allow you to perform more complex calculations on your queries - this includes computing aggregate values of your event and property data, including totals, uniques, and averages. The following measurements are only available in Insights, and are separated into groups based on what is being calculated: Total, Unique, Count users, aggregate property values, aggregate property values per user, and count sessions. Select the measurement you want to use to calculate results by clicking on **Unique Users** and selecting an option from the drop-down. You can calculate based on events, users, event property value, event property value per user, and sessions. ![Measurements 1](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/advanced-data-functions-1.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=05187a96d8db284f0fd9fe17c788b168) The following functions have additional aggregation options which you will be prompted to select: | Function | Aggregation options | | - | - | | Frequency per User | Distribution Average Median Percentiles (P25,P75,P90,Nth) Minimum Maximum | | Aggregate Property | Sum Average Median [Distinct Count](https://www.loom.com/share/7d0e42f847c24b3c8720d5b6a6bedeb4) Percentiles (P25,P75,P90,P99,Nth) Minimum Maximum | | Aggregate Property per User | Average Sum Distribution Median Percentiles (P25,P75,P90,Nth) Minimum Maximum | These functions provide additional aggregation options following the initial calculation because they are “per user” calculations. “Per user” calculations first calculate the value per user, which is an unhelpful query in its raw form, but becomes useful when you perform an aggregation on that calculation. Selecting any of these functions gives you the option to choose different ways to aggregate this data. The default aggregation is **Average**, which you can click on to select a different option such as distribution, median, 25/75/90th percentiles, minimum, and maximum. ![Measurements 2](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/advanced-data-functions-2.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=cf14257ec746ee186693995403e48503) If the measurement you select calculates based on property (“Event Property Values” or “Event Property Values Per User”), you will be prompted to select an event property. You can find more information about each measurement and how they are calculated below: #### Events | Function Name | Events Calculation | Profiles Calculation | | - | - | - | | Total Events | Total count of \[event] performed. Example: How many times did my users watch a video? | N/A | | Frequency per User | The number of events performed per user. Example: How many videos were watched per user? Aggregation options: Average, distribution, median, percentiles, minimum, maximum | N/A | #### Users This can refer to measuring the total number of user profiles, as well as the number of unique users that performed an event. DAU, WAU, and MAU are accessed through the advanced settings of unique users. Select the > arrow to choose any XAU options. For how breakdowns affect unique user counts, see [How do breakdowns work with Uniques?](/docs/reports/insights#how-do-breakdowns-work-with-uniques). If you select the DAU, WAU, or MAU function for a date range that includes the current day, the query will take the end of the current day as the end of the query’s time segment (even though it’s in the future). For example, today is April 25th, and it’s 4:22 PM. If you make a query to show WAU and you select “current day” as your date range, the query will return the count of unique users between April 19 at 12:00:00 AM and April 25 at 11:59:59. ![Measurements 3](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/advanced-data-functions-3.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=c5aa54ba555669c3afcc6c79d181f653) | Function Name | Events Calculation | Profiles Calculation | | - | - | - | | Total | N/A | Total count of user profiles. **Example**: What's my total number of users? | | Unique Users | The number of users who performed \[event] or are a part of the cohort. **Example**: What's the count of users who watched a video? | N/A | | Daily Active Users (DAU) | The number of users who performed \[event] within the last 24 hours. **Example**: What's the count of users who watched a video on the last day? | N/A | | Weekly Active Users (WAU) | The number of users who performed \[event] within the last 7 days. **Example**: What's the count of users who watched a video in the week? | N/A | | Monthly Active Users (MAU) | The number of users who performed \[event] within the last 30 days. **Example**: What's the count of users who watched a video in the last month? | N/A | **Example of MAU** Assuming we would like to find the MAU of the last 6 months (e.g. Jul 5, 2023 to Jan 1, 2024) * If the time interval is "Month": [https://mixpanel.com/s/3LC8ll](https://mixpanel.com/s/3LC8ll) * For each month, we will look at the last date in the time frame, and count 30 days back from that. * So for the month of Dec, we will count the total number of active users from Dec 2 to Dec 31 * As long as the user watches video once, anytime between Dec 2 to Dec 31, they will be counted as part of the MAU for Dec * If the time interval is "Day": [https://mixpanel.com/s/47YhnE](https://mixpanel.com/s/47YhnE) * For each day, we will look at the last date in the time frame, and count 30 days back from that. * So for Nov 1, we will count the total number of active users from Oct 3 to Nov 1 * As long as the user watches video once, anytime between Oct 3 to Nov 1, they will be counted as part of the MAU for Nov 1 * If the time interval is "Week": [https://mixpanel.com/s/dA5BK](https://mixpanel.com/s/dA5BK) * For each week, we will look at the last date in the time frame, and count 30 days back from that. * So for the week of Nov 27 to Dec 3, we will count the total number of active users from Nov 4 to Dec 3 * As long as the user watches video once, anytime between Nov 4 to Dec 3, they will be counted as part of the MAU for Nov 27 to Dec 3. **How do breakdowns work with Uniques?** When you apply a breakdown to a metric, by default, Mixpanel tells you how many unique users contributed to each segment. For example, in the image below, you can see there were a total of 2441 unique users, while the sum of individual segments is more than 3000. This is correct. That is because one user could have seen both a Home Page and a Shop Page, so they get counted as a user towards both segments. By default, Mixpanel answers the question: per segment, tell me the number of unique users, DON'T tell me how the 2441 users are distributed across the various pages with a user being counted only towards one segment, which will require assigning a user to one segment even if they contributed towards multiple segments. ![image](https://mintcdn.com/mixpanel-edb78807/hlEuYugIN20vBJ1j/images/uniques_default.png?fit=max\&auto=format\&n=hlEuYugIN20vBJ1j\&q=85\&s=53dce7ec7a5b82b3a7cf50e2bb57c9af) There are some cases though, where you want to know how the 2441 users are distributed, generally either by their first or last action. For example, based on the last page (segment) a user saw, tell me the distribution of users. You can enable this now via the advanced control for Uniques, by choosing which segment to associate a user to: either the first segment or the last segment in the chart date range (7D in the below image) ![image](https://mintcdn.com/mixpanel-edb78807/hlEuYugIN20vBJ1j/images/uniques_count_once.png?fit=max\&auto=format\&n=hlEuYugIN20vBJ1j\&q=85\&s=6f35f020814b716ac6d5e98c4ea1dd70) To note - in a line chart, there are two concepts of time period: chart date range (3M below) and time interval (weekly interval below). When advanced controls are used in a line chart, it assigns a segment based on the first/last segment for each time interval, NOT across all time intervals in the chart range. #### Aggregate Property | Function Name | Events Calculation | Profiles Calculation | | - | - | - | | Sum | The total of a numeric property value across all instances of \[event]. **Example**: What's the total number of minutes of videos watched? | The total of a numeric property value across all user profiles. Example: What's the total revenue across all users? | | Average | Average of a numeric property value across all instances of \[event]. **Example**: What's the average number of minutes per video watched? | Average of a numeric property value across all user profiles. Example: What's the average revenue across all users? | | Distinct count | Calculates the unique count of property values across all instances of \[event]. **Example**: How many unique songs were played in the last 30 days? | Calculates the unique count of property values across all profiles. Example: How many unique countries were our video watchers from? | | Median | Median of a numeric property value across all instances of \[event]. **Example**: What's the median number of minutes per video watched? | Median of a numeric property value across all user profiles. Example: What's the median revenue across all users? | | Percentiles (25/75/90/99) | The 25/75/90/99th percentile of a numeric property value across all instances of \[event]. **Example**: What's the 25th percentile number of minutes of videos watched? | The 25/75/90/99th percentile of a numeric property value across all user profiles. Example: What's the 25th percentile revenue across all users? | | Minimum | Minimum of a numeric property value across all instances of \[event]. **Example**: What's the minimum number of minutes per video watched? | Minimum of a numeric property value across all user profiles. Example: What's the minimum revenue across all users? | | Maximum | Maximum of a numeric property value across all instances of \[event]. **Example**: What's the maximum number of minutes per video watched? | Maximum of a numeric property value across all user profiles. Example: What's the maximum revenue across all users? | #### Aggregate Property per User | Function Name | Events Calculation | Profiles Calculation | | - | - | - | | Sum | The total of a numeric property value across all instances of \[event] per user. **Example**: What's the total number of hours of videos watched per user? **Aggregation options**: Average, distribution, median, percentiles, minimum, maximum | N/A | | Average | Average of a numeric property value across all instances of \[event] per user. **Example**: What's the average number of hours of videos watched per user? **Aggregation options**: Average, distribution, median, percentiles, minimum, maximum | N/A | | Distinct count | The number of distinct property values per user. **Example**: How many different videos did each user watch? **Aggregation options**: Average, distribution, median, percentiles, minimum, maximum | N/A | | Minimum | Minimum of a numeric property value across all instances of \[event] per user. **Example**: What's the minimum number of hours of videos watched per user? **Aggregation options**: Average, distribution, median, percentiles, minimum, maximum | N/A | | Maximum | Maximum of a numeric property value across all instances of \[event] per user. **Example**: What's the maximum number of hours of videos watched per user? **Aggregation options**: Average, distribution, median, percentiles, minimum, maximum | N/A | #### Total Sessions | Function Name | Events Calculation | Profiles Calculation | | - | - | - | | Sessions with event | The number of sessions that contain \[event]. **Example**: What's the total number of sessions in which users watched a video? | N/A | #### Additional Aggregation Option Examples | Measurement | Average | Distribution | Median | Percentiles (25/75/90) | Minimum/Maximum | | - | - | - | - | - | - | | Total per user | What's the average number of songs played per user? | What is the distribution of my users by the number of songs played? | What's the median number of songs played per user? | How many songs did the 90th percentile user listen to? | How many songs did my least/most active user listen to? | | Sum of property value count per user | What's the average cumulative watch time per user? | What's the distribution of my users by the cumulative minutes of content watched? | What's the median of the cumulative watch time per user? | How many cumulative minutes has the 90th percentile user watched? | How much has the lowest/highest spender spent? | | Average of property value count per user | What's the average of the average cart value for each rider? | What's the distribution of my users by the average cart value per user? | What's the median of the average cart value per user? | What's the average cart value for the 90th percentile user? | What's the minimum/maximum average cart value? | | Distinct property value count per user | What's the average number of unique song titles heard by my users? | What's the distribution of my users by the number of unique song titles listened to? | How many unique songs does the median user listen to? | How many unique songs does the 90th percentile user listen to? | What's the minimum/maximum number of unique songs my users listen to? | | Minimum property value count per user | What's the average of the minimum ratings provided per user? | What's the distribution of my users by the minimum rating provided? | What's the median of the minimum ratings provided by users? | What's the minimum rating provided by the 90th percentile user? | What's the minimum rating across all ratings?? | | Maximum property value count per user | What's the average of the maximum gaming session length per user? | What's the distribution of my users by the maximum gaming session length? | What's the median of the maximum gaming session length per user? | What's the maximum gaming session length provided by the 90th percentile user? | How long has the longest gaming session lasted across our users? | Here's a quick overview on "Distinct count" of property values, and how that differs from "Distinct count" of property values per user: Here are some use cases that are now possible with "Distinct count" of property values: * How many **unique items** were added to cart yesterday? * How many **unique songs/videos** were played in the last 30 days? * How many **unique files** were worked on in the last week? ### Analysis Settings Allows you to change the metric being measured. Access by going into the advanced section of the measurement menu. ![Rolling and Cumulative](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/rolling-cumulative.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=0615e5d6ca57370b754f07f7fbfbcd14) * **Rolling Average:** Rolling analysis calculates the rolling average of the data set. A rolling average curve is a series of averages from subsets of data. Use rolling average analysis to remove noise or spikes from data and smooth out trends over time. Mixpanel calculates the rolling average based on the selected time interval (hour, day, week, month, or quarter) for each data point in the graph.\ For example, if you make a rolling analysis query for the past 30 days, Mixpanel calculates the rolling 7-day average by default. The value reported on each day in the line graph is the average of the values from the 7 days leading to that day. In the case of the first 6 days in your selected time period, the 7-day-average calculation will include days before the selected time period. * **Cumulative:** Adds up the values of each point on the graph as it goes along, so the height of the line will increase over time. [Link to Demo](https://www.loom.com/share/4d49fe9a64e24fb2b6cac44f86839fd2) ### View Users Click a segment in an Insights report to see the list of users that underlie that data point. This helps see a representative sample of users from any analysis, so you can drill into anomalies or simply get to know your users. You can also save this user list as a cohort to either export or use for message targeting. See this [video walkthrough](https://www.loom.com/share/5568e266532b4804a1c2d36d678eb1a2) for examples of how View Users can help you understand users contributing to a specific metric. ### View Events Click on a chart segment in Insights and view the raw events that made up that metric. You will be redirected to the Events page. ![Reports View Events](https://mintcdn.com/mixpanel-edb78807/4DDX4SOt7-BCjBUy/images/reports_view_events.gif?s=19bad2cf460408979c0ba4523da3e8fb) ### View Sample Events If you hover over any event and click "View Sample Events" in the context panel, it redirects you to the Events page with the 100 most-recent samples of that hovered event. You can see a few samples of an event to help you decide whether that's the right event you want for your analysis, or which property you should use for filters/breakdowns. ![Reports View Sample Events](https://mintcdn.com/mixpanel-edb78807/4DDX4SOt7-BCjBUy/images/reports_view_sample_events.gif?s=1d09f2419f978738ef745519bea3b8af) ### Date Range Guardrails To ensure a smooth self-serve experience and fast query performance, certain date-range guardrails apply depending on the type of report you create: * **Hourly granularity reports** can include a maximum date range of 31 days. * **Daily granularity reports** can include a maximum date range of 12 months. * **Reports using All Events** can include a maximum date range of 93 days (approximately 3 months). * **Reports using cohorts** can include up to 93 time intervals—for example, 93 weeks or 93 days. This allows queries such as “the last 3 months at daily granularity. # Retention Source: https://docs.mixpanel.com/docs/reports/retention Measure engagement over time ## Overview ![/Screen\_Shot\_2021-05-27\_at\_7.49.12\_AM.png](https://mintcdn.com/mixpanel-edb78807/LIWtWr4Am6t1wkkk/images/Screen_Shot_2021-05-27_at_7.49.12_AM.png?fit=max\&auto=format\&n=LIWtWr4Am6t1wkkk\&q=85\&s=a6cff975a4af3fa3e96ffab1562dff47) The Retention report in Mixpanel is designed to assess user engagement over a specified period of time. Retention of your users is critical to achieving product-market fit and sustainable long-term growth, and this report will help you understand how long users continue to come back and find value from your product. Retention can be accessed from the left-side navigation by clicking the '+ Create New' button. > [!NOTE] > > The Retention report is available on all free and paid subscription plans. ## Use Cases Here are some of the sample questions you can answer in Retention: * On average, how many users are still active after two weeks of signing up? * What percent of all users are still sending messages after seven days? * How has my 7-day messaging retention changed over time? * What percent of users sent messages in 2, 3, or 4 distinct hours of the day? ## Quick Start [https://www.youtube-nocookie.com/embed/W8yqLYuSIaU](https://www.youtube-nocookie.com/embed/W8yqLYuSIaU) Building a Retention report follows the same high-level steps as building any other report. You can read about report-building basics [here](/docs/reports). ### Step 1: Define your Retention Behavior The Retention Behavior is the basic building block of a Retention report. A Retention Behavior is doing an event and then coming back to do another event. In this case, since we want to know retention after signup, choose "Sign Up Completed" in the first event slot. Then, we want to know if users are coming back and using the product, so we choose "Any Event" in the second event slot. At this point, your query should look like this: ![/retention\_beta\_1.png](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/retention_beta_1.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=854e138bf1f099962a54b8ca182a817f) You can save the Retention Behavior you built and reuse it in other reports. Select the "..." button in the top right corner of the metric, then click "Save Behavior". Note that saving a behavior and saving a metric are different: a saved behavior consists of the events/Funnels/Retention, while a saved metric consists of the saved behavior and the measurements of the behavior. Learn more about [Saved Metrics and Behaviors](/docs/features/saved-metrics-and-behaviors). ### Step 2: Choose your Measurement After your retention behavior is defined, you can choose how you want to measure it. By default, the Retention report will select retention rate as the measurement. There are 4 types of measurement * Retention Rate: Percentage of users retained within the window. * Unique Users: Absolute number of users retained within the window. * Property Sum: Total sum of property within a window (eg, total video watch duration). * Property Average: Average across users of the sum of properties within the window (e.g., average watch time per user). ![/Updated\_retention\_measurements.png](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/Updated_retention_measurements.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=883ebe012da87ad9e001a70b42434667) Your Retention Behavior, combined with the measurement, forms a Metric, which you can also save like a Retention Metric. ### Step 3: Choose Filters Filters exclude unwanted data. In this case, we only care about events performed on the "Chrome" browser. Therefore, add a "Browser" filter, where Browser equals "Chrome". At this point, your query should look like this: ![/Retention\_Filter.png](https://mintcdn.com/mixpanel-edb78807/LIWtWr4Am6t1wkkk/images/Retention_Filter.png?fit=max\&auto=format\&n=LIWtWr4Am6t1wkkk\&q=85\&s=d1146eb055999ffc6499e01d707c74c9) ### Step 4: Choose Breakdowns Breakdowns segment data into groups. In this case, we want to break our report down based on the browser version they are using to Sign Up. Therefore, add a "Browser Version" breakdown. At this point, your query should look like this: ![/Retention\_Breakdown.png](https://mintcdn.com/mixpanel-edb78807/LIWtWr4Am6t1wkkk/images/Retention_Breakdown.png?fit=max\&auto=format\&n=LIWtWr4Am6t1wkkk\&q=85\&s=1651c01f6b033022be94e7da614f7097) ### Step 5: Choose Visualization You can visualize your metric in a variety of ways. Mixpanel allows you to choose how you would like to visualize your data. Select "Retention Curve" in the top right to change your visualization. In Retention, you can choose: * Retention Curve - see how users are retaining over time. Users are bucketed based on when they initially entered the product. * Line - see how your metric is trending over time. Used to see if a particular retention group rate is trending over time. * Metric - see a summary view of your metric ![/retention\_beta\_5.png](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/retention_beta_5.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=e624771c4057c2139831b33198bc954e) ## Basic Features ### Retention Curve [https://www.youtube-nocookie.com/embed/iYAKsmgqWZU](https://www.youtube-nocookie.com/embed/iYAKsmgqWZU) The retention curve chart displays retention data as both a line chart and a table. Data is identical between the two. The line chart provides a visual representation of users becoming inactive over time, while the table provides a heat map to show which groups have the best retention. ![/Screen\_Shot\_2021-05-27\_at\_7.49.12\_AM.png](https://mintcdn.com/mixpanel-edb78807/LIWtWr4Am6t1wkkk/images/Screen_Shot_2021-05-27_at_7.49.12_AM.png?fit=max\&auto=format\&n=LIWtWr4Am6t1wkkk\&q=85\&s=a6cff975a4af3fa3e96ffab1562dff47) **Incomplete Buckets:** Boxes with an asterisk (\*) indicate that the data is still in flux and not set yet because the time is still ongoing. Hover over a box to see when the last qualifying date for that bucket will occur. **Color Mapping:** Each box within a row is assigned a shade of purple. The shading gets darker the higher the retention percentage. It's important to note that the scale is relative to each cohort row. ### Line chart ![/Retention Line Chart](https://mintcdn.com/mixpanel-edb78807/LIWtWr4Am6t1wkkk/images/Retention_Trend.png?fit=max\&auto=format\&n=LIWtWr4Am6t1wkkk\&q=85\&s=e5799564c25877f666a37b01569dd130) Select **Line** from the visualization drop-down list to see how your retention metrics are changing over time. You can see how your retention rate or number of users retained is trending. You can see this trend for any of the retention time unit buckets. You can change between the different time unit buckets (i.e., \< 1 Day, Day 1, Day 2, ...) to see if your retention metrics are improving or declining along your retention curve. ### User Cohort Buckets Retention counts users, not event totals. In other words, each of the user cohort buckets will include every unique user that met the "A event" criteria in that time window, starting at 0:00 of the first day of the bucket and ending at midnight of the last day. A customer can only be counted once per bucket, but can be included in more than one bucket. The first column (Date) indicates the day/week/month when the user performed the "A event". The Size column indicates the number of users who performed the "A event" within the time period. For example, if you are bucketing based on your "Item Purchased" event and creating weekly buckets, a customer who purchased at least one item each week will be in every bucket, not just the bucket of their first purchase. ## Advanced ### Retention Criteria ![/Updated\_retention\_criteria.png](https://mintcdn.com/mixpanel-edb78807/75RViqPwRfiQUDDl/images/Updated_retention_criteria.png?fit=max\&auto=format\&n=75RViqPwRfiQUDDl\&q=85\&s=a2acf864222f0c694dac527c8705c4e4) #### 'On or After' time interval "On or After" Retention calculates the percentage of users who come back on a specific time unit (e.g., day, week, month) **or any time unit afterward**. A user can fulfill the "came back and did B criteria" on a specific time unit or any time in the future to be counted as retained in "On or After" Retention. "On or After" Retention gives you a better sense of how long you are holding on to your users in an absolute sense. It will tell you how many users used your app and then ever returned to find more value. In other words, it's the opposite of the overall churn of your user base. We think "On or After" retention is a better fit for most businesses, and it is the default calculation for the Retention report. This is because it’s more common that a product doesn’t require users to come back in each time unit to achieve the product’s value proposition, and more often than not, when doing retention analysis, we don’t only value the user coming back in a specific time unit as long as they eventually do. However, if this is important to you and your business, please utilize "On" Retention. #### 'On' time interval "On" Retention calculates the percentage of users who come back on a specific time unit (e.g., day, week, month). After a user completes the “A criteria”, they will belong to a time unit cohort that corresponds with when they did the "A event", and the Retention report will start the clock counting from the time that particular user performed that "A event". When using "On" Retention, that same user must return to fulfill the “came back and did B criteria” on a specific and exact time unit relative to when they did the A criteria to be counted as retained. For example, day 5 retention is the percentage of users who “came back and did B” exactly on the fifth day after they did the A event. "On" retention is useful to understand high-level usage patterns.  We also recommend using "on" retention when your product relies on users returning on every time unit. #### 'On or Before' time interval “On or Before” is a retention criterion most commonly used with a measurement type of property sum or average. It looks at the total activity done during the period between the start and end events. For example, if you want to look at the 30-day LTV (lifetime value) of e-commerce users, you would look at the total money spent on purchases from sign-up for 30 Days. This includes looking at revenue spent from Day 0, Day 1, ..., to Day 30, where revenue is a property on the event purchase. Similarly, if you want to look at 30-day ARPU (average revenue per user), you would look at averaging the total revenue spent per user within the first 30 days. #### 'Streak mode' “Streak mode” is mostly meant to count unique users doing consecutive actions across time intervals. If the birth event and retention event are the same, the birth event will count towards the streak. For example, played a game for 5 consecutive days since sign-up, or visited the doctor for 8 consecutive months since registering for a clinic. #### Advanced Use-Cases These use-cases use a combination of different retention criteria & measurement types [https://www.youtube-nocookie.com/embed/zTkQVsMgPc0](https://www.youtube-nocookie.com/embed/zTkQVsMgPc0) * What is the total revenue (or LTV) for new users in the first 7 days? How has this changed over time * Retention Criteria: On or Before * Measurement: Property Sum; 7 Days * What is the average video watch-time for a new subscriber in their first 30 days since subscription? How has this changed over time? * Retention Criteria: On or Before * Measurement: Property Average; 30 Days * How many new users have a Wordle streak for 5 days or 10 days? * Retention Criteria: Streak Mode * Measurement: Unique Users; 5 days ### Custom Retention Brackets Not all retention analysis can be done with a set, repeated cadence, and it is not always important to measure how a user came back relative to each and every particular time unit. Custom bracket retention gives you the flexibility to split up your retention buckets into customized intervals of multiple days, weeks, or months to create meaningful touchpoints as you see fit. #### Use Cases For example, let's answer an important mobile gaming question: How often do my users come back and play a game between 15 and 30 days after signing up to represent mid-term players? In mobile gaming, industry-standard intervals typically examine retention for users who came back and play a game on Day \< 1, Days 1-3, Days 4-7, Days 8-14, and Days 15-30. Typical "exact day" retention buckets don't quite solve for this use case because users should be able to play a game on any day between day 15 and 30 and be counted in a single bucket to understand how many users were retained in that entire period. Exact day retention will log users in each day bucket (15, 16, 17, ..., 30), which, while more granular, doesn't give a retention percentage for the entire interval. Instead, we want to know how many users played a game at all in any of the days 15-30. **Free trials:** If you want to understand how many users come back to use the product during a 7-day free trial, and also who came back and kept using the product in the 30 days after the free trial is up, you could do something like this: ![Retention 7 30](https://mintcdn.com/mixpanel-edb78807/LIWtWr4Am6t1wkkk/images/Retention_7_30.png?fit=max\&auto=format\&n=LIWtWr4Am6t1wkkk\&q=85\&s=ca10bf1e480d7bbdc82b11915b7c57d1) **In between cadences:** Are you somewhere between a DAU or WAU product? You can group daily buckets to understand how your users retain every 3 days (bi-weekly). ![Retention 3 3](https://mintcdn.com/mixpanel-edb78807/LIWtWr4Am6t1wkkk/images/Retention_3_3.png?fit=max\&auto=format\&n=LIWtWr4Am6t1wkkk\&q=85\&s=04aa39ef766426e1a94b169cdb6e7d76) #### Setting Custom Brackets First, go into the time unit drop-down in the Retention query builder and select **Custom.** ![Setting Custom Buckets](https://mintcdn.com/mixpanel-edb78807/LIWtWr4Am6t1wkkk/images/Retention_Setting_Custom.png?fit=max\&auto=format\&n=LIWtWr4Am6t1wkkk\&q=85\&s=390d26403d7e8582caebd7c0c82b5052) Then, select the size of each bracket for the given time unit and click "Apply". In this example, we are selecting the number of days that are in each custom bracket. ![Retention 3 3](https://mintcdn.com/mixpanel-edb78807/LIWtWr4Am6t1wkkk/images/Retention_3_3.png?fit=max\&auto=format\&n=LIWtWr4Am6t1wkkk\&q=85\&s=04aa39ef766426e1a94b169cdb6e7d76) Each of these intervals is its own retention bucket, and if the user does the "come back and did B" event anytime inside that bucket, they are counted as retained. Now I will be able to understand what percent of users come back to play at least one game on any day between day 15 and day 30 from signing up. #### Calendar Retention Mode You can go into the advanced menu under Retention Criteria to switch the retention mode from the default rolling time windows to calendar-defined time windows. This aligns the retention calculation so that all users entering within a time bucket get calculated together. ![/13599603833876.png](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/13599603833876.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=3b7975d24209db77afa58d1200fd4376) This may be useful in scenarios where you want to check engagement on a strict day basis, OR if you want to check retention of your user base for the entire month, and when they return, regardless of when in the month they first entered or when in the next month they returned. ![/13599765981076.png](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/13599765981076.png?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=7081be7af580f8e164a36401c6d4c695) In the above example, we're looking at retention on a calendar week basis. * In the \< Week 1 bucket, 6 users did "Sign Up" at any point of the week of Dec 23 - Dec 30, and returned to do "Post Content" in that same week of Dec 23 - Dec 30. * In the Week 1 bucket, 10 users did "Sign Up" in the same Dec 23 - Dec 30 interval, but returned to do "Post Content" only sometime between Dec 30 - Jan 6. ##### How is this different than the basic retention mode? This [Loom video](https://www.loom.com/share/5484c7bdd61a4332818ceef20f475176) should provide an overview of what calendar interval retention is and how it works vs the default rolling window retention **\[Basic] Rolling interval retention** - Considers time intervals based on the user’s time of birth; i.e: * Day 1 retention = 24-48 hrs since person’s birth * Week 1 retention = 7-14 days since person’s birth * Month 1 retention = 30-60 days since person’s birth **\[Advanced] Calendar interval retention** - Considers time intervals based on ‘calendar’ time; i.e: * Day 1 retention = next ‘calendar’ day since person’s birth. If a person did an activity at 8 pm on Monday and then 6 am on Tuesday, the person is counted under Day 1 retention even though it’s just 10 hrs later * Week 1 retention = next ‘calendar’ week since person’s birth. If a person did an activity on Friday and then Monday, the person is counted under Week 1 retention even though it’s just 3 days, since the ‘calendar’ week changed * Month 1 retention = next ‘calendar’ month since person’s birth. Similarly, if a person made a purchase on 25th Feb and then again on 3rd March, the person will be counted under Month 1 retention metrics NOTE — All the above cases would NOT qualify under Day 1, Week 1, or Month 1 rolling interval retention. **When should you use the calendar vs rolling interval retention mode?** Both modes are extremely useful. It totally depends on the use-case you’re trying to answer. Some examples - | Use-Case | Which mode to use? | | - | - | | Day 1 retention for apps focused on “daily engagement” like music, meditation, or workout apps | Calendar-interval | | How many users come back after month 1 (30 days)? How many come back after 3 months (90 days)? | Rolling-interval | | Understanding the effect of a marketing promotion, how many people came back the week after the promotion ended? | Calendar-interval | | What’s Mixpanel's quarterly revenue retention? How were gross and net retention in Q4 vs Q3? | Calendar-interval | | How many users renewed their Netflix subscription? To note, renewals happen 30 days after the last payment | Rolling-interval | Above said, the general expectation is that product use-cases which focus on user stickiness are likely to use rolling interval mode. Marketing & Revenue teams that focus on calendar dates for their activities are likely to use the calendar interval model. ### Saved Retention Behaviors You can save the Funnel Behavior you built and reuse it in other reports. This can be helpful when there is a sequence of events that you frequently analyze (such as sign-up flow), or if you want to analyze your Funnels Behavior alongside other metrics in an Insights report. Select the "..." button in the top right corner of the metric, then click "Save Behavior".\ Learn more about [Saved Metrics and Behaviors](/docs/features/saved-metrics-and-behaviors). ### Frequency View [https://www.youtube-nocookie.com/embed/KWUJIXeH\_SU](https://www.youtube-nocookie.com/embed/KWUJIXeH_SU) You can use the Frequency report to learn how frequently users return to use your product or service. To generate Frequency reports, click **Reports**, **Retention**, and select the **Frequency** option under the toggle for retention. ![/Screen\_Shot\_2022-07-05\_at\_4.41.04\_PM.png](https://mintcdn.com/mixpanel-edb78807/-YRRsxbqoD_CNgv0/images/Screen_Shot_2022-07-05_at_4.41.04_PM.png?fit=max\&auto=format\&n=-YRRsxbqoD_CNgv0\&q=85\&s=f458ed1aca150690c470db69bb123a82) Mixpanel groups unique users in time-incremented buckets when they first complete an action, and then groups those same users in subsequent buckets when they return and perform the same or different actions. The buckets measure the number of unique time buckets in which a user was active. Depending on the interval chosen, this will be one of: * unique hours in a day * unique days in a week * unique days in a month This will show how engaged users are with an action. #### Frequency Criteria **Cumulative Frequency**: calculates the number of users who did the event **in at least** X unique intervals. This shows overall engagement up to each frequency interval. **Non-cumulative Frequency**: calculates the number of users who did the event in **exactly** X unique intervals. This is useful for determining exact engagement and for further investigating specific groups of engaged users. ## FAQ **1. Retention reports do not extend beyond 60 days. How can I look beyond the 60-day mark?** Currently, when using "Day" retention, Retention reports are limited to 60 days. One way to extend it would be to switch "Each Day" to "Each Week/Month" under the Retention Criteria. **2.How is Retention calculated?** When you create an unsegmented retention query (i.e., a retention query that is not segmented by a property or cohort), Mixpanel will automatically intervalize the retention calculation. In other words, we will calculate the retention of each and every cohort based upon the selected birth interval unit (day/week/month cadence that the user performed the A action) and then summarize it into one line by taking the average of all complete buckets. You can see the retention of each interval by expanding the Average Retention column: ![/intervalized\_retention.png](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/intervalized_retention.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=7354d648fc4a3febfd20e08a2264d1d3) Segmented queries are now calculated with that same intervalized average method, but for each particular property value or cohort segment. You can now expand any particular segment's name in a retention query to see the retention of each day, week, or month interval within that segment: ![/segemented\_intervalized\_retention.png](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/segemented_intervalized_retention.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=a61fd7a9e8e052e25cd6c0a7c6b162ec) Intervalized averages to segmented retention queries have two key advantages: * **Not including users in incomplete periods:** The non-intervalized method did not give all users an equal chance to qualify for the later retention buckets. Newer, more recent users to come into the query towards the end of your date range would not have enough time to pass to have the opportunity to be retained in the later date buckets. This would sandbag the last retention buckets in your query. With intervalized retention, Mixpanel only counts the completed time periods into the Average Retention calculation so that all users have the same opportunity to be retained. * **More granular analysis:** Users are now able to see how the individual birth interval cohorts are performing within a particular segment. This unlocks the ability to get more answers and dive deeper into particular cohorts of interest. **3. How is the "Average" row for Retention reports calculated?** Mixpanel calculates the "Average" row values by taking the average of all the completed buckets, **weighted** by the number of users who enter. Let's walk through an example using this sample data: | Date | Total Profile(s) | Day 1 Retained Users | | - | - | - | | March 1 | 1000 | 500 | | March 2 | 500 | 400 | | March 3 | 700 | 10 (incomplete) | From our sample data, the average value for day-1 retained users is calculated as follows: **When examining a Retention report in the % / Retention Rate view:** C\_March 1 = 500 (count retained for March 1) C\_March 2 = 400 (count retained for March 2) W\_March 1 = 1000 / 1500 (weight for March 1) W\_March 2 = 500 / 1500 (weight for March 2) P\_March 1 = 1000 (total profiles for March 1) P\_March 2 = 500 (total profiles for March 2) \*\*Weighted Average of Retained Users = C\_March 1 \* W\_March 1 + C\_March 2 \* W\_March 2 In our sample data, this computes to: ( 500 \* 0.66 ) + ( 400 \* 0.33 ) = 466.66 Next, we have to get the weighted average of the total profiles that were eligible for being retained. \*\*Weighted Average of Total Users = P\_March 1 \* W\_March 1 + P\_March 2 \* W\_March 2 In our sample data, this computes to: ( 1000 \* 0.66 ) + ( 500 \* 0.33 ) = 825.00 Finally, \*\*Weighted Average of Retention Rate = Weighted Average of Retained Users / Weighted Average of Total Users In our sample data, this computes to: 466.66/833.33 \* 100% = 56% **When examining a Retention report in # / Absolute view:** C\_March 1 = 500 (count retained for March 1) C\_March 2 = 400 (count retained for March 2) W\_March 1 = 1000 / 1500 (weight for March 1) W\_March 2 = 500 / 1500 (weight for March 2) \*\*Weighted Average = C\_March 1 \* W\_March 1 + C\_March 2 \* W\_March 2 In our sample data, this computes to:(500 \* (1000 / 1500)) + (400 \* (500 / 1500)) = 466.67 **4. What does the Metric view in the Retention Trends report show?** The Metric view in the Retention Trends Report shows the ***overall value*** for the retention trend for that time period. There is a `Cohortize` option under the `Advanced` menu that, when enabled, will show the ***weighted average bucket*** for that retention trend. # Response Times Source: https://docs.mixpanel.com/docs/response-times Expected response times and support SLAs for Mixpanel customers Mixpanel Support Engineers are always ready to lend their product expertise and share tips to help you get the most out of your Mixpanel experience. This article will cover: 1. Contacting Mixpanel Support 2. Support Offerings and Response Times ## Contacting Mixpanel Support 1. If you're logged in to Mixpanel, click on “Contact Support” in the Help Menu: ![Screenshot 2026 06 25 At 12 38 38 PM](https://mintcdn.com/mixpanel-edb78807/pszrbyIaPXJRSlOZ/images/Screenshot-2026-06-25-at-12.38.38-PM.png?fit=max\&auto=format\&n=pszrbyIaPXJRSlOZ\&q=85\&s=1f80ed09e7bc89d839cfcdfd7cda2b44) 2. If you aren't logged in, you can access the same form by going to: [mixpanel.com/get-support](https://mixpanel.com/get-support) ## Support Offerings & First Response Times Our Support Engineers are located all over the world – in San Francisco, Barcelona, London, Singapore, Bangalore and Tel Aviv – and we strive to respond to support issues as quickly as possible. Support offerings vary depending on your Mixpanel plan. | Plan | Critical FRT\* | Normal FRT\* | Hours of Operation | | - | - | - | - | | Premium Plus\*\* | 1 hour | 4 hours | 24 x 7 | | Premium Support\*\* | 4 hours | 8 hours | 24 x 5 | | Enterprise | 8 hours | 24 hours | 24 x 5 | | Growth | 24 hours | 48 hours | 24 x 5 | | Free | 48 hours | N/A | 24 x 5 | * FRT: First Response Time (within the Hours of Operation). First response times are response times within the Hours of Operation and represent target response times except for critical issues for customers on Premium Support packages. \*\* Add-on Support Plans are available for purchase with the Enterprise plan. ### AI Help Chat If you're logged into Mixpanel, you can access the AI Help Chat via the Help Menu. This allows you to open a ticket with Mixpanel Support (FRTs apply) or troubleshoot your issue with the AI Help Chat agent directly. As opposed to the [Mixpanel Agent](/docs/mixpanel-agent), the AI Help Chat does not have access to your reports and data. The AI Help Chat can assist in troubleshooting most issues and escalate to Mixpanel Support if necessary. ## Ticket Priority Definitions If you’re experiencing a persistent, widespread issue or cannot access your account, we'll prioritize your ticket as Critical. General product questions like how to use a feature, help understanding a report, or submitting a feature request will be categorized as Normal priority. To see if there are any incidents affecting Mixpanel services, visit Mixpanel’s [Status Page](https://www.mixpanelstatus.com/) (or subscribe to receive notifications of future status updates). For all other issues, we’ll do our best to respond according to the table above and the severity of the issue. In the meantime, feel free to review our other resources: * [Mixpanel Slack Community](https://www.mixpanel.com/community-slack): Crowd-source Mixpanel solutions and submit product ideas * [Mixpanel Docs](/docs/what-is-mixpanel): Best practices, user guides, and frequently asked questions * [Mixpanel API Reference](/reference/overview): API integration tutorials * [Mixpanel Status Page](https://www.mixpanelstatus.com/): Updates on Mixpanel incidents to view or subscribe # Root Cause Analysis Source: https://docs.mixpanel.com/docs/root-cause-analysis AI-generated explanations for why your metrics changed ## Overview Investigating anomalies or trends in your data is extremely manual. Teams spend hours each week running the same repetitive process (picking properties, running breakdowns, eyeballing segments) to figure out what drove a change in a metric. Mixpanel's **AI-Powered Root Cause Analysis (RCA)** feature does that work for you. Launch RCA from an Insights line or column chart, a fired alert, a Data Volume Monitoring issue, or the Mixpanel Agent and an AI agent automatically diagnoses what changed: it validates the anomaly, runs the relevant breakdowns, ranks the dimensions that contributed most, and writes up an interpretation with a confidence level and suggested next steps — all delivered as a Board you and your team can keep working from. ## How it works When you run an RCA, Mixpanel immediately launches a new Board and exposes the agent's reasoning as it works: 1. **Validates the anomaly.** Confirms there's a real change to explain before going further. RCA compares your flagged point against a baseline window that ends right before it, sized automatically from your chart's time grain (hourly uses roughly the prior 24 hours, daily \~14 days, weekly \~9 weeks, monthly \~6 months); if your chart shows a longer range than that, RCA uses your range instead. It then measures how many standard deviations your point sits from that window's average (the z-score), with 2 or more being the bar for a real anomaly rather than routine noise. A seasonality check compares like-for-like periods (same weekday for daily data, same hour-of-day for hourly) so normal recurring patterns don't get flagged. 2. **Selects properties to analyze.** An LLM agent picks which properties to break down on, combining properties Mixpanel suggests for the event with any you've prioritized in [Custom RCA Settings](#custom-rca-settings). It spreads picks across plausible cause categories (acquisition, audience, platform, data quality, user identity), filters out high-cardinality identifiers and near-duplicates, and factors in your project's business context. 3. **Runs breakdowns.** Executes the chosen breakdowns to see which segments actually moved. 4. **Writes an interpretation.** Fills the Board with contribution factor analysis (each segment's share of the total change), ranked dimensions, an AI-written explanation of the likely cause, a confidence level, and suggested next steps. Cards stream into the Board as each step completes, with a live progress banner at the top while the agent is still working. RCA writes its findings in the language your Mixpanel UI is set to (English, French, Spanish, Portuguese, Korean, Japanese, Chinese, or Indonesian). > [!NOTE] > > **What the numbers mean.** The percentage change (sometimes called "lift") compares the data point you flagged against a baseline, which is the average of the periods just before it: `(flagged value - baseline) / baseline`, so +30% means it came in 30% above the recent norm and a negative number means below. Each segment's contribution percentage is its share of the total change: `(how much the segment moved) / (how much the whole metric moved)`, so if a metric dropped by 500 overall and one country accounts for 400 of that, it shows an 80% contribution. Confidence works differently: it's not a calculated number but a label ("High," "Medium," or "Low") the AI assigns to each finding based on how unusual the change is versus normal fluctuation (the z-score) and how cleanly a single segment explains it, so a big, clear change driven by one segment earns higher confidence than a small change spread across many segments or one that looks seasonal. ## Where to launch RCA **1. From an Insights report** Open an Insights report as a line, column, or stacked column chart, hover over a data point that looks unexpected, and choose **Root Cause Analysis** from the popover. RCA launches scoped to that event and time window, and picks up any breakdown or segment already applied to the report so it analyzes the same slice you're looking at. Other chart types, like bar, pie, metric, and table, don't offer the action; switch the report to a line or column chart first. If the report has an [Expected Range](/docs/reports/insights#expected-range-comparisons) comparison on, points outside the band show Root Cause Analysis at the top of the popover. **2. From a fired alert** When an alert fires, the notification (Slack, email, or webhook) includes a link that runs Root Cause Analysis and generates a Board for that alert. See [Alerts](/docs/features/alerts#root-cause-analysis) for how RCA fits into alerting. **3. From the Mixpanel Agent** Ask the [Mixpanel Agent](/docs/mixpanel-agent) to investigate a change (for example, *"explain this spike in signups"*) and it can kick off Root Cause Analysis for you. The analysis runs right in your Agent chat and produces the same RCA Board you can open and keep working from. **4. From a Data Volume Monitoring issue** If [Data Volume Monitoring](/docs/data-governance/data-volume-monitoring) flags a sudden change in an event's volume, the issue has a **Root Cause** action that runs RCA on that event for the day the anomaly was detected, so you can tell an implementation problem apart from a real change in usage. ## The RCA Board Because RCA generates a standard Mixpanel Board, it inherits all the capabilities of our typical Boards: * **Anyone in your project can open it.** RCA Boards are project-shared by default, so teammates can pick up the analysis where you left off. * **You can edit it like any Board.** Add cards, rearrange, annotate, or duplicate it if you want a private working copy. * **Cards include contribution factor analysis.** Each ranked dimension lands as its own card with the breakdown, contribution percentage, and supporting context. You can edit this as needed before sharing. * **The interpretation card summarizes findings.** The AI's written explanation, confidence level, and suggested next steps live at the top of the Board so anyone scanning the results gets the punchline first. > [!NOTE] > > RCA only surfaces data the person running it already has permission to see. It won't expose personal information (PII) that wouldn't otherwise be visible to that user. ## Re-run with added context RCA doesn't always land the right answer on the first pass. It might miss a property that matters, or go down a path you already know isn't the real story. Instead of accepting the result or starting over, you can tell RCA what to do differently and re-run it in place. Every RCA Board has an entry point at the top to dig deeper with the [Mixpanel Agent](/docs/mixpanel-agent), and each run ends with a few suggested follow-up questions you can click to start from. Or describe what you want changed in plain English, for example: * *"Go deeper on Android."* * *"This isn't the main cause, try looking at plan type instead."* * *"Ignore the bot traffic and re-check acquisition channels."* RCA re-runs on top of the original inputs, applying your feedback, and produces a new iteration of the Board. The original and every prior iteration stay linked from a dropdown at the top, so you can compare runs or go back to an earlier one. If you write your instruction in a language other than your UI language, RCA answers in the language you wrote in. > [!NOTE] > > Each re-run counts as a run against your project's daily RCA cap. See [Limits](#limits). ## Custom RCA Settings Oftentimes, customers know which properties matter for their business and want to direct the root cause analysis to focus there first. In Project Settings, open the AI Settings tab and find the **Root Cause Analysis** skill. There you can write plain-English instructions about which properties RCA should prioritize during analysis, for both event properties and user profile properties. For example, a marketing team that knows anomalies usually trace back to `utm_campaign_id` can point RCA at that dimension so it's always considered first, and a B2B team can ask it to always check the account's `plan_tier` profile property. Properties you prioritize are combined with Mixpanel's automatic suggestions, so you never lose the agent's broader view — you just guide it toward the dimensions you care most about. > [!NOTE] > > These settings only influence which properties RCA prioritizes. They don't control RCA's analysis sequencing or methodology — regardless of the instructions you provide, the agent still validates the anomaly, runs its breakdowns, ranks contributing dimensions, and writes up its interpretation the same way. ## Feedback If RCA missed the mark, the fastest fix is to [re-run it with added context](#re-run-with-added-context) and tell the agent what to do differently. Every generated Board also has a thumbs-up / thumbs-down feedback widget. We use this signal to evaluate RCA quality and improve future runs, so please rate it either way. It's the most direct way to influence what we work on next. ## Limits * Daily RCA runs per project are capped by plan: Enterprise 300/day, Growth 70/day, Free 10/day. Re-runs count toward this cap. * RCA today reasons over events and properties. Adjacent context like annotations, session replays, experiments, and metric trees aren't included in the agent's reasoning yet. * RCA is available on line and column charts. Funnel step charts and other chart types don't offer it yet. # Session Replay Source: https://docs.mixpanel.com/docs/session-replay Watch playbacks of user digital experiences Mixpanel Session Replay provides the fastest way to gain a comprehensive understanding of your customers and make informed product decisions by combining both quantitative and qualitative insights. While analyzing customer journeys using Mixpanel's analytics, you can identify **where** customers drop off. Now, with Mixpanel Session Replay, you can quickly follow up by exploring **why** customers drop off. ## Plan Availability Session Replay is available for customers on Free, Growth, and Enterprise plans. Customers must be on the latest Mixpanel plans to access free replays. Free replays reset monthly, and do not rollover to subsequent months. | Plan | Replay Allowance | How to Access | | - | - | - | | Free | 10k free Replays per month | Switch to the latest Free plan (includes 1M monthly events + 10k replays) via the [pricing page](https://mixpanel.com/pricing/). | | Growth | 20k free Replays per month | You're on the latest plan if you purchased or edited your plan after April 2024. If you are not sure if your organization is using the latest plan, you confirm on our [pricing page](https://mixpanel.com/pricing/) - if you see "Make the Switch" on the Growth plan, then you are on an older version. | | Enterprise | 20k free Replays per month | Contact your Account Manager to determine your plan status. | ## Implementation Session Replay is supported on four primary platforms: Web, iOS, Android, and React Native. You can use Session Replay with CDPs (e.g., Segment and mParticle) on both Web and Mobile. We also support Electron desktop apps. See our developer guides on implementing Session Replay for these platforms below: > [card] [Web](/docs/tracking-methods/sdks/javascript/javascript-replay) > [card] [iOS](/docs/tracking-methods/sdks/swift/swift-replay) > [card] [Android](/docs/tracking-methods/sdks/android/android-replay) > [card] [React Native](/docs/tracking-methods/sdks/react-native/react-native-replay) ## UI Controls > [!NOTE] > > UI Controls is currently available for Web, iOS, and Android. Support for React Native and Flutter is coming soon. With UI Controls, teams can manage Session Replay sampling directly from the Mixpanel UI — no code changes or redeployment required. This is available exclusively to customers with the paid Session Replay Add-On. **Changes take effect within an hour.** ![remoteSettingsTab](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/remoteSettingsTab.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=52445441346b9c434831c40318c57cc8) ### Prerequisites To use UI Controls, your project must meet the following requirements: * **Paid Session Replay Add-On**: UI Controls is available exclusively to customers who have purchased additional Session Replays beyond [the free Replay allowance](/docs/session-replay#plan-availability). * **Remote configuration enabled in your SDK**: Your SDK must have remote configuration enabled so it can receive sampling updates from the UI. See the platform-specific guides for setup instructions: * [JavaScript](/docs/tracking-methods/sdks/javascript/javascript-replay#remote-configuration) * [Android](/docs/tracking-methods/sdks/android/android-replay#remote-configuration) * [iOS](/docs/tracking-methods/sdks/swift/swift-replay#remote-configuration) ### Baseline Sampling Rate Set a global sampling rate that applies to all SDK initializations. This is the default capture rate before any conditional rules are applied. For example, you might set a baseline of 1% to capture a small portion of all traffic. ![remoteSettingsGlobal](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/remoteSettingsGlobal.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=c247925f708f6783c8af802310388938) ### Conditional Rules Layer rules on top of the baseline rate using any event, property, or URL you're already tracking. Conditional rules are **additive only**: if a session isn't being captured, a matching rule can start capturing it; if a session is already being captured, rules have no additional effect. For example, you can sample 1% of all sessions globally, but capture 100% of SDK initializations where `checkout_error` fires or where users land on your pricing page. > [!NOTE] > > URL-based rules are evaluated using page view events (`$mp_web_page_view`) emitted while heatmap capture is active. These page views are **exempt from event and MTU billing**, so adding URL conditions does not increase your billable event volume. See [Heatmaps for Web](/docs/session-replay/heatmaps) for related click-exemption rules. ![remoteSettingsConditional](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/remoteSettingsConditional.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=234117b344750aa026caf2ebeb9af909) ## Entry Points > [!NOTE] > > By default, replays are stored for 30 days after the time of ingestion. Once a replay is expired, there is no way to view that replay. Enterprise plan customers with the paid session replay add-on can customize this retention period between 7 days and 360 days. For more information, reach out to your Account Manager or our sales team. Session Replay is particularly valuable for understanding user frustration and identifying problematic user experiences. To find relevant replays, you can focus on interesting users (power users, purchases), interesting trends (KPIs spikes or dips), or replays where certain events or sentiment signals (like [dead clicks](/docs/tracking-methods/autocapture#dead-clicks)/[rage clicks](/docs/tracking-methods/autocapture#rage-clicks)) occur. There are several ways to find and watch replays in Mixpanel: 1. From the Session Replay home 2. From Mixpanel reports 3. From User profile pages ### From the Session Replay Home Select **Session Replay** from the side navigation in your Mixpanel project. Here, you'll see your most recent replays and can easily filter them by events, properties, or custom time ranges to focus on the replays that matter most to you. Pro tip: when getting started with implementing Session Replay, you can use this view to check if replays are coming in as expected. ### From Mixpanel Reports > [!NOTE] > > Reports entry point is currently supported for Event, Funnel, and User Profile metrics only. Click any point on a chart for Event, Funnel, and User Profile, and select "View Replays" to view replays that show that event being fired. From here, you will be taken to our Replay Player. ![replayReportEntry](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sr_reports_entry_point.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=424ded23ddd7f6d698bb69d2199d7c6e) ### From User Profile Page In any user's profile page, Click the "View Replays" button to watch replays from that user. From here, you will be taken to our Replay Player. ![replayProfileEntry](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sr_users_entry_point.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=dcd2c04c6623b4c03409669aa5117694) ## Watching Replays ![replayPlayer](https://mintcdn.com/mixpanel-edb78807/DIkgC-SC6Iuq2x0l/images/sr-player-apr-26-2.png?fit=max\&auto=format\&n=DIkgC-SC6Iuq2x0l\&q=85\&s=57ade57911ecd6da954006b53b6a91a0) The Replay Player has three main areas: the Replay Feed, the Player Area, and the Details Panel. ### Replay Feed The Replay Feed on the left side of the player lets you browse and find replays. It works out of the box with the Mixpanel events and properties you already track (including server-side events) — no extra setup required. Each cell represents a single user journey: a group of replays for a specific user that happened within \~30 minutes of each other. A single journey can contain several replays. The replay feed allows you to: * Filter by any event, property, or time period * Search by user name/email, replay date, user ID, or event name * Sort by recency, activity, or duration * Hover over replay cells to reveal more details ### Player Area The Player Area is the central area where you watch replays. It includes the following controls: * Expand the player to full-screen * Copy a URL (with or without a timestamp) to share with your teammates * Change the playback speed * Automatically skip periods of the replay where user is inactive * See events in the replay timeline * Jump to different parts of the replay by clicking in the timeline * Bookmark a replay to save it for later * Enable server-side stitching (revealing replays and events for the same user that were not captured with the same SDK that captured the replay. This is particularly useful for discovering replays, as well as moments of those replays where important events you track server-side or via data warehouse occur, like purchase events or sign-up events.) ### Details Panel The Details Panel on the right side of the player provides deeper context about the selected replay. It contains three tabs: Details, Activity Feed, and AI Summary. #### Details The Details tab shows metadata and properties for the selected replay, including user information, session properties, and device details. #### Activity Feed The Activity Feed tab shows a chronological feed of all events that occurred during the session, including Mixpanel track events, console logs, and network calls. You can search and filter events by type, and click any event to see its details and jump the replay to that moment. ##### Console Logs Console logs, warnings, and errors are captured during a session and displayed in the Activity Feed timeline. Use the filters to toggle visibility of Errors, Warnings, and Logs. Click any console event to view the full message and stack trace (when available). Console recording is enabled by default. To configure, see the [JavaScript SDK guide](/docs/tracking-methods/sdks/javascript/javascript-replay). ##### Network Calls Network calls made during a session are captured and displayed in the Activity Feed. Use the filters to toggle visibility of Fetch, XHR, and Other request types. Click any network event to inspect headers, request payload, and response details, along with status codes and duration. > [!NOTE] > > Network recording is disabled by default and requires SDK configuration. Request and response headers and bodies also require additional setup. See the [Network Recording guide](/docs/tracking-methods/sdks/javascript/javascript-replay#network-recording) for instructions. #### AI Summary The AI Summary tab provides an AI-generated summary of the session, highlighting key moments and summarizing user behavior so you can quickly understand what happened without watching the entire replay. Summaries are powered by your governed event data for accuracy. ## Magic Playlists Magic Playlists allow you to save playlists of replays based on events or properties, making it easy to revisit groups of replays that matter to you over time. A playlist stores your filter criteria (events, recording properties, date range, sort order) and can also hold up to 200 individually bookmarked replays. Key capabilities include: * **Dynamic playlists**: Create playlists based on your Mixpanel events and properties that automatically update as new replays meet your criteria * **Bookmarked replays**: Pin specific replays to a playlist so you can easily return to them later * **AI-powered insights**: Get AI text summaries that identify key patterns and insights across numerous replays at once > [!NOTE] > > AI summaries for Magic Playlists are currently in beta and publicly available for all customers using Magic Playlists. ### Creating a Playlist 1. Access Session Replay from the side navigation in your Mixpanel project 2. Apply filters based on events, properties, or custom time ranges 3. Click **Save Playlist** in the header and add a name 4. Click **Save** ![Save Playlist button](https://mintcdn.com/mixpanel-edb78807/ogXlzma9enlXzenB/images/save-playlist-button.png?fit=max\&auto=format\&n=ogXlzma9enlXzenB\&q=85\&s=8c63d5ab0334290199fa1e56ed826b99) Once saved, your Magic Playlist will appear as a playlist card on your selected board. Any time new replays meet your saved criteria, they will automatically appear in your playlist. Modifying filters after saving shows unsaved changes — you can **Save** to update or **Save as New** to create a variant. ### Bookmarking Replays Bookmarking pins a specific replay to the current playlist. You can bookmark replays in two ways: * **From the player**: Use the bookmark icon in the player's top control bar to toggle bookmark status * **From the playlist row**: Click the bookmark badge on any replay row A playlist must be saved before you can bookmark replays — the bookmark button is disabled until a playlist is active. ### Viewing Bookmarked Replays Use the bookmark filter toggle in the playlist header to show only bookmarked replays. When this filter is active, other filters are disabled. Bookmarked replays appear in a dedicated section at the top of the playlist. Expired bookmarked replays appear in a separate **Expired Journeys** section. You can remove expired bookmarks, but expired replay content can no longer be played. Bookmark lookback searches up to 365 days. ## Best Practices Session Replay is a powerful way to understand and debug user behavior by showing exactly what users see on their screens. This visibility is core to its value—but also introduces inherent privacy and security risks, especially when sensitive information appears in the UI. Mobile platforms add some unique challenges: * SDKs are installed directly on end-user devices, making them harder to roll back or patch quickly. * Android’s fragmented ecosystem demands broader testing across different devices and OS versions. These risks are common across all session replay tools, but well-established industry practices exist to help mitigate them. With careful planning and the right safeguards, teams can more confidently use session replay to improve their products. ### Key Considerations | **Key Considerations** | **Why It Matters** | | - | - | | **Industries** | Apps in healthcare, fintech, or other regulated spaces carry higher compliance risk. | | **Sensitive Screens** | Checkout, payment, and profile screens often contain sensitive user data. | | **Embedded Webviews** | Embedded web views may require additional review to ensure expected behavior. | | **Uncommon App Architectures** | Custom or non-standard implementations may require additional testing and configuration. | *** To ensure successful implementation, we recommend: * Defensive programming, including safe initialization, graceful error handling (try/catch), and sensible fallback behavior * Thorough QA, including testing across device types and sensitive screens * Staged roll out, using feature flags to safely test and enable or disable Session Replay as needed Session Replay is a powerful feature that should be implemented with care. Following best practices can help you gain valuable insights into user behavior. We recommend thorough testing in your development environment before deploying to production. ### Performance Considerations Our Session Replay SDKs are designed with performance in mind, utilizing optimized capture algorithms that reduce CPU and memory usage. However, as with any SDK integration, there may still be some risk of performance impacts. We recommend thorough testing and monitoring your app's performance during initial deployment. ## FAQ #### What happens when I reach my Session Replay limit? Enterprise Customers who have purchased the Session Replay add-on will be billed for replays ingested beyond the purchased amount at your per-unit rate. Growth plan customers who have purchased the Session Replay add-on and exceed their purchased quantity will be unable to view new replays once they reach the data allowance, unless they upgrade. Customers using Session Replay without purchasing the add-on (e.g., those using complimentary replays included with the Free, Growth, or Enterprise plans) will be unable to view new replays once they reach the data allowance, unless they upgrade. We will send email notifications to [organization Owners and Billing Admins](/docs/orgs-and-projects/roles-and-permissions#organization-roles) as your projects approaches the data allowance of your subscription plan. Mixpanel reserves the right to stop ingesting replays once a customer collects replays beyond their purchased/allocated amount. To minimize disruption to your team, we recommend monitoring your data usage in the organization settings and working with your Account Manager (if applicable) to ensure you have the right plan for your needs. #### How soon are Replays available for viewing after a session begins? Replays are available for viewing in Mixpanel \~1 minute after the recording is captured. #### What defines a single replay? A replay is a continuous recording of a single user's activity. On the web, a replay ends after 30 minutes of inactivity (a new replay begins automatically when the user is active again) or once it reaches a maximum length of 24 hours, whichever comes first. Both thresholds are configurable via the `record_idle_timeout_ms` (default 30 minutes) and `record_max_ms` (default 24 hours) [JavaScript init options](/docs/tracking-methods/sdks/javascript/javascript-replay#init-options). On the web, a replay is scoped to a single browser tab or window. Recording continues across page loads and navigations within that same tab (SDK v2.61.0+), but each additional tab or window is recorded as its own replay, as is activity in a different browser or on a different device. A single user's activity across multiple tabs, browsers, or devices is therefore captured as multiple replays, not one. On our mobile SDKs (iOS, Android, and React Native), you control capture with a sampling rate and by starting or stopping recording manually, just as you can on the web. A replay ends when the user leaves the app. #### How long are replays stored? By default, replays are stored for 30 days after the time of ingestion. Once a replay is expired, there is no way to view that replay. Enterprise plan customers with the paid session replay add-on can customize this retention period between 7 days and 360 days. For more information, reach out to your Account Manager or our sales team. > [!NOTE] > > Purchasing a custom retention period does not change your retention period automatically. Once the entitlement is provisioned, an org Owner or Admin needs to set the desired retention period from the Session Replay settings in the UI. #### Why does it say the player failed to load? To maintain a high level of security, Mixpanel runs your session replays in an isolated domain through an iframe. Occasionally, this domain may be blocked by an ad blocker or specific browser settings. We recommend disabling any ad blockers, or whitelisting the Mixpanel domain. For extensions like uBlock, go to "My Filters" in the extension settings and add the following custom filter: ```text theme={"system"} @@||mxpnl.com^$domain=mxpnl.com ``` #### Why can't I see the "View Replays" button in the UI? You will not see the "View Replays" button if your organization is on an older plan. You will need to update to the latest plan to use Session Replay (see [here](/docs/session-replay#plan-availability) for details). #### Can I use Session Replay with a CDP? You can use Session Replay with CDPs (e.g., Segment and mParticle) on both web and mobile. | Platform | Guidance | | - | - | | Web | Your app must include the Mixpanel Javascript SDK, with Session Replay enabled. Learn more in the developer guide [here](/docs/tracking-methods/sdks/javascript/javascript-replay#session-replay-with-a-cdp). | | iOS | Works with CDPs, but you must install the Mixpanel Session Replay SDK in your app. Read more in our [iOS implementation guide](/docs/tracking-methods/sdks/swift/swift-replay). | | Android | Works with CDPs, but you must install the Mixpanel Session Replay SDK in your app. Read more in our [Android implementation guide](/docs/tracking-methods/sdks/android/android-replay). | #### How does Session Replay work differently on web versus mobile? Session Replay works differently on web versus mobile in Mixpanel: * **Web**: Captures DOM changes to reconstruct user interactions, tracking elements, clicks, and navigation. This provides an event-based replay of user activity. * **Mobile**: Captures actual screen pixels since native apps don't use a DOM. This visual approach records all on-screen activity as it appears to users, including scrolls, carousels, and auto-scrolling elements. #### How can I estimate how many Replays I will generate? If you already use Mixpanel, the [Session Start events](/docs/features/sessions) are a way to estimate the rough amount of replays you might expect. This is especially true if you use timeout-based query sessions. However, because our sessions are defined at query time, we cannot guarantee these metrics will be directly correlated. When you enable Session Replay, use the above proxy metric to determine a starting sampling percentage, which will determine how many replays will be sent. You can always adjust this as you go to calibrate to the right level. #### Am I able to sample our Session Replay collection rate? Yes, you can configure the percentage of total replays that our SDK will capture as a sampling rate or manually trigger/end replay capture. #### Can I record cross-origin iframes within my page? Yes, Session Replay supports recording cross-origin iframes embedded within your page (Web only, SDK v2.77.0+). Both the parent page and child iframe must have the Mixpanel SDK initialized with `record_allowed_iframe_origins` configured to include each other's origins. For detailed setup instructions, see [Cross-Origin Iframe Recording](/docs/tracking-methods/sdks/javascript/javascript-replay#cross-origin-iframe-recording). # Heatmaps for Web Source: https://docs.mixpanel.com/docs/session-replay/heatmaps Heatmaps help you visualize user interactions on your web application, showing where users click the most ## Overview Heatmaps help you visualize user interactions on your web application, showing where users click the most. This feature enables teams to quickly identify areas of high engagement and friction, helping to optimize user experiences and improve conversion rates. We offer two types of heatmaps: 1. **Click Maps**: These track clicks on individual site elements, providing precise insights into which modals, dropdowns, or features that users engage with the most. This element-level tracking helps you understand specific component usage. 2. **Traditional Heatmaps**: These overlay general activity on a page based on X,Y coordinates, giving you a broader view of user interaction patterns across the entire page layout. > [!NOTE] > > Note: Traditional heatmaps may show some inaccuracies on modern websites due to dynamic elements like modals, dropdowns, fixed elements, and cookie banners that change the page layout. Click maps can be used to confirm and clarify these interactions by showing exactly which elements users are engaging with. Future versions of heatmaps may also include hovers and other interaction types. Enabling Heatmaps does not affect billing. They are included with the Session Replay add-on and do not generate additional billable events. ### How It Works Heatmaps are powered by Session Replay data and automatically capture click interactions when enabled. Users can generate a Heatmap for specific pages to gain deeper insights into user engagement. To function, Heatmaps require Session Replay to be enabled, as they rely on session replay data to track and visualize user clicks. Heatmaps only capture data during sessions with recorded replays. If a page has limited replay coverage, the Heatmap may not offer meaningful insights. > [!WARNING] > > When clicks occur very close to page navigation events, the heatmap may occasionally show clicks on the wrong page. This happens because the timing between page changes and click events may not align perfectly. If you notice clicks appearing on the wrong page, try using a different [UI State](#ui-states) to find the correct page state. ### Implementation Ensure you have Session Replay set up using our Javascript SDK (see [developer guide on implementing Session Replay](/docs/tracking-methods/sdks/javascript/javascript-replay)), with the `record_heatmap_data` set to `true`. Clicks recorded using `record_heatmap_data` will only capture clicks while an a session recording is in progress. Events generated by `record_heatmap_data` are free only when a session recording is taking place.\*\* These clicks are sent as `$mp_click` and will not be counted against your plan data allowance. Page view events (`$mp_web_page_view`) emitted while a session recording is in progress are also exempt from your plan data allowance and MTU billing. Currently, heatmaps are not available on our Mobile Session Replay SDKs. **Example Usage** ```javascript Javascript theme={"system"} mixpanel.init('YOUR_PROJECT_TOKEN', { record_sessions_percent: 1, // Session Replay enabled, recording 1% of all sessions record_heatmap_data: true // Enable Heatmap data collection }); ``` If you currently use [Autocapture](/docs/tracking-methods/autocapture) to track clicks, you can leverage these clicks to populate the Heatmaps without the `record_heatmap_data` init option. Clicks captured by Autocapture are billable events that are counted against your plan data allowance. **Example Usage** ```javascript Javascript theme={"system"} mixpanel.init('YOUR_PROJECT_TOKEN', { autocapture: { pageview: "full-url", click: true, // click tracking enabled input: true, scroll: true, submit: true, capture_text_content: false, }, record_sessions_percent: 1 // Session Replay enabled, recording 1% of all sessions }); ``` > [!NOTE] > > Clicks generated by `record_heatmap_data` are exempt from your plan data allowance only when a session recording is taking place. Page view events (`$mp_web_page_view`) emitted during a recording are likewise exempt from event and MTU billing. Clicks generated by [Autocapture](/docs/tracking-methods/autocapture) are billable events. ### Using Heatmaps 1. From the Home page, find the Heatmaps section. ![heatmap\_home.png](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/heatmap_home.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=34c5160238dab6911f54ecfe5dce7288) 2. Choose a URL where you want to analyze user interactions and generate a Heatmap. > [!NOTE] > > You can use wildcard selectors (\*) in your URL to group multiple pages into a single heatmap. For example, if your URLs contain unique IDs like `/products/123` and `/products/456`, you can use `/products/*` to analyze all product pages together. 3. To easily navigate back to a created Heatmap, you can click the title to rename the Heatmap. ![heatmap\_rename.png](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/heatmap_rename.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=6570d27be755e170c3b982055be435cf) 4. Rotate through UI States to view different states of your application for the same URL. ![UI States view](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/heatmap_backdrops.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=cb9d9116e7c3e3457cf511ee72918b05) 5. Use the Click Map and Heatmap toggles to show or hide each view. Click Maps help you see exactly which elements users click, which can clarify any inaccuracies in traditional heatmaps caused by dynamic page elements. 6. Click on any element in the Click Map to open a selection menu with three options: * **View Events**: View all click events recorded for this element * **View Users**: See a list of users who clicked this specific element * **Review Replays**: Watch session replays of users interacting with this element ![heatmap\_selection\_menu.png](https://mintcdn.com/mixpanel-edb78807/diiVBiB4POFQwBz2/images/heatmap_selection_menu.png?fit=max\&auto=format\&n=diiVBiB4POFQwBz2\&q=85\&s=b5d1c68e3f7890c105f80eaa826c8caa) ### Goal Mode Goal Mode helps you see which UI elements actually drive conversions for any event goal, not just raw clicks. While traditional heatmaps show where users click, Goal Mode reveals whether those clicks lead to meaningful outcomes like signups, purchases, or feature adoption. To enable Goal Mode, click the **Goal** button in any heatmap. You'll be prompted to configure: * **Conversion Goal**: A user action deemed valuable to your business, such as a "Purchase" or "Sign Up" event. Select any Mixpanel event as your goal. * **Conversion Weight Property (Optional)**: An optional numeric property that is used to weight conversions, such as a "Purchase Amount" or "Order Value" property. This allows you to prioritize higher-value conversions. Once enabled, Goal Mode highlights the UI elements driving the most conversions, giving you a true aggregate visual of how your UI affects your core metrics. For example, you might discover whether a case study on your landing page is generating signups, or just a lot of clicks that don't convert. > [!NOTE] > > Goal Mode works with any of your existing events and properties directly out of the box—no additional setup required. ### UI States UI States are snapshots of your application in various states (such as a modal open, a menu expanded, or different page layouts). UI States are pulled from session replays that match the URL you're analyzing, helping you understand how different views or UI states affect user interactions. UI States are subject to the same retention policies as your session replays. Once a session replay expires, it can no longer be used as a UI State. If you don't see enough UI States (or can't find the specific view or state you're looking for), consider increasing your session replay sampling rate to capture a wider set of application states. > [!WARNING] > > Heatmaps only track scrolling on the main page (window). If your site scrolls inside a nested container (like a div with its own scrollbar), heatmaps and interactive mode may not display data correctly. The interactive UI States feature lets you customize your UI State, but click positions within nested scrollable elements will still not be fully reflected. ## Scrollmaps Scrollmaps visualize how far down a page users scroll, helping you understand how much of your content is actually seen and where users drop off. Like Click Maps and Traditional Heatmaps, Scrollmaps are part of the Heatmaps and Session Replay feature set. > [!NOTE] > > Scrollmaps are currently available for web only. They are not yet available on our Mobile Session Replay SDKs. ### Requirements To collect Scrollmap data, your implementation must meet the following requirements: * Mixpanel JavaScript SDK **v2.71 or higher** * Session Replay enabled * `record_heatmap_data` set to `true` in your Session Replay configuration Setting `record_heatmap_data: true` is what captures the Page Leave data that the scroll fold line is derived from, so it is required for Scrollmaps. **Example Usage** ```javascript Javascript theme={"system"} mixpanel.init('YOUR_PROJECT_TOKEN', { record_sessions_percent: 1, // Session Replay enabled, recording 1% of all sessions record_heatmap_data: true // Enable Heatmap and Scrollmap data collection }); ``` ### Average Fold Line Scrollmaps include an **Average Fold Line**, which marks the average point on the page where content falls below the fold (below the initially visible portion of the viewport). This value is derived from the `[Auto] Page Leave - Fold Line Percentage` property. # Session Replay Privacy Controls Source: https://docs.mixpanel.com/docs/session-replay/session-replay-privacy-controls How Session Replay masking and blocking work, what data is captured, and controls for protecting end-user privacy **Last updated January 21st, 2026** ## Introduction to Session Replay Mixpanel offers a privacy-first approach to Session Replay, including features such as data masking. Mixpanel's Session Replay privacy controls were designed to assist customers in protecting end user privacy. Data privacy regulations are rapidly evolving and vary considerably across states and countries. A consistent requirement across many data privacy regulations for website operators is disclosing to end users that their personal information is being collected, often in a privacy notice. Before implementing Session Replay on your website, a best practice is to review your privacy notice with legal counsel to ensure it remains accurate and compliant with data privacy laws. ## How does Session Replay work? Session Replay for Web captures the Document Object Model (DOM) structure and changes to it. Mixpanel then reconstructs the web page, applying recorded events at the time an end user completed them. Within Mixpanel’s platform, you can view a reconstruction of your end user’s screen as they navigate your website. However, Session Replay for Web is not a video recording of your end user’s screen and end user actions are not literally video-recorded. ## How does masking and blocking work? What are the high-level technical details? Masking and blocking are slightly different. Masked data is suppressed client-side, meaning it is not collected in its original form by Mixpanel’s SDK, and the data is not stored on Mixpanel servers. Masked elements have their text replaced with asterisks of the same length \[\*\*\*\*]. Blocked data is similarly suppressed client-side, meaning it is not collected in its original form by Mixpanel’s SDK, and the data is not stored on Mixpanel servers. However, blocked elements will be rendered with a placeholder element (e.g., an empty box of similar size). Note: interactions (such as mouse-clicks) with blocked and masked elements are still captured by Session Replay for Web. ![Masking vs Blocking](https://mintcdn.com/mixpanel-edb78807/getS8ds-Vy3HR5EI/images/01-masking-vs-blocking.svg?fit=max\&auto=format\&n=getS8ds-Vy3HR5EI\&q=85\&s=bc5673887a99f9e4eb4394b95c014590) ## Configuring Privacy Controls By default, Mixpanel masks and/or blocks the most common elements that contain content like input text, non-input text, images, and videos. However, Mixpanel also offers its customers a range of privacy controls to choose to unmask / unblock elements as needed, which are detailed further on this page. | Element Type | Default State | Customizable | | - | - | - | | Inputs | Mixpanel masks all user input text by default. When a user enters text into an input field, Mixpanel captures \[\*\*\*\*] in place of text. | Yes. You can selectively unmask specific inputs using `record_unmask_input_selector`. However, certain [sensitive input types](#always-masked-inputs) cannot be unmasked for security reasons. | | Text | By default, Mixpanel masks all non-input text on your webpage. This masked content on your webpage is replaced with \[\*\*\*\*]. | Yes. You can selectively unmask text elements using `record_unmask_text_selector`, or set `record_mask_all_text: false` to unmask all text by default and then selectively mask specific elements. | | Videos and Images | By default, Mixpanel blocks videos and images. These elements will be rendered with a placeholder element (i.e., an empty box of similar size). Note: interactions with blocked elements will still be captured (e.g., mouse-clicks). | Yes. Mixpanel empowers its customers to decide to record images and videos as-is. | Other elements not listed in this table are captured by default, and can be blocked at your discretion. You can specify a CSS selector under the config option `record_block_selector` to block all elements which match the selector. ### Text Masking vs Input Masking Text masking and input masking are two separate pipelines that are configured independently. Text masking handles visible text inside any HTML element (`

`, `

`, ``, `