diff --git a/ietf/settings.py b/ietf/settings.py index fbc02b653..d59ca1c25 100644 --- a/ietf/settings.py +++ b/ietf/settings.py @@ -429,6 +429,7 @@ INSTALLED_APPS = [ 'django.contrib.sites', 'django.contrib.staticfiles', # External apps + 'analytical', 'django_bootstrap5', 'corsheaders', 'django_markup', diff --git a/ietf/templates/base.html b/ietf/templates/base.html index 6fbc669af..ea6a3b60d 100644 --- a/ietf/templates/base.html +++ b/ietf/templates/base.html @@ -1,11 +1,13 @@ {# Copyright The IETF Trust 2015-2022, All Rights Reserved #} +{% load analytical %} {% load ietf_filters static %} {% load origin %} {% origin %} {% load django_bootstrap5 %} + {% analytical_head_top %} @@ -32,9 +34,11 @@ <link rel="apple-touch-icon" href="{% static 'ietf/images/apple-touch-icon.png' %}"> <script src="{% static 'ietf/js/ietf.js' %}"></script> + {% analytical_head_bottom %} </head> <body {% block bodyAttrs %}{% endblock %} class="position-relative" data-group-menu-data-url="{% url 'ietf.group.views.group_menu_data' %}"> + {% analytical_body_top %} <a class="visually-hidden visually-hidden-focusable" href="#content">Skip to main content</a> <nav class="navbar navbar-expand-lg {% if server_mode and server_mode != "production" %} navbar-light bg-warning {% else %} navbar-dark bg-secondary {% endif %} {% if navbar_mode %} {{ navbar_mode }} {% else %} fixed-top {% endif %}"> <div class="container-fluid"> @@ -157,5 +161,6 @@ window.location.href = e.params.data.url; }); </script> + {% analytical_body_bottom %} </body> </html> diff --git a/requirements.txt b/requirements.txt index daa4b9bde..e274fddab 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,6 +10,7 @@ coverage>=4.0.1,!=4.0.2,<5.0 # Coverage 5.x moves from a json database to SQL decorator>=4.0.4 defusedxml>=0.4.1 # for TastyPie when ussing xml; not a declared dependency Django>=2.2.15,<3.0 +django-analytical>=3.1.0 django-bootstrap5>=21.1 django-csp>=3.5 django-cors-headers>=2.4.0 @@ -73,4 +74,4 @@ Unidecode>=0.4.18,<1.2.0 weasyprint>=52.5,<53 xml2rfc>=2.35.0 xym>=0.4.4,!=0.4.7,<1.0 -#zxcvbn-python>=4.4.14 # Not needed until we do back-end password entropy validation \ No newline at end of file +#zxcvbn-python>=4.4.14 # Not needed until we do back-end password entropy validation