From cc8a96d508f71532343884a9e72962bfc1b45530 Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Tue, 25 May 2021 11:23:53 +0100 Subject: [PATCH] Merge pull request #4089 from overleaf/jlm-ga-anonymize-ip Anonymize IP address for Google Analytics GitOrigin-RevId: e010e74a01dc6df2bd816d08989f51ae08c05dd7 --- services/web/app/views/layout.pug | 1 + 1 file changed, 1 insertion(+) diff --git a/services/web/app/views/layout.pug b/services/web/app/views/layout.pug index aac79bd463..36b325bec2 100644 --- a/services/web/app/views/layout.pug +++ b/services/web/app/views/layout.pug @@ -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 {