docs: show EU and India hosts next to every SDK init snippet - #293
Open
tylergoerzen-mxp wants to merge 3 commits into
Open
tylergoerzen-mxp wants to merge 3 commits into
tylergoerzen-mxp wants to merge 3 commits into
Conversation
Add the regional host to the install quickstart (one EU/India code group per SDK tab) and rewrite the residency warning on each SDK page so it names the option and both hosts and links to the in-page examples. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tylergoerzen-mxp
requested review from
briansieb,
julianneb-mixpanel and
tiffanyqi
October 2, 2026 21:35
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
The Objective-C EU and India examples declared a local `mixpanel` and then set `self.mixpanel.serverURL`, which doesn't compile outside a class with that property. Use the local variable. The Unity and Node.js India sections said "EU servers" while setting the India host. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
…S projects do The EU and India JavaScript examples replaced the quickstart config with api_host alone, so anyone copying them lost page views, Session Replay and heatmaps. They now keep the full config and add api_host. Each SDK tab also says US projects use the default host and need no change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Data residency is the second most common reason AI coding agents give for picking a self-hostable competitor in the AEO tracker. It comes up in 20 of the 34 coding explanations that cite open source. Agents also hedge on whether Mixpanel supports residency at all.
Our docs make that easy to miss. The install page has no regional host line. The JS SDK's EU section sits near the bottom of a long page, under Privacy-Friendly Tracking. Every SDK page already had a warning near init, but it didn't name the setting or the host, and it linked to the privacy section instead of the example.
What changed
Install Mixpanel (
docs/quickstart/install-mixpanel.mdx)api_host: "https://api-eu.mixpanel.com"/api-inConsumer(api_host="api-eu.mixpanel.com")/api-in"host" => "api-eu.mixpanel.com"/api-inhost: "api-eu.mixpanel.com"/api-inmixpanel.EuResidency()/mixpanel.InResidency()Mixpanel::Consumerwith/track,/engage,/groupson the regional hostMixpanelAPIconstructor with/track,/engage,/groupson the regional hostserverURLas the thirdinit()argumentserverURL:inMixpanel.init()mixpanel.serverURL = @"https://api-eu.mixpanel.com"serverURLinMixpanelOptionsserverURLonMixpanelOptions.Builder, passed togetInstance()api-eu/api-inSDK pages (13 files under
docs/tracking-methods/sdks/)<Warning>next to init on JavaScript, iOS, Swift, Android, React Native, Flutter, Unity, Python, Java, Ruby, Node.js, Go, and PHP. Each now names the SDK's setting, gives both hosts, and links to that page's own EU and India sections. No sections were moved or added.Skipped
None. Every SDK in the quickstart already documented its EU and India setting on its own page.
Also fixed two existing bugs on these pages: the Objective-C EU and India examples declared a local
mixpaneland then setself.mixpanel.serverURL(now uses the local variable), and the Unity and Node.js India sections said "EU servers" (now "India servers").How values were verified
api_hostin mixpanel-jssrc/mixpanel-core.js,serverURLin mixpanel-iphoneMixpanel.h, mixpanel-swiftMixpanelOptions.swift, mixpanel-androidMixpanelOptions.java(plus thegetInstance(context, token, trackAutomaticEvents, options)overload), the mixpanel-react-nativeinit()signature, the mixpanel-flutter README,APIHostAddressin mixpanel-unityMixpanelSettings.cs,Consumer(api_host=...)in mixpanel-python,Consumer.newendpoints in mixpanel-ruby,hostin mixpanel-node and mixpanel-php,EuResidency()/InResidency()in mixpanel-go, and the 3-argumentMixpanelAPIconstructor in mixpanel-java.Checks run locally:
npx mint validate: build validation passednpx mint broken-links: no broken links foundscripts/check_frontmatter.py,check_code_samples.py,check_links.py,check_redirects.py: all passeddocs.jsonnot touchedLinear
TOF-687
🤖 Generated with Claude Code