Browse Source

add dev mode

main
matthew 2 years ago
parent
commit
39545ac8a5
  1. 14
      searching-front/app/core/helpers/metrika.ts

14
searching-front/app/core/helpers/metrika.ts

@ -1,4 +1,10 @@
export const count = (event:string) => { import cookies from "js-cookie"
yaCounter90644479.reachGoal(event)
gtag('event', event); export const count = (event: string) => {
} const isDev = cookies.get("dev")
if (isDev) {
return
}
yaCounter90644479.reachGoal(event)
gtag("event", event)
}

Loading…
Cancel
Save