Skip to content

Commit 3d439b8

Browse files
committed
Only mark version of analytics if we're in prod
1 parent bd288ad commit 3d439b8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/common/src/utils/analytics.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,11 @@ export async function identify(key: string, value: string) {
6464
}
6565
}
6666

67-
setTimeout(() => {
68-
identify('[Amplitude] Version', VERSION);
69-
}, 5000);
67+
if (process.env.NODE_ENV === 'production') {
68+
setTimeout(() => {
69+
identify('[Amplitude] Version', VERSION);
70+
}, 5000);
71+
}
7072

7173
export async function setUserId(userId: string) {
7274
try {

0 commit comments

Comments
 (0)