Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Detailed Statistics?  (Read 3941 times)

0 Members and 1 Guest are viewing this topic.

gorcutt

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Detailed Statistics?
« on: October 18, 2004, 04:37:56 pm »

Is there a place where statistic data about access can be extracted? I'm looking for info about date, pictures and albums seen, originating IP or domain etc. If not, it's easy to a PHP newbie to implement these features?
Thanks for reading.
« Last Edit: October 20, 2004, 07:39:41 am by GauGau »
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Detailed Statistics?
« Reply #1 on: October 18, 2004, 05:01:07 pm »

All the data is in the MySQL database. So, yes, it should be possible to pull statistics out.
Logged

gorcutt

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: Detailed Statistics?
« Reply #2 on: October 18, 2004, 06:11:39 pm »

All the data is in the MySQL database. So, yes, it should be possible to pull statistics out.
I'm browsing the tables generated in the database and can't find this information. I'm looking for some analytical data like date, time, originator IP, album and picture. What am I missing?
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Detailed Statistics?
« Reply #3 on: October 18, 2004, 06:44:51 pm »

The bulk of the information is in cpgprefix_pictures table.

I just reread your first post and I think I overlooked a key word 'seen'.

You want to track the viewing habits of viewers? You would then need to look at your server's raw logs and use a log analyzer.

Please describe exactly your needs.
Logged

gorcutt

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: Detailed Statistics?
« Reply #4 on: October 18, 2004, 07:50:18 pm »

Thanks for the reply. Yes, I want to analyze how many hits a given picture or album receives during a period. The apache logs has all this information but very hard to use as the images and albums are not organized in a logical way. What I mean is if the structure of directories was like 'catalog/album/pics' it would be easy to filter this information from the raw logs, but the data that defines if a picture is from album 'A' or 'B' is in the database, so not shown on the HTTP GET statement. Sorry, but sometimes I feel hard to express myself in English in a way to make things clear, I hope you got my point.
I'm not good in PHP, but with some help maybe I could write a simple statement that can write this sort of information in some table or text file.
Thanks again.
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Detailed Statistics?
« Reply #5 on: October 18, 2004, 09:30:33 pm »

I guess in that case you could just output your own 'logs'. All the server logs do is capture data that you can get via PHP server variables. So, you would then 'log' activity in a flat (text) file instead of a database. If you make your own 'log' you could presumably use whatever variables you want, like album name, IP, etc.

Then to do analysis, develop a database to read the fields that you record.

I just don't know what affect this would have on CPU processing, and if it would slow down your page.
Logged

gorcutt

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: Detailed Statistics?
« Reply #6 on: October 18, 2004, 10:15:46 pm »

I'll try to code something and see if it works.
Thanks for the help :)
Logged

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Re: Detailed Statistics?
« Reply #7 on: October 19, 2004, 06:37:04 am »

Detailed stats recording has been added to the CVS version and is admin settable - however only 2 reports are available at the moment - Vote details per picture (how many of what rate)  and visit details. Since the data is recorded you can create more complex reports from it
Logged
SANIsoft PHP applications for E Biz

gorcutt

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: Detailed Statistics?
« Reply #8 on: October 19, 2004, 01:58:13 pm »

Yesterday night I was thinking in start to give a look on the source codes but I have to confess that this would not be an easy task to me. Thanks a lot for the very good news.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 15 queries.