Closed olizilla closed 5 years ago
Use the internal hugo template as @hsanjuan suggested. (sorry!)
The hugo ga template in versions > v0.41 has support for doNotTrack and ga IP anonymisation, so use that instead of rolling our own.
it wraps the GA template in a check for navigator.doNotTrack and enables IP address anonymisation
navigator.doNotTrack
see: https://github.com/gohugoio/hugo/blob/release-0.49/tpl/tplimpl/embedded/templates/google_analytics.html
License: MIT Signed-off-by: Oli Evans oli@tableflip.io
Thanks!
Use the internal hugo template as @hsanjuan suggested. (sorry!)
The hugo ga template in versions > v0.41 has support for doNotTrack and ga IP anonymisation, so use that instead of rolling our own.
it wraps the GA template in a check for
navigator.doNotTrack
and enables IP address anonymisationsee: https://github.com/gohugoio/hugo/blob/release-0.49/tpl/tplimpl/embedded/templates/google_analytics.html
License: MIT Signed-off-by: Oli Evans oli@tableflip.io