HubSpot Tracking Code usage in SPA development on localhostSOLVE
We are integrating the HubSpot tracking code into our SPA. While iterating in development, our workflow fires up a local environment with live reload, etc, and it all works using localhost. There does not appear to be a way to track page views for test users in HubSpot when the tracking code loads and fires events from localhost. Is there a way to do this?
My current workaround personally is a fake subdomain (dev.<root domain>) in my local hosts file that points to localhost and that fake subdomain is configured within HubSpot's reporting advanced tracking as an external site domain, but we'd prefer to not change our current development workflow to accommodate that workaround.
Solved! Go to Solution.