Gets the visitor's consent policy regarding allowed cookies and 3rd-party data transfer, such as for GDPR or CCPA purposes.
The getCurrentConsentPolicy()
function returns the
consent policy details of the visitor, meaning, which cookies the visitor allows and whether data transfer
to 3rd parties is allowed.