google analytics

This commit is contained in:
mantikoros 2021-12-02 19:18:00 -06:00
parent 4c42b304a8
commit 153a2ca588

View File

@ -1,6 +1,8 @@
import React from 'react'
import type { NextPage } from 'next' import type { NextPage } from 'next'
import Head from 'next/head' import Head from 'next/head'
import React from 'react'
import { Hero } from '../components/hero' import { Hero } from '../components/hero'
const Home: NextPage = () => { const Home: NextPage = () => {
@ -27,12 +29,20 @@ const Home: NextPage = () => {
href="https://fonts.googleapis.com/css2?family=Major+Mono+Display&display=swap" href="https://fonts.googleapis.com/css2?family=Major+Mono+Display&display=swap"
rel="stylesheet" rel="stylesheet"
/> />
<script async src="https://www.googletagmanager.com/gtag/js?id=G-SSFK1Q138D"></script> <script
<script> async
window.dataLayer = window.dataLayer || []; src="https://www.googletagmanager.com/gtag/js?id=G-SSFK1Q138D"
window.dataLayer.push(['js', new Date()]); />
window.dataLayer.push(['config', 'G-SSFK1Q138D']); <script
</script> dangerouslySetInnerHTML={{
__html: `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-SSFK1Q138D');
`,
}}
/>
</Head> </Head>
<Hero /> <Hero />