Repository navigation
SEO: measure anonymous page views on public catalog pages - #1384
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Verified gap
kernelcad.comalready loads the Cloudflare Web Analytics beacon on its homepage and model-library page, but the generated catalog HTML has no beacon. The production sitemap exposes 2,402 asset detail pages, 50 kit pages and the catalog hub; these entry pages cannot be measured in the existing page-view analytics stream. This prevents per-page acquisition measurement while new organic landing pages start indexing.Change
Add the same public Cloudflare Web Analytics site token already used by the marketing site to the shared catalog document head. This covers hub, kit and per-asset pages without modifying their canonical metadata, Product JSON-LD, model previews, Studio URLs, CAD source hashes, navigation, or private project behavior. This records aggregate page views; it does not claim to capture Studio CTA clicks or conversions. No identifiers or custom events are added.
Verification
scripts/buildCatalogPages.test.ts: 8 passed, including the new beacon check on hub, kit and asset pages.npm run typecheck: passed.origin/develop; no duplicate open PR found.Full evidence: work-1
/data/kernelcad-seo-20261113/run-1926/. Do not merge before all required GitHub checks are green and protected process permits; verify production HTML and Cloudflare page-view events after deploy.