So i recently added a chatbot on one of my "Single page application" portal, which doesn't refresh when we go from page to page. So this caused the chatbot not to work as expected. (Not hiding/unhiding as we change from page to page).
So now we are implemented the tracking codes to pass the page url to HS so that it hides/unhides the chatbot accordningly when the visitor navigate from page to page on the portal. it looks something like this: "hsq.push(['setPath', { path string }])"
Anybody have a live samples of how this works and how can we track from HS side if the tracking is working as expected ? Is the url being passed correctly and firing as it should? is the visitor api code working? Can we track this from HubSpot? Will this be tracked on contact activity level ? (Would appreciate samples and screenshots)
You can see the traffic data from within the reports section : Reports > Analytics Tools > Traffic Analytics. But in your case, if it's for testing purposes, then here's an easy way to do it :
1. Create a test contact with a dummy email in your hubspot account.
2. Load the single page app
3. Fire an identify event using your dummy email -> this will link traffic on your site to the test contact.
4. Browse through all the "pages" you need to test
5. Check out the test user's activity in HubSpot
6. You should see in the activity timeline a list of all the pages that user has seen, in order.
7. Don't forget to remove the identify event if you're done testing 🙂
Hope this helps ! If it does, please consider marking this answer as a solution 🙂
Ludwig
CTO @ Mi4 Hubspot Platinum Partner and Integration Expert
Passionate human, very curious about everything data and automation.
You can see the traffic data from within the reports section : Reports > Analytics Tools > Traffic Analytics. But in your case, if it's for testing purposes, then here's an easy way to do it :
1. Create a test contact with a dummy email in your hubspot account.
2. Load the single page app
3. Fire an identify event using your dummy email -> this will link traffic on your site to the test contact.
4. Browse through all the "pages" you need to test
5. Check out the test user's activity in HubSpot
6. You should see in the activity timeline a list of all the pages that user has seen, in order.
7. Don't forget to remove the identify event if you're done testing 🙂
Hope this helps ! If it does, please consider marking this answer as a solution 🙂
Ludwig
CTO @ Mi4 Hubspot Platinum Partner and Integration Expert
Passionate human, very curious about everything data and automation.