Go to `pages/_app.js` and `pages/_document.js` to see how you can add Google Tag Manager to your app