mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 12:11:05 +03:30
90 lines
2.8 KiB
Markdown
90 lines
2.8 KiB
Markdown
<p align="center">
|
|
<img src="http://i.imgur.com/whvHAT6.png" width="180" />
|
|
<br>
|
|
<br>
|
|
<a href="https://badge.fury.io/js/vue-analytics">
|
|
<img src="https://badge.fury.io/js/vue-analytics.svg" />
|
|
<a/>
|
|
|
|
<a href="https://www.npmjs.com/package/vue-analytics">
|
|
<img src="https://img.shields.io/npm/dm/vue-analytics.svg" />
|
|
<a/>
|
|
|
|
<a href="https://travis-ci.org/MatteoGabriele/vue-analytics">
|
|
<img src="https://travis-ci.org/MatteoGabriele/vue-analytics.svg?branch=master" />
|
|
</a>
|
|
|
|
<img src="https://img.shields.io/badge/size-4kB-brightgreen.svg" />
|
|
</p>
|
|
|
|
# vue-analytics
|
|
|
|
Vue plugin for Google Analytics
|
|
|
|
## Why should I use it?
|
|
|
|
The 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.
|
|
|
|
For example:
|
|
|
|
* Automatic Google Analytics script loading
|
|
* Automatic page tracking
|
|
* Event batching
|
|
* Opt-out from Google Analytics with promise support
|
|
* Multiple domain ID tracking system
|
|
* Vuex support
|
|
* E-commerce API
|
|
* Vue error exception tracking system
|
|
* Debugging API
|
|
|
|
## Requirements
|
|
|
|
Vue ^2.0.0
|
|
|
|
## Articles
|
|
[Google Analytics, GDPR and Vuejs](https://medium.com/@matteo_gabriele/google-analytics-gdpr-and-vuejs-e1bd6affd2b4)
|
|
|
|
[Vuejs and Google Analytics](https://medium.com/@matteo_gabriele/vuejs-and-google-analytics-689a07e00116)
|
|
|
|
[Tips & tricks for vue-analytics](https://medium.com/@matteo_gabriele/tips-tricks-for-vue-analytics-87a9d2838915)
|
|
|
|
## Install
|
|
|
|
```bash
|
|
npm install vue-analytics
|
|
```
|
|
|
|
## User guide
|
|
|
|
* [Get started](/docs/installation.md)
|
|
* [How to load Google Analytics](/docs/script-loader.md)
|
|
* [Page tracking](/docs/page-tracking.md)
|
|
* [Event tracking](/docs/event-tracking.md)
|
|
* [Screen tracking](/docs/screen-tracking.md)
|
|
* [Event batches](/docs/batch.md)
|
|
* [v-ga](/docs/v-ga.md)
|
|
* [Cross-domain tracking](/docs/cross-domain-tracking.md)
|
|
* [User timings](/docs/user-timings.md#user-timings)
|
|
* [Exception tracking](/docs/exception-tracking.md)
|
|
* [Require](/docs/require.md)
|
|
* [Set](/docs/set.md)
|
|
* [Social interactions](/docs/social-interactions.md)
|
|
* [Fields](/docs/fields.md)
|
|
* [On Analytics script ready](/docs/when-google-analytics-is-loaded.md)
|
|
* [Custom methods](/docs/custom-methods.md)
|
|
* [E-commerce](/docs/ecommerce.md)
|
|
* [Untracked hits](/docs/untracked-hits.md)
|
|
* [Vuex](/docs/vuex.md)
|
|
* [Turn off during development](/docs/turn-off-development.md)
|
|
* [Console logs](/docs/console-logs.md)
|
|
* [Opt-out from Google Analytics](/docs/opt-out.md)
|
|
* [Custom analytics.js URL](/docs/custom-analytics.md)
|
|
* [Debug](/docs/debug.md)
|
|
|
|
|
|
# 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-analytics/issues](https://github.com/MatteoGabriele/vue-analytics/issues)
|
|
|
|
Follow me on twitter [@matteo\_gabriele](https://twitter.com/matteo_gabriele)
|