How to configure internal HTML site hits ?

Pho3nix

The Legend
Joined
Jul 31, 2009
Messages
32,876
Reaction score
3,055
Location
On the toilet
Hi,

As above, web dev can't assist and most tools are for external facing websites.
Has anyone used or dev'd a solution for an internal site?

Looking online, my google-fu is failing me.

Help?
 
surely Google Analytics would still work for this, unless the internal sites dont have internet access?
 
If you're serving the pages from somewhere, its best to do the logging there, as thats a lot more reliable than js includes.

Apache, Nginx etc provide suitable logging for what you need.
IIS less so.

Otherwise Piwik or similar.
 
I know of one decent self-hosted Google Analytics alternative: Piwik

http://piwik.org/

It is free and open source and should give you everything you would expect to get from Google Analytics, but within your own network.
 
Does your internal system use a server?
Yes. It's hosted on a WebServer.
If you're serving the pages from somewhere, its best to do the logging there, as thats a lot more reliable than js includes.

Apache, Nginx etc provide suitable logging for what you need.
IIS less so.

Otherwise Piwik or similar.
Using IIS sadly
I know of one decent self-hosted Google Analytics alternative: Piwik

http://piwik.org/

It is free and open source and should give you everything you would expect to get from Google Analytics, but within your own network.

Will give this a try. Thanks
 
If you are using Apache, then you could just analyse the logs? There are a few tools for that.
 
Do you just need something as simple as the below ?
It basically reads the existing hit counts , +1 to it then save it.

Doesnt check based on IP so a refresh will count as a hit.

Its PHP but can easily be done in ASP seeing you are using IIS

PHP:
<?php
//Hit Counter
$myFile = "hits.txt";
$fh = fopen($myFile, 'r');
$theData = fread($fh, 10);
fclose($fh);
$NewVal=$theData + 1;
$file = fopen("hits.txt","w");
fwrite($file,$NewVal);
fclose($file);
?>
 
Top
Sign up to the MyBroadband newsletter
X