hi guys i am new on umbraco and i need your help plz i want to add hit counter for the first page on my web site i know there is a lot of free hit counter but there is a link to their site so i want ask if there is any package for hit counter or code.
example :
visitor no : 50
today visitor : 3
online users : 2
hi thanks for your comment yeah i actually check all of that articles but what i notes is the all code will be in global.cshtml i tried that but i got an error i dont know how to work with global on umbraco
hit counter
hi guys i am new on umbraco and i need your help plz i want to add hit counter for the first page on my web site i know there is a lot of free hit counter but there is a link to their site so i want ask if there is any package for hit counter or code.
example : visitor no : 50 today visitor : 3 online users : 2
Hi Ali,
I think we don't have any umbraco package for hit counter but we can create it using custom code.
You need to simply create a counter user control in .net and bind with Umbraco as a macro.
Please find the below links for visitor count and online users :
http://www.aspdotnet-suresh.com/2013/11/asp-net-count-number-of-visitors-in-Website.html
http://www.aspdotnet-suresh.com/2013/11/aspnet-count-number-of-online-users.html
The below links are also useful for you :
http://www.codeproject.com/Articles/29792/Online-active-users-counter-in-ASP-NET
http://www.webcodeexpert.com/2013/10/how-to-count-number-of-times-website.html
http://www.kewlcodes.com/posts/1135/Count-number-of-visitors-of-a-page-in-asp-net-mvc-HIT-counter
hi thanks for your comment yeah i actually check all of that articles but what i notes is the all code will be in global.cshtml i tried that but i got an error i dont know how to work with global on umbraco
Hi Ali,
Umbraco not supporting Global.asax.cs directly so we need to customize the code as per our needs. Please see the below links for more details :
http://jondjones.com/how-to-enable-the-global-asax-in-umbraco/
http://www.theoutfield.co.uk/blog/2010/07/registering-an-application-start-event-handler-in-umbraco
https://our.umbraco.org/forum/developers/extending-umbraco/39907-Globalasax-replacement-in-Umbraco-6
thank you very much. that really helpful
is working on a reply...