TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   General (http://www.talkphp.com/general/)
-   -   Statistics script I can build into my CMS (http://www.talkphp.com/general/2881-statistics-script-i-can-build-into-my-cms.html)

Jmz 06-02-2008 03:00 PM

Statistics script I can build into my CMS
 
I'm making a CMS, basically the CMS will have lots of users all running their own mini site all hosted from one main account.

I would like the users to be able to have a small statistics section where they can view some simple stats. Only stuff like how many visitors they have had and mabe where they have came from, it doesn't need to be anything overly complex. The simpler the better.

At first I thought of using google analytics. I would get them to sign up for analytics and then add their ID on the settings page. But now I think the google analytics may be too much for them, and I'm not sure you can use multiple analytics accounts on one domain.

Does anyone know anything I could use?

This might be in the wrong section, sorry if it is

Folio 06-02-2008 06:15 PM

You should check out Mint. Can find it at Mint: A Fresh Look at your Site
Was built by Shaun Inman and is pretty good.
It's built on modules so can be as simple or complex as you like.
It isn't free, but it is a great tool!

Just add it onto what you are charging your client :)

Jmz 06-03-2008 09:34 AM

All the sites would be hosted on the same server, under the same domain but I only want users to be able to see stats for their website. Does mint support this?

It's starting to look like I'll have to code my own statistics section for the site. Can anybody give me any good links that might help me in creating my own?

Is it feasible to add a new entry into the database every time someone accesses the site? There could be say a hundred sites with a thousand hits a day, that's a lot of inserts into my db!

Ross 06-03-2008 01:53 PM

Quote:

Originally Posted by Jmz (Post 15118)
Is it feasible to add a new entry into the database every time someone accesses the site? There could be say a hundred sites with a thousand hits a day, that's a lot of inserts into my db!

It's feasible if you empty the access table once a week, using a cronjob for example. It depends what type of statistic you're looking to track - amount of hits? user browsers?

If you're just looking for a simple hit counter it could be easier to have an attribute for each site called `hits` which you UPDATE every time someone visits the site.


All times are GMT. The time now is 09:53 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0