config/privacy: Change GoogleAnalytics.RespectDoNotTrack default to true

Closes #13307
This commit is contained in:
Joe Mooring
2025-04-28 11:40:06 -07:00
committed by Bjørn Erik Pedersen
parent 438f113f83
commit 565a10cbf0
2 changed files with 24 additions and 11 deletions
+1 -5
View File
@@ -112,12 +112,8 @@ type X struct {
// DecodeConfig creates a privacy Config from a given Hugo configuration.
func DecodeConfig(cfg config.Provider) (pc Config, err error) {
if !cfg.IsSet(privacyConfigKey) {
return
}
pc.GoogleAnalytics.RespectDoNotTrack = true
m := cfg.GetStringMap(privacyConfigKey)
err = mapstructure.WeakDecode(m, &pc)
return