Browse Source

add dev mode

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

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

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