From 6e9f1e602e7738367cb9788afa4b7d0cf8429fcc Mon Sep 17 00:00:00 2001 From: Johan Guldmyr Date: Sun, 16 Apr 2023 09:52:55 +0300 Subject: [PATCH 1/3] Add support for GA4 gtag.js Google Analytics --- alchemy/templates/include/analytics.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/alchemy/templates/include/analytics.html b/alchemy/templates/include/analytics.html index a8a97e8..4950fe5 100644 --- a/alchemy/templates/include/analytics.html +++ b/alchemy/templates/include/analytics.html @@ -16,6 +16,18 @@ {% endif %} +{% if GOOGLE_ANALYTICS_GTAG %} + + + +{% endif %} + {% if GAUGES %} {% endif %} -{% if GOOGLE_ANALYTICS_GTAG %} - +{%- if GOOGLE_ANALYTICS_GTAG %} -{% endif %} +{%- endif %} {% if GAUGES %} -{% endif %} - -{%- if GOOGLE_ANALYTICS_GTAG %} - + -{%- endif %} +{% endif %} {% if GAUGES %}