implement application insights

This commit is contained in:
2024-09-13 11:03:35 +01:00
parent c658e8065a
commit a15482bb63
5 changed files with 69 additions and 18 deletions
+4 -1
View File
@@ -8,6 +8,7 @@ import { PersistGate } from "redux-persist/integration/react";
import { SessionProvider as AuthProvider } from "next-auth/react";
import { Tracking } from "../components/tracking";
import { GoogleAnalytics } from "@next/third-parties/google";
import Azureappinsights from "../components/azureappinsights";
const MyApp = ({ Component, pageProps: { session, ...pageProps } }) => {
const store = useStore((state) => state);
const persistor = persistStore(store, {}, function () {
@@ -21,7 +22,9 @@ const MyApp = ({ Component, pageProps: { session, ...pageProps } }) => {
persistor={store.__persistor}
loading={<Loading />}
>
<Component {...pageProps} />
<Azureappinsights>
<Component {...pageProps} />
</Azureappinsights>
<GoogleAnalytics gaId="G-GTWW3JT03Z" />
</PersistGate>
</Provider>