TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 06-02-2008, 03:00 PM   #1 (permalink)
Jmz
The Acquainted
 
Join Date: Oct 2007
Location: Newcastle, UK
Posts: 113
Thanks: 3
Jmz is on a distinguished road
Default 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
__________________
Free CSS Tutorials
Send a message via MSN to Jmz
Jmz is offline  
Reply With Quote
Old 06-02-2008, 06:15 PM   #2 (permalink)
The Wanderer
 
Join Date: May 2008
Posts: 10
Thanks: 0
Folio is on a distinguished road
Default

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 :)
Folio is offline  
Reply With Quote
Old 06-03-2008, 09:34 AM   #3 (permalink)
Jmz
The Acquainted
 
Join Date: Oct 2007
Location: Newcastle, UK
Posts: 113
Thanks: 3
Jmz is on a distinguished road
Default

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!
__________________
Free CSS Tutorials
Send a message via MSN to Jmz
Jmz is offline  
Reply With Quote
Old 06-03-2008, 01:53 PM   #4 (permalink)
The Contributor
 
Ross's Avatar
 
Join Date: Jan 2008
Location: England, UK
Posts: 83
Thanks: 3
Ross is on a distinguished road
Default

Quote:
Originally Posted by Jmz View Post
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.
Ross is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 12:10 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design