From fcdf6c4bd995d6ad3b2f6f0f54103caad8e056aa Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Thu, 12 Sep 2024 13:13:52 +0200 Subject: [PATCH] chore: no analytics if its by automation --- frontend/src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/utils.ts b/frontend/src/utils.ts index 8024b9d..810b5d7 100644 --- a/frontend/src/utils.ts +++ b/frontend/src/utils.ts @@ -49,7 +49,7 @@ declare global { } export const trackEvent = (): void => { - if (window.gtag && process.env.NODE_ENV === "production") { + if (window.gtag && process.env.NODE_ENV === "production" && !window.navigator.webdriver) { window.gtag('event', "execute", { 'event_category': "engagement", });