How to get the count of anonymous visitors ?

Author Message

John Mina

Thursday 07 April 2005 1:58:13 am

Hi All
i have a website that is already made by version 3.3-3 , and it had been published since last November . Now i need to get some statistics for number of anonymous users that had been visiting my website,
I am sure that EZ Publish is saving that some where in the database, so where is it ?

Looking forward to hearing back from you ASAP
sincerely
JOhn

Ɓukasz Serwatka

Thursday 07 April 2005 4:54:12 am

Hi John,

You can use this code:

        {let logged_in_count=fetch( user, logged_in_count )
             anonymous_count=fetch( user, anonymous_count )}
        Logged in users: {$logged_in_count} <br />

        Anonymous users: {$anonymous_count}
        {/let}

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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

Main resources:

Total runtime0.6895 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 588.0469152.6406
Module start 'layout' 0.00640.0046 740.687539.4766
Module start 'content' 0.01100.6772 780.1641526.4219
Module end 'content' 0.68820.0013 1,306.58598.1250
Script end 0.6895  1,314.7109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4937160.0002
Check MTime0.00140.1968160.0001
Mysql Total
Database connection0.00100.144710.0010
Mysqli_queries0.639492.7353540.0118
Looping result0.00050.0720520.0000
Template Total0.654795.020.3274
Template load0.00260.373420.0013
Template processing0.652194.576620.3261
Template load and register function0.00030.041810.0003
states
state_id_array0.00080.108810.0008
state_identifier_array0.00060.089920.0003
Override
Cache load0.00210.3004140.0001
Sytem overhead
Fetch class attribute can translate value0.00100.144020.0005
Fetch class attribute name0.00230.332530.0008
XML
Image XML parsing0.00110.162920.0006
class_abstraction
Instantiating content class attribute0.00000.001330.0000
General
dbfile0.00070.1078180.0000
String conversion0.00000.001940.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
2content/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
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs