Skip to content

Commit

Permalink
chore: no analytics if its by automation
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt committed Sep 12, 2024
1 parent b681de8 commit fcdf6c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
});
Expand Down

0 comments on commit fcdf6c4

Please sign in to comment.