121116 updated to Ga4
This commit is contained in:
+3
-1
@@ -6,7 +6,8 @@ import { useStore, Provider } from "react-redux";
|
||||
import { persistStore } from "redux-persist";
|
||||
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";
|
||||
const MyApp = ({ Component, pageProps: { session, ...pageProps } }) => {
|
||||
const store = useStore((state) => state);
|
||||
const persistor = persistStore(store, {}, function () {
|
||||
@@ -21,6 +22,7 @@ const MyApp = ({ Component, pageProps: { session, ...pageProps } }) => {
|
||||
loading={<Loading />}
|
||||
>
|
||||
<Component {...pageProps} />
|
||||
<GoogleAnalytics gaId="G-GTWW3JT03Z" />
|
||||
</PersistGate>
|
||||
</Provider>
|
||||
</AuthProvider>
|
||||
|
||||
Reference in New Issue
Block a user