Jump to top

ConsentSettings

interface

Consent status settings for each consent type. For more information, see {@link https://developers.google.com/tag-platform/tag-manager/templates/consent-apis | the GA4 reference documentation for consent state and consent types}.

Properties

ad_storage

</>

Enables storage, such as cookies, related to advertising

ad_storage: ConsentStatusString;

analytics_storage

</>

Enables storage, such as cookies, related to analytics (for example, visit duration)

analytics_storage: ConsentStatusString;

functionality_storage

</>

Enables storage that supports the functionality of the website or app such as language settings

functionality_storage: ConsentStatusString;

personalization_storage

</>

Enables storage related to personalization such as video recommendations

personalization_storage: ConsentStatusString;

security_storage

</>

Enables storage related to security such as authentication functionality, fraud prevention, and other user protection.

security_storage: ConsentStatusString;