diff --git a/aksel.nav.no/website/components/logging/useAmplitude.ts b/aksel.nav.no/website/components/logging/useAmplitude.ts index a010499f0c..29aad336cf 100644 --- a/aksel.nav.no/website/components/logging/useAmplitude.ts +++ b/aksel.nav.no/website/components/logging/useAmplitude.ts @@ -5,8 +5,9 @@ const batchedEvents: Parameters["track"]>[] = []; export let amplitude: Pick = { - track: (...eventsData) => { - batchedEvents.push(eventsData); + track: (/* ...eventsData */) => { + /* Until re-enabled in _app.tsx, we can skip storing events */ + /* batchedEvents.push(eventsData); */ return { promise: new Promise((resolve) => resolve({ diff --git a/aksel.nav.no/website/pages/_app.tsx b/aksel.nav.no/website/pages/_app.tsx index 2a285440de..be920bf0ec 100644 --- a/aksel.nav.no/website/pages/_app.tsx +++ b/aksel.nav.no/website/pages/_app.tsx @@ -3,13 +3,14 @@ import { useEffect } from "react"; import { useCheckAuth } from "@/hooks/useCheckAuth"; import { useHashScroll } from "@/hooks/useHashScroll"; import { SanityDataContext } from "@/hooks/useSanityData"; -import { useAmplitudeInit } from "@/logging"; import { BaseSEO } from "@/web/seo/BaseSEO"; import "../components/styles/index.css"; function App({ Component, pageProps, router }: AppProps) { useHashScroll(); - useAmplitudeInit(); + + /* As of 01.01.25, removed until cookie compliance is implemented */ + /* useAmplitudeInit(); */ useEffect(() => { window.location.host === "design.nav.no" &&