Ensure anonymization of IP in GA (#3734)
This commit is contained in:
parent
30828cf0f7
commit
0b64407b81
2 changed files with 2 additions and 0 deletions
|
|
@ -12,6 +12,7 @@ function initializeBaseTracking() {
|
|||
wait++;
|
||||
if (window.ga && ga.create) {
|
||||
ga('create', '<%= ApplicationConfig["GA_TRACKING_ID"] %>', 'auto');
|
||||
ga('set', 'anonymizeIp', true);
|
||||
ga('send', 'pageview', location.pathname + location.search);
|
||||
clearInterval(waitingOnGA);
|
||||
logImpressions();
|
||||
|
|
|
|||
|
|
@ -116,6 +116,7 @@
|
|||
})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
|
||||
|
||||
ga('create', '<%= ApplicationConfig["GA_TRACKING_ID"] %>', 'auto');
|
||||
ga('set', 'anonymizeIp', true);
|
||||
ga('send', 'pageview');
|
||||
ga('send', 'event', 'view', '/badge version impression', '<%= @html_variant.name %>', null);
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue