<reponame>NanoX-Labs/ChatGPT-Reader-Slack<filename>web/landing/www/src/util.js<gh_stars>0export const umamiEvent = (eventName, eventData) => {
    if (!Object.hasOwn(window, "umami")) {
      return
    }
    window.umami.trackEvent(eventName, eventData)
  }

export const gtagEvent = (action) => {
    if (!Object.hasOwn(window, "gtag")) {
      return
    }
    // @ts-ignore
    window.gtag("event", action)
  }