From 1d89d8f552fed15b61691bbcb559901fae33556a 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 5bfb4ba5e19..40facc565b7 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -1442,6 +1442,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 e68f613ba66..6c7e0815a4a 100644 --- a/lms/envs/production.py +++ b/lms/envs/production.py @@ -687,6 +687,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 @@