view count question in confluence activity report
Asked by Anderson Hsu:

Dear partners,

We found the value of the activity report view count is different in chart and list as shown as below:

![BB-01.png](/t5/image/serverpage/image-id/14751i74EB49790911ABD6/image-size/large?v=v2&px=999 "BB-01.png")

**Chart Value : 6+2=8**

**List value: 5+4+2=11**

What's the difference between them ? We also use sql command as listed as below. But the result is also different. How can we get the view count value ? Thanks a lot

select \* from log0201 where ((d3 like '%viewpage.action%') and (d3 like '%spaceKey=BB%'))

(We import log information into database and analysis the log information)


Answers:
author: Shannon S
body: Anderson,

The graph shows all page hits, including multiple visits by the same user.

The chart you've circled is showing most popular content only. This would not include pages that were viewed a single time, for example, if it's not considered a popular page.

I hope that's clear but let me know if you have any questions.

Regards,  
Shannon

comments: author: Anderson Hsu
body: Dear Shannon,

Thanks for your kindle assistance.

Would it be possible to use sql command to list how many viewed by log information , as listed as below:

SQL command : **select \* from log0201 where ((d3 like '%viewpage.action%') and (d3 like '%spaceKey=BB%'))**

log example:

**"\[31/Jan/2018:12:23:49 -0800\] ft12 Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0 Cyberfox/52.6.1 192.168.37.18 GET GET /chat/start.actioin?spaceKey=NN\&currentUrl=http%3A%2F%2Fftconnect.demo.com%2Fpages%2Fviewpage.action%3FpageId%3D47842012\&currentTitle=J.+%E5%B8%B8%E7........**

(We refer the article of <https://confluence.atlassian.com/confkb/audit-confluence-using-the-tomcat-valve-component-223216846.html> to analytics the log data)


author: Shannon S
body: Anderson,

I'm not too familiar with the SQL command you mentioned as logs aren't generally stored in the Confluence database, so it seems that you may have a custom setup if you are able to find those details in yours.

I would recommend an add-on for this, such as

* [Tracking Access for Confluence](https://marketplace.atlassian.com/plugins/net.customware.confluence.plugin.tracking/server/overview)
* Or any of the other apps listed: [Confluence Analytics add-ons in Marketplace](https://marketplace.atlassian.com/search?product=confluence&query=analytics)

If you have any questions about that please let me know.

Regards,

Shannon


author: Anderson Hsu
body: Dear Shannon,

Thanks for your kindly reply. How do we know the page is popular page refer you mentioned as listed as below: (Does it determine by view count , when the page is viewed in top 10 pages, it will be popular pages?)

**This would not include pages that were viewed a single time, for example, if it's not considered a popular page.**


author: Shannon S
body: Anderson,

From the [Viewing Site Statistics Page](https://confluence.atlassian.com/doc/viewing-site-statistics-123043962.html):
> The top ten most popular and most active pages and/or blog posts will be listed, with a link to each.

Therefore, if you only have 10 pages, even if they only have 1 view each, then they would still be considered "popular". It simply polls each page and shows you the top ten. As for if you had more than 10 and they all had 1 view each, I'm not sure what that would display but it's something that you could easily test out.

I found this other page that you may be interested in, I'm not sure if you saw it?

* [How do I get more statistics from Confluence](https://confluence.atlassian.com/confkb/how-do-i-get-more-statistics-from-confluence-154239308.html)

Regards,

Shannon


author: Anderson Hsu
body: Dear Shannon,

Thanks for your kindly assistance. And Happy New Year in Chinese New Year.


author: Anderson Hsu
body: Dear Shannon,

I would like to make sure with you abut one question as listed as below:

dashboad page should be the most popular page in confluence , is it right?

But I found when I login in confluence, but I don't connect other page contents, I found it does not show any content in global activity report. What happen to it ?

![global.png](https://community.atlassian.com/t5/image/serverpage/image-id/15262iA10ABA5F6F0BE92A/image-size/large?v=v2&px=999 "global.png")

My login record is as shown as below:

![login.png](https://community.atlassian.com/t5/image/serverpage/image-id/15263iA4919B05548B2FF6/image-size/large?v=v2&px=999 "login.png")


author: Shannon S
body: Anderson,

It would depend what other users have set as [their Home Page](https://confluence.atlassian.com/doc/choose-your-home-page-139452.html). Each person can set their own.

Also, how long ago did you enable statistics?

Shannon


author: Anderson Hsu
body: Dear Shannon,

Where can I find the setting about how long ago did I enable statistics? Thanks a lot.

Anderson Hsu


author: Shannon S
body: Anderson,

This is not stored anywhere, but keep in mind that it does not display historical data from before the add-on was enabled.

Additionally, if you were to have run a reindex from scratch, the data would be deleted and will not display.

It's also not possible to guarantee a user's point of entry, for example, if they click on a link in a chat or email, it won't take them directly to their default homepage.

I hope this clarifies things but do let me know if you have any further questions.

Regards,

Shannon


author: Anderson Hsu
body: Dear Shannon,

Are you sure about the describe : (I have try before, I think it will still be shown)

**Additionally, if you were to have run a reindex from scratch, the data would be deleted and will not display.**

**And would it be possible how many account login confluence by day /month ? Thank for your kindly assistance.**


author: Shannon S
body: Hi Anderson,

Yes, if performed properly, you manually delete the directory \<confluence-home\>/index/plugin, which is where the plugin stores its usage statistics. I'm not referring to [reindexing Confluence](https://confluence.atlassian.com/doc/content-index-administration-148844.html), but a complete rebuild where you delete all indexing directories from the server.

Can you clarify exactly what you would need in your report regarding logins? This isn't part of the usage plugin but perhaps there is a database query you could use. Do you want a list of users who logged in during the past day and month, or do you want a list of how many times each user did so?

Shannon


author: Anderson Hsu
body: Dear Shannon,

Actually I need to find out how many users login confluence during the past day and month? And I also need to find a list of how many times viewed by spaces ? Thanks for your kindly assistance.


Tags: atlassian-marketplace