Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does this library handle adsense pageviews correctly? #155

Open
HarveyPeachey opened this issue Jan 7, 2022 · 0 comments
Open

Does this library handle adsense pageviews correctly? #155

HarveyPeachey opened this issue Jan 7, 2022 · 0 comments

Comments

@HarveyPeachey
Copy link

Didn't want to write an issue, but the repo doesn't have discussions so there's no other way to ask questions.

I'm implementing adsense in React, and an issue that I've come across with client-side route changes is that page views are only captured on the initial visit of a page. For example:

  1. User visits foobar.com
  2. Single ad unit is loaded
  3. 1 page view and 1 impression is sent to adsense
  4. User navigates with client-side routing to foobar.com/foo
  5. Single ad unit is automatically refreshed
  6. No page view but 1 impression is sent
  7. User has visited 2 pages, only the initial load page view is sent but 2 impressions are sent

Does this library implement a fix for this issue at all? I've had a read through the source code but I can't find anything specifically that would be a solution to this issue.

Do users of this library get correct page view reporting within adsense?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant