My personal suggestion is to use a third party service like Google Analytics for this purpose. If you want to implement your own hit counter - add a new table to the database store hit count and any other relevant info like URL, IP address etc. Then use AfterAppInitialized event to insert a new record in this table on every page load.