473,386 Members | 1,764 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

asp hit counter

Hi,

I'm a little new with the asp code so please bare with me. I am seeking to find a hit counter to be placed on an internal website @ my company. I've looked @ some hit counters online that have been free; however, when they ask me to register, they ask for a link to the website. For obvious reasons the counter can't work because the website resides internally. Where can I go to get a free hit counter that will provide statistics such as IP address, PC name, userID, etc? Thanks in advance for the help.
Feb 21 '08 #1
3 1954
markrawlingson
346 Expert 100+
You'll find that most of the experts and developers in general on this website don't use tools like free hit counters. The reason is primarily because this is a developer forum so we do almost everything ourselves - but also because it's incredibly easy to program your own stat counter.

There are many ways to do it, personally I prefer a database based statistics counter because i record a ton of information when a user logs onto my site. Everything from how long they were there each time, to the average time they've spent on the site, to their ip address, browser version, how many times they've come to the site, the average page hits per visit, their HTTP referrer (the website they were at before they came to mine) - etc etc etc.

However if all you need is a count of how many visits your site has tallied.. you can use a simple xml document or txt document to store the data. A lot of people even just use an application object (not a good idea though, if the server is rebooted or the worker process dies you lose the info)

If you're interested in doing it yourself we can provide some examples for you.

Sincerely,
Mark
Feb 21 '08 #2
jhardman
3,406 Expert 2GB
However if all you need is a count of how many visits your site has tallied.. you can use a simple xml document or txt document to store the data. A lot of people even just use an application object (not a good idea though, if the server is rebooted or the worker process dies you lose the info)
Yeah, I tried it with an application object when I was new (8 or 9 years ago) and it was a bad idea. Sure it was easy to code, but the counter seemed to reset nearly every day. XML isn't much harder, though, and is very stable.

Jared
Feb 22 '08 #3
markrawlingson
346 Expert 100+
Totally, very silly idea :P Yet most of the tutorials online that explain how to do this use application variables... without any mention of the billion and one things that could go wrong that would cause the data in the application object to be erased..

Sincerely,
Mark


Yeah, I tried it with an application object when I was new (8 or 9 years ago) and it was a bad idea. Sure it was easy to code, but the counter seemed to reset nearly every day. XML isn't much harder, though, and is very stable.

Jared
Feb 22 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Shane | last post by:
:) I am following a tutorial for php (hudzilla.org) absolutely loving it however I am having trouble with the counter example <?php // your content here... $filename = 'counter.txt'; // our...
16
by: Paul Rubin | last post by:
I'd like to have a function (or other callable object) that returns 0, 1, 2, etc. on repeated calls. That is: print f() # prints 0 print f() # prints 1 print f() # prints 2 # etc. ...
7
by: JellyON | last post by:
Hi. Is there a way to delay a call to a page counter (ie. call to a server script from an IMG tag) for the purpose to not lock the page loading awaiting counter be displayed. Maybe a...
0
by: Earl Anderson | last post by:
KB Article Q140908 provided the following function to create an Auto Incrementing Counter: Function Next_Custom_Counter () On Error GoTo Next_Custom_Counter_Err Dim MyDB As Database Dim...
7
by: mistral | last post by:
I use htaccess to protect directory and granting access to download file only for the authorized users. Just want implement simple PHP file download counter for single file. I need track the number...
0
by: Trevor L. | last post by:
I decide to put a custom Hit Counter on my page (below). Then I won't be reliant on the standard FrontPage one which uses webbots. It is called by <b>Hit Counter: </b><!--#include...
12
by: devospice | last post by:
Hi, I'm trying to create a download counter for individual files on a web site and I'm not sure how to do this. Right now I'm using Webalizer to just read the log files and see how many times...
5
by: jasonchan | last post by:
How would you set up a counter in javascript that goes from 5 to 0 This is what i have so far and it is not displaying in the div container "counter" for some reason... <!DOCTYPE html PUBLIC...
3
blackstormdragon
by: blackstormdragon | last post by:
Here were our instructions: "My mother always took a little red counter to the grocery store. The counter was used to keep tally of the amount of money she would have spent so far on that visit to...
2
by: gumbercules | last post by:
I am designing a site that is regulary updated with new podcasts. I would like to be able to have a counter next to each podcast showing how many hits/listens/plays/views each particular podcast has...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.