Allows you to get the privacy consent status of the current visitor.
_hsp before the tracking code is loaded).
If the consent banner is enabled, the callbackFunction will be called when the visitor clicks on the accept or decline button.
callbackFunction accepts a
consent object as its only argument.
consent object has a single
allowed property that will be
- The visitor clicks accept on the banner when opt-in mode is enabled.
- The visitor has previously clicked accept on the banner when opt-in mode is enabled.
The property will be false if the consent banner is enabled in opt-in mode and the visitor clicks or has previously clicked the decline button.