user730077
user730077

Reputation: 209

How to show the total number of visitors to my website?

I am developing an ASP.NET intranet web application that provides short quizzes to the users in the company. I want now to count the number of all visitors to the website either they took some quizzes or just come to the website and read some information like downloading the newsletter or reading some general information.

How to do that? Should I have a special table in the database for this thing?

Also, it will be very helpful if there is any helpful free tool like Google Analytics. As you know, the policy of the company doesn't allow to use the Google Analytics.

Upvotes: 0

Views: 1405

Answers (1)

Chris Felstead
Chris Felstead

Reputation: 1208

You could log the count in a database and simply increment it by 1 in the session start for a total of all time.

If it's concurrent you are after, store the data as an application variable and decrease the count on session end.

I don't see why you don't use an analytics package on your server logs though.

Upvotes: 2

Related Questions