Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
Add django-matomo
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Oct 18, 2023
1 parent 0aa79ce commit 3278d83
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apis_ontology/settings/server_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand Down
6 changes: 6 additions & 0 deletions apis_ontology/templates/base.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{% extends "base.html" %}
{% load matomo_tags %}

{% block scriptHeader %}
{% tracking_code %}
{% endblock scriptHeader %}
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 3278d83

Please sign in to comment.