# Why there is huge difference in Pageviews tracking number on discourse admin dahboard and on google analytics

**URL:** https://meta.discourse.org/t/why-there-is-huge-difference-in-pageviews-tracking-number-on-discourse-admin-dahboard-and-on-google-analytics/25306
**Category:** Data & reporting
**Tags:** analytics
**Created:** [February 17, 2015, 5:36am UTC](https://meta.discourse.org/t/why-there-is-huge-difference-in-pageviews-tracking-number-on-discourse-admin-dahboard-and-on-google-analytics/25306 "2015-02-17T05:36:39Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![lovechopra1](https://avatars.discourse-cdn.com/v4/letter/l/4af34b/32.png) [@lovechopra1](https://meta.discourse.org/u/lovechopra1)
#### Post date: [February 17, 2015, 5:36am UTC](https://meta.discourse.org/t/why-there-is-huge-difference-in-pageviews-tracking-number-on-discourse-admin-dahboard-and-on-google-analytics/25306/1 "2015-02-17T05:36:39Z")

</div>

Hi,  
I found there is huge difference in google analytics pageviews number and pageviews number on admin panel of discourse.  
On discourse’s dashboard it is showing 10,000 pageviews however on Google Analytics its only 100. Can anyone please let me know what could be the reason for such a huge difference in tracking of two systems?

I have configured Google Analytics script by putting up ga tracking code @ Admin → Settings → Basic Setup

---

<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: [February 17, 2015, 5:44am UTC](https://meta.discourse.org/t/why-there-is-huge-difference-in-pageviews-tracking-number-on-discourse-admin-dahboard-and-on-google-analytics/25306/2 "2015-02-17T05:44:29Z")

</div>

You will have to ask @sam but I think we should avoid calling it page views for this reason.

Also, are you on the latest beta version?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [February 17, 2015, 5:50am UTC](https://meta.discourse.org/t/why-there-is-huge-difference-in-pageviews-tracking-number-on-discourse-admin-dahboard-and-on-google-analytics/25306/3 "2015-02-17T05:50:30Z")

</div>

Can you confirm you are on latest and please supply some screenshots.

---

<div class="post-metadata">

### Author: ![lovechopra1](https://avatars.discourse-cdn.com/v4/letter/l/4af34b/32.png) [@lovechopra1](https://meta.discourse.org/u/lovechopra1)
#### Post date: [February 17, 2015, 6:34am UTC](https://meta.discourse.org/t/why-there-is-huge-difference-in-pageviews-tracking-number-on-discourse-admin-dahboard-and-on-google-analytics/25306/4 "2015-02-17T06:34:11Z")

</div>

Thanks @codinghorror and @sam for your quick attention on this

> [@sam](#):
>
> Can you confirm you are on latest and please supply some screenshots.

Yes I am on latest beta version

**Here are the screenshots:**

1. I have setup Google analytics code this way:  

2. Screenshots of differences in pageviews b/w Google analytics and Discourse Admin

Discourse Admin (Here I am putting the reference of only yesterdays’s numbers)  
 ![](https://global.discourse-cdn.com/meta/original/3X/8/b/8b2a4d828891c5074aa31f0ab3b765ede5bfd79b.png)

Google Analytics Page Views (Here I am putting the reference of only yesterdays’s numbers)

 ![](https://global.discourse-cdn.com/meta/original/3X/0/e/0e642f492b0ce1d4244ec344aba83dae4b831f6b.png)

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [February 17, 2015, 7:28am UTC](https://meta.discourse.org/t/why-there-is-huge-difference-in-pageviews-tracking-number-on-discourse-admin-dahboard-and-on-google-analytics/25306/5 "2015-02-17T07:28:01Z")

</div>

Well, that kinda makes sense. Analytics is tracking sessions (full loads) while Discourse is tracking every “page” transition (so someone clicking a topic, going to latest, that same topic again gets counted as 3 to Discourse and 1 to GAnalytics).

---

<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: [February 17, 2015, 7:33am UTC](https://meta.discourse.org/t/why-there-is-huge-difference-in-pageviews-tracking-number-on-discourse-admin-dahboard-and-on-google-analytics/25306/6 "2015-02-17T07:33:53Z")

</div>

I’m changing this copy immediately to “API Requests” because having it be titled “Page Views” is going to be an unmitigated support disaster if it releases in 1.2 that way.

cc: @sam

---

<div class="post-metadata">

### Author: ![lovechopra1](https://avatars.discourse-cdn.com/v4/letter/l/4af34b/32.png) [@lovechopra1](https://meta.discourse.org/u/lovechopra1)
#### Post date: [February 17, 2015, 7:51am UTC](https://meta.discourse.org/t/why-there-is-huge-difference-in-pageviews-tracking-number-on-discourse-admin-dahboard-and-on-google-analytics/25306/7 "2015-02-17T07:51:24Z")

</div>

@riking I can understand your point but not every user follow that behavior of visiting the same topic again and again, I completely agreed there will be a differences between between Google analytics pageviews and Discourse pageviews numbers but that differences can not got 10 times higher then google analytics numbers

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [February 17, 2015, 8:03am UTC](https://meta.discourse.org/t/why-there-is-huge-difference-in-pageviews-tracking-number-on-discourse-admin-dahboard-and-on-google-analytics/25306/8 "2015-02-17T08:03:25Z")

</div>

Analytics is tracking page views, we issue a page view per request, @codinghorror I do not think we need to change copy here, it is **not** api requests, api requests are way way way higher. In fact, the same code that tell google we had a “page view” tells discourse we had a page view.

I will add a verbose logging option so people can debug if they wish.

---

<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: [February 17, 2015, 8:19am UTC](https://meta.discourse.org/t/why-there-is-huge-difference-in-pageviews-tracking-number-on-discourse-admin-dahboard-and-on-google-analytics/25306/9 "2015-02-17T08:19:01Z")

</div>

I don’t care what it is called, but it **CANNOT** be called “Page Views” or anything remotely close to that.

---

<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: [February 17, 2015, 9:27pm UTC](https://meta.discourse.org/t/why-there-is-huge-difference-in-pageviews-tracking-number-on-discourse-admin-dahboard-and-on-google-analytics/25306/10 "2015-02-17T21:27:31Z")

</div>

> [@codinghorror](#):
>
> but it CANNOT be called “Page Views”

I agree you will have a nightmare if you use those terms…

… but just to mention you might want to update these terms in your sales literature

 ![](https://global.discourse-cdn.com/meta/original/3X/e/2/e275f7565ba1bff074acc52fa724386bf8f978c3.png)

---

<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: [February 17, 2015, 9:52pm UTC](https://meta.discourse.org/t/why-there-is-huge-difference-in-pageviews-tracking-number-on-discourse-admin-dahboard-and-on-google-analytics/25306/11 "2015-02-17T21:52:48Z")

</div>

We will, once we figure out values. Right now those are 100% unenforced in any way.

---

<div class="post-metadata">

### Author: ![michaeld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michaeld/32/1594_2.png) [@michaeld](https://meta.discourse.org/u/michaeld)
#### Post date: [February 17, 2015, 10:06pm UTC](https://meta.discourse.org/t/why-there-is-huge-difference-in-pageviews-tracking-number-on-discourse-admin-dahboard-and-on-google-analytics/25306/12 "2015-02-17T22:06:04Z")

</div>

> [@sam](#):
>
> Analytics is tracking page views, we issue a page view per request

How does this work with the ‘endless scrolling’ ?  
You’ll have multiple requests to get new posts when someone scrolls down in a topic, but Analytics is seeing this as one page, AFAIK.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [February 17, 2015, 10:24pm UTC](https://meta.discourse.org/t/why-there-is-huge-difference-in-pageviews-tracking-number-on-discourse-admin-dahboard-and-on-google-analytics/25306/13 "2015-02-17T22:24:11Z")

</div>

Our tracking code only counts “1 API request” for a topic view weather you scroll through a 1 million post topic or not.

terminology is bad here and we will get it fixed.

---

<div class="post-metadata">

### Author: ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)
#### Post date: [February 17, 2015, 10:29pm UTC](https://meta.discourse.org/t/why-there-is-huge-difference-in-pageviews-tracking-number-on-discourse-admin-dahboard-and-on-google-analytics/25306/14 "2015-02-17T22:29:44Z")

</div>

> [@codinghorror](#):
>
> changing this copy immediately to “API Requests”

Hmm, API Requests doesn’t seem very human-friendly. Why not “Topic Views”?

---

<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: [February 17, 2015, 10:34pm UTC](https://meta.discourse.org/t/why-there-is-huge-difference-in-pageviews-tracking-number-on-discourse-admin-dahboard-and-on-google-analytics/25306/15 "2015-02-17T22:34:03Z")

</div>

That’s by design at the moment because we have no damn clue what we are measuring until we get a lot more data. We want people to ignore this stat.

---

<div class="post-metadata">

### Author: ![michaeld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michaeld/32/1594_2.png) [@michaeld](https://meta.discourse.org/u/michaeld)
#### Post date: [February 17, 2015, 10:42pm UTC](https://meta.discourse.org/t/why-there-is-huge-difference-in-pageviews-tracking-number-on-discourse-admin-dahboard-and-on-google-analytics/25306/16 "2015-02-17T22:42:54Z")

</div>

> [@sam](#):
>
> Our tracking code only counts “1 API request” for a topic view weather you scroll through a 1 million post topic or not.

Yes, in that case terminology is definitely bad 😄

But for hosting it does matter if you access a 1 million post topic, because you will get thousands of (actual) API requests. We’re facing the same issue, we were counting actual API requests but Analytics says it’s much less because they’re counting ‘human’ pageviews.

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [February 18, 2015, 12:23am UTC](https://meta.discourse.org/t/why-there-is-huge-difference-in-pageviews-tracking-number-on-discourse-admin-dahboard-and-on-google-analytics/25306/17 "2015-02-18T00:23:22Z")

</div>

> [@michaeld](#):
>
> But for hosting it does matter if you access a 1 million post topic, because you will get thousands of (actual) API requests. We’re facing the same issue, we were counting actual API requests but Analytics says it’s much less because they’re counting ‘human’ pageviews.

Only a thought made in utter ignorance.

Might it be possible to have a page-view be counted at the point where the non-js view does a “next page”?

---

<div class="post-metadata">

### Author: ![Overmind](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/overmind/32/55446_2.png) [@Overmind](https://meta.discourse.org/u/Overmind)
#### Post date: [February 18, 2015, 5:07am UTC](https://meta.discourse.org/t/why-there-is-huge-difference-in-pageviews-tracking-number-on-discourse-admin-dahboard-and-on-google-analytics/25306/18 "2015-02-18T05:07:26Z")

</div>

> [@codinghorror](#):
>
> We will, once we figure out values. Right now those are 100% unenforced in any way.

That’s one thing I was concerned about if I was to move to the business package.

Like I have 44,123 page views on the discourse admin page in the last 7 days alone, when the site isn’t really that big, would hate to have to jump up to $1k/month for it when it’s not that big yet.

That and plugin installation would be the deciding factors for me personally to get on the business package over self-hosted.

---

<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: [February 18, 2015, 5:25am UTC](https://meta.discourse.org/t/why-there-is-huge-difference-in-pageviews-tracking-number-on-discourse-admin-dahboard-and-on-google-analytics/25306/19 "2015-02-18T05:25:16Z")

</div>

We don’t know if these are “Page Views” yet, we have no idea what they are until we get some baselines for about 30 days against all the sites we host.

---

<div class="post-metadata">

### Author: ![fantasticfears](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fantasticfears/32/119608_2.png) [@fantasticfears](https://meta.discourse.org/u/fantasticfears)
#### Post date: [February 18, 2015, 1:12pm UTC](https://meta.discourse.org/t/why-there-is-huge-difference-in-pageviews-tracking-number-on-discourse-admin-dahboard-and-on-google-analytics/25306/20 "2015-02-18T13:12:20Z")

</div>

And the communities will be happy to provide the statistics data for the team.

[Next page](https://meta.discourse.org/t/why-there-is-huge-difference-in-pageviews-tracking-number-on-discourse-admin-dahboard-and-on-google-analytics/25306.md?page=2)
