google-adsense icon indicating copy to clipboard operation
google-adsense copied to clipboard

module causes jump in page views metric.

Open bluxiv opened this issue 4 years ago • 7 comments

I recently rebuilt a website using nuxt and when it went live with this module, adsense page views metric was multiplied almost 4 times compared to the previous non-nuxt version. revenue, impressions, clicks and cpc haven't changed in any drastic way, but i fear this change in page views could lead to problems with my account. I have the component setup normally inside another component that renders it if current $route.path is not in a blacklistedUrls array. Any help would be greatly appreciated as I've been trying to solve this problem for days to no avail.

bluxiv avatar Feb 07 '21 13:02 bluxiv

Could you share link to your page?

farnabaz avatar Feb 08 '21 13:02 farnabaz

I don't know if this is a part of the problem or not but in console, error 400 are returned more times than there're ad units. Where i get about 5 "Failed to load resource: the server responded with a status of 400 ()" when there's only 2 ad units in the page, when i refresh the page. and when i go to it using navigation i get about 3 errors.

bluxiv avatar Feb 11 '21 13:02 bluxiv

Sorry for the late response, I've beed navigation through you website, I didn't see any wired requests in networks. Does it related to 400 errors?

farnabaz avatar Mar 05 '21 11:03 farnabaz

I've "resolved" the problem since then, but I had to disable all nuxt routing and have all navigations through normal hrefs, which leads to a slower UX but makes the ad metrics act normally. The problem seemed to be with ads from previous pages calling adsense on page change, let's say a page had 2 ad units it would call adsense 3 times (1 + 2) which is normal, but if I then go to another page with another 2 units it'd get called 10 times (1 + 2 + 3 + 4) this is shown in dev through console errors. I don't know if that problem is only with my website or not but I don't think I'm doing any special implementation. I'd love to go back to nuxt routing, but my website is doing fine atm, so take your time and thanks for everything.

bluxiv avatar Mar 05 '21 12:03 bluxiv

Since changing routes resolved the issue, I believe the $route watch cause the issue.

farnabaz avatar Mar 05 '21 13:03 farnabaz

Same.

The number of page views listed in the Google Adsense report is about 2 times higher than the number of page views measured by Google Analytics.

Since I have about three Adsense ads on almost every page, the page view values should be about the same in Adsense and Analytics.

It's also very strange that the number of page views in the Google Adsense report screen is higher.

It seems like there is double counting of page views. What could be causing this?

Any way to solve this problem without stop using $route, nuxt-link ?

nuxt v2.12.2 / SSR

...
"@nuxtjs/google-adsense": "^1.1.3",
...

modules: [
    ...
    [
      '@nuxtjs/google-adsense',
      {
        id: ADSENSE_MEASUREMENT_ID,
        pageLevelAds: false,
      },
    ],
    ...
  ],

My website is https://manabitimes.jp/math

All the discussions above about PV are about PV aggregated after restricting the directory to /math in the URL channel.

Since almost all pages after /math have Adsense ads on them, the PV should be almost the same.

yanoyuki avatar Jun 30 '21 01:06 yanoyuki

@yanoyuki did you found any solution for that??

i330z avatar Feb 24 '22 05:02 i330z