Identify 'invited user' when they go through registration
Summary
We'd like to better differentiate those who 'arrive' at the registration flow via 'invite' vs those who are signing up independently of an invite.
Notes
- In order to connect something like that to the rest of the registration funnel, user_snowplow_domain_id would need to be tracked
- We need events tracked on Step 1 and 2 of the flows #425950 (comment 1722274212)
- What's missing: (invite/free/trial) registration categories on step 2 and 3
Implementation
See this convo #425950 (comment 1695139484)
From the linked slide deck above the URLs associated with Step 1 are:
- Gitlab.com/-/trial_registrations/new
- Gitlab.com/users/sign_up
- Gitlab.com/users/sign_in
This correlates to adding tracking in these areas with the proper label
that will indicate what type of registration it is invite_registration
, trial_registration
, etc.
- add tracking event to
app/views/devise/registrations/new.html.haml
(even better if only ee I guess since onboarding is only an ee concern and that is what this is for) - add tracking event to
ee/app/views/trial_registrations/new.html.haml
- try to utilize the onboarding status class for the logic if it doesn't already exists - see https://gitlab.com/gitlab-org/gitlab/-/blob/72fde3bb35f3b3809533452e2d19f11a5aa66b7e/ee/app/views/trial_registrations/_new_design.html.haml#L10-10 for example or already created ways like user_invited? since user isn't signed in yet to use the method in the status class for
invite?
- ensure files in
ee/spec/fixtures/snowplow/tracking_verification
are updated if needed.
Events after implementation
Events fire when user clicks the registration submit button or click the SSO button
url | event_category | event_action | event_label |
---|---|---|---|
/users/sign_up | registrations:new | register | free_registraton/invite_registration |
/users/sign_up | registrations:new | (sso_provider)_oauth2_sso | free_registration/invite_registration |
/-/trial_registrations/new | trial_registrations:new | register | trial_registration |
/-/trial_registrations/new | trial_registrations:new | (sso_provider)_oauth2_sso | trial_registration |
/users/identify_verification | users:identity_verification:show | render | free_registraton/trial_registration |
/users/identity_verification/success | users:identity_verification:success | render | free_registraton/invite_registration/trial_registration |
Edited by Roy Liu