Learn how to add Google Tag Manager to a Next.js website to track page views, clicks, and other user interactions.
rehype-pretty-code is a Rehype plugin powered by the
shiki syntax highlighter that provides beautiful code blocks for Markdown or MDX. It works on both the server at build-time (avoiding runtime syntax highlighting) and on the client for dynamic highlighting.
Login to your Google Tag Manager account and create a new container for your website. Once you've created the container, you'll be provided with a snippet of code that you need to add to your website.
Then fill the information for your container and click "Create". The pop up with Google Tag Manager Term of Service will appear, click "Yes" to accept it.
After created the container, the popup with the guide to install Google Tag Manager will appear. Click "OK" to close it.