matthew
2 years ago
1 changed files with 10 additions and 4 deletions
@ -1,4 +1,10 @@
|
||||
export const count = (event:string) => { |
||||
import cookies from "js-cookie" |
||||
|
||||
export const count = (event: string) => { |
||||
const isDev = cookies.get("dev") |
||||
if (isDev) { |
||||
return |
||||
} |
||||
yaCounter90644479.reachGoal(event) |
||||
gtag('event', event); |
||||
gtag("event", event) |
||||
} |
Loading…
Reference in new issue