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.

Not tracked after the first-page visit.

See original GitHub issue

I 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:open
  • Created 2 years ago
  • Comments:8

github_iconTop GitHub Comments

5reactions
LawlietNickcommented, Aug 12, 2021

In Google Tag Manager Make sure you have trigger that is image

Then make sure that you have that trigger on your Google Analytics’ Page View tag image

1reaction
Parthiancommented, Oct 1, 2021

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Start page numbering later in your document - Microsoft Support
In the header or footer area, you should see a label on the first page that says First Page Header. Select the page...
Read more >
How do I track first page view? - Amplitude Community
Hi @veshei , One idea that comes to mind is setting a user property that contains the page info along with your page...
Read more >
Google analytics (via tag manager) loses track of adwords ...
Google analytics (via tag manager ) loses track of adwords visitors after first pageload · The user enters the site with a gclid...
Read more >
Page Views vs. Visits: What's The Difference? We Break It Down
A page view occurs when a page on your website is loaded or reloaded whether the user was already on your page or...
Read more >
What the value (not set) means - Analytics Help
In most cases, the cause is either a view filter that removes specific page/screen views, or the omission of page view tracking on...
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