Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Which module to use for Google Analytics #26

Open
jssouders opened this issue Feb 21, 2020 · 2 comments
Open

Which module to use for Google Analytics #26

jssouders opened this issue Feb 21, 2020 · 2 comments

Comments

@jssouders
Copy link

I have a new NUXT application that needs to have Google Analytics integrated within the application. It appears that there is a very stable analytics-module (https://www.npmjs.com/package/@nuxtjs/google-analytics), but it is utilizing the analytics.js script that Google no longer recommends. Google currently recommends using gtag.js script for integrating with Google Analytics. The only package in the NUXTJS community is the google-gtag (https://www.npmjs.com/package/@nuxtjs/google-gtag) module. Is this the currently recommended module to use when integrating with Google Analytics? It appears that this package is not downloaded that frequently or released that often compared to analytics-module. Any help in the right direction would be appreciated.

@Ouldev
Copy link

Ouldev commented Feb 26, 2020

same !

@slidenerd
Copy link

2021 updated question

There are 3 libraries
https://github.com/nuxt-community/google-gtag-module/
https://github.com/nuxt-community/gtm-module
https://github.com/nuxt-community/google-analytics-module

I see google-analytics-modules is using vue-analytics which is deprecated, that leaves with 2 more
which one to use if

  • I want to add universal analytics
  • I want to add GA4
  • I want to support both

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants