plausible / plausible-tracker

Frontend library to interact with Plausible Analytics
https://github.com/plausible/plausible-tracker
MIT License
214 stars 46 forks source link

Feature Request: option to turn off the `Ignoring event because website is running locally` warning #24

Open madebyfabian opened 2 years ago

madebyfabian commented 2 years ago

Hello there, I would love to see an option which allows you to disable the warnings for localhost, like Ignoring event because website is running locally. Since you get them on every page load and everytime the router takes you to a page. So the feature itsself is great, but the message can be super distracting.

Bildschirmfoto 2022-02-18 um 16 17 46

Context

Would like to hide this message since I know that plausible will not track anything due to the fact I am on localhost

Alternatives

You can alternatively right-click the name of the file the warning is coming from and select hide messages from request.js. This though hides every message that comes from this file and is not a cross-browser solution.

Barbapapazes commented 7 months ago

Hello,

Since this package have not been update for two years, I made a fork.

I rewrite the tracker to be more modular and I fix this issue.

https://github.com/Barbapapazes/plausible-tracker