We added the HubSpot tracking code to our SPA. It works when the page reloads, but it doesn’t track views when users navigate between different parts of the site without a full reload.
Has anyone set this up successfully? Is it best to call something like _hsq.push([‘setPath’, ‘/new-path’]); _hsq.push([‘trackPageView’]); whenever the route changes?
Any tips, best practices, or code examples would be really appreciated!