Just curious, has anyone even been able to install the Hubspot tracking code with Next.js v14 with the App Router (not Page Router)??? I can’t seem to figure it out, and I don’t think the single page application tracker instructions (linked here) give the solution for Next.js, as it is SSR and doesn’t behave the same way as a client-side rendered JS-based app.
Not sure though. Relatively new to Next.js myself. If anyone has had success with the tracking code with the App Router in Next.js, please let me know. Otherwise, I might just give it a rest. Surprising that I can’t find resources on this from Hubspot though, as this has become a widely used framework.
Thank you in advance.