-
Notifications
You must be signed in to change notification settings - Fork 291
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
Excluding all logged in users from Analytics results in invalid JSON in Web Stories preview debug mode #3572
Comments
IB / CR ✅ |
@aaemnnosttv I am seeing the same error and tested this on two different sites. Would you be able to check that it has successfully merged, and if you still see the errors or not? |
@wpdarren actually, sorry, it should be good – I just tested this again and while there are errors that show Site Kit, it's mostly because the output is minified and line 6 starts with our opt-out comment there which is normal. The main error we don't want to see is the first one in your screenshot there about invalid JSON. |
Bug Description
1.) When you enable the option to exclude all logged in users from Analytics in Site Kit by Google, Story passes AMP validator, but Story's debug mode in the story preview is outputting the below warning
Steps to reproduce
Screenshots
Additional Context
Related Github issue GoogleForCreators/web-stories-wp#7939
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
See conversation on Preview development mode warns on invalid JSON if excluding all logged in users from Analytics GoogleForCreators/web-stories-wp#7939 issue for more information
Test Coverage
Visual Regression Changes
QA Brief
__gaOptOutExtension
element is not reported (there may be other validation errors/warnings not from Site Kit)Changelog entry
The text was updated successfully, but these errors were encountered: