# How are Pageviews calculated in Discourse?

**URL:** https://meta.discourse.org/t/how-are-pageviews-calculated-in-discourse/61352
**Category:** Data & reporting
**Created:** [April 20, 2017, 9:13pm UTC](https://meta.discourse.org/t/how-are-pageviews-calculated-in-discourse/61352 "2017-04-20T21:13:08Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Sinonia](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sinonia/32/71078_2.png) [@Sinonia](https://meta.discourse.org/u/Sinonia)
#### Post date: [April 20, 2017, 9:13pm UTC](https://meta.discourse.org/t/how-are-pageviews-calculated-in-discourse/61352/1 "2017-04-20T21:13:08Z")

</div>

How exactly are Page views determined?  
I am asking because I am wondering if it is possible that the page views get botted up by someone.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [April 20, 2017, 10:25pm UTC](https://meta.discourse.org/t/how-are-pageviews-calculated-in-discourse/61352/2 "2017-04-20T22:25:01Z")

</div>

I believe @sam has a topic on this?

---

<div class="post-metadata">

### Author: ![DeanMarkTaylor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deanmarktaylor/32/102462_2.png) [@DeanMarkTaylor](https://meta.discourse.org/u/DeanMarkTaylor)
#### Post date: [April 20, 2017, 10:30pm UTC](https://meta.discourse.org/t/how-are-pageviews-calculated-in-discourse/61352/3 "2017-04-20T22:30:12Z")

</div>

You may be able gleam some interesting info from this topic:

> [@Traffic Dashboard Stats](https://meta.discourse.org/t/traffic-dashboard-stats/24854):
>
> 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…

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [May 27, 2019, 2:22pm UTC](https://meta.discourse.org/t/how-are-pageviews-calculated-in-discourse/61352/4 "2019-05-27T14:22:32Z")

</div>



---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [May 27, 2019, 6:55pm UTC](https://meta.discourse.org/t/how-are-pageviews-calculated-in-discourse/61352/5 "2019-05-27T18:55:50Z")

</div>

Do you have a more authoritative answer on meta elsewhere @sam?

---

<div class="post-metadata">

### Author: ![HAWK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hawk/32/86627_2.png) [@HAWK](https://meta.discourse.org/u/HAWK)
#### Post date: [May 28, 2019, 12:29am UTC](https://meta.discourse.org/t/how-are-pageviews-calculated-in-discourse/61352/6 "2019-05-28T00:29:00Z")

</div>

> [@Why there is huge difference in Pageviews tracking number on discourse admin dahboard and on google analytics](https://meta.discourse.org/t/why-there-is-huge-difference-in-pageviews-tracking-number-on-discourse-admin-dahboard-and-on-google-analytics/25306/26):
>
> 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.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [May 28, 2019, 12:39am UTC](https://meta.discourse.org/t/how-are-pageviews-calculated-in-discourse/61352/7 "2019-05-28T00:39:54Z")

</div>


