From 814447373a5e334222c9ad41484b0e433e41ec38 Mon Sep 17 00:00:00 2001 From: Dave Date: Thu, 28 Aug 2025 16:00:39 -0400 Subject: [PATCH] feature/IO-3255-simplified-parts-management - Checkpoint --- client/src/index.jsx | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/client/src/index.jsx b/client/src/index.jsx index 3c41b9f5b..830679c50 100644 --- a/client/src/index.jsx +++ b/client/src/index.jsx @@ -16,6 +16,7 @@ import "./translations/i18n"; import "./utils/CleanAxios"; import * as amplitude from "@amplitude/analytics-browser"; import { PostHogProvider } from "posthog-js/react"; +import posthog from "posthog-js"; window.global ||= window; @@ -25,7 +26,29 @@ registerSW({ immediate: true }); // Dinero.globalLocale = "en-CA"; Dinero.globalRoundingMode = "HALF_EVEN"; -amplitude.init("6228a598e57cd66875cfd41604f1f891", {}); +amplitude.init("6228a598e57cd66875cfd41604f1f891", { + defaultTracking: true + // { + // attribution: { + // excludeReferrers: true, + // initialEmptyValue: true, + // resetSessionOnNewCampaign: true, + // }, + // fileDownloads: true, + // formInteractions: true, + // pageViews: { + // trackHistoryChanges: 'all' + // }, + // sessions: true + // } +}); + +posthog.init(import.meta.env.VITE_PUBLIC_POSTHOG_KEY, { + autocapture: false, + capture_exceptions: true, + api_host: import.meta.env.VITE_PUBLIC_POSTHOG_HOST +}); + const sentryCreateBrowserRouter = Sentry.wrapCreateBrowserRouterV6(createBrowserRouter); const router = sentryCreateBrowserRouter(createRoutesFromElements(} />)); @@ -39,10 +62,7 @@ function App() { return ( } persistor={persistor}> - +