Next.js Discord

Discord Forum

Google tag manager not tagged in all pages

Unanswered
Asian black bear posted this in #help-forum
Open in Discord
Asian black bearOP
I used https://nextjs.org/docs/messages/next-script-for-ga to add my GTM to my next js 14 app, and event if i seted in layout when i check the website it shows as tagged only 2 pages from a total of 12
The code :
<html lang="en" className='dark'>
<body className="overflow-x-hidden">
{children}
<GoogleAnalytics gaId="G-111111111" />
<GoogleTagManager gtmId="GTM-11111111" />
</body>
</html>

0 Replies