Skip to content

feat: add /vs/beam-analytics comparison page - #6

Merged
scobb merged 2 commits into
mainfrom
claude/beam-analytics-competitor-migrate-95m5at
Sep 6, 2026
Merged

scobb merged 2 commits into
mainfrom
claude/beam-analytics-competitor-migrate-95m5at

Conversation

@scobb

@scobb scobb commented Sep 6, 2026 •

Copy link
Copy Markdown
Owner

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 /alternatives hub routed that intent straight to a migration checklist.

This adds /vs/beam-analytics and wires the full discoverability chain per the Comparison Pages Guardrail in AGENTS.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-analytics route, an /alternatives hub 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
  • test/smoke/smoke.spec.ts — desktop route/content test, 375px mobile overflow test, and the OG slug added to ogPages

Two shared-helper fixes in vs.ts

Both 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:

  • The footer link row never wrapped — it rendered 1415px wide and expanded 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. Now scrolls inside its own overflow-x-auto container instead of pushing the page sideways. The table still wraps and fits when it can — min-w-max was deliberately not used, so this doesn't force horizontal scrolling where none is needed.

All 12 vs.ts-rendered pages now measure scrollWidth == innerWidth == 375.

Test plan

  • npm run typecheck passes
  • npm run test passes — 119 passed, 0 failed, 4 skipped (WordPress plugin tests, skipped on main too). Includes public-pricing-copy.test.ts, which crawls every sitemap URL and asserts each returns 200, so the new route is covered there.
  • npm run test:smoke on both desktop and mobile projects — 117 passed, 5 failed
The 5 smoke failures are pre-existing and unrelated — verified against a clean origin/main worktree

The 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.

[desktop] Mobile smoke › site detail verification card is mobile-safe at 375px
[mobile]  Desktop smoke › site detail shows installation verification flow
[mobile]  Desktop smoke › verify panel reassures low-traffic sites with older data
[mobile]  Desktop smoke › embed widget is accessible for a public site
[mobile]  Mobile smoke › site detail verification card is mobile-safe at 375px

Note: local D1 needs npm run migrations:local before 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):

Area Result
Route, content-type 200, text/html
SEO metadata canonical, robots: index, follow, og:image, twitter:card; title 70 chars, description 161 chars
Structured data FAQPage JSON-LD parses as valid JSON, no literal ${...} (Structured Data Guardrail)
OG image route /og/vs-beam-analytics returns SVG with the mapped title, not the fallback
Internal links all 22 distinct links on the page resolve
Sitemap contains the new URL, 49 entries, no duplicates, no ${...}
Discoverability linked from /alternatives (incl. its ItemList JSON-LD), landing, /migrate, /migrate/beam-analytics, the blog post, and sibling /vs/* pages
Pricing copy guardrail 50K / 500K, no stale 5K / 100K
ping-sitemap.sh URL list includes the new path

The 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 assertNoHorizontalOverflow was 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 > innerWidth under 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.png would be an unstyled page sitting next to the styled ones already in screenshots/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

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
@scobb
scobb merged commit e5c03b4 into main Sep 6, 2026
2 checks passed
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