This project is read-only.

Number of visits/hits to a website

Topics: General
Oct 11, 2016 at 9:06 PM

Is there any option available to view the number of visitors/hits to a website developed in Orchard?

If so, please let me know the steps

Thanks for your help in advance!
Oct 15, 2016 at 3:43 PM
There is a module on the gallery that is called "View Count" and another one called "Content View Counter". Not sure if this is helpful if you want to count any website hit, regardless of the page being requested. In that case, perhaps there's another module, or you would have to create your own module and implement an action filter (look at Orchard.Widgets to see how to create an action filter). In this action filter, you would then increase a number stored in a database for example. Alternatively, there are widgets such as Google Analytics that record not only website views, but also where the visitors are located, and much more. This offers much more functionality and less customization. All you would have to do is insert a snippet of JavaScript code generated by GA into your Layout.cshtml view of your theme, and done.