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: