Click here to Skip to main content
15,884,986 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more: , +
Hii to all, i want to count the no of users visited to my website,one more requirement is to get this count as daily basis,weekely,monthly basis,please send me the code for this...thanks in advance


with regards
D Ramu
Posted
Comments
bbirajdar 9-Dec-12 10:13am    
If somebody sends you the code, then how much money do you intend to send him for his efforts ?

C#
void Application_Start(object sender, EventArgs e)
{

    Application["visitors"] = 0;


}

void Session_Start(object sender, EventArgs e)
{

    Application["visitors"] = int(Application["visitors"]) + 1;
}

void Session_End(object sender, EventArgs e)
{

    Application["visitors"] = int (Application["visitors"] ) - 1;

}
 
Share this answer
 
v2
Comments
Ram7 from Hyderabad 9-Dec-12 22:29pm    
Thanku very much its working............................
You Can Use Google Analytics For this Purpose-
You Can get Daily Visitors of Your Website---

http://www.google.co.in/analytics/[^]
 
Share this answer
 
 
Share this answer
 
v2
which technology you use like Java, ASP, python?
 
Share this answer
 
Comments
Ram7 from Hyderabad 9-Dec-12 22:26pm    
Hii,thanks for ur responce, i want code in asp.net technology

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900