remove fathom analytics

This commit is contained in:
m5r
2023-04-29 07:45:51 +02:00
parent 77e2ca5640
commit 2ebdca5484
5 changed files with 0 additions and 53 deletions

View File

@ -1,20 +0,0 @@
import { useEffect } from "react";
import { useLocation } from "@remix-run/react";
import * as Fathom from "fathom-client";
export default function useFathom() {
const location = useLocation();
useEffect(() => {
const { fathom, app } = window.shellphoneConfig;
Fathom.load(fathom.siteId, {
spa: "history",
url: fathom.domain ? `https://${fathom.domain}/script.js` : undefined,
includedDomains: [app.baseUrl.replace("https://", "")],
});
}, []);
useEffect(() => {
Fathom.trackPageview();
}, [location]);
}