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_personalization

</>

Sets consent for personalized advertising

ad_personalization: undefined | false | true;

ad_storage

</>

Enables storage, such as cookies, related to advertising

ad_storage: undefined | false | true;

ad_user_data

</>

Sets consent for sending user data to Google for online advertising purposes

ad_user_data: undefined | false | true;

analytics_storage

</>

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

analytics_storage: undefined | false | true;

functionality_storage

</>

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

functionality_storage: undefined | false | true;

personalization_storage

</>

Enables storage related to personalization such as video recommendations

personalization_storage: undefined | false | true;

security_storage

</>

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

security_storage: ConsentStatusString;