diff --git a/docs/pelicanconf.py b/docs/pelicanconf.py index e6055b4..30c9624 100644 --- a/docs/pelicanconf.py +++ b/docs/pelicanconf.py @@ -77,3 +77,7 @@ THEME_COLOR_AUTO_DETECT_BROWSER_PREFERENCE = True THEME_COLOR_ENABLE_USER_OVERRIDE = True USE_LESS = True + +# GOOGLE ANALYTICS +# For Google Analytics 4 use. Note that for old Google Analytics ('UA-XXXXX') the GOOGLE_ANALYTICS variable is included in publishconfig.py +# GOOGLE_GLOBAL_SITE_TAG = 'G-XXXXX' diff --git a/templates/base.html b/templates/base.html index 9c1f3a2..3067590 100644 --- a/templates/base.html +++ b/templates/base.html @@ -102,6 +102,10 @@ {% if GOOGLE_ANALYTICS %} {% include "partial/ga.html" %} {% endif %} + + {% if GOOGLE_GLOBAL_SITE_TAG %} + {% include "partial/ggst.html" %} + {% endif %} {% if BROWSER_COLOR %} diff --git a/templates/partial/ggst.html b/templates/partial/ggst.html new file mode 100644 index 0000000..bac7d3a --- /dev/null +++ b/templates/partial/ggst.html @@ -0,0 +1,10 @@ + + + + \ No newline at end of file