google / site-kit-wp Public
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
Opt In/out should take effect immediately #727
Comments
|
In the non-React version, this relies on |
|
Agreed, let's use the same value everywhere; it's a bit confusing to have to handle two different values. (Leading to this bug/confusion!) |
|
IB |
|
It being opted-in after the user opts-out isn't good; I'll take a look at that and try to push a fix now… |















Bug Description
Follow up for issues discovered during QA of #633.
Steps to reproduce
I see the same issue in two locations.
Setup flow
gtagis undefined andgooglesitekit.admin.trackingOptinis still falsegooglesitekit.admin.trackingOptinis still true.Settings screen
gtagis undefined andgooglesitekit.admin.trackingOptinis still false.googlesitekit.admin.trackingOptinis still true.Screenshots
Screenshots above.
Additional Context
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
window.googlesitekitTrackingEnabledfor whether tracking is enabled or not, and remove the other one(s).Implementation Brief
googlesitekit.admin.trackingOptinto usewindow.googlesitekitTrackingEnabledsendAnalyticsTrackingEventto only read/usewindow.googlesitekitTrackingEnabledinstead of the currentgooglesitekit.admin.trackingOptin(this will require updating its E2E test as well).Changelog entry
The text was updated successfully, but these errors were encountered: