Installing Mixpanel is easy. This guide will show you how to do it with our SDKs.Already collect product data? Connect your Data Warehouse or via 3rd Party Integrations.
Choose from the methods below. Not sure how to choose? Read our guide.Mixpanel supports EU and India 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.
Javascript
Python
PHP
Node
Go
Ruby
Java
React Native
Flutter
iOS (Objective-C)
iOS (Swift)
Android
Unity
HTTP API
Install the SDK
snippet
npm
yarn
<!-- Paste this right before your closing </head> tag --><script type="text/javascript"> (function (f, b) { if (!b.__SV) { var e, g, i, h; window.mixpanel = b; b._i = []; b.init = function (e, f, c) { function g(a, d) { var b = d.split("."); 2 == b.length && ((a = a[b[0]]), (d = b[1])); a[d] = function () { a.push([d].concat(Array.prototype.slice.call(arguments, 0))); }; } var a = b; "undefined" !== typeof c ? (a = b[c] = []) : (c = "mixpanel"); a.people = a.people || []; a.toString = function (a) { var d = "mixpanel"; "mixpanel" !== c && (d += "." + c); a || (d += " (stub)"); return d; }; a.people.toString = function () { return a.toString(1) + ".people (stub)"; }; i = "disable time_event track track_pageview track_links track_forms track_with_groups add_group set_group remove_group register register_once alias unregister identify name_tag set_config reset opt_in_tracking opt_out_tracking has_opted_in_tracking has_opted_out_tracking clear_opt_in_out_tracking start_batch_senders people.set people.set_once people.unset people.increment people.append people.union people.track_charge people.clear_charges people.delete_user people.remove".split( " "); for (h = 0; h < i.length; h++) g(a, i[h]); var j = "set set_once union unset remove delete".split(" "); a.get_group = function () { function b(c) { d[c] = function () { call2_args = arguments; call2 = [c].concat(Array.prototype.slice.call(call2_args, 0)); a.push([e, call2]); }; } for ( var d = {}, e = ["get_group"].concat( Array.prototype.slice.call(arguments, 0)), c = 0; c < j.length; c++) b(j[c]); return d; }; b._i.push([e, f, c]); }; b.__SV = 1.2; e = f.createElement("script"); e.type = "text/javascript"; e.async = !0; e.src = "undefined" !== typeof MIXPANEL_CUSTOM_LIB_URL ? MIXPANEL_CUSTOM_LIB_URL : "file:" === f.location.protocol && "//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js".match(/^\/\//) ? "https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js" : "//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js"; g = f.getElementsByTagName("script")[0]; g.parentNode.insertBefore(e, g); } })(document, window.mixpanel || []);</script>
npm install --save mixpanel-browser
yarn add mixpanel-browser
Configure the SDK
Replace YOUR_TOKEN with your project token. You can find your token here.You can learn more about configuring Session Replay and Heatmaps here.
Javascript
//Import Mixpanel SDK (only required for npm and yarn)import mixpanel from "mixpanel-browser";// Near entry of your product, init Mixpanelmixpanel.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:
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,});
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,});
Install the SDK
Python
pip install mixpanel
Configure the SDK
Replace YOUR_TOKEN with your project token. You can find your token here.
Python
from mixpanel import Mixpanelmp = 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:
from mixpanel import Mixpanel, Consumermp = Mixpanel("YOUR_TOKEN", consumer=Consumer(api_host="api-eu.mixpanel.com"))
from mixpanel import Mixpanel, Consumermp = Mixpanel("YOUR_TOKEN", consumer=Consumer(api_host="api-in.mixpanel.com"))
Install the SDK
Install with Composer
Add mixpanel/mixpanel-php as a dependency and run composer update:
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.
php
<?php// import Mixpanelrequire '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:
<!--Include the following in your project's pom.xml--><dependency> <groupId>com.mixpanel</groupId> <artifactId>mixpanel-java</artifactId> <version>1.4.4</version></dependency>
Configure the SDK
Replace YOUR_TOKEN with your project token. You can find your token here.
Java
//Import Mixpanel APIimport com.mixpanel.mixpanelapi.MessageBuilder;import com.mixpanel.mixpanelapi.MixpanelAPI;// Set up an instance of MixpanelAPIMixpanelAPI 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:
MixpanelAPI mixpanel = new MixpanelAPI("https://api-eu.mixpanel.com/track", "https://api-eu.mixpanel.com/engage", "https://api-eu.mixpanel.com/groups");
MixpanelAPI mixpanel = new MixpanelAPI("https://api-in.mixpanel.com/track", "https://api-in.mixpanel.com/engage", "https://api-in.mixpanel.com/groups");
Install the SDK
Under your app’s root directory, run:
npm install mixpanel-react-native
Under your application’s iOS folder, run:
pod install
Note: For XCode 12.5+, there is a known compile issue, please refer to this workaround.
Configure the SDK
Replace YOUR_TOKEN with your project token. You can find your token here.
//Import Mixpanel APIimport { Mixpanel } from "mixpanel-react-native";// Set up an instance of Mixpanelconst 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():
Add mixpanel_flutter: ^2.0.0 to your package’s pubspec.yaml file and run:
flutter pub get
Configure the SDK
Replace YOUR_TOKEN with your project token. You can find your token here.
import 'package:mixpanel_flutter/mixpanel_flutter.dart';class _YourClassState extends State<YourClass> { Mixpanel mixpanel; @override void initState() { super.initState(); initMixpanel(); } Future<void> 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:
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
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.
Add github "mixpanel/mixpanel-iphone" to your Cartfile.
Configure the SDK
Replace YOUR_TOKEN with your project token. You can find your token here.
In Xcode, select File > Swift Packages > Add Package Dependency.
Paste the URL https://github.com/mixpanel/mixpanel-swift and a minimum semantic version of v2.8.0.
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'.
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.
Add github "mixpanel/mixpanel-swift" to your Cartfile.
Configure the SDK
Import Mixpanel into AppDelegate.swift
Initialize Mixpanel within application:didFinishLaunchingWithOptions as seen below
Replace YOUR_TOKEN with your project token. You can find your token here.
US projects use the SDK’s default host and need no change. For an EU or India project, set serverURL in MixpanelOptions:
let options = MixpanelOptions( token: "YOUR_TOKEN", serverURL: "https://api-eu.mixpanel.com")Mixpanel.initialize(options: options)
let options = MixpanelOptions( token: "YOUR_TOKEN", serverURL: "https://api-in.mixpanel.com")Mixpanel.initialize(options: options)
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:
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:
<!--Required to allow the application to send events to Mixpanel.--><uses-permission android:name="android.permission.INTERNET" /><!--Optional, but recommended so we can send data intelligently based on network conditions --><uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /><!-- Optional, but recommended so events will contain information about bluetooth state--><uses-permission android:name="android.permission.BLUETOOTH" />
Configure the SDK
Replace YOUR_TOKEN with your project token. You can find your token here.
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.
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.
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:
using mixpanel;
You’re
Install the SDK
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 requests to api-eu.mixpanel.com or api-in.mixpanel.com instead of api.mixpanel.com.
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.
What are the recommended web configuration options?
When tracking on web, we recommend using localStorage, as this is more reliable:
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.
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.
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.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.
{"docsConfig":{"theme":"sequoia","$schema":"https://mintlify.com/docs.json","name":"Mixpanel","colors":{"primary":"#7856ff","light":"#7856ff","dark":"#1b0b3a"},"logo":{"light":"https://mintcdn.com/mixpanel-edb78807/DbK2t9axJQF3qO_F/logo/light.svg?fit=max\u0026auto=format\u0026n=DbK2t9axJQF3qO_F\u0026q=85\u0026s=6197d81a55ffdba599db8650555eb912","dark":"https://mintcdn.com/mixpanel-edb78807/DbK2t9axJQF3qO_F/logo/dark.svg?fit=max\u0026auto=format\u0026n=DbK2t9axJQF3qO_F\u0026q=85\u0026s=84d73a51982dfb741e7b218aa5800da1","href":"https://mixpanel.com/home/"},"favicon":"https://mintcdn.com/mixpanel-edb78807/GuD3mcBg6zjCWsvh/favicon.png?fit=max\u0026auto=format\u0026n=GuD3mcBg6zjCWsvh\u0026q=85\u0026s=62e7fd3264b57e48f4366724ac591cc3","appearance":{"default":"light"},"background":{"color":{"dark":"#242133"}},"navbar":{"links":[{"href":"https://mixpanel.com/login","label":"Login"},{"href":"https://mixpanel.com/contact-us/sales","label":"Contact Sales"}],"primary":{"type":"button","label":"Get Started Free","href":"https://mixpanel.com/register"}},"footer":{"socials":{"x":"https://x.com/mixpanel","github":"https://github.com/mixpanel","linkedin":"https://www.linkedin.com/company/mixpanel-inc-"}},"seo":{"metatags":{"canonical":"https://docs.mixpanel.com"}},"fonts":{"heading":{"family":"Garnett Medium","source":"https://cdn.mxpnl.com/static/marketing/fonts/garnett/garnett-medium.woff2","format":"woff2"},"body":{"family":"Garnett","source":"https://cdn.mxpnl.com/static/marketing/fonts/garnett/garnett-regular.woff2","format":"woff2"}},"styling":{"codeblocks":"system","latex":true},"integrations":{"gtm":{"tagId":"GTM-MRDR9SP"},"mixpanel":{"projectToken":"metrics-1"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","grok","mcp","cursor","vscode"],"display":"header"},"navigation":{"global":{"anchors":[{"anchor":"About Us","icon":"circle-question","href":"https://mixpanel.com/about"},{"anchor":"Community","icon":"users","href":"https://community.mixpanel.com/"},{"anchor":"Blog","icon":"newspaper","href":"https://mixpanel.com/blog"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"mixpanel-edb78807","hasAudioNarration":false,"actualSubdomain":"mixpanel-edb78807","customDomains":["docs.mixpanel.com"],"gitSource":{"type":"github","owner":"mixpanel","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae4feb4b0fd684eee83a994","collectionId":"22ff0f66-9b0d-4b56-8e8e-b6450f55ed30","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae4feb4b0fd684eee83a994"},"feedback":{"thumbs":true,"contextualFeedback":{"allowEmail":false},"edits":true,"issues":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae4feb4b0fd684eee83a994","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"Docs","count":221},{"language":"default","tag":"API Docs","count":139},{"language":"default","tag":"DATA IN","count":84},{"language":"default","tag":"Tracking Methods","count":62},{"language":"default","tag":"DATA OUT","count":51},{"language":"default","tag":"Guides","count":49},{"language":"default","tag":"ANALYSIS","count":37},{"language":"default","tag":"Integrations","count":37},{"language":"default","tag":"SDKs","count":29},{"language":"default","tag":"ADMIN","count":28}],"searchSettings":{"maxResults":20}},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":true,"enableContextualStarterQuestions":true,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"support@mixpanel.com","showHelpButton":true}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[{"_id":"69b359f377281040f2f1a46e","deploymentId":"69b350f33e949c7a5a4dbb8c","questionText":"What value can I get from using Mixpanel?","status":"active","generatedBy":"manual","createdAt":"2026-03-13T00:27:31.956Z","updatedAt":"2026-03-13T00:27:31.956Z","__v":0},{"_id":"69b359e977281040f2f1a41d","deploymentId":"69b350f33e949c7a5a4dbb8c","questionText":"How do I send my first event?","status":"active","generatedBy":"manual","createdAt":"2026-03-13T00:27:21.832Z","updatedAt":"2026-03-13T00:27:21.832Z","__v":0},{"_id":"69b359e277281040f2f1a3f7","deploymentId":"69b350f33e949c7a5a4dbb8c","questionText":"What events should I track?","status":"active","generatedBy":"manual","createdAt":"2026-03-13T00:27:14.345Z","updatedAt":"2026-03-13T00:27:14.345Z","__v":0}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".dark li[id=topbar-cta-button]>a>span{background-color:#8363fe!important}h5,h6{font-weight:700}.create-service-account,.mixpanel-custom-two-column{display:flex;margin:18px 0}.create-service-account img{width:80%}@media (max-width:1400px){.create-service-account img{width:100%}}.mixpanel-custom-two-column div{width:100%;margin:15px 0}.mixpanel-custom-two-column .image-container{display:flex}.mixpanel-custom-two-column .image-container img{height:300px}#navbar>div.z-0.absolute.inset-0.bg-background-light.dark\\:bg-background-dark,#navbar>div.z-10.relative>div.hidden.lg\\:block.bg-gray-50.dark\\:bg-gray-900{background-color:#f5f2f2!important}.dark #navbar>div.z-0.absolute.inset-0.bg-background-light.dark\\:bg-background-dark,.dark #navbar>div.z-10.relative>div.hidden.lg\\:block.bg-gray-50.dark\\:bg-gray-900{background-color:#2b273f!important}ul.contains-task-list,ul.contains-task-list>li.task-list-item{padding-left:0!important}ul.contains-task-list>li.task-list-item:before{width:0;height:0}.dark #content{color:#e2e1e6}.mxp-cookie-preferences-link{display:inline-block;margin-left:1rem;font-size:.875rem;color:inherit;opacity:.7;text-decoration:none}.mxp-cookie-preferences-link:hover{opacity:1}.mxp-subscribe-button{background-image:linear-gradient(to top,#7856ff,#9075ff);box-shadow:0 1px 2px 0 rgb(0 0 0/.05)}.mxp-subscribe-button:disabled{opacity:.5;cursor:not-allowed}.mxp-subscribe-dialog{margin:auto}.mxp-subscribe-dialog::backdrop{background-color:rgb(0 0 0/.8)}.mxp-subscribe-modal{background-color:#fbf9f9}.dark .mxp-subscribe-modal{background-color:#201f24}.mxp-subscribe-error{color:#cc332b}.mxp-extended-button{padding-top:.625rem;padding-bottom:.625rem;background-image:linear-gradient(to bottom,#9b7eff,#7856ff)}.mxp-extended-button:hover{box-shadow:0 4px 6px -1px rgb(0 0 0/.1),0 2px 4px -2px rgb(0 0 0/.1)}.mxp-extended-button:active{background-image:linear-gradient(to bottom,#9b7eff,#5028c0)}"}],"page":{"pagePath":"docs/quickstart/install-mixpanel","slug":"/docs/quickstart/install-mixpanel","pageMetadata":{"title":"Install Mixpanel","description":"Install the Mixpanel SDK and initialize it in your application","related":["/docs/quickstart/capture-events/track-events","/docs/tracking-methods/choosing-the-right-method","/docs/quickstart/install-with-ai"],"href":"/docs/quickstart/install-mixpanel"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Install the Mixpanel SDK and initialize it in your application\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const ExtendedButton=({title,link})=>{const _components={a:`a`,..._provideComponents()};return _jsx(_components.a,{href:link,className:`mint-inline-block mint-text-white mint-font-medium mint-text-base mint-px-7 mint-rounded-full mint-shadow-sm mint-transition-all mint-no-underline mxp-extended-button`,children:title})};function _createMdxContent(props){const _components={a:`a`,code:`code`,h5:`h5`,img:`img`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{Accordion,AccordionGroup,Card,CardGroup,CodeBlock,CodeGroup,Frame,Heading,Note,Tab,Tabs,_MdxComponentBoundary}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsx(_components.p,{children:`Installing Mixpanel is easy. This guide will show you how to do it with our SDKs.`}),`\n`,_jsxs(_components.p,{children:[`Already collect product data? Connect your `,_jsx(_components.a,{href:`/docs/tracking-methods/warehouse-connectors`,children:_jsx(_components.strong,{children:`Data Warehouse`})}),` or via `,_jsx(_components.a,{href:`/docs/tracking-methods/integrations/`,children:_jsx(_components.strong,{children:`3rd Party Integrations`})}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`code`,children:`Code`}),`\n`,_jsxs(_components.p,{children:[`Choose from the methods below. Not sure how to choose? `,_jsx(_components.a,{href:`/docs/tracking-methods/choosing-the-right-method`,children:`Read our guide`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Mixpanel supports `,_jsx(_components.a,{href:`/docs/privacy/eu-residency`,children:`EU`}),` and `,_jsx(_components.a,{href:`/docs/privacy/in-residency`,children:`India`}),` 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.`]}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`Javascript`,id:`javascript`,\"data-child-tab-ids\":`[\"snippet\",\"npm\",\"yarn\"]`,children:[_jsx(_components.h5,{children:`Install the SDK`}),_jsxs(Tabs,{children:[_jsx(Tab,{title:`snippet`,id:`snippet`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`html`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`html`,children:_jsxs(_components.code,{language:`html`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`\u003c!-- Paste this right before your closing \u003c/head> tag -->`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`script`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"text/javascript\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` (function (f, b) { if (!b.__SV) { var e, g, i, h; window.mixpanel = b; b._i = []; b.init = function (e, f, c) { function g(a, d) { var b = d.split(\".\"); 2 == b.length \u0026\u0026 ((a = a[b[0]]), (d = b[1])); a[d] = function () { a.push([d].concat(Array.prototype.slice.call(arguments, 0))); }; } var a = b; \"undefined\" !== typeof c ? (a = b[c] = []) : (c = \"mixpanel\"); a.people = a.people || []; a.toString = function (a) { var d = \"mixpanel\"; \"mixpanel\" !== c \u0026\u0026 (d += \".\" + c); a || (d += \" (stub)\"); return d; }; a.people.toString = function () { return a.toString(1) + \".people (stub)\"; }; i = \"disable time_event track track_pageview track_links track_forms track_with_groups add_group set_group remove_group register register_once alias unregister identify name_tag set_config reset opt_in_tracking opt_out_tracking has_opted_in_tracking has_opted_out_tracking clear_opt_in_out_tracking start_batch_senders people.set people.set_once people.unset people.increment people.append people.union people.track_charge people.clear_charges people.delete_user people.remove\".split( \" \"); for (h = 0; h \u003c i.length; h++) g(a, i[h]); var j = \"set set_once union unset remove delete\".split(\" \"); a.get_group = function () { function b(c) { d[c] = function () { call2_args = arguments; call2 = [c].concat(Array.prototype.slice.call(call2_args, 0)); a.push([e, call2]); }; } for ( var d = {}, e = [\"get_group\"].concat( Array.prototype.slice.call(arguments, 0)), c = 0; c \u003c j.length; c++) b(j[c]); return d; }; b._i.push([e, f, c]); }; b.__SV = 1.2; e = f.createElement(\"script\"); e.type = \"text/javascript\"; e.async = !0; e.src = \"undefined\" !== typeof MIXPANEL_CUSTOM_LIB_URL ? MIXPANEL_CUSTOM_LIB_URL : \"file:\" === f.location.protocol \u0026\u0026 \"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js\".match(/^\\\\/\\\\//) ? \"https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js\" : \"//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js\"; g = f.getElementsByTagName(\"script\")[0]; g.parentNode.insertBefore(e, g); } })(document, window.mixpanel || []);`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`script`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`]})})})}),_jsx(Tab,{title:`npm`,id:`npm`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`npm install --save mixpanel-browser`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})}),_jsx(Tab,{title:`yarn`,id:`yarn`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`yarn add mixpanel-browser`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})})]}),_jsx(_components.h5,{children:`Configure the SDK`}),_jsxs(_components.p,{children:[`Replace `,_jsx(_components.code,{children:`YOUR_TOKEN`}),` with your project token. You can find your token `,_jsx(_components.a,{href:`https://mixpanel.com/settings/project`,children:`here`}),`.`]}),_jsxs(_components.p,{children:[`You can learn more about configuring Session Replay and Heatmaps `,_jsx(_components.a,{href:`/docs/tracking-methods/sdks/javascript/javascript-replay`,children:`here`}),`.`]}),_jsx(CodeBlock,{filename:`Javascript`,numberOfLines:`11`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`//Import Mixpanel SDK (only required for npm and yarn)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` mixpanel`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"mixpanel-browser\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Near entry of your product, init Mixpanel`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`mixpanel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`init`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_TOKEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` debug:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` track_pageview:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` persistence:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"localStorage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` record_sessions_percent:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 100`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`//records 100% of all sessions`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` record_heatmap_data:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),_jsxs(_components.p,{children:[`US projects use the SDK’s default host and need no change. For an EU or India project, set `,_jsx(_components.code,{children:`api_host`}),`:`]}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`EU`,numberOfLines:`8`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`mixpanel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`init`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_TOKEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` api_host:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api-eu.mixpanel.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` debug:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` track_pageview:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` persistence:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"localStorage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` record_sessions_percent:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 100`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`//records 100% of all sessions`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` record_heatmap_data:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`India`,numberOfLines:`8`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`mixpanel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`init`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_TOKEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` api_host:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api-in.mixpanel.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` debug:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` track_pageview:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` persistence:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"localStorage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` record_sessions_percent:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 100`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`//records 100% of all sessions`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` record_heatmap_data:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})})]})]}),_jsxs(Tab,{title:`Python`,id:`python`,children:[_jsx(_components.h5,{children:`Install the SDK`}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pip`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mixpanel`})]}),`\n`]})})}),_jsx(_components.h5,{children:`Configure the SDK`}),_jsxs(_components.p,{children:[`Replace `,_jsx(_components.code,{children:`YOUR_TOKEN`}),` with your project token. You can find your token `,_jsx(_components.a,{href:`https://mixpanel.com/settings/project`,children:`here`}),`.`]}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`3`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` mixpanel `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Mixpanel`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`mp `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Mixpanel(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_TOKEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`US projects use the SDK’s default host and need no change. For an EU or India project, pass a `,_jsx(_components.code,{children:`Consumer`}),` with `,_jsx(_components.code,{children:`api_host`}),` set:`]}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`EU`,numberOfLines:`3`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` mixpanel `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Mixpanel, Consumer`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`mp `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Mixpanel(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_TOKEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`consumer`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Consumer(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`api_host`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"api-eu.mixpanel.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`))`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`India`,numberOfLines:`3`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` mixpanel `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Mixpanel, Consumer`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`mp `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Mixpanel(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_TOKEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`consumer`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Consumer(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`api_host`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"api-in.mixpanel.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`))`})]}),`\n`]})})})]})]}),_jsxs(Tab,{title:`PHP`,id:`php`,children:[_jsx(_components.h5,{children:`Install the SDK`}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Install with Composer`})}),_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Add mixpanel/mixpanel-php as a dependency and run composer update:`}),`\n`]}),_jsx(CodeBlock,{filename:`php`,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`\"require\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` ...`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` \"mixpanel/mixpanel-php\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` :`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"2.*\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` ...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Install Manually`})}),_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`https://github.com/mixpanel/mixpanel-php/archive/master.zip`,children:`Download the Mixpanel PHP Library`})}),`\n`,_jsx(_components.li,{children:`Extract the zip file to a directory called “mixpanel-php” in your project root`}),`\n`]}),_jsx(_components.h5,{children:`Configure the SDK`}),_jsxs(_components.p,{children:[`Replace `,_jsx(_components.code,{children:`YOUR_TOKEN`}),` with your project token. You can find your token `,_jsx(_components.a,{href:`https://mixpanel.com/settings/project`,children:`here`}),`.`]}),_jsx(CodeBlock,{filename:`php`,numberOfLines:`8`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c?`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`php`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`//`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` import`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` Mixpanel`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`require`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'mixpanel-php/lib/Mixpanel.php'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`//`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` get`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` the`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` Mixpanel`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` class`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` instance,`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` replace`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` with`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` your`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` project`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` token`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$mp`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` = Mixpanel::getInstance(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`\"YOUR_TOKEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`?`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`>`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`US projects use the SDK’s default host and need no change. For an EU or India project, set the `,_jsx(_components.code,{children:`host`}),` option:`]}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`EU`,numberOfLines:`5`,language:`php`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`php`,children:_jsxs(_components.code,{language:`php`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c?`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`php`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$mp`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` Mixpanel`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`::`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getInstance`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_TOKEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`array`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"host\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"api-eu.mixpanel.com\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`));`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?>`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`India`,numberOfLines:`5`,language:`php`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`php`,children:_jsxs(_components.code,{language:`php`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c?`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`php`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$mp`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` Mixpanel`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`::`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getInstance`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_TOKEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`array`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"host\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"api-in.mixpanel.com\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`));`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?>`})}),`\n`]})})})]})]}),_jsxs(Tab,{title:`Node`,id:`node`,children:[_jsx(_components.h5,{children:`Install the SDK`}),_jsx(CodeBlock,{filename:`Node.js`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mixpanel`})]}),`\n`]})})}),_jsx(_components.h5,{children:`Configure the SDK`}),_jsxs(_components.p,{children:[`Replace `,_jsx(_components.code,{children:`YOUR_TOKEN`}),` with your project token. You can find your token `,_jsx(_components.a,{href:`https://mixpanel.com/settings/project`,children:`here`}),`.`]}),_jsx(CodeBlock,{filename:`Node.js`,numberOfLines:`5`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Grab the Mixpanel factory`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`var`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Mixpanel`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` require`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"mixpanel\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Create an instance of the mixpanel client`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`var`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` mixpanel`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Mixpanel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`init`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_TOKEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`US projects use the SDK’s default host and need no change. For an EU or India project, set `,_jsx(_components.code,{children:`host`}),`:`]}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`EU`,numberOfLines:`3`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`var`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` mixpanel`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Mixpanel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`init`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_TOKEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` host:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"api-eu.mixpanel.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`India`,numberOfLines:`3`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`var`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` mixpanel`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Mixpanel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`init`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_TOKEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` host:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"api-in.mixpanel.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})})]})]}),_jsxs(Tab,{title:`Go`,id:`go`,children:[_jsx(_components.h5,{children:`Install the SDK`}),_jsx(CodeBlock,{filename:`Go`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`go`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` get`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` github.com/mixpanel/mixpanel-go`})]}),`\n`]})})}),_jsx(_components.h5,{children:`Configure the SDK`}),_jsxs(_components.p,{children:[`Replace `,_jsx(_components.code,{children:`YOUR_TOKEN`}),` with your project token. You can find your token `,_jsx(_components.a,{href:`https://mixpanel.com/settings/project`,children:`here`}),`.`]}),_jsx(CodeBlock,{filename:`Go`,numberOfLines:`11`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`package`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` main`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`\t\"context\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`\t\"github.com/mixpanel/mixpanel-go\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`func`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` main`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`ctx`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` :=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` context.Background`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`mp`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` :=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mixpanel.NewApiClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`\"YOUR_TOKEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(_components.p,{children:`US projects use the SDK’s default host and need no change. For an EU or India project, pass the matching residency option:`}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`EU`,numberOfLines:`1`,language:`go`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`go`,children:_jsxs(_components.code,{language:`go`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`mp`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` mixpanel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`NewApiClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_TOKEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`mixpanel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`EuResidency`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`())`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`India`,numberOfLines:`1`,language:`go`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`go`,children:_jsxs(_components.code,{language:`go`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`mp`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` mixpanel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`NewApiClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_TOKEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`mixpanel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`InResidency`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`())`})]}),`\n`]})})})]})]}),_jsxs(Tab,{title:`Ruby`,id:`ruby`,children:[_jsx(_components.h5,{children:`Install the SDK`}),_jsx(CodeBlock,{filename:`Ruby`,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`gem`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mixpanel-ruby`})]}),`\n`]})})}),_jsx(_components.h5,{children:`Configure the SDK`}),_jsxs(_components.p,{children:[`Replace `,_jsx(_components.code,{children:`YOUR_TOKEN`}),` with your project token. You can find your token `,_jsx(_components.a,{href:`https://mixpanel.com/settings/project`,children:`here`}),`.`]}),_jsx(CodeBlock,{filename:`Ruby`,numberOfLines:`3`,language:`ruby`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`ruby`,children:_jsxs(_components.code,{language:`ruby`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`require`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'mixpanel-ruby'`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`mp`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` Mixpanel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`::`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`Tracker`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`new`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`YOUR_TOKEN`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),_jsx(_components.p,{children:`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:`}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`EU`,numberOfLines:`9`,language:`ruby`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`ruby`,children:_jsxs(_components.code,{language:`ruby`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`consumer`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` Mixpanel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`::`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`Consumer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`new`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api-eu.mixpanel.com/track'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api-eu.mixpanel.com/engage'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api-eu.mixpanel.com/groups'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`mp`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` Mixpanel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`::`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`Tracker`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`new`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`YOUR_TOKEN`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`do`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`message`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`|`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` consumer.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`send!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(type, message)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`end`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`India`,numberOfLines:`9`,language:`ruby`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`ruby`,children:_jsxs(_components.code,{language:`ruby`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`consumer`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` Mixpanel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`::`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`Consumer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`new`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api-in.mixpanel.com/track'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api-in.mixpanel.com/engage'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'https://api-in.mixpanel.com/groups'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`mp`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` Mixpanel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`::`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`Tracker`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`new`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`YOUR_TOKEN`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`do`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`message`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`|`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` consumer.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`send!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(type, message)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`end`})}),`\n`]})})})]})]}),_jsxs(Tab,{title:`Java`,id:`java`,children:[_jsx(_components.h5,{children:`Install the SDK`}),_jsx(CodeBlock,{filename:`Java`,numberOfLines:`6`,language:`xml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`xml`,children:_jsxs(_components.code,{language:`xml`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`\u003c!--Include the following in your project's pom.xml-->`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`dependency`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`groupId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`com.mixpanel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`groupId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`artifactId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`mixpanel-java`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`artifactId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`version`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`1.4.4`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`version`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`dependency`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`]})})}),_jsx(_components.h5,{children:`Configure the SDK`}),_jsxs(_components.p,{children:[`Replace `,_jsx(_components.code,{children:`YOUR_TOKEN`}),` with your project token. You can find your token `,_jsx(_components.a,{href:`https://mixpanel.com/settings/project`,children:`here`}),`.`]}),_jsx(CodeBlock,{filename:`Java`,numberOfLines:`8`,language:`java`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`java`,children:_jsxs(_components.code,{language:`java`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`//Import Mixpanel API`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` com.mixpanel.mixpanelapi.MessageBuilder;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` com.mixpanel.mixpanelapi.MixpanelAPI;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Set up an instance of MixpanelAPI`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`MixpanelAPI`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` mixpanel`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` MixpanelAPI`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`MessageBuilder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` messageBuilder`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` MessageBuilder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'YOUR_TOKEN'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`US projects use the SDK’s default host and need no change. For an EU or India project, pass the regional endpoints to `,_jsx(_components.code,{children:`MixpanelAPI`}),`:`]}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`EU`,numberOfLines:`3`,language:`java`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`java`,children:_jsxs(_components.code,{language:`java`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`MixpanelAPI`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` mixpanel`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` MixpanelAPI`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api-eu.mixpanel.com/track\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api-eu.mixpanel.com/engage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api-eu.mixpanel.com/groups\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`India`,numberOfLines:`3`,language:`java`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`java`,children:_jsxs(_components.code,{language:`java`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`MixpanelAPI`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` mixpanel`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` MixpanelAPI`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api-in.mixpanel.com/track\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api-in.mixpanel.com/engage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api-in.mixpanel.com/groups\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})})]})]}),_jsxs(Tab,{title:`React Native`,id:`react-native`,children:[_jsx(_components.h5,{children:`Install the SDK`}),_jsx(_components.p,{children:`Under your app’s root directory, run:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` mixpanel-react-native`})]}),`\n`]})})}),_jsx(_components.p,{children:`Under your application’s iOS folder, run:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pod`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Note: For XCode 12.5+, there is a known compile issue, please refer to this `,_jsx(_components.a,{href:`https://github.com/mixpanel/mixpanel-react-native/issues/43#issuecomment-829599732`,children:`workaround`}),`.`]}),_jsx(_components.h5,{children:`Configure the SDK`}),_jsxs(_components.p,{children:[`Replace `,_jsx(_components.code,{children:`YOUR_TOKEN`}),` with your project token. You can find your token `,_jsx(_components.a,{href:`https://mixpanel.com/settings/project`,children:`here`}),`.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`//Import Mixpanel API`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Mixpanel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"mixpanel-react-native\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Set up an instance of Mixpanel`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` trackAutomaticEvents`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` mixpanel`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Mixpanel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_TOKEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`trackAutomaticEvents`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`mixpanel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`init`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`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 `,_jsx(_components.code,{children:`init()`}),`:`]}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`EU`,numberOfLines:`1`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`mixpanel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`init`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {}, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api-eu.mixpanel.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`India`,numberOfLines:`1`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`mixpanel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`init`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {}, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api-in.mixpanel.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})})]})]}),_jsxs(Tab,{title:`Flutter`,id:`flutter`,children:[_jsx(_components.h5,{children:`Install the SDK`}),_jsxs(_components.p,{children:[`Add `,_jsx(_components.code,{children:`mixpanel_flutter: ^2.0.0`}),` to your package’s pubspec.yaml file and run:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`flutter`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` pub`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` get`})]}),`\n`]})})}),_jsx(_components.h5,{children:`Configure the SDK`}),_jsxs(_components.p,{children:[`Replace `,_jsx(_components.code,{children:`YOUR_TOKEN`}),` with your project token. You can find your token `,_jsx(_components.a,{href:`https://mixpanel.com/settings/project`,children:`here`}),`.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`15`,language:`dart`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`dart`,children:_jsxs(_components.code,{language:`dart`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`import`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'package:mixpanel_flutter/mixpanel_flutter.dart'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`class`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` _YourClassState`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` extends`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` State`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`YourClass`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`> {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` Mixpanel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` mixpanel;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` @override`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` void`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` initState`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` super`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`initState`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` initMixpanel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` Future`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`void`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`> `}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`initMixpanel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`() `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`async`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:\" // Once you've called this method once, you can access `mixpanel` throughout the rest of your application.\"})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` mixpanel `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` Mixpanel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`init`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_TOKEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, trackAutomaticEvents`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsxs(_components.p,{children:[`US projects use the SDK’s default host and need no change. For an EU or India project, pass `,_jsx(_components.code,{children:`serverURL`}),`:`]}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`EU`,numberOfLines:`5`,language:`dart`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`dart`,children:_jsxs(_components.code,{language:`dart`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`mixpanel `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` Mixpanel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`init`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"YOUR_TOKEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` trackAutomaticEvents`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` serverURL`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api-eu.mixpanel.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`India`,numberOfLines:`5`,language:`dart`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`dart`,children:_jsxs(_components.code,{language:`dart`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`mixpanel `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` Mixpanel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`init`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"YOUR_TOKEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` trackAutomaticEvents`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` serverURL`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api-in.mixpanel.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})}),`\n`]})})})]})]}),_jsxs(Tab,{title:`iOS (Objective-C)`,id:`ios-objective-c`,\"data-child-tab-ids\":`[\"swift-package-manager\",\"cocoapods\",\"carthage\"]`,children:[_jsx(_components.h5,{children:`Install the SDK`}),_jsxs(Tabs,{children:[_jsx(Tab,{title:`Swift Package Manager`,id:`swift-package-manager`,children:_jsx(_components.p,{children:`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`})}),_jsx(Tab,{title:`Cocoapods`,id:`cocoapods`,children:_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Create a Podfile in your Xcode project directory by running\\xA0`,_jsx(_components.code,{children:`pod init`}),`\\xA0in your terminal, edit the Podfile generated, and add the following line:\\xA0`,_jsx(_components.code,{children:`pod 'Mixpanel'`}),`. 2. Run\\xA0`,_jsx(_components.code,{children:`pod install`}),`\\xA0in 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\\xA0`,_jsx(_components.code,{children:`open *.xcworkspace`}),`\\xA0in your terminal.`]}),`\n`]})}),_jsx(Tab,{title:`Carthage`,id:`carthage`,children:_jsxs(_components.p,{children:[`Add `,_jsx(_components.code,{children:`github \"mixpanel/mixpanel-iphone\"`}),` to your Cartfile.`]})})]}),_jsx(_components.h5,{children:`Configure the SDK`}),_jsxs(_components.p,{children:[`Replace `,_jsx(_components.code,{children:`YOUR_TOKEN`}),` with your project token. You can find your token `,_jsx(_components.a,{href:`https://mixpanel.com/settings/project`,children:`here`}),`.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`objective-c`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`objective-c`,children:_jsxs(_components.code,{language:`objective-c`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`#import`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Mixpanel/Mixpanel.h\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`BOOL`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)application:(UIApplication _)application`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` didFinishLaunchingWithOptions:(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`NSDictionary`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` _)launchOptions {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ...`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Mixpanel \\\\`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`*`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`mixpanel `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [Mixpanel `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`sharedInstanceWithToken:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`@\"YOUR_TOKEN\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` trackAutomaticEvents:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` NO`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`];`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`]})})}),_jsxs(_components.p,{children:[`US projects use the SDK’s default host and need no change. For an EU or India project, set `,_jsx(_components.code,{children:`serverURL`}),` after initialization:`]}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`EU`,numberOfLines:`1`,language:`objective-c`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`objective-c`,children:_jsxs(_components.code,{language:`objective-c`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`mixpanel.serverURL `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @\"https://api-eu.mixpanel.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`India`,numberOfLines:`1`,language:`objective-c`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`objective-c`,children:_jsxs(_components.code,{language:`objective-c`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`mixpanel.serverURL `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` @\"https://api-in.mixpanel.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`]})})})]})]}),_jsxs(Tab,{title:`iOS (Swift)`,id:`ios-swift`,\"data-child-tab-ids\":`[\"swift-package-manager-2\",\"cocoapods-2\",\"carthage-2\"]`,children:[_jsx(_components.h5,{children:`Install the SDK`}),_jsxs(Tabs,{children:[_jsxs(Tab,{title:`Swift Package Manager`,id:`swift-package-manager-2`,children:[_jsx(_components.p,{children:`Note: Swift Package Manager requires Xcode 12+`}),_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`In Xcode, select File > Swift Packages > Add Package Dependency.`}),`\n`,_jsxs(_components.li,{children:[`Paste the URL `,_jsx(_components.code,{children:`https://github.com/mixpanel/mixpanel-swift`}),` and a minimum semantic version of v2.8.0.`]}),`\n`]})]}),_jsx(Tab,{title:`Cocoapods`,id:`cocoapods-2`,children:_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Create a Podfile in your Xcode project directory by running\\xA0`,_jsx(_components.code,{children:`pod init`}),`\\xA0in your terminal, edit the Podfile generated, and add the following line:\\xA0`,_jsx(_components.code,{children:`pod 'Mixpanel-swift'`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Run\\xA0`,_jsx(_components.code,{children:`pod install`}),`\\xA0in 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\\xA0`,_jsx(_components.code,{children:`open *.xcworkspace`}),`\\xA0in your terminal.`]}),`\n`]})}),_jsx(Tab,{title:`Carthage`,id:`carthage-2`,children:_jsxs(_components.p,{children:[`Add `,_jsx(_components.code,{children:`github \"mixpanel/mixpanel-swift\"`}),` to your Cartfile.`]})})]}),_jsx(_components.h5,{children:`Configure the SDK`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Import Mixpanel into `,_jsx(_components.code,{children:`AppDelegate.swift`})]}),`\n`,_jsxs(_components.li,{children:[`Initialize Mixpanel within `,_jsx(_components.code,{children:`application:didFinishLaunchingWithOptions`}),` as seen below`]}),`\n`]}),_jsxs(_components.p,{children:[`Replace `,_jsx(_components.code,{children:`YOUR_TOKEN`}),` with your project token. You can find your token `,_jsx(_components.a,{href:`https://mixpanel.com/settings/project`,children:`here`}),`.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Mixpanel`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`func`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` application`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`_`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` application`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: UIApplication,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` didFinishLaunchingWithOptions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` launchOptions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [NSObject: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`AnyObject`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`->`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` Bool`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Replace with your Project Token`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Mixpanel.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`initialize`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`token`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_TOKEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`trackAutomaticEvents`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsxs(_components.p,{children:[`US projects use the SDK’s default host and need no change. For an EU or India project, set `,_jsx(_components.code,{children:`serverURL`}),` in `,_jsx(_components.code,{children:`MixpanelOptions`}),`:`]}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`EU`,numberOfLines:`5`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` options `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` MixpanelOptions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` token`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_TOKEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` serverURL`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api-eu.mixpanel.com\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Mixpanel.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`initialize`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`options`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: options)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`India`,numberOfLines:`5`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` options `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` MixpanelOptions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` token`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_TOKEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` serverURL`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api-in.mixpanel.com\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Mixpanel.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`initialize`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`options`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: options)`})]}),`\n`]})})})]})]}),_jsxs(Tab,{title:`Android`,id:`android`,children:[_jsx(_components.h5,{children:`Install the SDK`}),_jsxs(_components.p,{children:[`Add `,_jsx(_components.code,{children:`implementation 'com.mixpanel.android:mixpanel-android:7.+'`}),` as a dependency to your `,_jsx(_components.code,{children:`build.gradle`}),` file.`]}),_jsxs(_components.p,{children:[`Once you’ve updated `,_jsx(_components.code,{children:`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:`]}),_jsx(Frame,{children:_jsx(_components.p,{children:_jsx(_components.img,{src:`https://storage.googleapis.com/cdn-mxpnl-com/static/readme/android-sync-gradle.png`,alt:`Sync Android With Gradle`})})}),_jsxs(_components.p,{children:[`If it cannot find the dependency, you should make sure you’ve specified `,_jsx(_components.code,{children:`mavenCentral()`}),` as a repository in `,_jsx(_components.code,{children:`build.gradle`}),`.`]}),_jsx(_components.p,{children:`Next, add the following permissions in your AndroidManifest.xml:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`java`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`java`,children:_jsxs(_components.code,{language:`java`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c!--`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`Required`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` to allow the application to send events to Mixpanel.`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-->`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`uses`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`permission android`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"android.permission.INTERNET\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` />`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c!--`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Optional, but recommended so we can send data intelligently based on network conditions `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-->`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`uses`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`permission android`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"android.permission.ACCESS_NETWORK_STATE\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` />`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c!--`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Optional, but recommended so events will contain information about bluetooth state`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-->`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`uses`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`-`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`permission android`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"android.permission.BLUETOOTH\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` />`})]}),`\n`]})})}),_jsx(_components.h5,{children:`Configure the SDK`}),_jsxs(_components.p,{children:[`Replace `,_jsx(_components.code,{children:`YOUR_TOKEN`}),` with your project token. You can find your token `,_jsx(_components.a,{href:`https://mixpanel.com/settings/project`,children:`here`}),`.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`15`,language:`java`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`java`,children:_jsxs(_components.code,{language:`java`,numberOfLines:`15`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` com.mixpanel.android.mpmetrics.MixpanelAPI;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`public`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` class`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` MainActivity`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` extends`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` ActionBarActivity`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` private`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:` MixpanelAPI`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` mp`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` @`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:`Override`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` protected`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#4EC9B0`},children:` void`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` onCreate`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`Bundle`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` savedInstanceState`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` super`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`onCreate`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(savedInstanceState);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` setContentView`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`R`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`layout`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`activity_main`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` trackAutomaticEvents `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // Replace with your Project Token`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` mp `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` MixpanelAPI`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getInstance`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_TOKEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, trackAutomaticEvents);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsxs(_components.p,{children:[`US projects use the SDK’s default host and need no change. For an EU or India project, set `,_jsx(_components.code,{children:`serverURL`}),` with `,_jsx(_components.code,{children:`MixpanelOptions`}),`:`]}),_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`EU`,numberOfLines:`5`,language:`java`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`java`,children:_jsxs(_components.code,{language:`java`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`MixpanelOptions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` options`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` new`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` MixpanelOptions.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Builder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`serverURL`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api-eu.mixpanel.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`build`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`mp `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` MixpanelAPI`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getInstance`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_TOKEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, trackAutomaticEvents, options);`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`India`,numberOfLines:`5`,language:`java`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`java`,children:_jsxs(_components.code,{language:`java`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`MixpanelOptions`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` options`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` new`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` MixpanelOptions.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Builder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`serverURL`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api-in.mixpanel.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`build`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`mp `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` MixpanelAPI`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getInstance`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`this`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_TOKEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, trackAutomaticEvents, options);`})]}),`\n`]})})})]})]}),_jsxs(Tab,{title:`Unity`,id:`unity`,children:[_jsx(_components.h5,{children:`Install the SDK`}),_jsxs(_components.p,{children:[`Add `,_jsx(_components.code,{children:`https://github.com/mixpanel/mixpanel-unity.git#master`}),` to the dependencies section of `,_jsx(_components.code,{children:`com.mixpanel.unity`}),`.`]}),_jsxs(_components.p,{children:[`Alternatively, you can download and install the .unitypackage file from our `,_jsx(_components.a,{href:`https://github.com/mixpanel/mixpanel-unity/releases`,children:`releases page`}),`.`]}),_jsx(_components.h5,{children:`Configure the SDK`}),_jsxs(_components.p,{children:[`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 `,_jsx(_components.a,{href:`https://mixpanel.com/settings/project`,children:`here`}),`.`]}),_jsx(Frame,{children:_jsx(_components.p,{children:_jsx(_components.img,{src:`https://user-images.githubusercontent.com/36679208/152408022-62440f50-04c7-4ff3-b331-02d3d3122c9e.jpg`,alt:`unity_screenshots`})})}),_jsxs(_components.p,{children:[`US projects use the SDK’s default host and need no change. For an EU or India project, set `,_jsx(_components.strong,{children:`API Host Address`}),` in the same settings menu to `,_jsx(_components.code,{children:`https://api-eu.mixpanel.com/`}),` or `,_jsx(_components.code,{children:`https://api-in.mixpanel.com/`}),`.`]}),_jsxs(_components.p,{children:[`Note: If you prefer to initialize Mixpanel manually, you can select the `,_jsx(_components.code,{children:`Manual Initialization`}),` in the settings and call `,_jsx(_components.code,{children:`Mixpanel.Init()`}),` to initialize.`]}),_jsx(_components.p,{children:`To use mixpanel, add the following sample code to a part of your application:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`csharp`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`csharp`,children:_jsxs(_components.code,{language:`csharp`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`using`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` mixpanel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`]})})}),_jsx(_components.p,{children:`You’re`})]}),_jsxs(Tab,{title:`HTTP API`,id:`http-api`,children:[_jsx(_components.h5,{children:`Install the SDK`}),_jsx(Note,{children:_jsx(_components.p,{children:`No install required`})}),_jsxs(_components.p,{children:[`Using the HTTP API does not require an installation. `,_jsx(_components.strong,{children:`You’re ready to move to the next step.`})]}),_jsxs(_components.p,{children:[`For an EU or India project, send `,_jsx(_components.a,{href:`/reference/ingestion-api`,children:`Ingestion API`}),` requests to `,_jsx(_components.code,{children:`api-eu.mixpanel.com`}),` or `,_jsx(_components.code,{children:`api-in.mixpanel.com`}),` instead of `,_jsx(_components.code,{children:`api.mixpanel.com`}),`.`]})]})]}),`\n`,_jsx(Heading,{level:`1`,id:`integration-/-framework-guides`,children:`Integration / Framework Guides`}),`\n`,_jsxs(CardGroup,{cols:3,children:[_jsx(Card,{title:`Segment`,href:`/docs/tracking-methods/integrations/segment`}),_jsx(Card,{title:`Google Tag Manager`,href:`/docs/tracking-methods/integrations/google-tag-manager`}),_jsx(Card,{title:`Ad Spend`,href:`/docs/tracking-methods/integrations/ad-spend`}),_jsx(Card,{title:`Amazon S3`,href:`/docs/tracking-methods/integrations/amazon-s3`}),_jsx(Card,{title:`Amazon Kafka`,href:`/docs/tracking-methods/integrations/aws-kafka`}),_jsx(Card,{title:`CMS \u0026 E-Commerce`,href:`/docs/tracking-methods/integrations/cms-ecommerce`}),_jsx(Card,{title:`Customer.io`,href:`https://customer.io/docs/cdp/destinations/connections/mixpanel?utm_source=mixpanel\u0026utm_medium=partner`}),_jsx(Card,{title:`Freshpaint`,href:`/docs/tracking-methods/integrations/freshpaint`}),_jsx(Card,{title:`Google Cloud Storage`,href:`/docs/tracking-methods/integrations/google-cloud-storage`}),_jsx(Card,{title:`Google Pubsub`,href:`/docs/tracking-methods/integrations/google-pubsub`}),_jsx(Card,{title:`Google Sheets`,href:`/docs/tracking-methods/integrations/google-sheets`}),_jsx(Card,{title:`Langfuse`,href:`/docs/tracking-methods/integrations/langfuse`}),_jsx(Card,{title:`LaunchDarkly`,href:`/docs/tracking-methods/integrations/launchdarkly`}),_jsx(Card,{title:`mParticle`,href:`/docs/tracking-methods/integrations/mparticle`}),_jsx(Card,{title:`Next.js`,href:`/docs/tracking-methods/integrations/nextjs`}),_jsx(Card,{title:`Mobile Attribution Tracking`,href:`/docs/tracking-methods/integrations/mobile-attribution-tracking`}),_jsx(Card,{title:`Rudderstack`,href:`/docs/tracking-methods/integrations/rudderstack`}),_jsx(Card,{title:`Shopify`,href:`/docs/tracking-methods/integrations/shopify`}),_jsx(Card,{title:`Vendo for Shopify`,href:`https://apps.shopify.com/vendo?utm_source=mixpanel\u0026utm_medium=partner`}),_jsx(Card,{title:`Snowplow`,href:`/docs/tracking-methods/integrations/snowplow`}),_jsx(Card,{title:`Stripe`,href:`/docs/tracking-methods/integrations/stripe`}),_jsx(Card,{title:`Tealium`,href:`/docs/tracking-methods/integrations/tealium`})]}),`\n`,_jsx(`hr`,{}),`\n`,_jsx(`div`,{className:`extendedButtonComponent`,children:_jsxs(`div`,{className:`bg-base100 mint-rounded-xl`,children:[_jsx(Heading,{level:`2`,id:`next%3A-identify-your-users`,className:`mint-text-2xl mint-font-medium mint-mb-2 color:bg-purple200`,children:`Next: Identify Your Users`}),_jsx(`p`,{children:_jsx(_components.p,{children:`With Mixpanel installed, you’re now ready to identify the users who use\nyour product.`})}),_jsx(`br`,{}),_jsx(_MdxComponentBoundary,{name:`ExtendedButton`,children:_jsx(ExtendedButton,{title:`Identify Your Users`,link:`/docs/quickstart/identify-users/`})})]})}),`\n`,_jsx(Heading,{level:`2`,id:`faq`,children:`FAQ`}),`\n`,_jsxs(AccordionGroup,{children:[_jsx(Accordion,{title:`Does Mixpanel automatically track page views?`,id:`does-mixpanel-automatically-track-page-views`,children:_jsxs(_components.p,{children:[`Yes, if you pass `,_jsx(_components.code,{children:`track_pageview: true`}),` in the `,_jsx(_components.code,{children:`mixpanel.init()`}),` call, Mixpanel will automatically track a “Page View” event every time a new page is loaded. Learn more `,_jsx(_components.a,{href:`/docs/tracking-methods/sdks/javascript#tracking-page-views`,children:`here`}),`.`]})}),_jsxs(Accordion,{title:`What are the recommended web configuration options?`,id:`what-are-the-recommended-web-configuration-options`,children:[_jsx(_components.p,{children:`When tracking on web, we recommend using localStorage, as this is more reliable:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`mixpanel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`set_config`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`persistence:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"localStorage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`]})})}),_jsx(_components.p,{children:`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.`})]}),_jsx(Accordion,{title:`Does Mixpanel use third-party cookies?`,id:`does-mixpanel-use-third-party-cookies`,children:_jsx(_components.p,{children:`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.`})}),_jsxs(Accordion,{title:`How can I track in a privacy compliant way?`,id:`how-can-i-track-in-a-privacy-compliant-way`,children:[_jsxs(_components.p,{children:[`If a user opts out of tracking, you can call the `,_jsx(_components.code,{children:`.optOutTracking()`}),` method on any of our client-side SDKs; this prevents any subsequent data being tracked from that user’s device. Learn more `,_jsx(_components.a,{href:`/docs/privacy/protecting-user-data`,children:`here`}),`.`]}),_jsxs(_components.p,{children:[`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 `,_jsx(_components.a,{href:`https://mixpanel.com/legal/app-store-privacy-details`,children:`Apple App Developer Privacy Guidance`}),`.`]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{ExtendedButton,default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Install Mixpanel","description":"Install the Mixpanel SDK and initialize it in your application","related":["/docs/quickstart/capture-events/track-events","/docs/tracking-methods/choosing-the-right-method","/docs/quickstart/install-with-ai"],"href":"/docs/quickstart/install-mixpanel"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":2,"children":[]},{"title":"Code","slug":"code","depth":2,"children":[]},{"title":"Integration / Framework Guides","slug":"integration-/-framework-guides","depth":1,"children":[]},{"title":"Next: Identify Your Users","slug":"next%3A-identify-your-users","depth":2,"children":[]},{"title":"FAQ","slug":"faq","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/mixpanel-edb78807/9e9eb57e33fddbe3/scripts/sentry.js","/_mintlify/custom/mixpanel-edb78807/c8ec676755c57705/scripts/trustarc.js"],"dynamicCss":".mint-mb-2 {\n margin-bottom: 0.5rem\n}\n.mint-inline-block {\n display: inline-block\n}\n.mint-rounded-full {\n border-radius: 9999px\n}\n.mint-rounded-xl {\n border-radius: 0.75rem\n}\n.mint-px-7 {\n padding-left: 1.75rem;\n padding-right: 1.75rem\n}\n.mint-text-2xl {\n font-size: 1.5rem;\n line-height: 2rem\n}\n.mint-text-base {\n font-size: 1rem;\n line-height: 1.5rem\n}\n.mint-font-medium {\n font-weight: 500\n}\n.mint-text-white {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity, 1))\n}\n.mint-no-underline {\n text-decoration-line: none\n}\n.mint-shadow-sm {\n --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)\n}\n.mint-transition-all {\n transition-property: all;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms\n}","subdomain":"mixpanel-edb78807","siteName":"Mixpanel","title":"Install Mixpanel - Mixpanel","relatedPages":[{"title":"Track Events","link":"/docs/quickstart/capture-events/track-events"},{"title":"Choosing the Right Method","link":"/docs/tracking-methods/choosing-the-right-method"},{"title":"Install with AI","link":"/docs/quickstart/install-with-ai"}],"relatedPagesConfig":{"enabled":true,"limit":5,"mode":"manual"},"contextualStarterQuestions":[{"_id":"6ae241045679fd8985f47d27","deploymentId":"69b350f33e949c7a5a4dbb8c","questionText":"How do I set data residency?","status":"active","generatedBy":"contextual","path":"docs/quickstart/install-mixpanel","createdAt":"2026-10-28T18:37:56.586Z","updatedAt":"2026-10-28T18:37:56.586Z","__v":0},{"_id":"6ae241045679fd8985f47d25","deploymentId":"69b350f33e949c7a5a4dbb8c","questionText":"How do I install Mixpanel?","status":"active","generatedBy":"contextual","path":"docs/quickstart/install-mixpanel","createdAt":"2026-10-28T18:37:56.586Z","updatedAt":"2026-10-28T18:37:56.586Z","__v":0},{"_id":"6ae241045679fd8985f47d26","deploymentId":"69b350f33e949c7a5a4dbb8c","questionText":"Which SDK should I choose?","status":"active","generatedBy":"contextual","path":"docs/quickstart/install-mixpanel","createdAt":"2026-10-28T18:37:56.586Z","updatedAt":"2026-10-28T18:37:56.586Z","__v":0}],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-28T18:37:03.336Z","originalFileLocation":"docs/quickstart/install-mixpanel.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Install the Mixpanel SDK and initialize it in your application\">\u003cmeta data-mint-head name=\"application-name\" content=\"Mixpanel\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/mixpanel-edb78807/CduMXmQIBqqE7wqB/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/mixpanel-edb78807/CduMXmQIBqqE7wqB/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/mixpanel-edb78807/CduMXmQIBqqE7wqB/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/mixpanel-edb78807/CduMXmQIBqqE7wqB/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/mixpanel-edb78807/CduMXmQIBqqE7wqB/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/mixpanel-edb78807/CduMXmQIBqqE7wqB/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/mixpanel-edb78807/CduMXmQIBqqE7wqB/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/mixpanel-edb78807/CduMXmQIBqqE7wqB/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/mixpanel-edb78807/CduMXmQIBqqE7wqB/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Install Mixpanel - Mixpanel\">\u003cmeta data-mint-head property=\"og:description\" content=\"Install the Mixpanel SDK and initialize it in your application\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Mixpanel\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.mixpanel.com/docs/quickstart/install-mixpanel\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://mixpanel-edb78807.mintlify.app/_mintlify/api/og/v2?division=Quickstart\u0026amp;title=Install+Mixpanel\u0026amp;description=Install+the+Mixpanel+SDK+and+initialize+it+in+your+application\u0026amp;theme=941354e6c63759c36c3e2f95\u0026amp;signature=d8ca1834f03cdc1a107c85ee14b23fba1adaa0a7550881344fa8936ab20741f3\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Install Mixpanel - Mixpanel\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Install the Mixpanel SDK and initialize it in your application\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://mixpanel-edb78807.mintlify.app/_mintlify/api/og/v2?division=Quickstart\u0026amp;title=Install+Mixpanel\u0026amp;description=Install+the+Mixpanel+SDK+and+initialize+it+in+your+application\u0026amp;theme=941354e6c63759c36c3e2f95\u0026amp;signature=d8ca1834f03cdc1a107c85ee14b23fba1adaa0a7550881344fa8936ab20741f3\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/mixpanel-edb78807/CduMXmQIBqqE7wqB/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Mixpanel\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#7856ff\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.mixpanel.com/docs/quickstart/install-mixpanel\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/quickstart/install-mixpanel.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.mixpanel.com/#organization\",\"name\":\"Mixpanel\",\"url\":\"https://docs.mixpanel.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/mixpanel-edb78807/DbK2t9axJQF3qO_F/logo/light.svg?fit=max\u0026auto=format\u0026n=DbK2t9axJQF3qO_F\u0026q=85\u0026s=6197d81a55ffdba599db8650555eb912\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.mixpanel.com#website\",\"name\":\"Mixpanel\",\"url\":\"https://docs.mixpanel.com\",\"publisher\":{\"@id\":\"https://docs.mixpanel.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.mixpanel.com/docs/quickstart/install-mixpanel#webpage\",\"url\":\"https://docs.mixpanel.com/docs/quickstart/install-mixpanel\",\"name\":\"Install Mixpanel\",\"description\":\"Install the Mixpanel SDK and initialize it in your application\",\"dateModified\":\"2026-10-28T18:37:03.336Z\",\"isPartOf\":{\"@id\":\"https://docs.mixpanel.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.mixpanel.com/docs/quickstart/install-mixpanel#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.mixpanel.com/docs/quickstart/install-mixpanel#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"INTRO\",\"item\":\"https://docs.mixpanel.com/docs/what-is-mixpanel\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Quickstart\",\"item\":\"https://docs.mixpanel.com/docs/quickstart\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Install Mixpanel\",\"item\":\"https://docs.mixpanel.com/docs/quickstart/install-mixpanel\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.mixpanel.com/docs/quickstart/install-mixpanel#article\",\"headline\":\"Install Mixpanel\",\"name\":\"Install Mixpanel\",\"description\":\"Install the Mixpanel SDK and initialize it in your application\",\"url\":\"https://docs.mixpanel.com/docs/quickstart/install-mixpanel\",\"mainEntityOfPage\":{\"@id\":\"https://docs.mixpanel.com/docs/quickstart/install-mixpanel#webpage\"},\"dateModified\":\"2026-10-28T18:37:03.336Z\",\"publisher\":{\"@id\":\"https://docs.mixpanel.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.mixpanel.com#website\"}}]}\u003c/script>","siteName":"Mixpanel","nav":{"global":{"anchors":[{"anchor":"About Us","icon":"circle-question","href":"https://mixpanel.com/about"},{"anchor":"Community","icon":"users","href":"https://community.mixpanel.com/"},{"anchor":"Blog","icon":"newspaper","href":"https://mixpanel.com/blog"}]},"tabs":[{"tab":"Docs","groups":[{"group":"INTRO","icon":"https://mintlify.s3.us-west-1.amazonaws.com/mixpanel-edb78807/icons/wave.svg","pages":[{"title":"What is Mixpanel?","href":"/docs/what-is-mixpanel"},{"title":"What to Track","href":"/docs/what-to-track"},{"group":"Quickstart","root":{"title":"Quickstart","description":"Get up and running with Mixpanel quickly","href":"/docs/quickstart"},"pages":[{"title":"Install Mixpanel","href":"/docs/quickstart/install-mixpanel"},{"title":"Identify Users","description":"Connect events to users using the identify method in Mixpanel","href":"/docs/quickstart/identify-users"},{"group":"Capture Events","root":{"title":"Capture Events","href":"/docs/quickstart/capture-events"},"pages":[{"title":"Autocapture","href":"/docs/quickstart/capture-events/autocapture"},{"title":"Track Events","href":"/docs/quickstart/capture-events/track-events"}]},{"title":"Install with AI","href":"/docs/quickstart/install-with-ai"}]}]},{"group":"DATA IN","icon":"https://mintlify.s3.us-west-1.amazonaws.com/mixpanel-edb78807/icons/data-in.svg","pages":[{"group":"Tracking Methods","root":{"title":"Tracking Methods","href":"/docs/tracking-methods"},"pages":[{"title":"Choosing the Right Method","href":"/docs/tracking-methods/choosing-the-right-method"},{"group":"SDKs","root":{"sidebarTitle":"SDKs","title":"SDKs","href":"/docs/tracking-methods/sdks"},"pages":[{"group":"Javascript","root":{"sidebarTitle":"Javascript","title":"Mixpanel SDKs: Javascript","href":"/docs/tracking-methods/sdks/javascript"},"pages":[{"sidebarTitle":"Session Replay (Javascript)","title":"Implement Session Replay (Web)","href":"/docs/tracking-methods/sdks/javascript/javascript-replay"},{"sidebarTitle":"Feature Flags (Javascript)","title":"Implement Feature Flags (Web)","href":"/docs/tracking-methods/sdks/javascript/javascript-flags"},{"title":"OpenFeature Provider (Web)","href":"/docs/tracking-methods/sdks/javascript/javascript-openfeature"}]},{"group":"React Native","root":{"sidebarTitle":"React Native","title":"Mixpanel SDKs: React Native","href":"/docs/tracking-methods/sdks/react-native"},"pages":[{"sidebarTitle":"Feature Flags (React Native)","title":"Implement Feature Flags (React Native)","href":"/docs/tracking-methods/sdks/react-native/react-native-flags"},{"sidebarTitle":"Session Replay (React Native)","title":"Implement Session Replay (React Native)","href":"/docs/tracking-methods/sdks/react-native/react-native-replay"}]},{"group":"Android","root":{"sidebarTitle":"Android","title":"Mixpanel SDKs: Android","href":"/docs/tracking-methods/sdks/android"},"pages":[{"sidebarTitle":"Session Replay (Android)","title":"Implement Session Replay (Android)","href":"/docs/tracking-methods/sdks/android/android-replay"},{"sidebarTitle":"Feature Flags (Android)","title":"Implement Feature Flags (Android)","href":"/docs/tracking-methods/sdks/android/android-flags"},{"title":"OpenFeature Provider (Android)","href":"/docs/tracking-methods/sdks/android/android-openfeature"}]},{"sidebarTitle":"iOS (Objective-C)","title":"Mixpanel SDKs: iOS (Objective-C) - Deprecated","href":"/docs/tracking-methods/sdks/ios"},{"group":"iOS (Swift)","root":{"sidebarTitle":"iOS (Swift)","title":"Mixpanel SDKs: iOS (Swift)","href":"/docs/tracking-methods/sdks/swift"},"pages":[{"sidebarTitle":"Session Replay (Swift)","title":"Implement Session Replay (iOS)","href":"/docs/tracking-methods/sdks/swift/swift-replay"},{"sidebarTitle":"Feature Flags (Swift)","title":"Implement Feature Flags (Swift)","href":"/docs/tracking-methods/sdks/swift/swift-flags"},{"title":"OpenFeature Provider (Swift)","href":"/docs/tracking-methods/sdks/swift/swift-openfeature"}]},{"group":"Flutter","root":{"sidebarTitle":"Flutter","title":"Mixpanel SDKs: Flutter","href":"/docs/tracking-methods/sdks/flutter"},"pages":[{"title":"Implement Session Replay (Flutter)","sidebarTitle":"Session Replay (Flutter)","href":"/docs/tracking-methods/sdks/flutter/flutter-replay"},{"sidebarTitle":"Feature Flags (Flutter)","title":"Implement Feature Flags (Flutter)","href":"/docs/tracking-methods/sdks/flutter/flutter-flags"}]},{"sidebarTitle":"Unity","title":"Mixpanel SDKs: Unity","href":"/docs/tracking-methods/sdks/unity"},{"group":"Python","root":{"sidebarTitle":"Python","title":"Mixpanel SDKs: Python","href":"/docs/tracking-methods/sdks/python"},"pages":[{"sidebarTitle":"Feature Flags (Python)","title":"Implement Feature Flags (Python)","href":"/docs/tracking-methods/sdks/python/python-flags"},{"title":"OpenFeature Provider (Python)","href":"/docs/tracking-methods/sdks/python/python-openfeature"}]},{"group":"Node.js","root":{"sidebarTitle":"Node.js","title":"Mixpanel SDKs: Node.js","href":"/docs/tracking-methods/sdks/nodejs"},"pages":[{"sidebarTitle":"Feature Flags (Node.js)","title":"Implement Feature Flags (Node.js)","href":"/docs/tracking-methods/sdks/nodejs/nodejs-flags"},{"title":"OpenFeature Provider (Node.js)","href":"/docs/tracking-methods/sdks/nodejs/nodejs-openfeature"}]},{"group":"Ruby","root":{"sidebarTitle":"Ruby","title":"Mixpanel SDKs: Ruby","href":"/docs/tracking-methods/sdks/ruby"},"pages":[{"sidebarTitle":"Feature Flags (Ruby)","title":"Implement Feature Flags (Ruby)","href":"/docs/tracking-methods/sdks/ruby/ruby-flags"},{"title":"OpenFeature Provider (Ruby)","href":"/docs/tracking-methods/sdks/ruby/ruby-openfeature"}]},{"sidebarTitle":"PHP","title":"Mixpanel SDKs: PHP","href":"/docs/tracking-methods/sdks/php"},{"group":"Go","root":{"sidebarTitle":"Go","title":"Mixpanel SDKs: Go","href":"/docs/tracking-methods/sdks/go"},"pages":[{"sidebarTitle":"Feature Flags (Go)","title":"Implement Feature Flags (Go)","href":"/docs/tracking-methods/sdks/go/go-flags"},{"title":"OpenFeature Provider (Go)","href":"/docs/tracking-methods/sdks/go/go-openfeature"}]},{"group":"Java","pages":[{"sidebarTitle":"Java","title":"Mixpanel SDKs: Java","href":"/docs/tracking-methods/sdks/java/index"},{"sidebarTitle":"Feature Flags (Java)","title":"Implement Feature Flags (Java)","href":"/docs/tracking-methods/sdks/java/java-flags"},{"title":"OpenFeature Provider (Java)","href":"/docs/tracking-methods/sdks/java/java-openfeature"}]},{"title":"Mixpanel-utils","url":"https://github.com/mixpanel/mixpanel-utils","href":"/links/mixpanel-utils"},{"title":"Open Source at Mixpanel","sidebarTitle":"Open Source","href":"/docs/tracking-methods/sdks/open-source"}]},{"title":"Autocapture","href":"/docs/tracking-methods/autocapture"},{"title":"First-Party Domains","href":"/docs/tracking-methods/first-party-domains"},{"group":"Warehouse Connectors","root":{"sidebarTitle":"Warehouse Connectors","title":"Warehouse Connectors","href":"/docs/tracking-methods/warehouse-connectors"},"pages":[{"sidebarTitle":"BigQuery","title":"BigQuery Warehouse Connector","href":"/docs/tracking-methods/warehouse-connectors/bigquery"},{"sidebarTitle":"Snowflake","title":"Snowflake Warehouse Connector","href":"/docs/tracking-methods/warehouse-connectors/snowflake"},{"sidebarTitle":"Databricks","title":"Databricks Warehouse Connector","href":"/docs/tracking-methods/warehouse-connectors/databricks"},{"sidebarTitle":"Redshift","title":"Redshift Warehouse Connector","href":"/docs/tracking-methods/warehouse-connectors/redshift"},{"sidebarTitle":"Postgres","title":"Postgres Warehouse Connector","href":"/docs/tracking-methods/warehouse-connectors/postgres"}]},{"group":"Integrations","root":{"sidebarTitle":"Integrations","title":"Tracking Integrations","href":"/docs/tracking-methods/integrations"},"pages":[{"title":"Ad Spend","href":"/docs/tracking-methods/integrations/ad-spend"},{"title":"Amazon S3","href":"/docs/tracking-methods/integrations/amazon-s3"},{"title":"Kafka","href":"/docs/tracking-methods/integrations/aws-kafka"},{"title":"CMS \u0026 E-Commerce","href":"/docs/tracking-methods/integrations/cms-ecommerce"},{"title":"Customer.io","url":"https://customer.io/docs/cdp/destinations/connections/mixpanel?utm_source=mixpanel\u0026utm_medium=partner","href":"/links/customerio"},{"title":"Freshpaint","href":"/docs/tracking-methods/integrations/freshpaint"},{"title":"Google Cloud Storage","href":"/docs/tracking-methods/integrations/google-cloud-storage"},{"title":"Google Pubsub","href":"/docs/tracking-methods/integrations/google-pubsub"},{"title":"Google Sheets","href":"/docs/tracking-methods/integrations/google-sheets"},{"title":"Google Tag Manager","href":"/docs/tracking-methods/integrations/google-tag-manager"},{"title":"Langfuse","href":"/docs/tracking-methods/integrations/langfuse"},{"title":"LaunchDarkly","href":"/docs/tracking-methods/integrations/launchdarkly"},{"title":"mParticle","href":"/docs/tracking-methods/integrations/mparticle"},{"title":"Next.js","href":"/docs/tracking-methods/integrations/nextjs"},{"title":"Mobile Attribution","href":"/docs/tracking-methods/integrations/mobile-attribution-tracking"},{"title":"Rudderstack","href":"/docs/tracking-methods/integrations/rudderstack"},{"title":"Segment","href":"/docs/tracking-methods/integrations/segment"},{"title":"Shopify","href":"/docs/tracking-methods/integrations/shopify"},{"title":"Snowplow","href":"/docs/tracking-methods/integrations/snowplow"},{"title":"Stripe","href":"/docs/tracking-methods/integrations/stripe"},{"title":"Tealium","href":"/docs/tracking-methods/integrations/tealium"},{"title":"Vendo","href":"/docs/tracking-methods/integrations/vendo"}]},{"group":"ID Management","root":{"sidebarTitle":"ID Management","title":"Identity Management Overview","href":"/docs/tracking-methods/id-management"},"pages":[{"sidebarTitle":"Identifying Users","title":"Identifying Users (Simplified)","href":"/docs/tracking-methods/id-management/identifying-users-simplified"},{"title":"Migrating to Simplified ID Merge","href":"/docs/tracking-methods/id-management/migrating-to-simplified-id-merge-system"}]},{"title":"Mixpanel Data Inspector","href":"/docs/tracking-methods/data-inspector"}]},{"group":"Data Structure","root":{"title":"Data Structure","href":"/docs/data-structure"},"pages":[{"sidebarTitle":"Data Model","title":"Data Model","href":"/docs/data-structure/concepts"},{"sidebarTitle":"Events \u0026 Properties","title":"Events","href":"/docs/data-structure/events-and-properties"},{"sidebarTitle":"User Profiles","title":"User Profile","href":"/docs/data-structure/user-profiles"},{"group":"Group Analytics","root":{"sidebarTitle":"Group Analytics","title":"Group Analytics","href":"/docs/data-structure/group-analytics"},"pages":[{"sidebarTitle":"Implementation","title":"Group Analytics Implementation Guide","href":"/docs/data-structure/group-analytics/group-analytics-implementation"},{"sidebarTitle":"FAQ","title":"Group Analytics FAQ","href":"/docs/data-structure/group-analytics/group-analytics-faq"}]},{"sidebarTitle":"Lookup Tables","title":"Lookup Tables","href":"/docs/data-structure/lookup-tables"},{"group":"Property Reference","root":{"title":"Property Reference","href":"/docs/data-structure/property-reference"},"pages":[{"sidebarTitle":"Types of Properties","title":"Types of Properties in Mixpanel","href":"/docs/data-structure/property-reference/properties"},{"title":"Supported Properties Data Type","href":"/docs/data-structure/property-reference/data-type"},{"sidebarTitle":"Default Properties","title":"Default Properties","href":"/docs/data-structure/property-reference/default-properties"},{"sidebarTitle":"Reserved Properties","title":"Reserved Properties","href":"/docs/data-structure/property-reference/reserved-properties"}]}]},{"group":"Migration","root":{"title":"Migrating to Mixpanel","href":"/docs/migration"},"pages":[{"title":"Migrating from Adobe Analytics","href":"/docs/migration/adobe-analytics"},{"title":"Migrating from Amplitude","href":"/docs/migration/amplitude"},{"sidebarTitle":"Google Analytics","title":"Migrating from Google Analytics","href":"/docs/migration/google-analytics"}]},{"group":"Best Practices","root":{"sidebarTitle":"Best Practices","title":"Tracking Best Practices","href":"/docs/tracking-best-practices"},"pages":[{"sidebarTitle":"Bot \u0026 Unwanted Traffic","title":"Block Unwanted Traffic","href":"/docs/tracking-best-practices/bot-traffic"},{"title":"Debugging","sidebarTitle":"Debugging","href":"/docs/tracking-best-practices/debugging"},{"title":"Developer Environments","href":"/docs/tracking-best-practices/developer-environments"},{"sidebarTitle":"Geolocation","title":"Geolocation","href":"/docs/tracking-best-practices/geolocation"},{"title":"Hot Shard Limits","href":"/docs/tracking-best-practices/hot-shard-limits"},{"title":"Server-Side Best Practices","href":"/docs/tracking-best-practices/server-side-best-practices"},{"sidebarTitle":"Tracking Plan","title":"Create A Tracking Plan","href":"/docs/tracking-best-practices/tracking-plan"},{"sidebarTitle":"Traffic Attribution","title":"Traffic Attribution","href":"/docs/tracking-best-practices/traffic-attribution"},{"title":"Warehouse Best Practices","hidden":false,"href":"/docs/tracking-best-practices/warehouse-best-practices"}]}]},{"group":"ANALYSIS","icon":"https://mintlify.s3.us-west-1.amazonaws.com/mixpanel-edb78807/icons/analysis.svg","pages":[{"group":"Reports","root":{"title":"Reports Overview","href":"/docs/reports"},"pages":[{"title":"Insights","sidebarTitle":"Insights","href":"/docs/reports/insights"},{"group":"Funnels","root":{"sidebarTitle":"Funnels","title":"Funnels","href":"/docs/reports/funnels"},"pages":[{"title":"Funnels","sidebarTitle":"Overview","href":"/docs/reports/funnels/funnels-overview"},{"title":"Funnels Quickstart","sidebarTitle":"Quickstart","href":"/docs/reports/funnels/funnels-quickstart"},{"title":"Funnels Advanced Concepts","sidebarTitle":"Advanced","href":"/docs/reports/funnels/funnels-advanced"},{"title":"Funnels FAQ","sidebarTitle":"FAQ","href":"/docs/reports/funnels/funnels-faq"}]},{"title":"Retention","sidebarTitle":"Retention","href":"/docs/reports/retention"},{"title":"Flows","sidebarTitle":"Flows","href":"/docs/reports/flows"},{"group":"Apps","root":{"sidebarTitle":"Apps","title":"Other Apps","href":"/docs/reports/apps"},"pages":[{"title":"Impact","sidebarTitle":"Impact","href":"/docs/reports/apps/impact"},{"title":"Signal","sidebarTitle":"Signal","href":"/docs/reports/apps/signal"},{"title":"JQL","sidebarTitle":"JQL","href":"/docs/reports/apps/jql"}]}]},{"group":"Boards","root":{"title":"Boards","href":"/docs/boards"},"pages":[{"title":"Sharing ","href":"/docs/boards/sharing-and-permission"},{"sidebarTitle":"Templates","title":"Templates","href":"/docs/boards/templates"},{"title":"Boards on Boards","sidebarTitle":"Boards on Boards","href":"/docs/boards/boards-on-boards"},{"sidebarTitle":"Public Boards","title":"Public Boards","href":"/docs/boards/public-boards"},{"sidebarTitle":"Move Boards","title":"Move Boards","href":"/docs/boards/move-boards"}]},{"group":"Feature Flags","root":{"title":"Feature Flags","sidebarTitle":"Feature Flags","href":"/docs/featureflags"},"pages":[{"sidebarTitle":"Runtime Events","title":"Runtime Events","href":"/docs/featureflags/runtime-events"}]},{"group":"Experiments","root":{"title":"Experiments","sidebarTitle":"Experiments","href":"/docs/experiments"},"pages":[{"sidebarTitle":"Exposure Event Metering","title":"Exposure Events and MEU Metering","href":"/docs/experiments/exposure-event-metering"},{"title":"Web Experiments","sidebarTitle":"Web Experiments","href":"/docs/experiments/no-code-experiments"}]},{"title":"Metric Tree","href":"/docs/metric_tree"},{"group":"Users","root":{"title":"Users","href":"/docs/users"},"pages":[{"sidebarTitle":"Cohorts","title":"Cohorts","href":"/docs/users/cohorts"}]},{"group":"Session Replay","root":{"sidebarTitle":"Session Replay","title":"Session Replay","href":"/docs/session-replay"},"pages":[{"title":"Session Replay Privacy Controls","href":"/docs/session-replay/session-replay-privacy-controls"},{"sidebarTitle":"Heatmaps","title":"Heatmaps for Web","href":"/docs/session-replay/heatmaps"}]},{"group":"Features","root":{"title":"Features","href":"/docs/features"},"pages":[{"title":"Alerts","sidebarTitle":"Alerts","href":"/docs/features/alerts"},{"title":"Annotations","href":"/docs/features/annotations"},{"title":"Embeds","sidebarTitle":"Embeds","href":"/docs/features/embeds"},{"sidebarTitle":"Chart Customization","title":"Chart Customization","href":"/docs/features/chart-customization"},{"title":"Comments","href":"/docs/features/comments"},{"title":"Custom Buckets","href":"/docs/features/custom-buckets"},{"sidebarTitle":"Custom Events","title":"Custom Events","href":"/docs/features/custom-events"},{"title":"Custom Properties","sidebarTitle":"Custom Properties","href":"/docs/features/custom-properties"},{"title":"Computed Properties","href":"/docs/features/computed-properties"},{"sidebarTitle":"Revenue Analytics","title":"Building Revenue Metrics","href":"/docs/features/revenue-analytics"},{"title":"Saved Metrics and Behaviors","sidebarTitle":"Saved Metrics \u0026 Behaviors","href":"/docs/features/saved-metrics-and-behaviors"},{"sidebarTitle":"Sessions","title":"Sessions","href":"/docs/features/sessions"},{"title":"Slack Integration","href":"/docs/features/slack-integration"},{"title":"Warehouse Metrics","sidebarTitle":"Warehouse Metrics","href":"/docs/features/warehouse-metrics"}]},{"title":"Agent Intelligence","tag":"BETA","href":"/docs/agent-intelligence"}]},{"group":"MIXPANEL AI","icon":"https://mintlify.s3.us-west-1.amazonaws.com/mixpanel-edb78807/icons/ai.svg","pages":[{"title":"Mixpanel Agent","href":"/docs/mixpanel-agent"},{"group":"MCP Connections","root":{"title":"MCP Connections","href":"/docs/mcp-connections"},"tag":"BETA","pages":[{"title":"Connect GitHub","sidebarTitle":"GitHub","href":"/docs/mcp-connections/github"},{"title":"Connect Jira","sidebarTitle":"Jira","href":"/docs/mcp-connections/jira"}]},{"title":"Agentic Automations","href":"/docs/agentic-automations"},{"title":"Root Cause Analysis","sidebarTitle":"Root Cause Analysis","href":"/docs/root-cause-analysis"},{"title":"Mixpanel MCP Server","sidebarTitle":"MCP Server","href":"/docs/mcp"},{"title":"Mixpanel Headless","href":"/docs/mixpanel-headless"},{"title":"Business Context","sidebarTitle":"Business Context","href":"/docs/business-context"},{"title":"Docs for AI Agents","sidebarTitle":"Docs for Agents","href":"/docs/docs-for-ai-agents"}]},{"group":"ADMIN","icon":"https://mintlify.s3.us-west-1.amazonaws.com/mixpanel-edb78807/icons/admin.svg","pages":[{"group":"Orgs \u0026 Projects","root":{"title":"Mixpanel Administrative System","href":"/docs/orgs-and-projects"},"pages":[{"title":"Organizations","href":"/docs/orgs-and-projects/organizations"},{"title":"Managing Projects","href":"/docs/orgs-and-projects/managing-projects"},{"title":"Roles \u0026 Permissions","href":"/docs/orgs-and-projects/roles-and-permissions"}]},{"group":"Data Governance","root":{"title":"Data Governance","href":"/docs/data-governance"},"pages":[{"sidebarTitle":"Lexicon","title":"Lexicon","href":"/docs/data-governance/lexicon"},{"sidebarTitle":"Data Views \u0026 Classification","title":"Data Views \u0026 Classification","href":"/docs/data-governance/data-views-and-classification"},{"sidebarTitle":"Data Standards","title":"Data Standards","href":"/docs/data-governance/data-standards"},{"sidebarTitle":"Event Approval","title":"Event Approval","href":"/docs/data-governance/event-approval"},{"sidebarTitle":"Data Volume Monitoring","title":"Data Volume Monitoring","href":"/docs/data-governance/data-volume-monitoring"},{"title":"Data Clean-Up","href":"/docs/data-governance/data-clean-up"},{"title":"AI-Powered Data Governance","href":"/docs/data-governance/ai-powered-data-governance"}]},{"group":"Access Security","root":{"title":"Access Security","href":"/docs/access-security"},"pages":[{"title":"Login Methods","href":"/docs/access-security/login-methods"},{"title":"Two-Factor Authentication","href":"/docs/access-security/two-factor-authentication"},{"group":"Single Sign-On","root":{"sidebarTitle":"Single Sign-On","title":"Single Sign-On","href":"/docs/access-security/single-sign-on"},"pages":[{"title":"Setup Azure SSO","href":"/docs/access-security/single-sign-on/azure"},{"title":"Setup JumpCloud SSO","href":"/docs/access-security/single-sign-on/jumpcloud"},{"title":"Setup Okta SSO","href":"/docs/access-security/single-sign-on/okta"},{"sidebarTitle":"Shared SSO","title":"Shared SSO","href":"/docs/access-security/single-sign-on/shared-sso"},{"title":"Setup Google Workspace SSO","href":"/docs/access-security/single-sign-on/google"}]},{"group":"Audit Log","root":{"title":"Audit Log","href":"/docs/access-security/audit-log"},"pages":[{"title":"Audit Log Reference","href":"/docs/access-security/audit-log-reference"},{"title":"Audit Log Streaming","href":"/docs/access-security/audit-log-streaming"}]}]},{"group":"Privacy","root":{"title":"Privacy Overview","href":"/docs/privacy"},"pages":[{"sidebarTitle":"Protecting User Data","title":"Protecting User Data","href":"/docs/privacy/protecting-user-data"},{"title":"Legal Hub","url":"https://mixpanel.com/legal/privacy-policy","href":"/links/legal-hub"},{"title":"GDPR Compliance","href":"/docs/privacy/gdpr-compliance"},{"title":"EU Residency","href":"/docs/privacy/eu-residency"},{"sidebarTitle":"India Residency","title":"India Data Residency","href":"/docs/privacy/in-residency"},{"title":"End User Data Management","sidebarTitle":"End User Data Management","href":"/docs/privacy/end-user-data-management"},{"title":"Compliance Status Callbacks","sidebarTitle":"Status Callbacks","href":"/docs/privacy/compliance-status-callbacks"}]},{"group":"Pricing","root":{"title":"Pricing","href":"/docs/pricing"},"pages":[{"title":"MTU billing","href":"/docs/pricing/legacy-mtu-billing"},{"title":"Startup Program","href":"/docs/pricing/startup-program"}]}]},{"group":"DATA OUT","icon":"https://mintlify.s3.us-west-1.amazonaws.com/mixpanel-edb78807/icons/data-out.svg","pages":[{"group":"Export Methods","root":{"sidebarTitle":"Export Methods","title":"Export Methods","href":"/docs/export-methods"},"pages":[{"title":"Export All Your Data","href":"/docs/export-methods/export-all-data"}]},{"group":"Real-Time Event Streams","root":{"title":"Real-Time Event Streams","href":"/docs/real-time-event-streams"},"tag":"BETA","pages":[{"title":"Real-Time Event Streams Overview","sidebarTitle":"Overview","href":"/docs/real-time-event-streams/overview"},{"title":"Set Up a Webhook Sync","sidebarTitle":"Set Up a Sync","href":"/docs/real-time-event-streams/setup"},{"title":"Delivery and Reliability","sidebarTitle":"Delivery \u0026 Reliability","href":"/docs/real-time-event-streams/delivery-and-reliability"},{"title":"States and Monitoring","sidebarTitle":"States \u0026 Monitoring","href":"/docs/real-time-event-streams/states-and-monitoring"}]},{"group":"Data Pipelines","root":{"sidebarTitle":"Data Pipelines","title":"Data Pipelines Overview","href":"/docs/data-pipelines"},"pages":[{"title":"JSON Pipelines","href":"/docs/data-pipelines/json-pipelines"},{"title":"Common SQL Queries","href":"/docs/data-pipelines/common-sql-queries"},{"group":"Integrations","root":{"sidebarTitle":"Integrations","title":"Data Pipeline Integrations","href":"/docs/data-pipelines/integrations"},"pages":[{"title":"AWS S3","href":"/docs/data-pipelines/integrations/aws-s3"},{"title":"Azure Blob Storage","href":"/docs/data-pipelines/integrations/azure-blob-storage"},{"title":"BigQuery","href":"/docs/data-pipelines/integrations/bigquery"},{"title":"Databricks","href":"/docs/data-pipelines/integrations/databricks"},{"title":"Google Cloud Storage","href":"/docs/data-pipelines/integrations/gcp-gcs"},{"sidebarTitle":"Redshift Spectrum","title":"AWS Redshift Spectrum","href":"/docs/data-pipelines/integrations/redshift-spectrum"},{"title":"Snowflake","href":"/docs/data-pipelines/integrations/snowflake"}]},{"group":"Older Version","root":{"sidebarTitle":"Older Version","title":"Data Pipelines","href":"/docs/data-pipelines/old-pipelines"},"pages":[{"title":"Schematized Export Pipeline","href":"/docs/data-pipelines/old-pipelines/schematized-export-pipeline"},{"group":"Integrations","root":{"sidebarTitle":"Integrations","title":"Data Pipeline Integrations","href":"/docs/data-pipelines/old-pipelines/integrations"},"pages":[{"title":"Raw AWS Pipeline","href":"/docs/data-pipelines/old-pipelines/integrations/raw-aws-pipeline"},{"title":"Raw Azure Pipeline","href":"/docs/data-pipelines/old-pipelines/integrations/raw-azure-pipeline"},{"title":"Raw GCS Pipeline","href":"/docs/data-pipelines/old-pipelines/integrations/raw-gcs-pipeline"},{"title":"Schematized BigQuery Pipeline","href":"/docs/data-pipelines/old-pipelines/integrations/schematized-bigquery-pipeline"},{"title":"Schematized AWS Pipeline","href":"/docs/data-pipelines/old-pipelines/integrations/schematized-aws-pipeline"},{"title":"Schematized Azure Pipeline","href":"/docs/data-pipelines/old-pipelines/integrations/schematized-azure-pipeline"},{"title":"Schematized GCS Pipeline","href":"/docs/data-pipelines/old-pipelines/integrations/schematized-gcs-pipeline"},{"title":"Schematized Snowflake Pipeline","href":"/docs/data-pipelines/old-pipelines/integrations/schematized-snowflake-pipeline"}]}]}]},{"group":"Cohort Sync","root":{"title":"Cohort Sync","href":"/docs/cohort-sync"},"pages":[{"title":"Syncing cohorts to a custom webhook","sidebarTitle":"Webhooks","href":"/docs/cohort-sync/webhooks"},{"title":"Partners: Build a Cohort Sync Integration with Mixpanel","href":"/docs/cohort-sync/build-an-integration"},{"group":"Destinations","root":{"sidebarTitle":"Destinations","title":"Destinations","href":"/docs/cohort-sync/integrations"},"pages":[{"title":"AB Tasty","href":"/docs/cohort-sync/integrations/abtasty"},{"title":"Airship","href":"/docs/cohort-sync/integrations/airship"},{"title":"Appcues","href":"/docs/cohort-sync/integrations/appcues"},{"title":"Apptimize","href":"/docs/cohort-sync/integrations/apptimize"},{"title":"Braze","href":"/docs/cohort-sync/integrations/braze"},{"title":"Chameleon","href":"/docs/cohort-sync/integrations/chameleon"},{"title":"CleverTap","href":"/docs/cohort-sync/integrations/clevertap"},{"title":"Facebook Ads","href":"/docs/cohort-sync/integrations/facebook-ads"},{"title":"Google Ads","href":"/docs/cohort-sync/integrations/google-ads"},{"title":"Insider","href":"/docs/cohort-sync/integrations/insider"},{"title":"Intercom","url":"https://www.intercom.com/help/en/articles/299-import-your-mixpanel-contacts","href":"/links/intercom"},{"title":"Iterable","href":"/docs/cohort-sync/integrations/iterable"},{"title":"Kameleoon","href":"/docs/cohort-sync/integrations/kameleoon"},{"title":"Leanplum","href":"/docs/cohort-sync/integrations/leanplum"},{"title":"Mailchimp","href":"/docs/cohort-sync/integrations/mailchimp"},{"title":"Marketo","href":"/docs/cohort-sync/integrations/marketo"},{"title":"Moengage","sidebarTitle":"MoEngage","href":"/docs/cohort-sync/integrations/moengage"},{"title":"mParticle","href":"/docs/cohort-sync/integrations/mparticle"},{"title":"OneSignal","href":"/docs/cohort-sync/integrations/onesignal"},{"title":"Salesforce Marketing Cloud","href":"/docs/cohort-sync/integrations/salesforce-marketing-cloud"},{"title":"Segment","href":"/docs/cohort-sync/integrations/segment"},{"title":"Taplytics","href":"/docs/cohort-sync/integrations/taplytics"},{"title":"VWO","href":"/docs/cohort-sync/integrations/vwo"},{"title":"Webengage","sidebarTitle":"WebEngage","href":"/docs/cohort-sync/integrations/webengage"},{"title":"Wingify","href":"/docs/cohort-sync/integrations/wingify"},{"title":"Xtremepush","href":"/docs/cohort-sync/integrations/xtremepush"}]}]}]},{"group":"SUPPORT","icon":"https://mintlify.s3.us-west-1.amazonaws.com/mixpanel-edb78807/icons/support.svg","pages":[{"group":"Community","root":{"title":"Community","href":"/docs/community"},"pages":[{"title":"Join Slack","url":"https://www.mixpanel.com/community-slack","href":"/links/slack"},{"title":"Guidelines","href":"/docs/community/guidelines"}]},{"title":"Get Help","url":"https://mixpanel.com/contact-us/support/","href":"/links/get-help"},{"title":"Response Times","href":"/docs/response-times"},{"title":"Hire an Expert","url":"https://mixpanel.com/partners/experts/matchmaking","href":"/links/hire-an-expert"}]},{"group":"Style guide","hidden":true,"pages":[{"title":"Docs style guide","href":"/docs/docs-style-guide"},{"title":"Voice, tone, and audience","href":"/docs/voice-tone"},{"title":"Terminology and product names","href":"/docs/terminology"},{"title":"Grammar, punctuation, and formatting","href":"/docs/grammar-punctuation"},{"title":"Style guide exceptions","href":"/docs/style-guide-exceptions"},{"title":"Code and examples","href":"/docs/code-examples"},{"title":"API reference","href":"/docs/API-reference"},{"title":"Images, alt text, and video","href":"/docs/images-video"},{"title":"Accessibility and inclusive language","href":"/docs/accessibility"},{"title":"Writing for agents","href":"/docs/writing-for-agents"}]}]},{"tab":"Guides","pages":[{"title":"Guides","href":"/guides/mixpanel-introduction"}]},{"tab":"Changelogs","pages":[{"title":"Changelogs","href":"/changelogs"}]},{"tab":"FAQs","pages":[{"title":"FAQs","href":"/troubleshooting/faqs"}]},{"tab":"API Docs","pages":[{"title":"API Docs","href":"/reference/overview"}]}]},"basePath":"","title":"Install Mixpanel - Mixpanel","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-DXXFP6nH.js","DynamicMarkdown-B54_zNBF.js","zoom-image-lightbox-BG6oD64b.js","lightbox-handle-r17bVUz3.js"]}