I have found other solutions like this but this example collects raw data, I need something a little bit more processed, I need an user-centric analytics. Those statistics are for advertising purposes. I want to recollect as much information as possible.
Share
That method might add a lot of overhead to each page load especially if you have a busy site / database server. I would recommend using google analytics on the template of each page instead. At least the analytics data is handled after the users page load.
I believe google has an api if you need to take the information from analytics and display it on your site.