allow analytics.js to be cached, enable anonymizeIP setting (#11656)

This commit is contained in:
Dan Cech 2018-05-08 04:48:27 -04:00 committed by Torkel Ödegaard
parent a2b864dd6b
commit 93a8d8a25b

View File

@ -19,6 +19,7 @@ export class Analytics {
});
ga.l = +new Date();
ga('create', (<any>config).googleAnalyticsId, 'auto');
ga('set', 'anonymizeIp', true);
return ga;
}