Skip to content

justindra/vue-analytics

This branch is 28 commits behind MatteoGabriele/vue-analytics:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6902095 · Dec 11, 2019
Oct 22, 2019
Sep 6, 2017
Nov 13, 2019
Dec 10, 2019
Nov 15, 2019
Nov 13, 2019
Jul 31, 2017
Nov 12, 2019
Jul 17, 2017
Dec 10, 2019
Aug 25, 2018
Nov 12, 2019
Dec 10, 2019
Dec 11, 2019
Nov 13, 2019
Nov 13, 2019

Repository files navigation



vue-analytics

Vue plugin for Google Analytics

Notes

I've published a new plugin called vue-gtag which uses the new gtag.js library for Google Analytics.

The vue-analytics package will soon be deprecated in favor of the new gtag api plugin.

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

Vuejs and Google Analytics

Tips & tricks for vue-analytics

Install

npm install vue-analytics

User guide

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

Follow me on twitter @matteo_gabriele

Packages

No packages published

Languages

  • JavaScript 100.0%