Merge pull request #4089 from overleaf/jlm-ga-anonymize-ip

Anonymize IP address for Google Analytics

GitOrigin-RevId: e010e74a01dc6df2bd816d08989f51ae08c05dd7
This commit is contained in:
Alf Eaton 2021-05-25 11:23:53 +01:00 committed by Copybot
parent 24ac0dbf97
commit cc8a96d508

View file

@ -35,6 +35,7 @@ html(
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
script(type="text/javascript", nonce=scriptNonce).
ga('create', '#{gaToken}', '#{settings.cookieDomain.replace(/^\./, "")}');
ga('set', 'anonymizeIp', true);
ga('send', 'pageview');
try {