Hi Team, has anyone setup proxy servers to redirect Mixpanel apis? I want to mitigate the issues due to ad blockers and its impact on client side tracking. 🎫
Hi Madhumitha- Julianne from Mixpanel Support here!
The docs have information on setting up tracking via a proxy, as an example with the JavaScript SDK here. Since you're worried about ad blockers, you could also consider server-side tracking. The Choosing the Right Method doc has more information about each method.
Hi Madhumitha,
Mikey here from Mixpanel support filling in for Julianne while they are out of the office. To get started with a proxy you'll want to set up a server on your end that can host the proxy. We have a guide for getting up and running with one here. From there its a matter of updating the code in your FE implementation to send data to the proxy instead of directly to Mixpanel. The docs Julianne shared here can help with that side of things.
Hopefully that helps! Please let us know if any other questions or concerns come up!
Best,
Mikey
Unfortunately, the specifics of the proxy setup can vary depending on your existing AWS configuration and the specifics of your website. In general, you would want to follow the principles of the doc by setting up a server through AWS Cloudfront and then sending the data through there. Apologies for not being able to offer more specific guidance here.