It there any way to have a hit counter for sites based on Cuyahoga?
Module or some asp code for collecting visitors count for each page of site?
if you're after tracking stats I'd suggest just using google analytics and pasting the code google provides into your template file.
If you're after a visible view count then this would be a fairly simple module to create and a good place to start from with the module development guide if you're new to cuyahoga.
As far as I've seen there isn't a hit counter module already available.
Instead of adding the Google analytics code to the template, you might as well copy the analytics code in a StaticHtml section and attach that section to a template. This way you don't forget about the statistics when upgrading your site (like I did myself, the last time with this site).
Oh, good! Thank all. I am trying for this work, but i was created my topic last few hours on
http://cuyahoga-project.org/home/forum.aspx?g=posts&t=1221 :(
But does anyone know how to view google analytics data on site?
Google analytics doesn't have an API, but with some workarounds, you can make the data visible on your site:
http://blogoscoped.com/archive/2008-01-17-n73.html .
Hi martijnb,
I noticed your recommendation to "copy the analytics code in a StaticHtml section and attach that section to a template." My question is: How do you attach a dynamic section to the static template? i.e. is there an easy way to get access to the core site services and NHibernate session, or do you just have to get access to the IoC container and do everything manually from there?
Does my question make sense?
Thanks,
Ben
bandersonI noticed your recommendation to "copy the analytics code in a StaticHtml section and attach that section to a template." My question is: How do you attach a dynamic section to the static template? i.e. is there an easy way to get access to the core site services and NHibernate session, or do you just have to get access to the IoC container and do everything manually from there?
What I meant was that you can simply attach a section to a template in the admin. Nothing code-related. Just go to Standalone sections, create a new one with StaticHtml as the module type and attach that to a template.