Can I migrate from US servers to EU servers without loosing data?
Hi Mariusz B., Please stand by as I search the Mixpanel knowledge base for an AI-powered answer. I normally take about 15 seconds or so. In case AI cannot answer your question, feel free to reach out to Mixpanel support at mixpanel.com/get-support. If you have follow-up questions for this thread, please tag me again with your question: @kapa.ai <follow-up question> đź‘‹
Feel free to ask a follow-up question once I've answered by mentioning me with @kapa.ai
No, you cannot migrate an existing Mixpanel project from US servers to EU servers without losing data. If the wrong Data Residency location was chosen before implementation, you will need to create a new project with the correct data storage option and manually migrate your existing data. Mixpanel cannot assist with migrating an existing project with the wrong residency location. This means that data already stored in the US cannot be automatically transferred to the EU servers by Mixpanel, and you would need to handle any data migration yourself if needed EU Residency.
kapa.ai is still learning and improving, please let me know how I did by reacting below.
ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.
how to handle the migration by myself ? kapa.ai
Let me check the knowledge base for you again. One moment! 📚
To handle a migration from US to EU servers in Mixpanel by yourself, you need to: 1. Create a New Project in the EU - Set up a new Mixpanel project and select the “EU Data Residency” option during creation. This ensures your new project will store data in the EU. - You cannot change the residency of an existing project; a new project is required EU Residency.2. Export Data from the US Project - Use the Raw Data Export API to export your event data from the US project. - Example export command:
--url '[https://data.mixpanel.com/api/2.0/export?project_id=<YOUR_PROJECT_ID](https://data.mixpanel.com/api/2.0/export?project_id=<YOUR_PROJECT_ID) &from_date=<FROM_DATE> &to_date=<TO_DATE> >' \
--header 'accept: text/plain' \
--header 'authorization: Basic ' # set up service account auth
```LBKS - Export user profiles if needed, using the Mixpanel API or scripts [(see example)](https://docs.mixpanel.com/guides/playbooks/project-migration#optional-step-6-export-users).LBKS3. **Transform Data as Needed**
- Adjust timezones to UTC if necessary, and ensure your data matches the schema of the new project.
- Update identifiers and properties as needed to align with your new project’s requirements [Merge Mixpanel Projects](https://docs.mixpanel.com/docs/orgs-and-projects/managing-projects#merge-mixpanel-projects).LBKS4. **Import Data into the EU Project**
- Use the [Import API](https://developer.mixpanel.com/reference/import-events) or Mixpanel’s data warehouse connectors to import your historical data into the new EU project.
- Make sure to use the EU endpoints (e.g., `[api-eu.mixpanel.com](http://api-eu.mixpanel.com)`) for all API calls and SDK configurations [EU Residency](https://docs.mixpanel.com/docs/privacy/eu-residency).LBKS5. **Update SDKs and Integrations**
- Reconfigure all Mixpanel SDKs and integrations to send new (live) data to the EU project and use the EU endpoints [EU Residency](https://docs.mixpanel.com/docs/privacy/eu-residency).LBKS6. **Migrate Saved Entities**
- Manually recreate or move saved reports, boards, custom events, cohorts, and lexicon metadata to the new project. Some entities (like boards) can be moved using Mixpanel’s “Move Board” feature, but others require manual recreation [Step 11: Migrate Saved Entities](https://docs.mixpanel.com/guides/playbooks/project-migration#step-11-migrate-saved-entities).LBKS**Note:**
Mixpanel does not provide automated tools for cross-region migration. All data export, transformation, and import must be managed by you. Be sure to test the migration process with a subset of data before performing a full migration to minimize risk and ensure data integrity [EU Residency](https://docs.mixpanel.com/docs/privacy/eu-residency).
kapa.ai is still learning and improving, please let me know how I did by reacting below.
ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.
