Add combined groups/project GTM tracking
What does this MR do and why?
This MR closes gitlab-com/marketing/digital-experience/buyer-experience#361 (closed)
The combined group/project form at /users/sign_up/groups_projects/new
has been rolled out, as per !67614 (merged). It's now the way that new users interact with this step of onboarding.
This MR adjusts the original Google Tag Manager spec to account for this new form. It adds an event to the submit
event on the new form that will track an event called combinedGroupProjectFormSubmit
.
Screenshots or screen recordings
How to set up and validate locally
- Create a Google Tag Manager account and container ID. You should just need to follow the step 1 of the instructions. The GTM container can be empty - it just needs to exist.
- In
gitlab.yml
, add your GTM ID in theextra
block for both thegoogle_tag_manager_id
andgoogle_tag_manager_nonce_id
values. Make sure to restart GDK (or do this step prior to starting GDK) for settings to take effect.extra: google_tag_manager_id: 'GTM-YOURIDHERE' google_tag_manager_nonce_id: 'GTM-YOURIDHERE'
- Start or restart your GDK
- Turn on
Feature.enable(:combined_registration)
- Turn on
Feature.enable(:gitlab_gtm_datalayer)
- Open the Google Tag Assistant
- Point the tag assistant to
http://localhost:3000/users/sign_up
and create a new account. - Step through the onboarding process until you get to
/users/sign_up/groups_projects/new
- Keep an eye on the dataLayer tab in the Tag Assistant
- Submit the combined groups/projects form
- Check for the
combinedGroupProjectFormSubmit
event in the dataLayer tab.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Tyler Williams