For the complete documentation index, see llms.txt. This page is also available as Markdown.

Consent Management

Google has released several new features that allow for more precise consent management. Acronym is working on developing a user interface that will let you make consent management adjustments without needing to code.

As of v2.0.0 you can add custom code that will run prior to your accounts' initializing. A common use case for this is to set the default consent states. Using Google's developer documentation as a guide, you can add consent configuration, e.g.:

gtag('consent', 'default', {
  'ad_storage': 'denied',
  'ad_user_data': 'denied',
  'ad_personalization': 'denied',
  'analytics_storage': 'denied'
});

Currently, you must use custom code to update a user's consent state. Acronym is working on developing new rule actions and a user interface that will allow for consent state updates. In the meantime, using Google's developer documentation as a guide, add a new rule action, select Core > Custom Code, then add your code.

gtag('consent', 'update', {
  'ad_storage': 'granted'
});

Update gtag function name if applicable

If you've used a custom function name, be sure to use that instead of gtag within the custom code.

Last updated

Was this helpful?