Last active
October 17, 2022 04:05
-
-
Save cjkihl/29b1e9f2588dfdd8a37ab126344b3b49 to your computer and use it in GitHub Desktop.
NextJS GTM _app.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "../styles/globals.css"; | |
import type { AppProps } from "next/app"; | |
import useEvents from "../gtm/useEvents"; | |
import Tag from "../gtm/Tag"; | |
function MyApp({ Component, pageProps }: AppProps) { | |
useEvents(); | |
return ( | |
<> | |
<Tag /> | |
<Component {...pageProps} /> | |
</> | |
); | |
} | |
export default MyApp; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment