Title: Cystats Visitcounter patch
Last modified: August 19, 2016

---

# Cystats Visitcounter patch

 *  [Aljoscha](https://wordpress.org/support/users/arittner/)
 * (@arittner)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/cystats-visitcounter-patch/)
 * Hi!
 * I’ve created a patch for cystats 0.9.8. The original version calculates for any
   first hit a visit. IMHO this is to optimistic. I found a lot of articles with
   the same opinion: cystats calculates to many visits.
 * My patch calculates hits as visits at the second hit (only at the second hit).
   The patch needs one query to detect “hit is not visit || hit may be a visit” 
   and a second to detect “hit is a visit”.
 * A image for my idea (how to detect visits) is under this link: [Image](http://www.aljoscha-rittner.de/blog/wp-content/uploads/2010/12/Besucherberechnung.png)
 * This is the patch: [Patch](http://www.aljoscha-rittner.de/blog/wp-content/uploads/2010/12/cystats.patch)
 * And [here is the complete series](http://www.aljoscha-rittner.de/blog/?series=wordpress-cystats)
   about the problem (but in German).
 * The patch is more pessimistic than it should be. But it was the easiest way to
   integrate the patch.
 * btw, the home page for the plugin contains only nonsensical links. Does anyone
   know how to reach the author of CyStats?
 * br, josh.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Patrick Nommensen](https://wordpress.org/support/users/pnommensen/)
 * (@pnommensen)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/cystats-visitcounter-patch/#post-1816489)
 * Thanks for making this.
 * How do I set this up?
 * Many thanks.
 *  [Patrick Nommensen](https://wordpress.org/support/users/pnommensen/)
 * (@pnommensen)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/cystats-visitcounter-patch/#post-1816490)
 * Also, it seems like the “visits” are not how many unique people visit the website,
   but how many times a new page is loaded. I just went back and forth between a
   few pages and there’s already 27 visits within a few seconds…
 *  [Patrick Nommensen](https://wordpress.org/support/users/pnommensen/)
 * (@pnommensen)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/cystats-visitcounter-patch/#post-1816491)
 * Something is obviously wrong with this plugin. I refreshed the admin cystat panel
   a few times, and each time the unique visitor counter goes +1, +1, ….

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Cystats Visitcounter patch’ is closed to new replies.

 * 3 replies
 * 2 participants
 * Last reply from: [Patrick Nommensen](https://wordpress.org/support/users/pnommensen/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/cystats-visitcounter-patch/#post-1816491)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
