1.0.0 • Published 3 years ago

@morr/vue3-analytics v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

vue3-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

Does this library support GA4?

Nope! GA4 is only supported by the new gtag.js library which you can find in the vue-gtag package. This package only uses analytics.js which doesn't provide that feature.

Requirements

Vue ^3.0.0

Articles

Google Analytics, GDPR and Vuejs

Vuejs and Google Analytics

Tips & tricks for vue-analytics

Install

npm install @morr/vue3-analytics

User guide