nuxt-community / gtm-module

Google Tag Manager Module for Nuxt.js
MIT License
328 stars 70 forks source link

What is the difference between this module and vue-gtm? #115

Open rlam3 opened 3 years ago

rlam3 commented 3 years ago

What is the difference between this module and vue-gtm?

I looked into your package.json and it doesn't seem like it is installing vue-gtm but follows a similar pattern of setup.

https://github.com/mib200/vue-gtm

I also found: https://github.com/nuxt-community/google-gtag-module

What I like out of the box from GA3 and https://github.com/nuxt-community/google-analytics-module/ was the ability that it does page tracking automatically. My question is: if w use this module or the other modules do we have to specifically track different pages now? There is no more automatic page tracking?

Which is the official module and what are the differences? I'm confused as to which one I should be using. @pi0

Thank you for the work here!

mraichelson commented 3 years ago

My question is: if w use this module or the other modules do we have to specifically track different pages now? There is no more automatic page tracking?

This depends on how you set up your GTM container, but you'll probably be fine.

A brief rundown: This module puts a GTM container on your site, GTM then (typically) adds the analytics code to your site. Then the configuration in your GTM account tells your analytics when to trigger (on page view, on history change, both, etc.).