feat: add GA
This commit is contained in:
parent
4f5d9783a6
commit
72c7938c6d
@ -34,7 +34,7 @@ export const defaultMeta = {
|
||||
}
|
||||
}
|
||||
|
||||
export const gaTrackingId = 'G-9VWWSHF995'
|
||||
export const gaTrackingId = 'GTM-WJMQ92T'
|
||||
|
||||
export const socialLinks = {
|
||||
youTube: 'https://www.youtube.com/c/MrBeast6000',
|
||||
|
||||
@ -12,7 +12,7 @@ import Mouse from '~/components/common/mouse'
|
||||
import { AnimationContextProvider } from '~/context/animation'
|
||||
import { basementLog, isProd } from '~/lib/constants'
|
||||
import { FontsReadyScript } from '~/lib/font-scripts'
|
||||
// import { GAScripts, useAppGA } from '~/lib/ga'
|
||||
import { GAScripts, useAppGA } from '~/lib/ga'
|
||||
|
||||
export type Page<P = Record<string, unknown>> = NextComponentType<
|
||||
NextPageContext,
|
||||
@ -32,7 +32,7 @@ if (isProd) {
|
||||
const queryClient = new QueryClient()
|
||||
|
||||
const App = ({ Component, pageProps, ...rest }: AppProps) => {
|
||||
// useAppGA()
|
||||
useAppGA()
|
||||
|
||||
React.useEffect(() => {
|
||||
function handleKeyDown(event: KeyboardEvent) {
|
||||
@ -61,7 +61,7 @@ const App = ({ Component, pageProps, ...rest }: AppProps) => {
|
||||
<QueryClientProvider client={queryClient}>
|
||||
<RealViewportProvider debounceResize={false}>
|
||||
<AnimationContextProvider>
|
||||
{/* <GAScripts /> */}
|
||||
<GAScripts />
|
||||
<FontsReadyScript />
|
||||
<Header />
|
||||
<Mouse />
|
||||
|
||||
Loading…
Reference in New Issue
Block a user