plausible-tracker icon indicating copy to clipboard operation
plausible-tracker copied to clipboard

Omit localhost tracking warning

Open aspnetde opened this issue 3 years ago • 3 comments
trafficstars

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

aspnetde avatar Jul 07 '22 10:07 aspnetde

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

chulinguy avatar Aug 04 '22 23:08 chulinguy

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

Barbapapazes avatar Feb 03 '24 15:02 Barbapapazes

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

aspnetde avatar Feb 03 '24 20:02 aspnetde