Not tracked after the first-page visit.
See original GitHub issueI have this project: http://pokritijametallov.ru/ with such param:
`export default { // Target (https://go.nuxtjs.dev/config-target) target: ‘static’,
// Global page headers (https://go.nuxtjs.dev/config-head) head: { title: ‘pokritie-metallow’, meta: [ { charset: ‘utf-8’ }, { name: ‘viewport’, content: ‘width=device-width, initial-scale=1’ }, { hid: ‘description’, name: ‘description’, content: ‘’ } ], link: [ { rel: ‘icon’, type: ‘image/x-icon’, href: ‘img/favicon.ico’ } ], },
// Global CSS (https://go.nuxtjs.dev/config-css) css: [ ],
// Plugins to run before rendering page (https://go.nuxtjs.dev/config-plugins) plugins: [ ],
// Auto import components (https://go.nuxtjs.dev/config-components) components: true,
// Modules for dev and build (recommended) (https://go.nuxtjs.dev/config-modules) buildModules: [
],
modules: [ ‘@nuxtjs/gtm’, ], gtm: { enabled: true, /* see below */ debug: true,
id: 'GTM-PFVKCGB',
layer: 'dataLayer',
variables: {},
pageTracking: true,
pageViewEventName: 'nuxtRoute',
autoInit: true,
respectDoNotTrack: true,
scriptId: 'gtm-script',
scriptDefer: false,
scriptURL: 'https://www.googletagmanager.com/gtm.js',
crossOrigin: false,
noscript: true,
noscriptId: 'gtm-noscript',
noscriptURL: 'https://www.googletagmanager.com/ns.html'
},
// Modules (https://go.nuxtjs.dev/config-modules)
router: { base: ‘/’ },
// Build Configuration (https://go.nuxtjs.dev/config-build) build: { extend(config, ctx) { } } } ` This plugin not tracked anything after the first-page visit. In this link on the project, we can see debug information. http://joxi.ru/DrlK6ZoCG3WvDA It seems right but I don’t understand why I can’t track any of my pages that have nuxt-link and maybe that because of it some problems appeared? How can I fix that problem? And why is it happening?
Issue Analytics
- State:
- Created 2 years ago
- Comments:8
Top GitHub Comments
In Google Tag Manager Make sure you have trigger that is
Then make sure that you have that trigger on your Google Analytics’ Page View tag
Thanks @rizkysyazuli that’s put me on the right track. CustomEvents was wrong, I’ll need to read up on what it is for. Successfully seeing events in GA now with Click Element as you describe and Click Text for readability (but of course a bit fragile if the button text is changed in code). Also using Microsoft Clarity. https://clarity.microsoft.com/ wizardry in action (how it is legal I’ve no idea). It can be added through Tag Manager.