google_analytics: Track realm registration separately from user signup.

While the function which processes the realm registration and
signup remains the same, we use different urls and functions to
call the process so that we can separately track them. This will
help us know the conversion rate of realm registration after
receiving the confirmation link.
This commit is contained in:
Aman Agrawal
2023-02-24 08:08:26 +00:00
committed by Tim Abbott
parent 6a4c12b41e
commit c928c87645
5 changed files with 27 additions and 6 deletions

View File

@@ -127,6 +127,7 @@ from zerver.views.registration import (
get_prereg_key_and_redirect,
new_realm_send_confirm,
realm_redirect,
realm_register,
signup_send_confirm,
)
from zerver.views.report import (
@@ -579,6 +580,7 @@ i18n_urls = [
name="new_realm_send_confirm",
),
path("accounts/register/", accounts_register, name="accounts_register"),
path("realm/register/", realm_register, name="realm_register"),
path(
"accounts/do_confirm/<confirmation_key>",
get_prereg_key_and_redirect,