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 %} +
google_analytics
property in the website's config file, and optionally replace it with the new gtag
property.
+