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) => {
yaCounter90644479.reachGoal(event)
gtag('event', event);
}
import cookies from "js-cookie"
export const count = (event: string) => {
const isDev = cookies.get("dev")
if (isDev) {
return
}
yaCounter90644479.reachGoal(event)
gtag("event", event)
}

Loading…
Cancel
Save