From 3278d83c1f31efeb56be3c4edf5f0a53a6d4e1b5 Mon Sep 17 00:00:00 2001 From: Birger Schacht Date: Wed, 18 Oct 2023 11:02:11 +0200 Subject: [PATCH] Add django-matomo --- apis_ontology/settings/server_settings.py | 3 +++ apis_ontology/templates/base.html | 6 ++++++ pyproject.toml | 1 + 3 files changed, 10 insertions(+) create mode 100644 apis_ontology/templates/base.html diff --git a/apis_ontology/settings/server_settings.py b/apis_ontology/settings/server_settings.py index 51fa3f9..159c15a 100644 --- a/apis_ontology/settings/server_settings.py +++ b/apis_ontology/settings/server_settings.py @@ -68,6 +68,9 @@ INSTALLED_APPS += ["apis_bibsonomy"] INSTALLED_APPS += ["webpage"] +INSTALLED_APPS += ["matomo"] +MATOMO_URL = "https://matomo.acdh.oeaw.ac.at/" +MATOMO_SITE_ID = 242 #STATICFILES_DIRS = [BASE_DIR + "/member_images"] diff --git a/apis_ontology/templates/base.html b/apis_ontology/templates/base.html new file mode 100644 index 0000000..2aff144 --- /dev/null +++ b/apis_ontology/templates/base.html @@ -0,0 +1,6 @@ +{% extends "base.html" %} +{% load matomo_tags %} + +{% block scriptHeader %} +{% tracking_code %} +{% endblock scriptHeader %} diff --git a/pyproject.toml b/pyproject.toml index d2ab600..f9bdb41 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,6 +15,7 @@ apis-core = { git = "https://github.com/acdh-oeaw/apis-core-rdf.git", tag = "v0. webpage = { git = "https://github.com/acdh-oeaw/apis-webpage.git", tag = "v0.2.0" } apis-bibsonomy = { git = "https://github.com/acdh-oeaw/apis-bibsonomy.git", branch = "birger/fix-referenceonform-issues" } apis-acdhch-default-settings = { git = "https://github.com/acdh-oeaw/apis-acdhch-default-settings.git", tag = "v0.1.8" } +django-matomo = "^0.1.6" [build-system] requires = ["poetry-core>=1.0.0"]