Add RespectDoNotTrack to GDPR privacy policy for Google Analytics

See #4616
This commit is contained in:
Bjørn Erik Pedersen
2018-05-21 10:18:36 +02:00
parent f45b522ebf
commit 710142016b
5 changed files with 54 additions and 20 deletions

View File

@@ -44,6 +44,10 @@ type Disqus struct {
// GoogleAnalytics holds the privacy configuration settings related to the Google Analytics template.
type GoogleAnalytics struct {
Service `mapstructure:",squash"`
// Enabling this will make the GA templates respect the
// "Do Not Track" HTTP header. See https://www.paulfurley.com/google-analytics-dnt/.
RespectDoNotTrack bool
}
// Instagram holds the privacy configuration settings related to the Instagram shortcode.