ipfs-cluster / ipfs-cluster-website

The IPFS Cluster website
https://ipfscluster.io
MIT License
42 stars 50 forks source link

fix: respect users doNotTrack setting #67

Closed olizilla closed 5 years ago

olizilla commented 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

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

hsanjuan commented 5 years ago

Thanks!