Browse Source

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

Dan Cech 7 năm trước cách đây
mục cha
commit
93a8d8a25b
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      public/app/core/services/analytics.ts

+ 1 - 0
public/app/core/services/analytics.ts

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