Sfoglia il codice sorgente

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

Dan Cech 7 anni fa
parent
commit
93a8d8a25b
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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;
   }