curl --request POST \
--url https://js.hs-scripts.com/doNotTrack \
--header 'Content-Type: application/javascript' \
--data @- <<EOF
"_hsq.push(['doNotTrack']);"
EOFPrevent all tracking by the HubSpot tracking code by placing a do not track cookie.
curl --request POST \
--url https://js.hs-scripts.com/doNotTrack \
--header 'Content-Type: application/javascript' \
--data @- <<EOF
"_hsq.push(['doNotTrack']);"
EOFvar _hsq = (window._hsq = window._hsq || []);
_hsq.push(["doNotTrack"]);
Do not track request
The body is of type object.
Do not track enabled successfully
Was this page helpful?