feat: add GA

This commit is contained in:
Nazareno Oviedo 2022-04-12 14:43:02 -03:00
parent 4f5d9783a6
commit 72c7938c6d
2 changed files with 4 additions and 4 deletions

View File

@ -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',

View File

@ -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 />