NOTE: I use Mixpanel's GTM template, but it doesn't work with the proxy approach because the required library is not proxied by default in Mixpanel's original Nginx Proxy for Mixpanel project. So I had to create this fork and simply add the lines to the nginx.conf file.
Click on a button below to deploy to your favorite cloud provider:
Once you've setup your custom domain, go to Mixpanel template and replace the current library URL in two (2) places:
1- Replace library URL in Mixpanel's template code:
2- Replace library URL in Mixpanel's template permissions tab: