Skip to content

feat: record and tag the whole Startups funnel in Hotjar - #7470

Merged
idoshamun merged 2 commits into
mainfrom
fix/startups-hotjar-funnel-coverage
Nov 22, 2026
Merged

idoshamun merged 2 commits into
mainfrom
fix/startups-hotjar-funnel-coverage

Conversation

@idoshamun

@idoshamun idoshamun commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Requested by Ido · project thread

Changes

  • Every /startups/ CTA now opens /squads/new?company=1 (free company page), which never loaded Hotjar. In the "daily.dev for Startups" Hotjar site, the last 24 hours show 32 recordings and every one that starts on /startups/ ends there after one page, so we lose the visitor at sign-up.
  • Load StartupsHotjar (site 6854906, same consent gate, identifies the signed-in user id) on the free company page form, signed out and signed in.
  • Load it on the post composer (/squads/create?sid=<handle>, linked from the page's setup checklist for the first post) only when that squad is a company page the viewer manages, the same rule SquadRoute uses.
  • Funnel events for filtering recordings (Hotjar "Event" filter, available on our Basic plan; user attributes are not). Helper in shared/src/lib/hotjar.ts, queued until the script loads, nothing sent without consent:
    • startups_signup: a Startups funnel page sees a signed-up account made within the hour (covers email, social and redirects), once per user per browser.
    • company_page_created: free company page form succeeds.
    • company_page_ready (logo, website, 40+ char description), first_post (totalPosts > 0), free_boost (free boost pending/active/completed): fire when an admin sees the page reach the stage. Reached stages are stored per page in local storage so each fires once; a page older than a day starts from its current state, so old pages don't send stale events.
    • checkout_opened with InitiateCheckout, subscribed_starter / subscribed_team with Subscribe (events take no properties, so the plan is in the name).
  • Signed-in user id is sent with identify through the same helper.
  • Unchanged: /squads/for-startups checkout and company squad routes for admins/mods already load it.

Events

Hotjar-only events listed above, nothing new in our own analytics.

Experiment

No.

Manual Testing

Webapp typecheck, strict changed-files check, oxlint and oxfmt pass; shared tests for company page + checkout and webapp Squad tests pass (shared tsc has 1 pre-existing error on main in ArchiveFeedPage.spec.tsx). Hotjar only runs on production, so I'll confirm in Hotjar after deploy that a recording continues from /startups/ into /squads/new.

https://claude.ai/code/session_01FodmVtpRezHSUwLCiPY2jq


Generated by Claude Code

Preview domain

https://fix-startups-hotjar-funnel-cover.preview.app.daily.dev

The /startups landing CTAs now open /squads/new?company=1, which never
loaded Hotjar, so recordings stopped at the landing page. Load the
Startups Hotjar site there, and on the post composer when it opens for a
company page the viewer manages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FodmVtpRezHSUwLCiPY2jq
@idoshamun idoshamun self-assigned this Nov 22, 2026
@vercel

vercel Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
daily-webapp Ready Ready Preview Nov 22, 2026 7:58am UTC
1 Skipped Deployment
Project Deployment Actions Updated
storybook Ignored Ignored Preview Nov 22, 2026 7:58am UTC

Request Review

Hotjar events are filterable on our plan, user attributes are not, so
each funnel stage sends one event: startups_signup, company_page_created,
company_page_ready (logo, website, description), first_post, free_boost,
checkout_opened and subscribed_<plan>. Page milestones fire on the
false-to-true change seen by the page's admin, remembered per page in
local storage so each fires once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FodmVtpRezHSUwLCiPY2jq
@idoshamun idoshamun changed the title fix: record the free company page form and first post in Startups Hotjar feat: record and tag the whole Startups funnel in Hotjar Nov 22, 2026
@idoshamun
idoshamun merged commit f4b0aa6 into main Nov 22, 2026
14 checks passed
@idoshamun
idoshamun deleted the fix/startups-hotjar-funnel-coverage branch November 22, 2026 07:59

This branch was successfully deployed

1 active deployment
Preview – daily-webapp — 8e97604f Deployed Nov 22, 2026 by vercel[bot]
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