Remah
(Just another happy Discourse user)
December 13, 2018, 1:12pm
6
The figure provided is Discourse pageviews and refreshing the page does not inflate the pageview count. I doubt that you will get what you want because the Discourse team have been averse to using that type of pageview:
Since my original message I have reconciled multiple sites multiple times.
We simply count differently to what google does.
Google uses JavaScript ajax calls to count page views. We work hard only to issue them on first load or when you transition routes (like move from topics to latest list)
Our Page View counting is performed on the “raw requests” made (accounting for a header that informs us when to count)
Bots, JavaScript disabled are counted by us but omitted from Google.
I just deployed some very basic web traffic stats:
[image]
A page view is defined as a HTTP request that we serve with an 200 (OK) provided
It is decorated with the Discourse-Track-View header, which is injected when we move around the site
It has content type of “text/html” is not an XHR request and is a GET request
This gives you a quick way to tell what kind of traffic you are seeing removing a bunch of noise
If you feel like “expanding” and getting a raw view, click on:
“Show Detaile…
In that topic we are told:
We do a +1 every time you hit a URL and get HTML back and a +1 each time you transition routes.
4 Likes