Skip to content

Request for Integration Modules for GTM, Google Indexing, and Google Maps, etc inside the studio #47

Answered by nuotsu
prooftv asked this question in Q&A
Discussion options

You must be logged in to vote

@prooftv Hi, thanks for posting!

GTM

Once you've set up an account and have retrieved the measurement ID (eg. GTM-ABCD123) you can insert this into the src/app/(frontend)/layout.tsx as such, uncommenting the shown lines:

+ import { GoogleTagManager } from '@next/third-parties/google'
...

export default async function RootLayout({
  children,
}: {
  children: React.ReactNode
}) {
  return (
    <html lang="en">
+      <GoogleTagManager gtmId="GTM-ABCD123" />

      <body className="bg-canvas text-ink">
        ...
      </body>
    </html>
  )
}

Google Indexing

Did you mean Google Search Console, for better insights into indexing? If so, you should follow the guides shown when setting up…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mitchuman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants