How to use the fathom-client.trackPageview function in fathom-client

To help you get started, we’ve selected a few fathom-client examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github brianlovin / brian-lovin-next / src / components / Providers / Fathom.tsx View on Github external
Router.events.on('routeChangeComplete', () => {
  if (process.env.NODE_ENV === 'production') {
    Fathom.trackPageview()
  }
})
github pradel / twoblocks / src / App.tsx View on Github external
useEffect(() => {
    if (config.fathomSiteId) {
      Fathom.load();
      Fathom.setSiteId(config.fathomSiteId);
      Fathom.trackPageview();
    }
  }, []);

fathom-client

A simple wrapper around the Fathom Analytics library

MIT
Latest version published 6 months ago

Package Health Score

66 / 100
Full package analysis