Should I be clearing any other hubspot cookie at the same time? These include;__hssc, __hssrc, __hstc, hubspotutk. I wonder if any of these need to be removed, anonymized or have the expiry set to session.
And should 'donottrack' be called before or after the hubspot tracking script?
For reference I built a custom cookie consent script in google tag manager, which checks for the presence and value of a cookie. (similar to the hubspot version).
Only if the cookie value is set to 'allow', does a trigger call the hubspot tracking code.
I'd like to be able to add a trigger to call the tracking code with do not track enabled, based on when a user declines cookies.