Skip to content

Add `Cookie Preferences` button in the footer

Eduardo Sanz García requested to merge eduardosanz/one-trust-button into master

What does this MR do and why?

Add a Cookie Preferences button in the footer of the following pages:

  • /users/sign_in
  • /users/sign_up
  • /-/trial_registrations/new (only on SaaS)
  • /groups/flightjs/-/saml/sso (only when SAML is enabled)

The button opens the cookie preference modal.

Closes https://gitlab.com/gitlab-org/gitlab/-/issues/433405

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Sign in/up pages

Trials page

SAML page

How to set up and validate locally

  1. Enable this feature flag: echo 'Feature.disable(:ecomm_instrumentation)' | gdk rails console
  2. Add this line to gitlab.yml, in the extra section:
  extra:
    one_trust_id: '7f944245-c5cd-4eed-a90e-dd955adfdd08-test'
  1. On an incognito window, go to any of these pages:
  • /users/sign_in
  • /users/sign_up
  • /-/trial_registrations/new (only on SaaS)
  • /groups/flightjs/-/saml/sso (only when SAML is enabled)

Merge request reports