# Opt-in/out

The plugin will immediately start tracking, but it is possible to disable the plugin at start and enable it later on, maybe after a cookie banner.

```javascript
import Vue from "vue";
import VueGtag from "vue-gtag";

Vue.use(VueGtag, {
  config: { id: "UA-1234567-1" },
  enabled: false
});
```

The gtag.js documentation says that it is possible to download the script if the script is disabled and it won't go against policy rules.

In case you might want to go a little more advanced, you could still opt for the [custom bootstrap ](/vue-gtag/master/custom-installation.md)solution.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://matteo-gabriele.gitbook.io/vue-gtag/master/opt-in-out.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
