File download counter and statistics?

Author Message

Florian Feigenbutz

Wednesday 07 January 2004 6:59:25 am

Hi guys,
first of all: great work eZ crew!
I should realize a lot of statical functions in an ez publish site but I'm not quite sure whether this is not already implemented -didn't find it 'til now..
It should be possible to see how many users downloaded a certain file and -even more detailed- how often which user downloaded this file.
I read something about eZfilemanager, could this one help me? Is there any documentation? I've been searching a few hours but I wasn't successful.. So I decided to ask the specialists :)
Thanks in advance,
Florian.

Balazs Halasy

Wednesday 07 January 2004 8:16:13 am

At the time of writing, eZ publish does not have functionality that takes care of storing and presenting statistical data related to page-views, downloads and such. (However, the search system has built-in support for search-statistics.) You could make a simple template operator that did the job, and/or a custom table in the database that would be updated every time a download is initiated, etc. Any way, you would have to do this yourself.

Balazs

Florian Feigenbutz

Wednesday 07 January 2004 10:02:53 am

Thank you for your quick answer Balazs!
Good to know this, so I can go at work now without the pain that I could find such a function in eZp a few weeks later ;)

Paul Borgermans

Wednesday 07 January 2004 10:39:07 am

Some other types of statistics are added in 3.3: you can have counts on who has published objects of a given class.

Check kernel/content/function_definition.php for this and more new things in 3.3

for example:

{fetch('content','object_count_by_user_id',hash('class_id',2,'user_id',1234567'))}

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 22:11:07
Script start
Timing: Jan 18 2025 22:11:07
Module start 'layout'
Timing: Jan 18 2025 22:11:07
Module start 'content'
Timing: Jan 18 2025 22:11:07
Module end 'content'
Timing: Jan 18 2025 22:11:07
Script end

Main resources:

Total runtime0.7496 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 587.9141152.6250
Module start 'layout' 0.00560.0024 740.539139.4609
Module start 'content' 0.00800.7402 780.0000588.5859
Module end 'content' 0.74820.0013 1,368.585912.1563
Script end 0.7495  1,380.7422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4082160.0002
Check MTime0.00130.1733160.0001
Mysql Total
Database connection0.00080.104710.0008
Mysqli_queries0.700693.4676620.0113
Looping result0.00060.0741600.0000
Template Total0.721896.320.3609
Template load0.00190.258620.0010
Template processing0.719896.035320.3599
Template load and register function0.00020.028210.0002
states
state_id_array0.00120.154010.0012
state_identifier_array0.00080.105020.0004
Override
Cache load0.00160.2165240.0001
Sytem overhead
Fetch class attribute can translate value0.00100.128930.0003
Fetch class attribute name0.00200.262460.0003
XML
Image XML parsing0.00180.246730.0006
class_abstraction
Instantiating content class attribute0.00000.001960.0000
General
dbfile0.00220.2971230.0001
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs