Uncaught SyntaxError: Unexpected identifier ‘google_tag_manager’ in Next.js 12
I’m trying to integrate the GTM snippet into a Next.js 12 app as explained in this guide: https://morganfeeney.com/guides/nextjs/how-to-integrate-google-tag-manager-with-nextjs.
GTM is disconnected on every page change on NextJS
In my layout.js, I have the GoogleTagManager :
NexjJs not render google tag
I have a stange issue with nextjs and their google tag manager.
it never render any code that I expect to see, like google advice to add for tagging.
how to fix it ?