# vue-gtag

> Global Site Tag (gtag.js) plugin for Vue

Latest version **3.7.1** (published 2026-04-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-gtag
pnpm add vue-gtag
yarn add vue-gtag
bun add vue-gtag
```

## Health

**Score 60/100 (C)** — status: active.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 3.7.1 |
| Published | 2026-04-25 |
| First published | 2017-11-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 30.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 940 |
| Author | Matteo Gabriele |
| Maintainers | matteo_gabriele |
| Keywords | google, google analytics, tracking, google tracking, vue-analytics, vue-gtag, gtag, gtag.js, global site tag, vue, vuejs |

## Links

- npm: https://www.npmjs.com/package/vue-gtag
- Repository: https://github.com/MatteoGabriele/vue-gtag
- Homepage: https://github.com/MatteoGabriele/vue-gtag#readme
- Issues: https://github.com/MatteoGabriele/vue-gtag/issues
- npm.io page: https://npm.io/package/vue-gtag

## Alternatives

- [@sentry/react-native](https://npm.io/package/@sentry/react-native.md) — 2.6M weekly downloads
- [@ardatan/aggregate-error](https://npm.io/package/@ardatan/aggregate-error.md) — 708.1K weekly downloads
- [custom-error-generator](https://npm.io/package/custom-error-generator.md) — 2.0K weekly downloads
- [@technik-sde/prosemirror-recreate-transform](https://npm.io/package/@technik-sde/prosemirror-recreate-transform.md) — 1.5K weekly downloads
- [@suchipi/error-utils](https://npm.io/package/@suchipi/error-utils.md) — 78 weekly downloads

## Recent versions

- 3.7.1 (latest) — 2026-04-25
- 3.6.0-beta.2 (beta) — 2025-09-05
- 3.0.0-rc.0 (next) — 2025-03-28
- 1.16.1 (legacy) — 2021-05-04
- 3.7.0 — 2026-02-02
- 3.6.3 — 2025-10-31
- 3.6.2 — 2025-10-08
- 3.6.1 — 2025-09-06
- 3.6.0 — 2025-09-06
- 3.6.0-beta.0 — 2025-09-05
- 3.5.2 — 2025-07-09
- 3.5.2-beta.0 — 2025-07-06
- 3.5.1 — 2025-06-01
- 3.5.0 — 2025-05-04
- 3.5.0-beta.0 — 2025-05-02
- … 73 more at https://npm.io/package/vue-gtag/versions

## README

# vue-gtag

<p>
  <a href="https://npm.im/vue-gtag">
    <img src="https://badgen.net/npm/v/vue-gtag">
  </a>
  <a href="https://npm.im/vue-gtag">
    <img src="https://badgen.net/npm/dm/vue-gtag?color=blue">
  </a>
  <a href="https://bundlephobia.com/result?p=vue-gtag">
    <img src="https://badgen.net/bundlephobia/minzip/vue-gtag">
  </a>
  <a href="https://circleci.com/gh/MatteoGabriele/vue-gtag">
    <img src="https://circleci.com/gh/MatteoGabriele/vue-gtag.svg?style=svg">
  </a>
</p>


Global Site Tag plugin for Vue

The global site tag (gtag.js) is a JavaScript tagging framework and API that allows you to send event data to Google Analytics, Google Ads, and Google Marketing Platform. For general gtag.js [documentation](https://developers.google.com/tag-platform/gtagjs), read the gtag.js developer guide.

## Requirements

Vue ^3.0.0

## Install

```bash
npm install vue-gtag
```

## Documentation

- [vue-gtag documentation](https://matteo-gabriele.gitbook.io/vue-gtag/)
- [gtag.js official documentation](https://developers.google.com/tag-platform/gtagjs)

## Issues and features requests

Please drop an issue, if you find something that doesn't work, or a feature request at [https://github.com/MatteoGabriele/vue-gtag/issues](https://github.com/MatteoGabriele/vue-gtag/issues)

Follow me on Bluesky at [matteogabriele.bsky.social](https://bsky.app/profile/matteogabriele.bsky.social) for updates

---
_Source: https://npm.io/package/vue-gtag · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
