diff --git a/_config.yml b/_config.yml index a4d3a91..cb8926c 100644 --- a/_config.yml +++ b/_config.yml @@ -176,7 +176,7 @@ footer-hover-col: "#0085A1" # uri: "demo.wiki.pro" # opt-out: true -# Gogle Universal Analytics ID -- deprecated +# Google Universal Analytics ID -- deprecated # As of July 2023 this is no longer supported by Google! If you are still using `google_analytics`, # you should switch to using the `gtag` field above instead. #google_analytics: "UA-XXXXXXXX-X" diff --git a/_includes/google_analytics.html b/_includes/google_analytics.html index 01f7406..d9b053f 100644 --- a/_includes/google_analytics.html +++ b/_includes/google_analytics.html @@ -1,5 +1,17 @@ {% if site.google_analytics %} +{% unless site.gtag %} +
+
×
+
+ This website is using outdated Google Analytics +
+ More info + As of July 2023, Google's Universal Analytics is going away and being replaced by Google Analytics 4. This website is still using the old Universal Analytics. In order to remove this message, the website owner must remove the google_analytics property in the website's config file, and optionally replace it with the new gtag property. +
+
+
+{% endunless %}