Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

not getting correct page view metrics in adsense #6

Open
gnwankpa opened this issue Aug 13, 2018 · 5 comments
Open

not getting correct page view metrics in adsense #6

gnwankpa opened this issue Aug 13, 2018 · 5 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@gnwankpa
Copy link

gnwankpa commented Aug 13, 2018

Hi ! First of all thanks for your great adsense package! The ads work great... unfortunately I am not getting the right reporting of page views to adsense. I use another package "vue-analytics" which delivers the right number of page views but this one only records a page view as a single visit and not the navigation to other pages on the site. Are you aware of anything like this or know how to fix?

I am using the default ads like this.. (only way I got it to work, I removed the ad-slot piece)

<Adsense
          data-ad-client="ca-pub-XXXXXXXXXXX">
</Adsense>
@mazipan mazipan added enhancement New feature or request help wanted Extra attention is needed labels Feb 24, 2019
@marslord
Copy link

marslord commented Jul 5, 2019

Vuepress has the same issue

@amismailz
Copy link

Thanks, @gnwankpa ad-slot attribute was the reason of the ads to not showing, weird!
Is there any other way to put slot name??

@mazipan
Copy link
Owner

mazipan commented Apr 19, 2021

Can you show me what kind of slot name do you mean @amismailz ?

@amismailz
Copy link

amismailz commented Apr 19, 2021

@mazipan Like this:

<Adsense
   data-ad-client="ca-pub-XXXXXXXXXXXXXXXX"
   data-ad-slot="/21943662632/Mobile_300x250_Middle">
</Adsense>

@mazipan
Copy link
Owner

mazipan commented Apr 19, 2021

The prop data-ad-slot is accepting string.
So you can pass any string value.

Didn't this work?

<Adsense
   data-ad-client="ca-pub-XXXXXXXXXXXXXXXX"
   data-ad-slot="/21943662632/Mobile_300x250_Middle">
</Adsense>

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants