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.

Same web property ID is tracked twice

See original GitHub issue

I got Same web property ID is tracked twice on root url.

image

There is someone have the same problem?

<div align="right">This question is available on Nuxt.js community (#c13)</div>

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:16 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
stephanvanecommented, Jun 25, 2018

Hi,

I created a repository where this issue is reproduced. The issue is happening in the most basic nuxt-app possible, so it seems like it affects all users.

The repository can be found here: https://github.com/stephanvane/reproduction-issue-14

Using the official Google Analytics Debugger, you can see that on the initial page-load, the page is tracked twice, it tracks the correct page and the root path (even when you’re on an other page http://localhost:3000/page1).

When navigating between pages, it’s working as intended (tracking only once per click).

issue

here are the steps used to create this repository.

  1. Create a new nuxt project
$ vue init nuxt-community/starter-template foo

$ yarn add @nuxtjs/google-analytics 
  1. Add the module to nuxt.config.js:
  modules: [
    // Simple usage
    ['@nuxtjs/google-analytics', {
      id: 'UA-12301-2'
    }]
  ],
  1. Add another page, so there can be navigation between them.

  2. (optional) Add mode: 'spa' to see that the issue is also there when SSR is disabled

  mode: 'spa'
3reactions
MatteoGabrielecommented, Jun 25, 2018

hi @stephanvane thanks a lot for the effort, I will have a look as soon as possible

Read more comments on GitHub >

github_iconTop Results From Across the Web

Same web property ID is tracked twice - Mixed Analytics
Same web property ID is tracked twice simply means that you have the Google Analytics tracking script on your page more than once,...
Read more >
Google tag assistant reports: "Same web property ID is tracked ...
@Filozof666, I have removed "Same web property ID is tracked twice" and now how much time it will take to display bounce rate?...
Read more >
Same web property ID is tracked twice - Google Support
I am seeing this error Same web property ID is tracked twice on the tag assistant chrome extension when I load my Wordpress...
Read more >
Google tag assistant reports: “Same web property ID is tracked ...
This double-tracked ID's behaviour could be caused if you have loaded your tracking code both inline on the website, and through GTM as...
Read more >
Same web property ID is tracked twice | WordPress.org
When you use Google Tag Manager as well it's possible that the property ID is tracked twice. It could be that you have...
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