Stealth Plugin for SlimStat
Seeing as I was drooling over the Mint statistics engine and interface; drooling, but also lamenting the $30+ price tag per site (which a friend assures me is well worth it), I came across the free-and-GPL SlimStat, and was delighted again.
I’ve installed it on all my sites, and was bothered by the fact that I was messing up the stats by viewing the pages myself. As no one else is looking at these websites, it was quite a large statistical skew!
Inspired by Natural Web’s trial with cookies and ever dependable quirksmode, I’ve written an extension for SlimStat (SlimStat so cool it even got plugins!) to stop yourself interfering with your precious stats. It’s called Stealth. Download Stealth here, and place the ’stealth’ folder in your plugin directory slimstat/plugins/. You’ll see a new menu item in your SlimStat console, where you can set a stealth cookie for your personal computer. There is one additional piece of configuration required involving slimstat/inc.stats.php; the instructions are provided after you turn on the cookie.
I’m looking forward to feedback on this one, let me know if there’s any bugs.
August 4th, 2006 at 1:59 am
Stealth Plugin for SlimStat…
nice…..
August 4th, 2006 at 3:16 am
Just noticed http://www.redbrick.dcu.ie/~d_fens/
August 4th, 2006 at 7:42 am
Nice job - thanks for putting this together.
It’s working well on two sites at the moment.
August 4th, 2006 at 11:09 am
Thanks for the mention
you should post it on the googlegroups..which you did heh
August 4th, 2006 at 7:32 pm
Nicely done, this is the beauty of simplicity itself and works like a charm.
THANKYOU!
August 4th, 2006 at 8:55 pm
You can think of it as a team effort Rich!
August 7th, 2006 at 10:09 am
How does this plugin prevent others from clicking on the “Create Cookie” button and thus omitting their own hits in the sites
August 7th, 2006 at 12:11 pm
It doesn’t!
I’m assuming if you wanted this you would have slimstat set up with password protected directory security in Apache or some such… this would be an issue which would apply to the whole of slimstat, not just this plugin.
October 2nd, 2006 at 4:27 pm
[…] Aside from these plugins, I’m also using the great little stats package Slimstat and the plugin Stealth. Great stuff. For extra data redundancy I use Google Analytics. Thank you Google for buying yet another for-pay service, in this case the well known Urchin web analytics, and making it free. Hail Victory! […]
October 2nd, 2006 at 4:27 pm
Thanks for this, it’s exactly what I needed.
November 13th, 2006 at 3:55 pm
Great Plugin! Thanks!
A little bug I encountered: If i set the cookie and check later again if the cookie was really set by clicking to the new created section “stealth”, it says that it wouldn’t be active - but it actually is, it does not count the hits if I browse my site. So it works -
hQuadr.at
March 21st, 2007 at 1:57 pm
Great plugin!
April 16th, 2007 at 9:17 am
@hQuadr.at:
I had also the Problem using SlimStat with UTF-8 and the german language. You have to modify the plugin:
Line 112: if (readCookie(’SlimStatStealth’) == ‘i18n->app_title))); ?>’)
Tekl
April 19th, 2007 at 8:30 pm
Why bother with a cookie when this facility is already built into SlimStat.
Open config.php and part way down you will find the lines
/** Don’t log hits from these IP ranges */
var $ignored_ips = array( “192.168.”, “10.”, “127.”);
Then add your own ip address like
/** Don’t log hits from these IP ranges */
var $ignored_ips = array( “192.168.”, “10.”,
“127.”,”xx.xx.xxx.xxx” );
Then save and upload the file to your web.
April 19th, 2007 at 9:01 pm
Thanks for that Gordon, I wasn’t aware of it. It might be worth making this functionality explicit and/or automatic on installation of SlimStat somehow..
July 3rd, 2007 at 6:56 pm
Many thanks for the plugin, however, I’m having problems.
The lines of code you refer to do not show on my installation of Slimstat. I’m using version 0.9.4. Could you possibly tell me what that code is and where it should be added?
Also, in reply to Gordon and for the information of others, some of us have dynamic ips which would mean that we would have to keep changing the config file to keep up. This is the problem that, I believe, this little gem will clear up as soon as I get it up and running.
Having said that, I would like to see the functionality added, as an option, to enter ips via the UI. Better still would be to have a function to prevent spam hits being registered as soon as they are recognised from within the UI. But I guess that’s a problem for Mr. Wettone…
July 4th, 2007 at 9:44 am
Hi Simon,
I wrote the plugin for version 0.9.4 so I’m pretty sure it’s not a versioning problem. I assume you are referring to lines of code in inc.stats.php, could you let me know exactly what lines of code you are looking for and where you are looking for them?
I don’t intend to do much more development on this version, rather when I get time I plan to do a port of SlimStat to Python.
Eoghan