Skip to content

privacy(fix): stop the consent banner overstating what declining does - #417

Merged
Ducksss merged 1 commit into
devfrom
claude/fix-consent-banner-copy
Jul 30, 2026
Merged

Ducksss merged 1 commit into
devfrom
claude/fix-consent-banner-copy

Conversation

@Ducksss

@Ducksss Ducksss commented Jul 30, 2026 •

Copy link
Copy Markdown
Owner

The banner said:

We use Google Analytics, Vercel Analytics, and PostHog … Decline and none of them load.

After the cookieless split that is false — Vercel Analytics and Speed Insights mount for everyone. /privacy and contributing.mdx were updated for the split; the banner was missed.

That's the worst place to leave it. The banner is the notice a visitor reads while deciding, and a consent prompt that misdescribes the choice undermines the consent it collects.

Now

We use Google Analytics and PostHog to see which components and docs people actually use. Decline and neither one loads — no cookie, no identifier. Page-speed measurement runs either way and stores nothing.

Names only the two providers the choice actually governs, says what declining prevents, and discloses the cookieless tier — matching the wording already on /privacy.

Verified in a browser, not by reading the source

Against a production build, the rendered banner asserts GA and PostHog are gated and page-speed is not — and in the same page load googletagmanager is absent while the Vercel script is present. The claim and the behaviour were checked together, which is the only way this class of defect stays fixed.

lint clean · tsc clean · format:check clean · 379 int tests · consent + a11y e2e 20/20 (banner a11y included, and its accessible name is unchanged).

Summary by CodeRabbit

  • Documentation
    • Updated consent-banner text to clarify what happens when analytics consent is accepted or declined.
    • Clarified that declining prevents Google Analytics and PostHog from loading or storing identifiers.
    • Clarified that page-speed measurement runs regardless and does not store data.

The banner said "We use Google Analytics, Vercel Analytics, and PostHog … Decline
and none of them load." After the cookieless split that is false: Vercel
Analytics and Speed Insights mount for everyone.

/privacy and contributing.mdx were updated for the split; the banner was missed.
That is the worst place to leave it, because the banner is the notice a visitor
reads while deciding — a consent prompt that misdescribes the choice undermines
the consent it collects.

Now names only the two providers the choice actually governs, states what
declining prevents (no cookie, no identifier), and discloses that page-speed
measurement runs either way and stores nothing — matching the wording already on
/privacy.

Verified in a browser against a production build rather than by reading the
source: the rendered banner claims GA and PostHog are gated and page-speed is
not, and in the same page load googletagmanager is absent while the Vercel script
is present. lint clean, tsc clean, format:check clean, 379 int tests, consent +
a11y e2e 20/20.

Co-Authored-By: Claude Opus 5 <[email protected]>
Copilot AI review requested due to automatic review settings July 30, 2026 10:28
@vercel

vercel Bot commented Jul 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
payload-components Ready Ready Preview Jul 30, 2026 10:31am
payload-components-97bf Ready Ready Preview Jul 30, 2026 10:31am

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Jul 30, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 249fdc48-0798-41e2-a63c-5e179b66cfc7

📥 Commits

Reviewing files that changed from the base of the PR and between 60939c7 and c6b0c13.

📒 Files selected for processing (1)
  • src/components/site/ConsentBanner.tsx

📝 Walkthrough

Walkthrough

The consent banner copy now explains that declining prevents Google Analytics and PostHog from loading, stores no cookie or identifier, and does not affect page-speed measurement.

Changes

Consent banner

Layer / File(s) Summary
Consent behavior messaging
src/components/site/ConsentBanner.tsx
The explanatory text identifies Google Analytics and PostHog, clarifies decline behavior, and states that page-speed measurement runs without storing data.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Possibly related PRs

Suggested reviewers: copilot

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the change, but it doesn't follow the required template or include the Summary, Verification, Registry Checklist, and Notes sections. Reformat it to the template and add the missing sections, including the pnpm test:release checkbox and any relevant registry checklist items.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly states the consent banner copy fix and matches the main change in the PR.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/fix-consent-banner-copy

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

ESLint install failed: dependency version conflict. Check your lock file or package.json.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

This branch was successfully deployed

2 active deployments
Preview – payload-components — c6b0c134 Deployed Jul 30, 2026 by vercel[bot]
Preview – payload-components-97bf — c6b0c134 Deployed Jul 30, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants