If, however, you do not want to put your data in the clutches of our Google Overlord :), then you can really think about turning your own. I had it twice before - and I'm doing it again right now: better this time, of course!
If your traffic is not very high and you work on any decent server platform, then adding a tracking system will not tax your Rails application noticeably (I know that it depends on what a “decent server platform” means, but this stuff in these days are pretty cheap). Writing to the database is usually very fast - you must have shedloads of clicks so you don’t want to do this right away. You can possibly get around most, if not all of your before_filters, and so on to get a lightning response. For example, an application using 2.3.9 uses Metal to do this.
In my new tracking system, I have an STI table that comes with models derived from the Activity model; Here you can record both impressions and clicks. Impressions are recorded as the page is created and clicks are recorded using AJAX.
I will not worry about fancy graphics, etc. - I am pleased with the raw numbers, but they can be added, of course.
At the moment, my system is only in a regular folder / folder, but I most likely moved it to the engine so that I can use it more easily.
Hope this helps!
By the way, I also use Google Analytics for a number of sites, and this is normal - I just like to do it myself.
source share