diff --git a/README.md b/README.md index 65b8c674..77e796c0 100644 --- a/README.md +++ b/README.md @@ -111,6 +111,17 @@ mixpanel.init(); Once you've called this method once, you can access `mixpanel` throughout the rest of your application. +> [!IMPORTANT] +> If your project uses [EU](https://docs.mixpanel.com/docs/privacy/eu-residency) or [India](https://docs.mixpanel.com/docs/privacy/in-residency) data residency, pass your region's server URL as the third argument to `init()` (or call `setServerURL()` later). Mixpanel won't ingest events sent to the wrong region. Use one of: +> +> ```js +> mixpanel.init(false, {}, "https://api-eu.mixpanel.com"); // EU +> ``` +> +> ```js +> mixpanel.init(false, {}, "https://api-in.mixpanel.com"); // India +> ``` + ### 3. Send Data Let's get started by sending event data. You can send an event from anywhere in your application. Better understand user behavior by storing details that are specific to the event (properties). After initializing the library, Mixpanel will automatically track some properties by default. [learn more](https://help.mixpanel.com/hc/en-us/articles/115004613766-Default-Properties-Collected-by-Mixpanel)