Welcome to WebmasterWorld Guest from 34.238.189.171

Forum Moderators: martinibuster

Message Too Old, No Replies

SPA and AdSense Reporting

     
2:05 pm on Mar 15, 2018 (gmt 0)

Senior Member

WebmasterWorld Senior Member Top Contributors Of The Month

joined:Apr 1, 2016
posts:2662
votes: 793


My newly updated site uses an SPA (single page app) type pattern where content is added to the page with AJAX(XHR), and the URL is updated(pushState()). Analytics is not firing for each XHR request. I am using an event with event-tracking to detect when a new request is made. How is this handled in AdSense, a new ad-unit is added for each XHR request. Is AdSense counting this as a new PV?

Does anyone have any experience with this?
12:22 pm on Mar 16, 2018 (gmt 0)

Senior Member from IN 

WebmasterWorld Senior Member Top Contributors Of The Month

joined:Apr 30, 2017
posts:1531
votes: 295


AdSense will count it as new pageviews as long as the URL is updated.
12:25 pm on Mar 16, 2018 (gmt 0)

Senior Member

WebmasterWorld Senior Member Top Contributors Of The Month

joined:Apr 1, 2016
posts:2662
votes: 793


Thanks Mayank, is it counting each URL update as a new page view even if the ad/ads are not updated? And if the PV is counted is there a new impression counted on the already present ads?