Skip to content

Commit 6b219c4

Browse files
allow manually turning off tracking, related to testing
1 parent c8cead6 commit 6b219c4

File tree

1 file changed

+2
-1
lines changed
  • packages/common/src/utils/analytics

1 file changed

+2
-1
lines changed

packages/common/src/utils/analytics/utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ export const DO_NOT_TRACK_ENABLED =
7575
// @ts-ignore
7676
global.navigator.doNotTrack === '1' ||
7777
// @ts-ignore
78-
global.navigator.msDoNotTrack === '1'
78+
global.navigator.msDoNotTrack === '1' ||
79+
localStorage.getItem('DO_NOT_TRACK_ENABLED')
7980
);
8081

8182
export const isAllowedEvent = (eventName, secondArg) => {

0 commit comments

Comments
 (0)