Add Google Tag Manager to usage tab in User Settings
What does this MR do and why?
- Related to gitlab-com/marketing/digital-experience/buyer-experience#234 (closed)
- Related to !38395 (merged)
- Related to !58494 (merged)
- Related to !75563 (merged)
We've got instructions to add Google Tag Manager to the checkout flow. The usage tab in User Settings view are currently missing the necessary tags to provide coverage.
I've also added OneTrust to each view to allow users to appropriately manage their cookie settings across these pages.
Screenshots or screen recordings
These are strongly recommended to assist reviewers and reduce the time to merge your change.
- Google Tag Manger https://tagmanager.google.com/#/home
- Open the Tag Assistant and follow instructions there on enabling debugging support on your localhost.
- Verify GTM is working
How to set up and validate locally
Similar to the steps in !58494 (merged),
- Go to Google Tag Manager (https://tagmanager.google.com/) and create new container. Grab your ID there.
- Edit your
config/gitlab.yml
and add underextra:
values forgoogle_tag_manager_nonce_id
andgoogle_tag_manager_id
that should be your GTM id from previous step. - Restart GDK
- Enable the feature flag with
Feature.enable(:gtm_nonce)
via Rails console. - Sign out from your local GDK instance.
- Open the Tag Assistant and follow instructions there on enabling debugging support on your localhost.
- Verify GTM is working
/-/profile/usage_quotas#pipelines-quota-tab
pages.
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 Lauren Barker