Proxying Proxima through Netlify
If you're considering an alternative to Netlify Analytics, we've got you covered. Take a look at our detailed comparison.
You can also check the source code for this integration here
Using Netlify Rewrites to proxy your Proxima analytics requests is a simple and cost-effective way to improve the privacy and compliance of your website. Setting up a proxy with Netlify requires no technical expertise or prior knowledge, and all you need is a free Netlify account.
To set up a proxy for your Proxima Analytics script using Netlify Rewrites:
- Create a
`_redirects`
file at the root directory of your site, if you don't already have one. - Choose a redirect alias for Proxima, such as
`/prx`
. Avoid using aliases like "/analytics" or "/stats", as they may be blocked by some ad blockers. - Add the following line to your _redirects file:
/prxm/* https://buzz.proxima.so/:splat 200
- Update your deployed script to use the alias you picked in step 2, for example:
<script
defer
data-url="/prx"
src="/prx/script.js"
data-site="XXXX"></script>
For more information about Netlify Rewrites, visit the official documentation.