Skip to content

Commit ef44cea

Browse files
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: tom@reflex.dev <tom@reflex.dev>
1 parent 2263aca commit ef44cea

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pcweb/pages/pricing/header.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,7 @@ 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
188-
yield ThankYouDialogState.push(True)
187+
yield rx.redirect("/pricing?lead=1")
189188
return
190189

191190

0 commit comments

Comments
 (0)