Skip to content

Commit 88d9b44

Browse files
Add Koala identify tracking to newsletter signup
- Add rx.call_script to trigger ko.identify() after successful email validation - Integrates with existing Koala pixel infrastructure - Maintains existing newsletter signup functionality - Returns both Koala identify call and success toast message Co-Authored-By: Alek <[email protected]>
1 parent f775e24 commit 88d9b44

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pcweb/signup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,7 @@ def signup(
100100
self.send_contact_to_webhook(email)
101101
self.add_contact_to_loops(email)
102102
self.signed_up = True
103-
return rx.toast.success("Thanks for signing up to the Newsletter!")
103+
return [
104+
rx.call_script(f"ko.identify('{email}')"),
105+
rx.toast.success("Thanks for signing up to the Newsletter!")
106+
]

0 commit comments

Comments
 (0)