Scrubbing tracking url

For single page application, we want to track the navigation of user before submitting a sign up form which creates the contact.

We set the tracking url for page views: Set up site tracking in HubSpot.

We would like to have a url scrubbing for some specific pages in the tracking to hide the url in the contact page when it is created. For example URLs with tokens.

We have tried to temporarily disable the tracking cookie for these pages: Consent banner API - HubSpot docs (with doNotTrack).

but we have unpredictable consequences: like losing previous browsing pages in tracking when we create the contact.

Is there a clear way to configure scubbing for certain URLs? or not to track pageviews by default.

Thanks for your help

Hi, @Sebdec :waving_hand: Thanks for reaching out! Let’s invite some community members to the conversation. Hey, @miljkovicmisa @MatthiasWeber @prosa, do you have any insights you can share? Or thoughts on how you might tackle a similar project?

Best,

Jaycee