{"_id":"vue-ga","_rev":"8-8449237eaafef3c72353fae8743aa936","name":"vue-ga","description":"Google Analytics for Vue.js","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"vue-ga","version":"1.0.0","description":"Google Analytics for Vue.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/egoist/vue-ga.git"},"author":{"name":"EGOIST","email":"0x142857@gmail.com","url":"github.com/egoist"},"engines":{"node":">=4"},"scripts":{"test":"jest && eslint src/*.js && npm run build","build":"bili --name index --format umd","example":"vbuild example/index.js -d"},"files":["dist"],"main":"./dist/index.js","keywords":["google analytics"],"devDependencies":{"babel-preset-es2015":"^6.18.0","babel-preset-vue":"^0.1.0","bili":"^0.10.0","eslint":"latest","eslint-config-rem":"latest","eva.js":"^1.3.0","jest-cli":"^15.1.1"},"eslintConfig":{"extends":"rem/esnext-browser"},"gitHead":"8ff2f1be739ecb11fafbe434a1adfb393d27193a","bugs":{"url":"https://github.com/egoist/vue-ga/issues"},"homepage":"https://github.com/egoist/vue-ga#readme","_id":"vue-ga@1.0.0","_shasum":"c890fc529970af10abef2c42c81ea38cfb00cef1","_from":".","_npmVersion":"3.10.8","_nodeVersion":"7.0.0","_npmUser":{"name":"rem","email":"0x142857@gmail.com"},"dist":{"shasum":"c890fc529970af10abef2c42c81ea38cfb00cef1","tarball":"https://registry.npmjs.org/vue-ga/-/vue-ga-1.0.0.tgz","integrity":"sha512-QEb/w7Wg1JujwohIVvF/l7jWb8nvJ9usYRscpI2Q2nuN5xN0q/Xcdf/5BXZPtZwnOW5dL88ynzL2GJOk80JMKw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2jPsimpoU2o7/hBnnQ1wXkwh4hVsqce8NBnftJBnV9gIgYZNuuCWb2zoFPVdXXgddm5ei63CNPYlPy+/348AbPXw="}]},"maintainers":[{"name":"rem","email":"0x142857@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/vue-ga-1.0.0.tgz_1482565550827_0.5549814393743873"},"directories":{}},"1.1.0":{"name":"vue-ga","version":"1.1.0","description":"Google Analytics for Vue.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/egoist/vue-ga.git"},"author":{"name":"EGOIST","email":"0x142857@gmail.com","url":"https://github.com/egoist"},"engines":{"node":">=4"},"scripts":{"test":"jest && eslint src/*.js && npm run build","build":"bili --file-name vue-ga.[format].js --format esm --format umd --module-name VueGa","example":"vbuild example/index.js -d"},"main":"./dist/vue-ga.umd.js","module":"./dist/vue-ga.esm.js","keywords":["google analytics"],"devDependencies":{"babel-preset-es2015":"^6.18.0","babel-preset-vue":"^0.1.0","bili":"^4.7.2","eslint":"latest","eslint-config-rem":"latest","eva.js":"^1.3.0","jest-cli":"^15.1.1"},"eslintConfig":{"extends":"rem/esnext-browser"},"gitHead":"34495ec97d70ee7ba1a00c97f6c7340fb0878fa1","bugs":{"url":"https://github.com/egoist/vue-ga/issues"},"homepage":"https://github.com/egoist/vue-ga#readme","_id":"vue-ga@1.1.0","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"rem","email":"shinjisays@gmail.com"},"dist":{"integrity":"sha512-cnwIW75CwsqGZP62dFZt7e4/k9vhKsos3pJBBKkREXJ4bk2ePVgJiOeynhjvAtvyRzEmfsASfYMwzt0Dra/cng==","shasum":"366fea37afb953b5b115e56feb1005cc6bd1e20e","tarball":"https://registry.npmjs.org/vue-ga/-/vue-ga-1.1.0.tgz","fileCount":7,"unpackedSize":7581,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcnGsdCRA9TVsSAnZWagAA1p4P/imhe9d+scKCq+b8iaNA\n5NNPDh7F96sVRN1XlFlU+P0+6Er+ay5jyaY+p9It1u5gJXrE+3AzfsCi4JA8\ngFAFjgEON6EcKzwb98H8ZxM8xur2YJfwE07RQH8VokFcXzfTN6QyTQRLPmqE\n/AwuFRTvRN3phLeN7KJdjWjtmFmCB7yuig6HiVcPW4nXBRJTOmM2L2y+TjRw\nE4gvXLz6F5/MduOlpsKtQ0Yx59QX519xfOpqQHVceay5EBvdhcEUWXAsPpL9\nK7rZexGwr7w+Srjbdaay9S/+mWia2iWUc9WfiuEiJtFv3ldDKsumt6bx9N4h\nLY63LKZea0z+iAXArlAEJpqVT03YSJIJUmeKGthbT8eBpyHVILLFQvn//8FX\nIfHsQHTIfP/WUU4QwbP38qIvC1QqpWEnQs+a0VJH7c/5xc5OJgZyXVG7FcKU\nexDGbPhiH7CZjcyJls2gW54gFkzGpa/X81CnM/VnE1TQqR3o4pQhdOp2syGF\nmkuDcVAjCoXSbluPtl44bMgCyBKXxlehCQb2QmvOvu3l6Kn7eqXofCNs/9Uv\npCM3krWwG5lIpCsa7YzQTB+vQwGold4uytcNS0b6P1pNkb4iDO2Kf+8NK/mB\nekCMlZUylyXi3BdXl858zSd5w9X7KrwmW8lTQIIgcEm2G2bMk5TBegJivySd\nkRaT\r\n=t5lo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDcrPKDPENVhOes55hDOJJXAxLsKxIVZj8unpbwYiaGlwIgZgYMJq3HH1sqyC9tgQJsuVYXbYa525bcowdKv0tXuV0="}]},"maintainers":[{"email":"0x142857@gmail.com","name":"egoist"},{"email":"shinjisays@gmail.com","name":"rem"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-ga_1.1.0_1553754908903_0.4184473071968444"},"_hasShrinkwrap":false}},"readme":"# vue-ga\n\n[![NPM version](https://img.shields.io/npm/v/vue-ga.svg?style=flat-square)](https://npmjs.com/package/vue-ga) [![NPM downloads](https://img.shields.io/npm/dm/vue-ga.svg?style=flat-square)](https://npmjs.com/package/vue-ga) [![Build Status](https://img.shields.io/circleci/project/egoist/vue-ga/master.svg?style=flat-square)](https://circleci.com/gh/egoist/vue-ga) [![donate](https://img.shields.io/badge/$-donate-ff69b4.svg?maxAge=2592000&style=flat-square)](https://github.com/egoist/donate)\n\nSimple Google Analytics binding for Vue.js apps, 534 bytes gzipped.\n\n## Install\n\n```bash\nyarn add vue-ga\n```\n\n## Usage\n\n### vue-router\n\n```js\n// ./router/index.js\nimport VueRouter from 'vue-router'\nimport ga from 'vue-ga'\n\nVue.use(VueRouter)\n\nconst router = new VueRouter()\nga(router, 'UA-XXXXX-Y')\n\nexport default router\n```\n\n### non vue-router\n\nIt works with all SPA, even in non-Vue apps, just invoke the `collect` function after route changes, for example:\n\n```js\nga(collect => {\n  // when hash changes\n  window.onhashchange = () => {\n    collect(location.pathname + location.hash)\n  }\n}, 'UA-XXXXX-Y')\n```\n\n## Contributing\n\n1. Fork it!\n2. Create your feature branch: `git checkout -b my-new-feature`\n3. Commit your changes: `git commit -am 'Add some feature'`\n4. Push to the branch: `git push origin my-new-feature`\n5. Submit a pull request :D\n\n## Author\n\n**vue-ga** © [EGOIST](https://github.com/egoist), Released under the [MIT](https://egoist.mit-license.org/) License.<br>\nAuthored and maintained by EGOIST with help from contributors ([list](https://github.com/egoist/vue-ga/contributors)).\n\n> [egoistian.com](https://egoistian.com) · GitHub [@egoist](https://github.com/egoist) · Twitter [@rem_rin_rin](https://twitter.com/rem_rin_rin)\n","maintainers":[{"email":"0x142857@gmail.com","name":"egoist"},{"email":"shinjisays@gmail.com","name":"rem"}],"time":{"modified":"2022-06-28T19:32:59.378Z","created":"2016-12-24T07:45:51.042Z","1.0.0":"2016-12-24T07:45:51.042Z","1.1.0":"2019-03-28T06:35:09.041Z"},"homepage":"https://github.com/egoist/vue-ga#readme","keywords":["google analytics"],"repository":{"type":"git","url":"git+https://github.com/egoist/vue-ga.git"},"author":{"name":"EGOIST","email":"0x142857@gmail.com","url":"https://github.com/egoist"},"bugs":{"url":"https://github.com/egoist/vue-ga/issues"},"license":"MIT","readmeFilename":"README.md","users":{"koresar":true,"lucianoalzugaray":true}}