feat: A/B/C test for homepage 2026 redesign#17294
Conversation
54b830c to
66f53c0
Compare
✅ Deploy Preview for ethereumorg ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
SimulatorSection:
|
SEO Blocker: Bots must always receive the Original variant@pettinarip — heads up, this needs to be addressed before we activate the experiment. ProblemThe current assignment logic in The redesigned homepage has substantially different content — different headings, different sections (KPI, Savings Carousel, Feature Cards vs the current What is Ethereum, Activity, Builders, etc.). If Googlebot is assigned to a redesign variant:
FixAdd bot detection at the top of const BOT_PATTERN = /googlebot|bingbot|yandex|baiduspider|duckduckbot|slurp/i
export const getABTestAssignment = async (
testKey: string
): Promise<ABTestAssignment | null> => {
const configs = await getABTestConfigs()
const testConfig = configs[testKey]
if (!testConfig || !testConfig.enabled) return null
const headers = await import("next/headers").then((m) => m.headers())
const userAgent = headers.get("user-agent") || ""
// Always serve Original to search engine bots to prevent
// indexing fluctuation during A/B tests. Not cloaking per Google guidelines.
if (BOT_PATTERN.test(userAgent)) return null
// ... rest of fingerprint + assignment logic unchanged ...
}Returning What's already fine
This is the only remaining SEO concern — everything else looks good. |
Add bot detection to prevent search engine indexing fluctuation and ensure consistent social media link previews during A/B tests. Bots receive the original variant per Google's A/B testing guidelines. Ref: https://developers.google.com/search/docs/advanced/guidelines/cloaking
|
@konopkja good catch, pushed the patch. Also extend it to catch social engines to deliver a consistent OG preview when sharing the link. |
|
Security ReviewPR: feat: A/B/C test for homepage 2026 redesign (#17294) Findings[LOW] Matomo analytics enabled on preview deploysFile: Areas Reviewed
Not applicable: GitHub Workflow Security, Dependencies & Supply Chain Limitations
🤖 Review performed by Claude Opus 4.6 ( |
we are using a different Matomo site id for non-prod envs. |
The A/B test has concluded. This reverts the test infrastructure from #17261 and #17294 while preserving the Homepage2026 component code. Changes reverted: - Remove ABTestWrapper, ScrollDepthTracker, TrackedSection wrappers - Remove force-dynamic rendering and .catch() graceful degradation - Restore original error handling (throw on missing data) - Restore original event names and action labels - Remove getAccountHolders fetch (only used by redesign variants)

Summary
Test plan