From ac3417bce89e8091b581b86c4239f91e658fa55b Mon Sep 17 00:00:00 2001 From: Brian Mesick <112640379+bmtcril@users.noreply.github.com> Date: Tue, 18 Apr 2023 10:02:49 -0400 Subject: [PATCH] feat: Add GA 4 support to edX platform Merge pull request #32032 from raccoongang/sagirov/tCRIL_GA-18 [FC-0014] Add GA 4 support to edX platform --- lms/envs/common.py | 1 + lms/envs/production.py | 1 + lms/templates/certificates/accomplishment-base.html | 13 +++++++++++++ lms/templates/main.html | 12 ++++++++++++ lms/templates/main_django.html | 12 ++++++++++++ .../templatetags/configuration.py | 9 +++++++++ 6 files changed, 48 insertions(+) diff --git a/lms/envs/common.py b/lms/envs/common.py index 958d06ccbfd..cacb6031af9 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -1430,6 +1430,7 @@ def _make_mako_template_dirs(settings): GOOGLE_SITE_VERIFICATION_ID = '' GOOGLE_ANALYTICS_LINKEDIN = 'GOOGLE_ANALYTICS_LINKEDIN_DUMMY' GOOGLE_ANALYTICS_TRACKING_ID = None +GOOGLE_ANALYTICS_4_ID = None ######################## BRANCH.IO ########################### BRANCH_IO_KEY = '' diff --git a/lms/envs/production.py b/lms/envs/production.py index 75a225ca30c..dd683595107 100644 --- a/lms/envs/production.py +++ b/lms/envs/production.py @@ -686,6 +686,7 @@ def get_env_setting(setting): GOOGLE_ANALYTICS_TRACKING_ID = AUTH_TOKENS.get('GOOGLE_ANALYTICS_TRACKING_ID') GOOGLE_ANALYTICS_LINKEDIN = AUTH_TOKENS.get('GOOGLE_ANALYTICS_LINKEDIN') GOOGLE_SITE_VERIFICATION_ID = ENV_TOKENS.get('GOOGLE_SITE_VERIFICATION_ID') +GOOGLE_ANALYTICS_4_ID = AUTH_TOKENS.get('GOOGLE_ANALYTICS_4_ID') ##### BRANCH.IO KEY ##### BRANCH_IO_KEY = AUTH_TOKENS.get('BRANCH_IO_KEY') diff --git a/lms/templates/certificates/accomplishment-base.html b/lms/templates/certificates/accomplishment-base.html index 1fe0456469c..554bb607ccb 100644 --- a/lms/templates/certificates/accomplishment-base.html +++ b/lms/templates/certificates/accomplishment-base.html @@ -19,6 +19,19 @@