aboutsummaryrefslogtreecommitdiffhomepage
path: root/config/privacy
diff options
context:
space:
mode:
authorJoe Mooring <[email protected]>2024-03-23 13:07:00 -0700
committerBjørn Erik Pedersen <[email protected]>2024-03-26 15:40:51 +0100
commitebfca61ac4d4b62b3e4a50477826a85c06b44552 (patch)
tree2d82e184bcb6071f0edbad45672b4f98593a9a2b /config/privacy
parente1917740afe3fd08d1948947e25eff55e2c10d98 (diff)
downloadhugo-ebfca61ac4d4b62b3e4a50477826a85c06b44552.tar.gz
hugo-ebfca61ac4d4b62b3e4a50477826a85c06b44552.zip
tpl/tplimpl: Update Google Analytics template and config
Google Analytics 4 (GA4) replaced Google Universal Analytics (UA) effective 1 July 2023. See https://support.google.com/analytics/answer/11583528. Changes: - Update tpl/tplimpl/embedded/templates/google_analytics.html - Remove tpl/tplimpl/embedded/templates/google_analytics_async.html - Remove extraneous config settings Closes #11802 Closes #10093
Diffstat (limited to 'config/privacy')
-rw-r--r--config/privacy/privacyConfig.go6
-rw-r--r--config/privacy/privacyConfig_test.go5
2 files changed, 1 insertions, 10 deletions
diff --git a/config/privacy/privacyConfig.go b/config/privacy/privacyConfig.go
index a36046364..8880b1036 100644
--- a/config/privacy/privacyConfig.go
+++ b/config/privacy/privacyConfig.go
@@ -44,15 +44,9 @@ type Disqus struct {
type GoogleAnalytics struct {
Service `mapstructure:",squash"`
- // Enabling this will disable the use of Cookies and use Session Storage to Store the GA Client ID.
- UseSessionStorage bool
-
// Enabling this will make the GA templates respect the
// "Do Not Track" HTTP header. See https://www.paulfurley.com/google-analytics-dnt/.
RespectDoNotTrack bool
-
- // Enabling this will make it so the users' IP addresses are anonymized within Google Analytics.
- AnonymizeIP bool
}
// Instagram holds the privacy configuration settings related to the Instagram shortcode.
diff --git a/config/privacy/privacyConfig_test.go b/config/privacy/privacyConfig_test.go
index c17ce713d..bff627f48 100644
--- a/config/privacy/privacyConfig_test.go
+++ b/config/privacy/privacyConfig_test.go
@@ -33,8 +33,6 @@ disable = true
[privacy.googleAnalytics]
disable = true
respectDoNotTrack = true
-anonymizeIP = true
-useSessionStorage = true
[privacy.instagram]
disable = true
simple = true
@@ -60,8 +58,7 @@ simple = true
got := []bool{
pc.Disqus.Disable, pc.GoogleAnalytics.Disable,
- pc.GoogleAnalytics.RespectDoNotTrack, pc.GoogleAnalytics.AnonymizeIP,
- pc.GoogleAnalytics.UseSessionStorage, pc.Instagram.Disable,
+ pc.GoogleAnalytics.RespectDoNotTrack, pc.Instagram.Disable,
pc.Instagram.Simple, pc.Twitter.Disable, pc.Twitter.EnableDNT,
pc.Twitter.Simple, pc.Vimeo.Disable, pc.Vimeo.EnableDNT, pc.Vimeo.Simple,
pc.YouTube.PrivacyEnhanced, pc.YouTube.Disable,