Kentico allows you to do that without writing any code.
Web Analytics will track page visits for you, just make sure it is enabled under Settings -> Online Marketing -> Web analytics. Tracking of online users could be enabled in Settings -> Security & Membership -> Online Users section.
Hope this helps.