Skip to content

Commit 2e00fd4

Browse files
Add lead tracking parameter to demo form submission (#1478)
* Add lead tracking parameter to demo form submission - Replace thank you modal with redirect to /pricing?lead=1 after successful form submission - Enables Google Analytics to track successful lead submissions via URL parameter - Maintains all existing form validation and PostHog event tracking Co-Authored-By: [email protected] <[email protected]> * Show thank you modal AND redirect to pricing page with lead parameter - Yield both ThankYouDialogState.push(True) and rx.redirect('/pricing?lead=1') - Provides immediate user feedback via modal while enabling GA tracking via URL parameter - Maintains all existing form validation and PostHog event tracking Co-Authored-By: [email protected] <[email protected]> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: [email protected] <[email protected]>
1 parent d0326f7 commit 2e00fd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pcweb/pages/pricing/header.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ def submit(self, form_data: dict[str, Any]):
184184
# Send to PostHog for all submissions
185185
yield QuoteFormState.send_demo_event(form_data)
186186

187-
# Show thank you modal for all submissions
188187
yield ThankYouDialogState.push(True)
188+
yield rx.redirect("/pricing?lead=1")
189189
return
190190

191191

0 commit comments

Comments
 (0)