Commit 2687bb77 authored by Etienne Baqué's avatar Etienne Baqué

Merge branch 'add-google-tag-manager-to-additional-pages-for-instrumentation' into 'master'

Add Google Tag Manager and OneTrust to relevant checkout pages

See merge request gitlab-org/gitlab!75563
parents a6f24365 4705cdc5
......@@ -3,6 +3,7 @@
module Users
class TermsController < ApplicationController
include InternalRedirect
include OneTrustCSP
skip_before_action :authenticate_user!, only: [:index]
skip_before_action :enforce_terms!
......
- redirect_params = { redirect: @redirect } if @redirect
- accept_term_link = accept_term_path(@term, redirect_params)
- content_for :page_specific_javascripts do
= render "layouts/google_tag_manager_head"
= render "layouts/one_trust"
= render "layouts/google_tag_manager_body"
- if Feature.enabled?(:terms_of_service_vue, current_user, default_enabled: :yaml)
#js-terms-of-service{ data: { terms_data: terms_data(@term, @redirect) } }
......
- page_title _('Checkout')
- content_for :page_specific_javascripts do
= render "layouts/google_tag_manager_head"
= render "layouts/one_trust"
= render "layouts/google_tag_manager_body"
#js-new-subscription{ data: subscription_data(@eligible_groups) }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment