What do you recommend for proxy domain names? Is it required to have mixpanel* for example in subdomains?
Hi Marvin M., 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
Based on the information provided in the knowledge sources, there are no specific requirements or recommendations for proxy domain names when setting up a proxy for Mixpanel tracking. The documentation does not mention any need to include "mixpanel" or any other specific term in the subdomain names.
When setting up a proxy for Mixpanel tracking, you have the flexibility to choose your own domain name. The key point is to replace <YOUR_PROXY_DOMAIN> with your actual proxy server's domain in the configuration.
For example, in the JavaScript SDK configuration, you would use:
```
mixpanel.init('YOUR_PROJECT_TOKEN', { api_host: 'https://<YOUR_PROXY_DOMAIN> ' // set the proxy server as the api_host });
LBKS[Mixpanel JavaScript SDK: Tracking Via Proxy](https://docs.mixpanel.com/docs/tracking-methods/sdks/javascript#tracking-via-proxy)
The same approach applies to other SDKs like React Native and Flutter, where you simply replace `<YOUR_PROXY_DOMAIN> ` with your actual proxy server domain.
The main goal of using a proxy is to route events through your own domain to reduce the likelihood of ad-blockers impacting your tracking. The specific name of the proxy domain is not crucial as long as it's properly set up to redirect calls to Mixpanel.
[Mixpanel Blog: Guide to Choosing Your Data Architecture](https://mixpanel.com/blog/guide-to-choosing-your-data-architecture/)
Remember, setting up a proxy requires additional infrastructure, and your team will be responsible for building and maintaining the proxy server.
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.
