Hello,
since this is my first posting, I must say that I am using Cuyahoga since two weeks and I would like to congratulate for the work. I know, congratulations don't pay bills! :)
I'am developing a simple user tracking system (no javascript) that can be coupled to any page by instantiating a class.
I could not find the file that handles the page to be displayed so that I could instantiate my class and get the requested URI as well as the friendly URI.
Any ideas?
Thanks a lot,
Joel
Hi!
Maybe you can write a normal custom module and than connect it directly to the template.
see
http://www.cuyahoga-project.org/home/forum.aspx?g=posts&t=147
(because since 0.9.1 you can add a section to a website template).
cu
Thomas
Maybe the best way to build a user tracking system is with a custom HttpModule. Everything you need is available from the HttpContext:
- The User: HttpContext.Current.User.Identity is the Cuyahoga user;
- The Url: HttpContext.Items["VirtualUrl"]
- The Repository to do database things or to 'borrow' the NHibernate session from: HttpContext.Items["CoreRepository"]
Hello,
thank you for your replies.
I will let you guys knows how I finally did it.
Joel
Hello,
finally I managed to write this post!
I decided not to implement the web tracker as a module in Cuyahoga. I wanted that this application could be plugged in to as many websites as possible and, as a module, it would only serve this framework. Every one will be able to download and use it... hopefully. :)
So I developed a completely new application and just added the necessary code to track the user and the request to the PageEngine class.
In the PageEngine class there is the event OnInit
protected override void OnInit(EventArgs e)
and inside is the code that connects to the web tracker:
// Start of OpenEye Web Tracker code.
OpenEye.Data.Log log = new OpenEye.Data.Log();
log.SaveRequest(Page);
// End of OpenEye Web Tracker code.
The web tracker code than handles all the logic to extract the needed data and to log the request.
Thank you anyway for the comments and suggestions.
Joel
http://www.webdp.net
I have a Cuyahoga Module that supports web tracking using the Google Analytics service.
Thsi si one of the best tracking services i have seen and is very usefult i find.
You can grab it here.
http://gedw99.dnsalias.net/SoftwareCode/Default.aspx
Gerard
i have a slight change request:
Add a toggle for all Sections, that they do not include the Section div tag.
This si to enable sections that are not meant to be visible to the user such as the Googel Analytics module.
I could have doen it with CSS, but then because its in a template it know where it will actully be placed in the page, unless i create special placeholder, and then create css for it.
hope this makes sense - if not please ask me.
Gerard