Facility to track individual usage of the site

Author Message

John Smith

Friday 18 September 2009 1:35:14 am

Hi Guys,

Hope someone can help me.

I got a wired sort of requirement in which I want some sort of facility to track individual usage of the site (time spent) as well as which sections of the site are being used most and least often.

Is it possible or not?

Looking forward to hear from experts soon.

Cheers,

Carlos Revillo

Friday 18 September 2009 1:46:06 am

Quick way, i think you can add some code to your pagelayout in which you can save this information yo may need. but, if you use database for the tracking, you will add a lit overhead to the server, because you will need to do this queries anytime a user visits a page.

More elaborated way, could be this interesting extension / project
http://projects.ez.no/ezgoogleanalytics

You will let google tracks the visits and the script will fetch data from google. then, if you map those entries to your sections and so on, you could do the job.

Last one, if you don't want google, could be using this interesting open source project called piwik. [1]. I'm not an expert on it, but it provides some documentation so you custom how the data are stored at the piwik database and so doing the job or getting the results a bit easier. But you will probably need your own extension for that.

[1] http://www.piwik.org

John Smith

Friday 18 September 2009 2:20:41 am

Cheers Carlos for you swift reply. Much appreciated.

I agree with you not to use database for tracking as it will increase the overhead.

Other both options seems interesting...

I found a link on piwik forums where somebody is trying to achieve the same.

http://forum.piwik.org/index.php?showtopic=1413

Anybody in the community achieved this? Please let me know.

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 21:16:11
Script start
Timing: Jan 18 2025 21:16:11
Module start 'layout'
Timing: Jan 18 2025 21:16:11
Module start 'content'
Timing: Jan 18 2025 21:16:12
Module end 'content'
Timing: Jan 18 2025 21:16:12
Script end

Main resources:

Total runtime0.7214 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0085 589.1563152.6406
Module start 'layout' 0.00850.0051 741.796939.4766
Module start 'content' 0.01370.7063 781.2734469.2188
Module end 'content' 0.71990.0014 1,250.49228.1250
Script end 0.7213  1,258.6172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.5783160.0003
Check MTime0.00150.2107160.0001
Mysql Total
Database connection0.00080.115010.0008
Mysqli_queries0.672193.1675570.0118
Looping result0.00070.0909550.0000
Template Total0.679894.220.3399
Template load0.00220.310020.0011
Template processing0.677593.915320.3387
Template load and register function0.00010.015810.0001
states
state_id_array0.00170.235010.0017
state_identifier_array0.00160.217320.0008
Override
Cache load0.00190.2584230.0001
Sytem overhead
Fetch class attribute can translate value0.00060.086120.0003
Fetch class attribute name0.00100.139530.0003
XML
Image XML parsing0.00020.030020.0001
class_abstraction
Instantiating content class attribute0.00000.001130.0000
General
dbfile0.00060.0897100.0001
String conversion0.00000.001440.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs