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

# Access gtag instance directly

I try to make all method a bit simpler so you don't need extra boilerplate, but gtag api is quite vast, so in case you didn't find what you were looking for, you can use the `query` method: it's like using `gtag` itself.

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

  methods: {
    track () {
      this.$gtag.query('event', 'screen_view', {
        app_name: 'MyApp',
        screen_name: 'Home page',
      })
    }
  }
}
```
