plausible / plausible-tracker

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

Omit localhost tracking warning #39

Open aspnetde opened 2 years ago

aspnetde commented 2 years ago

I would like to get rid of the console warning which is provided when tracking on localhost is disabled (*). Ideally it should be possible to disable it through the options. (Or the other way around, only allow it to enable it on purpose but disable it by default – but that would be a breaking change.)

Would a PR be appreciated here?

Thanks Thomas

(*)

https://github.com/plausible/plausible-tracker/blob/294405cafc934ee666c1a295a5b2fd8737993ce2/src/lib/request.ts#L45

chulinguy commented 2 years ago

I would love this as well, the [Plausible] Ignoring event because website is running locally warning is littered all over when I run our test suite on my machine

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

aspnetde commented 7 months ago

Good to know @Barbapapazes, I will give your fork a shot soon.