1

I'm interested to know what counts as a valid page view. I would assume a server status code in the 200 range would be valid. And anything 300, 400, 500 related would not be counted.

Can anyone confirm or point me to documentation that confirms this.

(I asked this question too Google but I get too many results on how to set up tracking for 404s. Which I don't want. Also I couldn't find it on the documentation, I kept getting results about handling 404 on the Data export api.)

I'm working with a single page application with short lived pages. I can see hits after the page expires which alludes me. I'm not sure how I'm getting hits days or weeks after it expires. Could it be browser caches are still executing the js and triggering a page view. If they are valid page views I should treat them as such in reports.

1
  • 2
    Do you have the tracking snippet installed on custom error pages? GA only tracks pages for which you installed the GA JavaScript. There is no way to install the tracking snippet on 300 statuses (redirects), but I suppose errors with actual pages might be possible to track in GA. – Stephen Ostermiller Jul 25 '20 at 0:55
2

So Stephen was right in the comments. If the tracking snippet is installed it tracks. Thinking about it further it makes sense, it executes client side, it'd be hard for it to retroactively look at the status code of the originally returned html.

Using a chrome plugin DataSlayer I was able to confirm the event is firing.

enter image description here

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.