Skip to content

Commit

Permalink
feat: add ncuhome GA4
Browse files Browse the repository at this point in the history
  • Loading branch information
aboutmydreams committed Jul 3, 2024
1 parent 6e0e562 commit 763da43
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,27 +1,30 @@
import '@fortawesome/fontawesome-svg-core/styles.css';
import type { AppProps } from 'next/app';
import Script from 'next/script';
import { Analytics } from '@vercel/analytics/react';
import './style.css';
import "@fortawesome/fontawesome-svg-core/styles.css";
import type { AppProps } from "next/app";
import Script from "next/script";
import { Analytics } from "@vercel/analytics/react";
import "./style.css";

function MyApp({ Component, pageProps }: AppProps) {
return (
<>
<Script async src="https://www.googletagmanager.com/gtag/js?id=G-ST7R3WQ353"/>
<Script>{`
<Script
async
src="https://www.googletagmanager.com/gtag/js?id=G-F99FVNWSL1"
/>
<Script>
{`
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-ST7R3WQ353');
gtag('config', 'G-F99FVNWSL1');
`}
</Script>
</Script>

<Component {...pageProps} />

<Analytics />
</>

);
}
export default MyApp;

export default MyApp;

0 comments on commit 763da43

Please sign in to comment.