> 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/api.md).

# API

You can access several methods from inside the $gtag instance in your component scope

* query
* config
* event
* pageview
* screenview
* customMap
* time
* exception
* linker
* purchase
* refund
* set
* optIn
* optOut

usage example

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

  methods: {
    track() {
      this.$gtag.pageview("/about");
    },
  },
};

```
