nuxt-community / google-gtag-module

Enable google gtagjs for NuxtJs
MIT License
145 stars 29 forks source link

Simplify module using `vue-gtag` #23

Open ricardogobbosouza opened 4 years ago

ricardogobbosouza commented 4 years ago

Hi @dohomi Could we simplify this module using vue-gtag?

dohomi commented 4 years ago

Its such a small package, why would you like to make a 3rd party dependency?

ricardogobbosouza commented 4 years ago

@dohomi this plugin is very complete and has a good documentation of your api. Not to mention some options that we need to do manually here like https://github.com/nuxt-community/google-gtag/issues/20 and with this plugin simply this.$gtag.optIn() to enable and this.$gtag.optOut() to disable. In short, it would add a lot to this module and practically solve all issues opened.

dohomi commented 4 years ago

Feel free to start a PR I just won't have the time right now to look into it