allow analytics.js to be cached, enable anonymizeIP setting
(cherry picked from commit ab589da534)
This commit is contained in:
@@ -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