Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
React.useEffect(() => {
if (process.env.NODE_ENV === 'production') {
Fathom.load();
Fathom.setSiteId('ONFMHEEY');
Fathom.trackPageview();
}
}, [])
return <span></span>
useEffect(() => {
if (config.fathomSiteId) {
Fathom.load();
Fathom.setSiteId(config.fathomSiteId);
Fathom.trackPageview();
}
}, []);