Permalink
Browse files

Prevent AI to record client location IP

  • Loading branch information...
michaeljqzq committed Dec 25, 2017
1 parent 67c4276 commit dcd39f11697525b15a49055316c35948c2124c8c
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/lib/telemetry.js
View
@@ -16,6 +16,14 @@ const userProperties = {
};
AppInsights.downloadAndSetup({ instrumentationKey: intrumentKey });
// Prevent AI from tracking user's location IP information.
AppInsights.queue.push(function () {
AppInsights.context.addTelemetryInitializer(function (envelope) {
envelope.tags['ai.location.ip'] = '0.0.0.0';
});
});
ga.initialize(googleAnalticsKey);
function tracePageView() {

0 comments on commit dcd39f1

Please sign in to comment.