> For the complete documentation index, see [llms.txt](https://matteo-gabriele.gitbook.io/vue-gtag/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://matteo-gabriele.gitbook.io/vue-gtag/methods/consent.md).

# consent

```javascript
import { consent } from 'vue-gtag'

consent('update', {
  ad_user_data: "granted",
  ad_personalization: "denied",
  ad_storage: "denied",
  analytics_storage: "granted"
});
```
