web site visitor stats - some third-party options

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Post Reply
User avatar
kermit
Power Poster
Power Poster
Posts: 693
Joined: Thu Jan 26, 2006 11:46 am

web site visitor stats - some third-party options

Post by kermit »

these are mainly for those who don't want to use a hosted service like google analytics for whatever reason.


Slimstat http://slimstat.net/

TraceWatch http://www.tracewatch.com/

phpTrafficA http://soft.zoneo.net/phpTrafficA/index.php?l=en


these three free web stats scripts work with cms made simple. they can use *either* php include (simple edits near top of index.php) or client-side scripting.  each method has its own pros and cons, so read the scripts' documentation before installing and configuring.

they are all php based and use mysql for data storage. while they could use the same database as your web site, i would recommend keeping the stats in their own. for testing purposes, i had put all three of these in the same database (but still separate from cmsms database).

if you opt for php method, the edits to index.php look something like this:

Code: Select all

$starttime = microtime();
clearstatcache();

// stats logging

// twatch
	include_once $_SERVER[ 'DOCUMENT_ROOT' ].'/stats/twatch/api/LogRequest.php';
	twatchLogRequest(true); // (true) use cookie, or () no cookie

// slimstat	
	@include_once( $_SERVER['DOCUMENT_ROOT'].'/stats/slim/stats_include.php' );

// phptraffica
	
	$sid="123456";  // sid provided in phptraffica admin area
	include($_SERVER[ 'DOCUMENT_ROOT' ]."/stats/traffic/write_logs.php"); 
	
// end stats logging
I do not know if these'll run as UDTs.. haven't had a chance to check yet.

if you are not comfortable with editing core files, or don't have a clue what i mean by that, then please choose to use the javascript method that does not require edits to core files.


My main sites run bbclone, as discussed here: http://forum.cmsmadesimple.org/index.ph ... 271.0.html --- still don't know if i'm willing to give up 3+ years of stats. I may end up running a couple of these side-by-side with bbclone until I make up my mind. I all know now is that i refuse to hand over visitor data and stats to google by using their analytics.

Note that my testing environment runs Linux, Apache 2.2.x and PHP 5.2.x (fast-cgi). While these "work for me", YMMV. If any of these take a byte out of your bits, don't blame me. ;)
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
User avatar
Gregor
Power Poster
Power Poster
Posts: 1874
Joined: Thu Mar 23, 2006 9:25 am

Re: web site visitor stats - some third-party options

Post by Gregor »

I'm using twatch since a couple of years. Great tool. I created a UDT and put that tag into my templates. Works fine without editing the core files  ;D

Gregor
square
Forum Members
Forum Members
Posts: 51
Joined: Fri Jan 15, 2010 5:02 pm

Re: web site visitor stats - some third-party options

Post by square »

I use this one http://piwik.org/

No UDT needed (but why not ?), integration of graphs and stats possible.
Post Reply

Return to “Tips and Tricks”