From cdfd011f1a9cba7489ef65ff0fffb7495b70b71e Mon Sep 17 00:00:00 2001 From: Dean Attali Date: Sun, 30 Apr 2023 11:54:03 -0400 Subject: [PATCH] google analytics config setting: encourage gtag, discourage google_analytics (fixes #1096) --- CHANGELOG.md | 1 + _config.yml | 12 +++++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 61436a3deb5f..8f32f91d7ff3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ - Added `footer-hover-col` config setting to customize the hover colour of links in the footer (#848) - Added social network links for Discord (#907), Kaggle (#961), and Hackerrank (#978) - Made the home page feed more accessible for screen readers (#950) +- When using Google Analytics config setting, encourage using the new `gtag` and discourage using the deprecated `google_analytics` (#1096) ## v5.0.0 (2020-09-15) diff --git a/_config.yml b/_config.yml index 40e0bc8a04a5..5a9dc736bd30 100644 --- a/_config.yml +++ b/_config.yml @@ -159,11 +159,8 @@ footer-hover-col: "#0085A1" # --- Web Analytics Section --- # ################################# -# Fill in your Google Analytics gtag.js ID to track your website using gtag -#gtag: "" - -# Fill in your Google Analytics ID to track your website using Google Analytics -#google_analytics: "" +# Fill in your Google Analytics tag ID (or "Measurement ID") to track your website usage +#gtag: "G-XXXXXXXXXX" # Fill in your Cloudflare Analytics beacon token to track your website using Cloudflare Analytics #cloudflare_analytics: "" @@ -179,6 +176,11 @@ footer-hover-col: "#0085A1" # uri: "demo.wiki.pro" # opt-out: true +# Gogle 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" + #################### # --- Comments --- # ####################