Skip to content

Commit b94dc76

Browse files
Add Koala identify tracking to pricing form submission
- Add rx.call_script to trigger ko.identify() after successful form validation - Integrates with existing Koala pixel infrastructure - Maintains existing pricing form functionality - Uses same try-catch error handling pattern as newsletter signup - Ensures form submission flow is never blocked by tracking failures Co-Authored-By: Alek <[email protected]>
1 parent fbf9624 commit b94dc76

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pcweb/pages/pricing/header.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ def submit(self, form_data: dict[str, Any]):
185185
# Send to PostHog for all submissions
186186
yield QuoteFormState.send_demo_event(form_data)
187187

188+
yield rx.call_script(f"try {{ ko.identify('{email}'); }} catch(e) {{ console.warn('Koala identify failed:', e); }}")
189+
188190
yield ThankYouDialogState.push(True)
189191
yield rx.redirect("/pricing?lead=1")
190192
return

0 commit comments

Comments
 (0)