From 76108e7f0a0878794ac1ba82db6a8247898fdf7c Mon Sep 17 00:00:00 2001 From: Farhaan Bukhsh Date: Fri, 8 Nov 2024 17:45:57 +0530 Subject: [PATCH] feat: Add Matamo integration for platform. Matamo integration for the platform. This adds the integration to the landing page. Signed-off-by: Farhaan Bukhsh --- lms/envs/common.py | 4 ++++ lms/templates/main.html | 22 ++++++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/lms/envs/common.py b/lms/envs/common.py index d227cb0bc0ec..5e42750a84b2 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -1627,6 +1627,10 @@ def _make_mako_template_dirs(settings): GOOGLE_ANALYTICS_TRACKING_ID = None GOOGLE_ANALYTICS_4_ID = None +######################## MATAMO ANALYTICS #################### +MATAMO_SITE_ID = None +MATAMO_INSTANCE_URL = None + ######################## BRANCH.IO ########################### BRANCH_IO_KEY = '' diff --git a/lms/templates/main.html b/lms/templates/main.html index 1a11900dae58..fff46f155a1e 100644 --- a/lms/templates/main.html +++ b/lms/templates/main.html @@ -177,6 +177,28 @@ % endif + +<% matamo_site_id = static.get_value("MATAMO_SITE_ID", settings.MATAMO_SITE_ID) %> +<% matamo_instance_url = static.get_value("MATAMO_INSTANCE_URL", settings.MATAMO_INSTANCE_URL) %> +% if matamo_site_id and matamo_instance_url: + +% endif + <% branch_key = static.get_value("BRANCH_IO_KEY", settings.BRANCH_IO_KEY) %> % if branch_key and not is_from_mobile_app: