Skip to content

chore(home): retire the orphaned hero CTA and its flag - #65

Merged
gatteo merged 1 commit into
mainfrom
chore/retire-hero-cta
Aug 6, 2026
Merged

chore(home): retire the orphaned hero CTA and its flag#65
gatteo merged 1 commit into
mainfrom
chore/retire-hero-cta

Conversation

@gatteo

@gatteo gatteo commented Aug 6, 2026

Copy link
Copy Markdown
Owner

Follow-up to the flag inventory recorded in #64.

What this removes

components/home/hero-cta.tsx (HeroCTA) rendered a "Get Started" / "Learn more" button pair
plus an "or open the full dashboard" link, with the two labels gated on the hero-cta-copy
PostHog multivariate flag.

Nothing imported it. The landing page renders components/home/hero.tsx, whose CTAs were
rewritten to plan framing in 736c4fa ("Create my personalized post plan"). HeroCTA was an
orphan from an earlier version of the hero.

The flag was configured at 100% rollout across four 25% variants, so it presented as a live
landing-page A/B test in every flag listing while deciding nothing (~11 $feature_flag_called
events per 14 days of residual noise, vs 510 for onb-welcome-hero and 165 for
onb-modal-exit). That appearance is exactly what led a funnel baseline to record it as a
running experiment.

Changes

  • Delete components/home/hero-cta.tsx.
  • Drop the hero entry source from config/entry-sources.ts. The deleted component was its
    only emitter, so it never recorded anything and no historical volume is affected. A stray
    ?from=hero now resolves to direct like any other unknown value, via the existing
    parseEntrySource fallback.
  • Docs: docs/analytics/onboarding-funnel.md (the legacy-hero note now records the
    retirement), docs/experiments/log.md (flag inventory marked RETIRED with the flag id),
    docs/CHANGELOG.md.

PostHog

Flag hero-cta-copy (id 145657) archived: active: false, archived: true, status: ARCHIVED.
Last called 2026-08-04. Done before this PR so the flag list is already clean.

A future hero test should be written fresh rather than revived from this one - the retired
variants ("Get Started", "Use Free Tool") predate the plan-framing rewrite.

Checks

pnpm type-check exit 0. pnpm lint 0 errors (2 pre-existing warnings in components/shadcn-demo/).
No remaining HeroCTA / hero-cta references in code.

HeroCTA rendered a Get Started / Learn more pair gated on the hero-cta-copy
multivariate flag. Nothing imported it - the landing page renders
components/home/hero.tsx, whose CTAs moved to plan framing in 736c4fa.

The flag sat at 100% rollout across four 25% variants, so it looked like a live
landing-page test in every flag listing while deciding nothing. That appearance
is what led a funnel baseline to record it as running.

- delete components/home/hero-cta.tsx
- drop the `hero` entry source: the deleted component was its only emitter, so
  it never recorded anything and no historical volume is affected. A stray
  ?from=hero now resolves to `direct` like any other unknown value
- archive the PostHog flag (id 145657, active false, archived true)
@vercel

vercel Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
linkedinpreview-com Building Building Preview Aug 6, 2026 2:02pm

Request Review

@gatteo
gatteo merged commit e4aed68 into main Aug 6, 2026
2 of 3 checks passed
@gatteo
gatteo deleted the chore/retire-hero-cta branch August 6, 2026 14:02
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.

1 participant