diff --git a/client/App.tsx b/client/App.tsx index 26bc63f..645d360 100644 --- a/client/App.tsx +++ b/client/App.tsx @@ -34,7 +34,7 @@ export const App = ({ url }: { url?: string }) => { const handleRouteChange = () => { // @ts-ignore - if (window.goatcounter) { + if (typeof window !== 'undefined' && window.goatcounter) { // @ts-ignore window.goatcounter.count({ path: location.pathname + location.search + location.hash,