allow analytics.js to be cached, enable anonymizeIP setting (#11656)
This commit is contained in:
committed by
Torkel Ödegaard
parent
a2b864dd6b
commit
93a8d8a25b
@@ -19,6 +19,7 @@ export class Analytics {
|
|||||||
});
|
});
|
||||||
ga.l = +new Date();
|
ga.l = +new Date();
|
||||||
ga('create', (<any>config).googleAnalyticsId, 'auto');
|
ga('create', (<any>config).googleAnalyticsId, 'auto');
|
||||||
|
ga('set', 'anonymizeIp', true);
|
||||||
return ga;
|
return ga;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user