Uh oh!
There was an error while loading. Please reload this page.
feat(landing): add PostHog tracking for CTA clicks, demo requests, and prompt submissions - #3994
Conversation
…d prompt submissions
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryLow Risk Overview Introduces a typed Extends the PostHog event catalog ( Reviewed by Cursor Bugbot for commit 24a2dd2. Configure here. |
Greptile SummaryThis PR adds PostHog analytics tracking across the Sim landing page, covering three categories of user interaction: CTA button clicks ( Key changes:
The implementation is clean and consistent with existing PostHog patterns in the codebase. No issues found. Confidence Score: 5/5This PR is safe to merge — it adds purely additive analytics tracking with no logic changes to existing functionality. All 9 changed files pass review with no bugs, logic errors, or rule violations. Events are properly typed, call sites are correct, and the trackLandingCta abstraction is a clean, consistent pattern. No P0 or P1 findings. No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[User visits Landing Page] -->|LandingAnalytics| B[landing_page_viewed]
subgraph CTA_Clicks[CTA Clicks → landing_cta_clicked]
C1[Hero: Get a demo]
C2[Hero: Get started]
C3[Navbar: Log in / Get started / Go to App]
C4[Footer: Docs / Get started]
C5[Pricing: Tier CTAs]
end
subgraph Prompt_Submit[Prompt Submit → landing_prompt_submitted]
P1[LandingPreviewHome textarea]
P2[LandingPreviewPanel copilot input]
P3[FooterCTA textarea]
end
subgraph Demo_Form[Demo Form → landing_demo_request_submitted]
D1[DemoRequestModal form]
D2{HTTP success?}
D3[Capture with company_size]
end
CTA_Clicks -->|trackLandingCta| E[captureClientEvent]
Prompt_Submit -->|captureClientEvent direct| E
D1 --> D2
D2 -->|Yes| D3
D3 --> E
E --> F[posthog.capture]
F --> G[PostHog Analytics]
Reviews (2): Last reviewed commit: "chore(landing): apply linter import sort..." | Re-trigger Greptile |
Uh oh!
There was an error while loading. Please reload this page.
waleedlatif1
commented
Apr 6, 2026
waleedlatif1
commented
Apr 6, 2026
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 24a2dd2. Configure here.
Uh oh!
There was an error while loading. Please reload this page.
…d prompt submissions (#3994) * feat(landing): add PostHog tracking for CTA clicks, demo requests, and prompt submissions * lint * fix(landing): correct import ordering per project conventions * chore(landing): apply linter import sorting
Summary
landing_cta_clickedevent tracking to all landing page CTAs (hero, navbar, footer, pricing)landing_demo_request_submittedevent on successful demo form submissionlanding_prompt_submittedevent for all prompt input submissions (hero preview, preview panel, footer CTA)trackLandingCtahelper inlanding-analytics.tsxfor clean, consistent CTA trackingType of Change
Testing
Tested manually
Checklist