Making Google Analytics anonymize IPs in Hugo
2 minute read Published:

Google Analytics has a cool feature called IP Anonymization. Google has a good explanation but basically they discard all IP information as its collected. It’s not a replacement for tracker blocking extensions, but it does give your users/readers a little extra privacy. Hugo has internal Google Analytics support, just specify a googleAnalytics = “token” in your config file and most themes will just add GA to all pages for you. This internal support (as of now) doesn’t include a way to enable the IP Anonymization feature.