vercel / analytics

Privacy-friendly, real-time traffic insights
https://vercel.com/analytics
Mozilla Public License 2.0
416 stars 24 forks source link

Vercel Analytics being blocked by AdBlockers #137

Closed bmarianome closed 4 months ago

bmarianome commented 4 months ago

I was using plausible with the next-plausible package and, proxying the request, it was able to track users with AdBlock or any other ad blocker

Since vercel/analytics sends the request to /_vercel/insights/ it gets blocked by the adblockers or Brave for example

Is there a way to bypass the adblockers with this package?

Already tried with the rewrites in the vercel.json file

{
  "rewrites": [
    {
      "source": "/_vercel/insights/:slug",
      "destination": "/_vercel/data/:slug"
    }
  ]
}
tobiaslins commented 4 months ago

It's not recommended but take a look here: https://github.com/vercel/analytics/issues/102#issuecomment-1898654030

Hope it helps! :)