First post here. I'm trying to integrate the general Hubspot tracker code with our Single Page Application (using BarbaJs, HTML5 push-state). Normally I can make it work with the "History State" trigger, but when I use this for Hubspot it doesn't pick up any form submissions.
This works, the form submission gets picked up by Hubspot:
- Refresh on the contact page, submit form
This doesn't work:
- Refresh on the homepage, go to the contact page, submit form
Thanks @dennisedson and @Mike_Eastwood! I did check out this documentation, yes, but what isn't clear to me is what exactly I need to fire to allow the forms to be tracked. On non-SPA applications this seems to be done automatically, and as far as I know only the trackPageView call is fired. So do I simply need to manually call trackPageView on every other page apart from the one the user lands on?