feat(website): add explicit homepage CTA telemetry - #12934
Conversation
Add a captureCtaClick helper to the website PostHog wrapper and fire
website:cta_clicked from the real CTA elements (hero, nav buttons, nav
products links, product cards) instead of relying on autocapture or
i18n text matching. Each event carries { button, location }.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdds a ChangesPostHog CTA Click Tracking
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 6 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (6 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
🌐 Website E2ETip All tests passed.
🔗 Website PreviewWebsite Preview: https://comfy-website-preview-pr-12934.vercel.app This commit: https://website-frontend-ncz37alwi-comfyui.vercel.app Last updated: 2026-06-18T00:30:35Z for |
|
Folded into #12894 (the consolidated cloud telemetry PR): the website CTA telemetry (apps/website) merged cleanly (disjoint from the cloud-app events). Closing in favor of one frontend telemetry PR. |
Summary
Add explicit
website:cta_clickedtelemetry to the homepage marketing site so primary CTA clicks are tied to real DOM elements instead of fragile autocapture / i18n text matching.Changes
captureCtaClick(button, location)helper inapps/website/src/scripts/posthog.ts(typedCtaButton/CtaLocation), fired on click of the actual CTA elements:run_first_workflow/hero)launch_cloud,download_desktop/nav)pricing/nav) and the Products dropdown items Comfy Local (comfy_desktop) and Comfy Cloud (comfy_cloud)download_desktop,comfy_cloud,products/products_section)Review Focus
BrandButton,ProductCard, nav<a>/dropdown items), not text matching, so they survive copy/i18n changes.captureCtaClickmirrors the existingcaptureDownloadClickcontract: no-ops before PostHog init and swallows errors.Companion PRs