From 54b30d735523c31237ab94959c983b0eeb5c4ebe Mon Sep 17 00:00:00 2001 From: Jeffrey Tse Date: Sat, 24 Jun 2023 11:01:02 +0800 Subject: feat: google analytics 4 (GA4) support (#112) --- _config.yml | 5 +++-- _includes/extensions/google-analytics.html | 20 ++++++++++++++------ 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/_config.yml b/_config.yml index 989eabb..59b1c2b 100644 --- a/_config.yml +++ b/_config.yml @@ -65,8 +65,9 @@ yat: # If you want to change the content width, you can set to another value # content_width: "920px" -# Google analytics -# google_analytics: [Tracking ID] +# Google analytics - GA4 +# google_analytics: [Measurement ID] +# enableDNT: "false" # If you want to generate website sitemap, you can set true # sitemap: false diff --git a/_includes/extensions/google-analytics.html b/_includes/extensions/google-analytics.html index a3b6d85..9ae8963 100644 --- a/_includes/extensions/google-analytics.html +++ b/_includes/extensions/google-analytics.html @@ -1,3 +1,4 @@ +