nuxt-community / gtm-module

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

Module not working #118

Open Redemption198 opened 3 years ago

Redemption198 commented 3 years ago

I've installed the module and setup my analytics ID, but it seems that analytics isn't receiving any update at all, I also tried using the new link but doesn't work, am I missing something?

kj455 commented 3 years ago

@Redemption198 I also had the same issue, but installing ver2.3.2 worked for me.

npm uninstall @nuxtjs/gtm npm install @nuxtjs/gtm@2.3.2

Redemption198 commented 3 years ago

Thank you so much, I'll try that

retroriff commented 3 years ago

Same issue here. Version 2.3.2 worked. Thank you @kj455

daquinoaldo commented 3 years ago

@pi0, v2.4.0 is not working for me too.

kj455 commented 3 years ago

@daquinoaldo

I found this is not 'not working', and it works right where I coudn't see it. If you set debug: true in nuxt.config.js, you can watch logs of GTM.

export default {
  gtm: {
    debug: true
  }
}
daquinoaldo commented 3 years ago

I do see logs, but it doesn’t make http requests, even if I set enable: true.

kirtan403 commented 3 years ago

Any updates here? 2.4.0 is causing issues with the nuxt generate command also.

danielgroen commented 3 years ago

also doesnt work for me, even though i've downgraded the module also to 2.3.2 and it didnt workout!

Redemption198 commented 3 years ago

also doesnt work for me, even though i've downgraded the module also to 2.3.2 and it didnt workout!

This is my configuration, maybe it can help you

gtm: {
    id: 'GTM-XXXXXXX',
    pageTracking: true,
    scriptDefer: true,
    enabled: process.env.NODE_ENV === 'production' ? true : false,
},
danielgroen commented 3 years ago

🤦 sorry guys! and thanks @Redemption198 but it was my adblocker all the time!

Redemption198 commented 3 years ago

No problem, the adblocker and firefox tracking protection also got me while testing :P

f213 commented 2 years ago

Same thing for me. 2.4.0 does not load any code from googletagmanager.com as seen in chrome devtools, 2.3.2 works like a charm.

GabrielHangor commented 1 year ago

Downgrading to v 2.3.2 solved the issue!

donni106 commented 1 year ago

same here, 2.3.2 instead of 2.4.0!!!