Repository navigation
feat: record and tag the whole Startups funnel in Hotjar - #7470
Merged
Merged
Conversation
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
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
This branch was successfully deployed
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.
Requested by Ido · project thread
Changes
/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.StartupsHotjar(site 6854906, same consent gate, identifies the signed-in user id) on the free company page form, signed out and signed in./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 ruleSquadRouteuses.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_openedwith InitiateCheckout,subscribed_starter/subscribed_teamwith Subscribe (events take no properties, so the plan is in the name).identifythrough the same helper./squads/for-startupscheckout 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