Skip to content

feat(web): Cloudflare Web Analytics + cookieless footer note - #60

Merged
ExorTek merged 1 commit into
masterfrom
web/cloudflare-analytics
Sep 10, 2026
Merged

ExorTek merged 1 commit into
masterfrom
web/cloudflare-analytics

Conversation

@ExorTek

@ExorTek ExorTek commented Sep 10, 2026

Copy link
Copy Markdown
Owner

What

Adds privacy-first, cookieless page analytics to the docs site.

  • Cloudflare Web Analytics beacon loaded via next/script (afterInteractive) in the root layout. Gives page-level metrics (top pages, referrers, countries) that also survive Nextra's client-side navigation — server/proxy-level analytics would miss in-app route changes on this SPA-style site.
  • Footer note (one line) stating analytics are cookieless with no personal data — used instead of a consent banner, which a cookieless tracker does not require under GDPR/KVKK.

Notes

  • The beacon token is a public client-side identifier (rendered into every page's HTML), not a secret — safe to commit.
  • No change to the build or hosting setup; single-file change to web/app/layout.jsx.
  • Reminder: enable SPA route tracking in the Cloudflare Web Analytics site settings so sub-page navigations are counted.

Add the Cloudflare Web Analytics beacon (cookieless, privacy-first) via
next/script, and a one-line footer note stating analytics are cookieless
with no personal data — in place of a consent banner, which a cookieless
tracker does not require.
Copilot AI lite review requested due to automatic review settings September 10, 2026 23:15

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.

@ExorTek
ExorTek merged commit d86d754 into master Sep 10, 2026
1 check passed
@ExorTek
ExorTek deleted the web/cloudflare-analytics branch September 10, 2026 23:16
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