@ -34,7 +34,7 @@ export const App = ({ url }: { url?: string }) => {
const handleRouteChange = () => {
// @ts-ignore
if (window.goatcounter) {
if (typeof window !== 'undefined' && window.goatcounter) {
window.goatcounter.count({
path: location.pathname + location.search + location.hash,