Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow disable sending events in configuration #9

Open
btkostner opened this issue Feb 16, 2021 · 1 comment · May be fixed by #10
Open

Allow disable sending events in configuration #9

btkostner opened this issue Feb 16, 2021 · 1 comment · May be fixed by #10
Labels
enhancement New feature or request

Comments

@btkostner
Copy link

Basically, it would be nice to have an enabled option that defaults to true, but can be set to false that disables sending any event. Similar to how the localhost logic works, but adjustable for the consuming project.

Context

We are currently trying out Plausible as a replacement for GA at System76. Aside from localhost development, we also have a staging environment that we don't want to track. This environment has a full domain and is used by multiple teams to review code before going into production. It would be awesome if we could disable plausible from sending any events in staging, but still include the functions so we don't have to wrap all of our event sending code.

Possible Implementation

From a quick look, it would probably just adding an enabled bool to PlausibleInitOptions and checking that in sendEvent

@btkostner btkostner added the enhancement New feature or request label Feb 16, 2021
@btkostner btkostner linked a pull request Feb 16, 2021 that will close this issue
9 tasks
@cosminstefanxp
Copy link

See: #8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants