curl --request POST \
--url https://js.hs-scripts.com/revokeCookieConsent \
--header 'Content-Type: application/javascript' \
--data @- <<EOF
"_hsq.push(['revokeCookieConsent']);"
EOFRemove the consent banner cookies for a visitor, such as for GDPR deletion requests.
curl --request POST \
--url https://js.hs-scripts.com/revokeCookieConsent \
--header 'Content-Type: application/javascript' \
--data @- <<EOF
"_hsq.push(['revokeCookieConsent']);"
EOFvar _hsq = (window._hsq = window._hsq || []);
_hsq.push(["revokeCookieConsent"]);
Revoke consent request
The body is of type object.
Cookie consent revoked successfully
Was this page helpful?