{"id":13685451,"url":"https://github.com/MatteoGabriele/vue-analytics","last_synced_at":"2025-05-01T04:31:09.012Z","repository":{"id":39120964,"uuid":"72683282","full_name":"MatteoGabriele/vue-analytics","owner":"MatteoGabriele","description":"Google Analytics plugin for Vue","archived":true,"fork":false,"pushed_at":"2022-05-27T13:02:52.000Z","size":1197,"stargazers_count":1799,"open_issues_count":4,"forks_count":132,"subscribers_count":24,"default_branch":"master","last_synced_at":"2024-10-29T15:34:44.890Z","etag":null,"topics":["analytics","google-analytics","tracking","vue","vue-analytics","vue-plugin","vuejs"],"latest_commit_sha":null,"homepage":"https://matteogabriele.gitbooks.io/vue-analytics/content","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MatteoGabriele.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-02T21:34:19.000Z","updated_at":"2024-10-23T23:38:15.000Z","dependencies_parsed_at":"2022-07-14T22:17:05.454Z","dependency_job_id":null,"html_url":"https://github.com/MatteoGabriele/vue-analytics","commit_stats":null,"previous_names":[],"tags_count":96,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatteoGabriele%2Fvue-analytics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatteoGabriele%2Fvue-analytics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatteoGabriele%2Fvue-analytics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MatteoGabriele%2Fvue-analytics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MatteoGabriele","download_url":"https://codeload.github.com/MatteoGabriele/vue-analytics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224235166,"owners_count":17278107,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["analytics","google-analytics","tracking","vue","vue-analytics","vue-plugin","vuejs"],"created_at":"2024-08-02T14:00:51.772Z","updated_at":"2024-11-12T07:30:45.424Z","avatar_url":"https://github.com/MatteoGabriele.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","js库(Browser/Nodejs)","Awesome Vue.js [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)","积分","Components \u0026 Libraries","Integrations","Vue","Integrations [🔝](#readme)"],"sub_categories":["Libraries \u0026 Plugins","付款","Integrations","Vue CLI 3 Plugins","Miscellaneous"],"readme":"\u003e :warning: Sorry but vue-analytics is not longer maintained. I would suggest you to switch to [vue-gtag](https://github.com/MatteoGabriele/vue-gtag). With love, the guy who made the package.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg width=\"180\" src=\"http://i.imgur.com/whvHAT6.png\"\u003e\n  \u003cbr\u003e\n  \u003cbr\u003e\n  \u003ca href=\"https://npm.im/vue-analytics\"\u003e\n    \u003cimg src=\"https://badgen.net/npm/v/vue-analytics\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://npm.im/vue-analytics\"\u003e\n    \u003cimg src=\"https://badgen.net/npm/dm/vue-analytics\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://travis-ci.org/MatteoGabriele/vue-analytics\"\u003e\n    \u003cimg src=\"https://badgen.net/travis/MatteoGabriele/vue-analytics/master\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://bundlephobia.com/result?p=vue-analytics\"\u003e\n    \u003cimg src=\"https://badgen.net/bundlephobia/minzip/vue-analytics\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n# vue-analytics\n\nVue plugin for Google Analytics\n\n## Why should I use it?\n\nThe plugin isn't just a wrapper of the Google Analytics API, but provides a solution to issues that most of the time you don't want to deal with or you not even know you have to deal with.\n\nFor example:\n\n* Automatic Google Analytics script loading\n* Automatic page tracking\n* Event batching\n* Opt-out from Google Analytics with promise support\n* Multiple domain ID tracking system\n* Vuex support\n* E-commerce API\n* Vue error exception tracking system\n* Debugging API\n\n## Does this library support GA4?\nNope! GA4 is only supported by the new gtag.js library which you can find in the `vue-gtag` package. \nThis package only uses analytics.js which doesn't provide that feature.\n\n## Requirements\n\nVue ^2.0.0\n\n## Articles\n\n[Google Analytics, GDPR and Vuejs](https://medium.com/@matteo_gabriele/google-analytics-gdpr-and-vuejs-e1bd6affd2b4)\n\n[Vuejs and Google Analytics](https://medium.com/@matteo_gabriele/vuejs-and-google-analytics-689a07e00116)\n\n[Tips \u0026 tricks for vue-analytics](https://medium.com/@matteo_gabriele/tips-tricks-for-vue-analytics-87a9d2838915)\n\n## Install\n\n```bash\nnpm install vue-analytics\n```\n\n## User guide\n\n* [Get started](/docs/installation.md)\n* [How to load Google Analytics](/docs/script-loader.md)\n* [Page tracking](/docs/page-tracking.md)\n* [Event tracking](/docs/event-tracking.md)\n* [Screen tracking](/docs/screen-tracking.md)\n* [Event batches](/docs/batch.md)\n* [v-ga](/docs/v-ga.md)\n* [Cross-domain tracking](/docs/cross-domain-tracking.md)\n* [User timings](/docs/user-timings.md#user-timings)\n* [Exception tracking](/docs/exception-tracking.md)\n* [Require](/docs/require.md)\n* [Set](/docs/set.md)\n* [Social interactions](/docs/social-interactions.md)\n* [Fields](/docs/fields.md)\n* [On Analytics script ready](/docs/when-google-analytics-is-loaded.md)\n* [Custom methods](/docs/custom-methods.md)\n* [E-commerce](/docs/ecommerce.md)\n* [Untracked hits](/docs/untracked-hits.md)\n* [Vuex](/docs/vuex.md)\n* [Turn off during development](/docs/turn-off-development.md)\n* [Console logs](/docs/console-logs.md)\n* [Opt-out from Google Analytics](/docs/opt-out.md)\n* [Custom analytics.js URL](/docs/custom-analytics.md)\n* [Debug](/docs/debug.md)\n\nFollow me on twitter [@matteo\\_gabriele](https://twitter.com/matteo_gabriele)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMatteoGabriele%2Fvue-analytics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMatteoGabriele%2Fvue-analytics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMatteoGabriele%2Fvue-analytics/lists"}