> 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/master/methods/config.md).

# config

```javascript
export default {
  name: 'MyComponent',

  methods: {
    track () {
      this.$gtag.config({
        'cookie_prefix': 'MyCookie',
        'cookie_domain': 'blog.example.com',
        'cookie_expires': 28 * 24 * 60 * 60
      })
    }
  }
}
```

{% hint style="info" %}
Remember, this is just an example. check the all API parameters in the official gtag documentation [here](https://developers.google.com/gtagjs/devguide/configure)
{% endhint %}
