# MatteoGabriele/vue-analytics

Google Analytics plugin for Vue

Repository: https://github.com/MatteoGabriele/vue-analytics
Canonical: https://ross.abutalabs.com/products/vue-analytics
Homepage: https://matteogabriele.gitbooks.io/vue-analytics/content
Language: JavaScript
License: MIT
License Family: permissive
Topics: vue, google-analytics, analytics, tracking, vue-plugin, vue-analytics, vuejs
Archived: true
Last push: 2022-05-27T13:02:52+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3591, "days_push": 1559, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1784, forks 126 (observed 2026-08-28T04:05:35.915996+00:00)

## What it is
A Vue 2 plugin that integrates Google Analytics (analytics.js) into Vue applications, providing automatic script loading, page/screen/event tracking, e-commerce APIs, and Vuex support. It is no longer maintained; the author recommends switching to vue-gtag for GA4 support.

## Use cases
- add google analytics to a vue 2 app
- track page views automatically with vue-router
- send custom event tracking from vue components
- track e-commerce transactions in a vuejs app
- opt out of google analytics for GDPR compliance
- track multiple google analytics domains in one app
- track vue errors as analytics exceptions

## When to choose
- you maintain a legacy Vue 2 app already using analytics.js and cannot migrate
- you need analytics.js features like e-commerce or multi-domain tracking in Vue 2

## When to avoid
- starting a new project - use vue-gtag instead
- you need GA4 support, which this plugin does not provide
- you use Vue 3
- you want actively maintained software

## Facets
- artifact type: plugin
- maturity: abandoned
- function: analytics, plugin-system, middleware
- domain: web-development, frontend, analytics
- platform: browser
- tags: vue-plugin, google-analytics, universal-analytics, vue2, event-tracking, page-tracking, ecommerce-tracking, deprecated, nodejs, web-server

## Member repositories
- MatteoGabriele/vue-analytics (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:35.915996+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:24:14.414602+00:00, confidence not recorded.
  - readme: https://github.com/MatteoGabriele/vue-analytics (fetched 2026-08-28T04:05:35.915996+00:00, sha 5b7d37425149)
  - homepage: https://matteogabriele.gitbooks.io/vue-analytics/content (fetched 2026-08-29T11:03:10.167784+00:00, sha 1f05b42f16af)
  - site_page: https://matteogabriele.gitbooks.io/vue-analytics/content/docs/installation.html (fetched 2026-08-29T11:03:10.177244+00:00, sha 71016dd4f2a2)
  - site_page: https://matteogabriele.gitbooks.io/vue-analytics/content/docs/script-loader.html (fetched 2026-08-29T11:03:10.179105+00:00, sha d69ad9e0b89d)
  - site_page: https://matteogabriele.gitbooks.io/vue-analytics/content/docs/page-tracking.html (fetched 2026-08-29T11:03:10.180932+00:00, sha 510df9b08a77)
  - site_page: https://matteogabriele.gitbooks.io/vue-analytics/content/docs/event-tracking.html (fetched 2026-08-29T11:03:10.182966+00:00, sha e34dce8135a6)
  - site_page: https://matteogabriele.gitbooks.io/vue-analytics/content/docs/screen-tracking.html (fetched 2026-08-29T11:03:10.184618+00:00, sha 6f4730088656)
  - registry_npm: https://registry.npmjs.org/vue-analytics (fetched 2026-08-29T11:03:10.191592+00:00, sha 6fe92206b2d8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
