diff --git a/src/aurora/core/templatetags/matomo.py b/src/aurora/core/templatetags/matomo.py index 4fe56917..9a59568d 100644 --- a/src/aurora/core/templatetags/matomo.py +++ b/src/aurora/core/templatetags/matomo.py @@ -11,4 +11,4 @@ def matomo_site(): @register.simple_tag() def matomo_id(): - return settings.MATOMO_ID + return getattr(settings, 'MATOMO_ID', '')