diff --git a/src/django_project/core/settings.py b/src/django_project/core/settings.py index 9fef477..21fe367 100644 --- a/src/django_project/core/settings.py +++ b/src/django_project/core/settings.py @@ -301,3 +301,5 @@ ) PROJECT_VERSION = env.str("IMAGE_TAG", "0.0.0") PROJECT_SOURCE = "https://github.com/SpokaneTech/SpokanePythonWeb" + +GOOGLE_ANALYTICS_TAG_ID: str | None = env.str("GOOGLE_ANALYTICS_TAG_ID", None) diff --git a/src/django_project/web/templates/web/full/host_info.html b/src/django_project/web/templates/web/full/host_info.html index 7546ac7..2ac97ab 100644 --- a/src/django_project/web/templates/web/full/host_info.html +++ b/src/django_project/web/templates/web/full/host_info.html @@ -4,15 +4,17 @@ + {% if GOOGLE_ANALYTICS_TAG_ID %} - + + {% endif %} + {% if GOOGLE_ANALYTICS_TAG_ID %} - + + {% endif %}