Skip to content
This repository was archived by the owner on Jan 2, 2024. It is now read-only.

Adding is_disabled option #9

Merged
merged 2 commits into from
Dec 10, 2022
Merged

Conversation

cheyner
Copy link
Contributor

@cheyner cheyner commented Mar 25, 2022

No description provided.

@cheyner
Copy link
Contributor Author

cheyner commented Mar 25, 2022

The underlying Analytics package will simply return a NullResponse when prompted to send events to GA if the argument $isDisabled=true in its constructor. Ideally I would have included a test here, but there didn't appear to be a simple way to check that -- and it seemed like a fairly benign adjustment to me.

@kyranb
Copy link

kyranb commented Apr 19, 2022

@pascalbaljet Can we help merge this in?

@cheyner
Copy link
Contributor Author

cheyner commented Jun 15, 2022

Checking in on this...

@sebastiaanluca
Copy link

👋 Was looking for a way to disable the package during tests. Currently it sends a ton of requests to Google 😬

@pascalbaljet pascalbaljet merged commit 2c11a11 into protonemedia:master Dec 10, 2022
@pascalbaljet
Copy link
Contributor

I've changed it to is_enabled. Available in v1.5.1 :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants