Up to date Google Analytics integration for Next.js?
Unanswered
Marble gall posted this in #help-forum
Marble gallOP
Does anyone know if there's a snippet or tutorial anywhere that shows how to integrate Google Analytics with Next.js 13 (app router, typescript)? It seems the Next.js official website has the pages router info listed for the "app router" section about Google Analytics. I've made it work by using <Script> with the proper analytics info in my main layout.tsx file, but I can't figure out how to get a basic event tracking for a button click or anything like that.
1 Reply
Bee
Have you completed this?