"I've been trying to figure out why web activity from one of our websites (e.g https://booking.123456.com) isnt syncing with HubSpot. The purpose of this is to see who views a Booking Confirmation page, to attribute a booking to HubSpot activities.
This website is a single page application so the standard HubSpot tracking cookie doesn't work correctly.
Under "Set Page Path", I don't understand if the "path string" has to be placed only on the above URL only, or if the "path string" automatically updates per page.
Can you please help me understand what I need to do here, to be able to sync page views of this booking confirmation page?"
Edit to Add: What I mean by ' "path string" automatically updates per page.', is that my understanding is that the path string will not change when a new page is loaded.
I think I'm in a similar situation where my client's main site doesn't actually change URLs when you go to a new page. Instead, an id parameter is changed in the URL, which then updates the page content.
Is HubSpot not able to track these "pages" as actual pages because they all use the same URL?
Just want to make sure I understand how you're using the word "manually" here. Are you saying that for every single page they have, they need to add a those lines of JS to each page and swap out that URL path?
So if there are 300 pages that are a part of that single page application, we'd have to edit all 300 pages and swap out that URL path manually?
Hi @Patrick_Eng, sorry about that confusing language there. By "manually" I just meant that you'll need to call that function for each page they have. You don't have to actually hardcode the page URLs into that function. You can grab the slug using JS, and pass that variable into the setPath function. But either way, the function will need to run for each individual page.