Update of packages and simplification
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import App, { Container } from "next/app";
|
||||
import Router from "next/router";
|
||||
import Script from 'next/script'
|
||||
import Head from "next/head";
|
||||
|
||||
import { gsap } from "gsap/dist/gsap";
|
||||
@@ -204,20 +204,19 @@ export default class Site extends App {
|
||||
</SwitchTransition>
|
||||
<Footer />
|
||||
|
||||
<script
|
||||
async
|
||||
src="https://www.googletagmanager.com/gtag/js?id=G-504FPVG74X"
|
||||
></script>
|
||||
<script
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: `
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
gtag('config', 'G-504FPVG74X');
|
||||
`,
|
||||
}}
|
||||
/>
|
||||
<Script
|
||||
src="https://www.googletagmanager.com/gtag/js?id=G-504FPVG74X"
|
||||
strategy="afterInteractive"
|
||||
/>
|
||||
<Script id="google-analytics" strategy="afterInteractive">
|
||||
{`
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){window.dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', 'G-504FPVG74X');
|
||||
`}
|
||||
</Script>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user