What
Corrects and completes the google-analytics setup docs on how the service account's GA4 access decides which properties the widget shows.
docs/google-setup.md: per-property Viewer stays the recommended route. An account-level Viewer grant covers every property in that account instead. The403 no accesserror only comes from ids listed inproperties; withpropertiesempty, an ungranted property is simply not listed.widgets/src/widgets/google-analytics/README.md:- the Properties section says to check
propertiesfirst, since a list there is a filter, and then the key email's grants; - the config table says the widget signs in as the key's
client_email; - the setup paragraph says a restart is needed after a new grant, and that a configured
propertieslist needs the new id added (or the list emptied) first.
- the Properties section says to check
widgets/src/widgets/google-analytics/CONFIGURE.md: one line on account-level vs per-property grants.settings.json/config.example.json: step 7 no longer claims an account-level grant reaches only the first property.
Why
This text was left uncommitted in the OPS-186 worktree after #449 merged. Review pointed out that Google documents account-level roles as inherited by every property in the account (GA4 access management), so the earlier "only the first property" wording (also on main in the settings help) is corrected here.
Checks
cargo test --test check: 73 passed.- Docs and help text only, no code or config keys changed.
https://claude.ai/code/session_01KVgNwrzu4m6qLCXr336NKK
Generated by Claude Code
Activity
33Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
| Review | Status | Commit | Review trigger |
|---|---|---|---|
| 📝 Code Review | ✅ Completed 2026-11-19T05:45:00.425008Z | c08bac4 | New commits |
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review" or "@codex security review".
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
IMPORTANT
Review skipped
Ignore keyword(s) in the title.
:no_entry: Ignored keywords: 3
- skip-ci
- skip-review
- skip-cr
Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.
Run configuration
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: Organization UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
87dec550-96da-41c3-87b5-54656f9ddce6You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
- Trigger review
Summary by CodeRabbit
- Documentation
- Clarified that the service account needs Viewer access granted separately for each Google Analytics property under Property access management.
- Explained that access granted under Account access management applies only to the first property, and that the widget must be restarted to discover newly accessible properties.
- Clarified that an empty property list includes all properties visible to the service account’s
client_email. - Added that the Search Console API must be enabled when sharing the service-account key with Google Search Console.
Walkthrough
The setup documentation now explains how to grant the service account Viewer access to each Analytics property, which properties the widget can include, and when to restart it to discover newly accessible properties. It also adds a Search Console API requirement when sharing the service-account key.
Changes
Google Analytics setup
| Layer / File(s) | Summary |
|---|---|
Service-account access and setup guidance docs/google-setup.md, widgets/src/widgets/google-analytics/README.md, widgets/src/widgets/google-analytics/CONFIGURE.md | The documentation specifies Viewer access for each property and explains that Account access management attaches the service account only to the first property. It clarifies that the widget uses properties visible to the key’s client_email, and that a restart discovers newly accessible properties while a refresh rereads properties already found. It also adds the Search Console API requirement when sharing the key with google-search-console. |
Estimated code review effort: 1 (Trivial) | ~4 minutes
Change: Other
Possibly related PRs
- stealth-factory/opscope#446: Added the shared Google service-account authentication helper and setup documentation that this change updates.
- stealth-factory/opscope#449: Added the Google Analytics widget and the README and configuration guidance updated here.
Merge Risk: Low · previous review 0a139
-
This documentation-only change may tell operators something inaccurate about account-level access in Google Analytics and may leave gaps in the guidance for configured property lists. Correct the wording before merge. The risk is low because no runtime behavior changes.
Security architecture risk: Minimal · up to 0a139
-
The changes clarify existing service-account access and property-discovery setup. They do not introduce broader permissions, new credential access, or a changed runtime lifecycle. No introduced or worsened architecture-level security risk was established.
Pre-merge checks: 4
-
Check name Status Explanation Linked Issues check Check skipped because no linked issues were found for this pull request. Out of Scope Changes check Check skipped because no linked issues were found for this pull request. Title check The title names the docs change (GA4 access grants and which properties the google-analytics widget shows) and the OPS-186 ticket. It matches the changeset, which updates the setup docs, the widget RE… Description check The description states the purpose of the change: correcting the google-analytics setup docs on how service-account GA4 access decides which properties appear. It lists each changed file and what chan… Full details: Title check
-
Explanation
The title names the docs change (GA4 access grants and which properties the google-analytics widget shows) and the OPS-186 ticket. It matches the changeset, which updates the setup docs, the widget README, and CONFIGURE.md to explain per-property versus account-level Viewer grants. The title does not mention the [skip-cr] tag, the account-level inheritance correction, or the restart requirement, but it still describes the primary change.
Full details: Description check
-
Explanation
The description states the purpose of the change: correcting the google-analytics setup docs on how service-account GA4 access decides which properties appear. It lists each changed file and what changed in it, including the restart requirement and the properties filter behaviour. It also gives the reason for the change and the test result. This is directly related to the changeset.
-
Finishing Touches
-
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
Simplify code
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
A rabbit checks each property’s view,
And grants the Viewer access due.
A fresh restart finds what is new,
A refresh reads what it already knew.
The Search Console API joins the crew.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0a139b0152
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
OPS-186