Set document.title when tracking page views


#1

Hello, we would like to track page views but need control over what the document.title appears as in HubSpot.

Is there a way to change the document.title for the HubSpot tracking but keep it the same on our actual app?

Possibly something like:
_hsq.push(['setPath', page]); _hsq.push(['setTitle', title]) _hsq.push(['trackPageView']);

Thank you


#2

Hey @LukeP,

The tracking code will use whatever the current value of document.title is so it's not possible for it to be separate from what's in your app.

-Zack