Repository navigation
feat: add /vs/beam-analytics comparison page - #6
Merged
Merged
Conversation
Beam (beam-privacy.com) and Beam Analytics (beamanalytics.io) are two unrelated products with confusingly similar names. The migration surfaces for beamanalytics.io already existed (/migrate/beam-analytics, /beam-analytics-alternative, the shutdown blog post) but the comparison chain had no head-to-head page, so the /alternatives hub routed that intent straight to a migration checklist. Adds the comparison page and wires the full discoverability chain per the Comparison Pages Guardrail: - src/routes/vs.ts: new /vs/beam-analytics route, an /alternatives card, and a shared comparison footer link - src/index.ts + ping-sitemap.sh: sitemap path/meta and IndexNow URL - src/routes/og.ts: vs-beam-analytics OG slug - Crawlable links outside vs.ts: landing footer, migrate footer, the /migrate/beam-analytics CTA row and honest-gaps section, and the shutdown blog post's inline + resource links The page leads with product disambiguation, states plainly that beamanalytics.io's 100K/mo free tier was more generous than Beam's, and is explicit about what Beam does not replace (no importer for the beamanalytics.io export format, no session replay, funnels, custom script domain, or SSO). Two shared-helper fixes in vs.ts, both verified at a 375px viewport with a real Tailwind build substituted for the CDN: - The footer link row never wrapped, rendering 1415px wide and expanding the layout viewport to 895px on every /vs/* page. Now wraps, matching the pattern already used in landing.ts and migrate.ts (343px). - comparisonTable() exceeded the viewport by 7-21px depending on cell text, so it now scrolls inside its own overflow-x-auto container instead of pushing the page sideways. All 12 vs.ts-rendered pages now measure scrollWidth == innerWidth == 375. Tests: 119 unit tests pass; 60 smoke tests pass. The one smoke failure (site detail verification card at 375px) reproduces on an unmodified checkout and is unrelated. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KEQjSMU93vWVXReLboCnjN
QA against the sibling comparison pages showed the meta description at 248 chars, well past the 120-168 range used across the other /vs/* pages and past the ~155 chars Google renders. Trimmed to 161. Title shortened from 73 to 70 chars while making it more descriptive of what the page actually offers. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KEQjSMU93vWVXReLboCnjN
8 tasks done
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.
Summary
Beam (beam-privacy.com) and Beam Analytics (beamanalytics.io) are two unrelated products with confusingly similar names. The migration surfaces for beamanalytics.io already existed on
main—/migrate/beam-analytics,/beam-analytics-alternative, and the shutdown blog post — but the comparison chain had no head-to-head page, so the/alternativeshub routed that intent straight to a migration checklist.This adds
/vs/beam-analyticsand wires the full discoverability chain per the Comparison Pages Guardrail inAGENTS.md.The page leads with product disambiguation, states plainly that beamanalytics.io's 100K/mo free tier was more generous than Beam's 50K, and is explicit about what Beam does not replace (no importer for the beamanalytics.io export format, no session replay, funnels, custom script domain, or SSO).
Changes
src/routes/vs.ts— new/vs/beam-analyticsroute, an/alternativeshub card, and a shared comparison footer linksrc/index.ts+ping-sitemap.sh— sitemap path/meta and IndexNow URLsrc/routes/og.ts—vs-beam-analyticsOG slugvs.ts— landing footer, migrate footer, the/migrate/beam-analyticsCTA row and honest-gaps section, and the shutdown blog post's inline + resource linkstest/smoke/smoke.spec.ts— desktop route/content test, 375px mobile overflow test, and the OG slug added toogPagesTwo shared-helper fixes in
vs.tsBoth are pre-existing bugs affecting all nine
/vs/*pages, surfaced while verifying the guardrail's 375px requirement. The new page inherited both, and it adds a link to the footer row, so they're fixed here rather than left to worsen:/vs/*page. Now wraps, matching the pattern already used inlanding.tsandmigrate.ts(343px).comparisonTable()exceeded the viewport by 7–21px depending on cell text. Now scrolls inside its ownoverflow-x-autocontainer instead of pushing the page sideways. The table still wraps and fits when it can —min-w-maxwas deliberately not used, so this doesn't force horizontal scrolling where none is needed.All 12
vs.ts-rendered pages now measurescrollWidth == innerWidth == 375.Test plan
npm run typecheckpassesnpm run testpasses — 119 passed, 0 failed, 4 skipped (WordPress plugin tests, skipped onmaintoo). Includespublic-pricing-copy.test.ts, which crawls every sitemap URL and asserts each returns 200, so the new route is covered there.npm run test:smokeon bothdesktopandmobileprojects — 117 passed, 5 failedThe 5 smoke failures are pre-existing and unrelated — verified against a clean
origin/mainworktreeThe identical 5 tests fail on unmodified
main(same names, line numbers shifted only by this PR's additions). All are dashboard/site-detail/embed tests; none touch the public marketing pages this PR changes.Note: local D1 needs
npm run migrations:localbefore any signup-dependent smoke test will run, otherwise signup returns 500.Additional QA
A structural pass against a local
wrangler dev, covering the parts CI doesn't (CI runs typecheck + unit tests only):text/htmlrobots: index, follow, og:image, twitter:card; title 70 chars, description 161 chars${...}(Structured Data Guardrail)/og/vs-beam-analyticsreturns SVG with the mapped title, not the fallback${...}/alternatives(incl. its ItemList JSON-LD), landing,/migrate,/migrate/beam-analytics, the blog post, and sibling/vs/*pagesping-sitemap.shThe first QA run caught the meta description at 248 chars — well past the 120–168 range the sibling
/vs/*pages use, and past what Google renders. Fixed in a2fd2f3.On the 375px verification: Tailwind's CDN is blocked in this sandbox, so the repo's
assertNoHorizontalOverflowwas passing against unstyled HTML. I built a real Tailwind bundle from the rendered pages and substituted it for the CDN to measure properly — that's what surfaced the two layout bugs above.Worth flagging separately: that helper compares
scrollWidth > innerWidthunder mobile emulation, where the browser expands the layout viewport to absorb overflowing content. That's why the 1415px footer went undetected across nine pages. Not changed in this PR, but the check has less teeth than it appears to.Screenshots
No screenshot artifact is committed. The sandbox can't reach the Tailwind CDN, so a committed
screenshots/smoke/desktop-vs-beam-analytics.pngwould be an unstyled page sitting next to the styled ones already inscreenshots/smoke/— a regression in artifact quality rather than an addition. The new smoke test writes it on any machine with network access.Verified locally at 375px with a real Tailwind build: content column fits at 375px, comparison table wraps, footer wraps into a multi-line block, and the page does not scroll horizontally.
Related issues
Closes #
🤖 Generated with Claude Code
https://claude.ai/code/session_01KEQjSMU93vWVXReLboCnjN