How to use the fathom-client.load 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 pradel / twoblocks / src / App.tsx View on Github external
useEffect(() => {
    if (config.fathomSiteId) {
      Fathom.load();
      Fathom.setSiteId(config.fathomSiteId);
      Fathom.trackPageview();
    }
  }, []);
github brianlovin / brian-lovin-next / src / components / Providers / Fathom.tsx View on Github external
React.useEffect(() => {
    if (process.env.NODE_ENV === 'production') {
      Fathom.load();
      Fathom.setSiteId('ONFMHEEY');
      Fathom.trackPageview();
    }
  }, [])
  return <span></span>

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