Hubspot tracking code on Next.js v12

Hello HubSpot Community,

I’m new to HubSpot and currently working on a project using Next.js version 12. I need some guidance on how to add the HubSpot tracking code to my Next.js application to track visitors and page views.Is there a step-by-step guide or any best practices for integrating the HubSpot tracking code in a Next.js v12 project?

Any help would be greatly appreciated!

Thank you!

Hi @ASELLAMI ,

I think you are looking for instructions on how to track single page applications.