Created
November 28, 2020 06:34
-
-
Save miminari/e165b849d5443e2c02a829caa3435a7b to your computer and use it in GitHub Desktop.
This file contains 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 App, { Container } from 'next/app' | |
import TagManager from 'react-gtm-module' | |
import '../styles/globals.css' | |
import '../store' | |
class MyApp extends App { | |
componentDidMount() { | |
TagManager.initialize({ gtmId: 'GTM-XXXXXXX' }) | |
} | |
render() { | |
const { Component, pageProps } = this.props | |
return ( | |
<Container> | |
<Component {...pageProps} /> | |
</Container> | |
) | |
} | |
} | |
export default MyApp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment