How to use the fathom-client.setSiteId 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
React.useEffect(() => {
    if (process.env.NODE_ENV === 'production') {
      Fathom.load();
      Fathom.setSiteId('ONFMHEEY');
      Fathom.trackPageview();
    }
  }, [])
  return <span></span>
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 5 months ago

Package Health Score

70 / 100
Full package analysis