Tracking Code Not Getting Picked Up

Facing an issue with the tracking code on a next.js project. Although had used this before on different project, but somehow its not getting picked up and its been days. Any tips or suggestions would be appreciated.

Hi @Gcom8
Thank you for reaching out to the Community!
I’d like to invite some community members who are subject matter experts to join this conversation.
@karstenkoehler @TomM2 @JBhathena - Would you be able to share any insights on this? Your expertise would be greatly appreciated.
Best,
Victor

Hey @Gcom8

Apologies for the delayed response, after doing some research I found 2 helpful articles in the HubSpot Knowledge Base that will help you:

  1. Troubleshoot the HubSpot tracking code - The troubleshooting guide provides systematic steps to check if the tracking code is properly installed, including how to verify it’s firing correctly using browser Developer Tools.
  2. Install the HubSpot tracking code - This covers proper installation methods and importantly mentions that “if you’re using a single-page application, check out the developers documentation to set up tracking” - this is particularly relevant for Next.js projects since they require special SPA implementation.

Since Next.js is a React-based framework, you’ll likely need to follow HubSpot’s specific developer documentation for single-page applications rather than just pasting the standard tracking code.

Please let me know if you need anything else, I hope this helps!

Best, Victor