question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GTM is not detected by Google Tag Assistant

See original GitHub issue

Hi, i’m using the latest version of @nuxtjs/gtm, 2.4.0. The issue is the GTM is not detected by the Tag Assistant. I can see that GTM code is on the website. However, it doesn’t look like it is working as Google Analytics is not receiving any data meaning the tag did not fire.

//nuxt.config.js
ssr: false,
target: 'static',
....
modules: [
    '@nuxtjs/axios',
    '@nuxtjs/auth-next',
    'bootstrap-vue/nuxt',
    '@nuxtjs/pwa',
    '@nuxtjs/gtm'
  ],
gtm: {
    enabled: true,
    id: 'GTM-NBL87DW',
    pageTracking: true,
    pageViewEventName: 'routerView',
  },
....

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:25

github_iconTop GitHub Comments

5reactions
xandao-devcommented, Feb 16, 2021

I got the same problem. I solved this by updating nuxt to 2.15.0, then I added this fields to gtm property

gtm: {
	enabled: true,
	id: 'GTM-XXXXXX',
	pageTracking: true,
},

Also I had published the container in GTM (I think that’s what fixed it)

3reactions
jhd4tmrcommented, Apr 1, 2021
gtm: {
    enabled: true,
    id: 'G-XXXXXXXXX',
    pageTracking: true,
    scriptURL: 'https://www.googletagmanager.com/gtag/js'
  },
Read more comments on GitHub >

github_iconTop Results From Across the Web

[Solved] Google Tag Manager Preview Mode Not Working? 22 ...
Is Google Tag Manager Preview mode not working? Here are 22 ways to solve this problem and continue working on your GTM implementation....
Read more >
Are there instances in which Tag Assistant won't pick up tags?
The issue is that the primary check, header checks, will not detect scripts that do not fire. The secondary check, source code lookup,...
Read more >
New Google Tag Assistant not connecting? It could be Brave ...
Brave browser 'Shields Up ' is one reason why the new Google Tag Assistant shows a 'Could not connect' error when debugging GTM....
Read more >
How to check if Google Tag Manager is Working?
The next technique to check if Google Tag Manager is working is to enable Preview and Debug (P&D) mode. To do so, click...
Read more >
GTM (Google Tag Manager) Debugger Console Tutorial
Google Tag Manager debug console not working? Here is how to fix it · #1 Make sure you have enabled preview mode in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found