Title: Built-in statistics
Last modified: August 18, 2016

---

# Built-in statistics

 *  [Michael Heilemann](https://wordpress.org/support/users/michael/)
 * (@michael)
 * [22 years, 7 months ago](https://wordpress.org/support/topic/built-in-statistics/)
 * I would love to have a built-in statistics system for keeping track of which 
   entries that are getting traffic.

Viewing 15 replies - 1 through 15 (of 24 total)

1 [2](https://wordpress.org/support/topic/built-in-statistics/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/built-in-statistics/page/2/?output_format=md)

 *  [otaku42](https://wordpress.org/support/users/otaku42/)
 * (@otaku42)
 * [22 years, 7 months ago](https://wordpress.org/support/topic/built-in-statistics/#post-25792)
 * That’s planned as part of my referrer hack. Meanwhile you could just use the 
   webserver log to get statistical data on that…
 *  [Dougal Campbell](https://wordpress.org/support/users/dougal/)
 * (@dougal)
 * [22 years, 7 months ago](https://wordpress.org/support/topic/built-in-statistics/#post-25802)
 * I added a “Popular Posts” section on my blog about a week ago. Is that what you’re
   looking for?
 *  Moderator [Matt Mullenweg](https://wordpress.org/support/users/matt/)
 * (@matt)
 * [22 years, 7 months ago](https://wordpress.org/support/topic/built-in-statistics/#post-25805)
 * I think it would be nice to have a blog-aware referrer framework, ie that it 
   tracked hits and associated them with post IDs. It could also track the various
   RSS hits. This should probably be an official WordPress feature. Let’s start 
   with the database schema:
    –table `wp_logs`— log_id log_time (timestamp in GMT)
   log_referrer log_ip log_hostname (would require DNS lookups, perhaps optional?
   run in batches?) log_request (the request URI in full) log_post_id (if available)
   log_useragent It would be automatically embedded on WordPress pages, but it would
   be nice to optionally include a file (like include(‘wp-refer.php’); ) from *any*
   page and log those hits as well.
 *  [alexkingorg](https://wordpress.org/support/users/alexkingorg/)
 * (@alexkingorg)
 * [22 years, 7 months ago](https://wordpress.org/support/topic/built-in-statistics/#post-25806)
 * I’ve thought about trying to create a weighted scale for “popularity”. A view
   on a page with other posts would be worth 1 while a view of the post directly
   would be worth 5 and a comment would be worth 10 – something like that.
 *  Moderator [Matt Mullenweg](https://wordpress.org/support/users/matt/)
 * (@matt)
 * [22 years, 7 months ago](https://wordpress.org/support/topic/built-in-statistics/#post-25808)
 * Hmm, that’s an interesting idea. It would be best to keep it seperate from hits
   though, since it really doesn’t pinpoint whether a particular post was actually
   looked at on the 1 point scale. That could be a field in the wp_posts table I
   suppose.
 *  [alexkingorg](https://wordpress.org/support/users/alexkingorg/)
 * (@alexkingorg)
 * [22 years, 7 months ago](https://wordpress.org/support/topic/built-in-statistics/#post-25812)
 * I think that you still need to give some weight to a post being viewed when it
   is on the home page or similar. I often refer someone (in an IM or similar real-
   time communication) to a post at the top of someone’s blog by giving just the
   blog URL (since seeing previous posts often gives them useful context).
 *  [Cena (a11n)](https://wordpress.org/support/users/cena/)
 * (@cena)
 * [22 years, 7 months ago](https://wordpress.org/support/topic/built-in-statistics/#post-25816)
 * I know that this is not what most people seem to be looking for when they talk
   about site statistics, but I’d really like to have something like allusion’s (
   now-defunct) Zeitgeist script, that kept track of things like most commonly used
   words, total number of words on the site, average number of words per post, etc.
 *  [gfmorris](https://wordpress.org/support/users/gfmorris/)
 * (@gfmorris)
 * [22 years, 7 months ago](https://wordpress.org/support/topic/built-in-statistics/#post-25837)
 * I like Alex’s idea of weighting the popularity, although I think it should be
   something that can be configured. I mean, that’s a small integer to change in
   the database. 🙂
    GFM
 *  [Laughinglizard](https://wordpress.org/support/users/laughinglizard/)
 * (@laughinglizard)
 * [22 years, 7 months ago](https://wordpress.org/support/topic/built-in-statistics/#post-26098)
 * At this time, I use a javascript refer script which keeps track of hits on a 
   page by page basis. However, as I have my permalinks setup to point to a single
   post and associated comments, it almost acts like a popularity rating of a particular
   post. The code is real simple, (from another javascript coder) but uses text 
   files to keep track of visits. Here are some of the items I believe are important
   to my blog tracking (in no particular order):
    1) Which search engines and which
   keywords 2) Which posts get the most attention (possibly a popularity count, 
   no of direct hits, no of hits referred to by the main blog, –more– clicks) 3)
   Highest referer count from… 4) Hits to main blog by day, month and year 5) Incorporating
   Alex’s “since last visit hack”, post and comment count and finally… 6) Some way
   of tracking a hit into a blog. Let me explain myself on this. As we already know
   how many times an entry has been accessed, I think it would be really interesting
   and useful to know entry and exit points for a certain visit. Do most people 
   come in through the entry page for the blog or through a search engine into a
   category, or directly to a post? (this is very true for my weblog tools blog,
   and I modify the index to be more post centric than main blog centric) I second
   Matt’s idea of having a wp-refer included in every page. This file could grab
   HTTP_VARS as and when they appear. In my idea, when a visitor enters the page,
   an entry for the user is created in the database and is not ‘expired’ till a 
   timeout occurs (which would be triggered by another visit by someone else after
   the timeout period). This also gives us the power of providing the returning 
   user with useful tracking and follow up information on their next visit, maybe
   a customized bread crumbs of sorts. I know this is convoluted, I have been working
   on OpenGL all day and my mind is all GLed up, so please excuse my thoughts 🙂
   I would be glad to explain myself further or help out . Thanks for reading thus
   far. Peace.
 *  [Sushubh](https://wordpress.org/support/users/sushubh/)
 * (@sushubh)
 * [22 years, 7 months ago](https://wordpress.org/support/topic/built-in-statistics/#post-26099)
 * Add some browser identification features too. As an Opera junkie, I would like
   to know that :)…
 *  Anonymous
 * [22 years, 6 months ago](https://wordpress.org/support/topic/built-in-statistics/#post-26264)
 * [http://das.reinvigorate.net](http://das.reinvigorate.net) has some good stats
   service. And it’s open source. Maybe something like it can be implemented.
 *  Anonymous
 * [22 years, 6 months ago](https://wordpress.org/support/topic/built-in-statistics/#post-26265)
 * See the advanced counter over at [http://htmlfixit.com](http://htmlfixit.com)
   which is a $10 item. I am using it on a blog and it gives me the pages hit. Pretty
   neat stuff for $10.
 *  [Sushubh](https://wordpress.org/support/users/sushubh/)
 * (@sushubh)
 * [22 years, 6 months ago](https://wordpress.org/support/topic/built-in-statistics/#post-26268)
 * in 10 dollars some host will give u hosting + wabalizer. but thats another thing:)…
 *  [Cena (a11n)](https://wordpress.org/support/users/cena/)
 * (@cena)
 * [22 years, 6 months ago](https://wordpress.org/support/topic/built-in-statistics/#post-26269)
 * Has anyone done a port of b2stats?
 *  [John](https://wordpress.org/support/users/j2000_ca/)
 * (@j2000_ca)
 * [21 years, 5 months ago](https://wordpress.org/support/topic/built-in-statistics/#post-26527)
 * $10 is ridiculous, check out my free plug-in. It’s actually an improvement on
   an existing one but adds many substantial features. We needed a stats plugin 
   for our blog, and like all good programmers didn’t like what we see, and like
   all great programmers, wrote our own. Stump link: [Our homepage](http://noontide.ca).
   Hope you like the stats!
 * [Here’s the Link](http://blog.noontide.ca/?p=9)

Viewing 15 replies - 1 through 15 (of 24 total)

1 [2](https://wordpress.org/support/topic/built-in-statistics/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/built-in-statistics/page/2/?output_format=md)

The topic ‘Built-in statistics’ is closed to new replies.

 * In: [Requests and Feedback](https://wordpress.org/support/forum/requests-and-feedback/)
 * 24 replies
 * 18 participants
 * Last reply from: [ksec](https://wordpress.org/support/users/ksec/)
 * Last activity: [21 years ago](https://wordpress.org/support/topic/built-in-statistics/page/2/#post-26552)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
