Reminder: As of August 9th, the demo API key will only be allowed to make GET requests. Please see the announcement for more details.

Place do not track cookie

Last updated May 14, 2019


Places the __hs_do_not_track cookie in the visitors browser, which will prevent the HubSpot tracking code from sending any information for the visitor.

You can remove the cookie by calling the function again and including the {track: true} argument:
_hsq.push(['doNotTrack', {track: true}]);

Note: This will prevent all information from being collected by the tracking code, including anonymized traffic and custom event data.