Re: [phpOpenTracker-User] log_reload conf setting causes page impression count errors

Jean-Christian Imbeault <[email protected]>
Newsgroups gmane.comp.web.phpopentracker.general
Message-ID <[email protected]>
I did some more testing and it seems that the API call 'top' isn't
working properly?

Here is my test code and the results. As you can see the page
/toy/toy.html got 14 hits but is not shown in the top 5 even though the
5th place page has only 10 page impressions:

14 page impressions of document /toy/toy.html today

Top 5 page impressions for today
Array
(
    [top_items] => Array
        (
            [0] => Array
                (
                    [count] => 570
                    [string] => /
                    [percent] => 72.52
                )

            [1] => Array
                (
                    [count] => 64
                    [string] => /mk_detail/detail.html
                    [percent] => 8.14
                )

            [2] => Array
                (
                    [count] => 50
                    [string] => /top.html
                    [percent] => 6.36
                )

            [3] => Array
                (
                    [count] => 40
                    [string] => /mk_list/list.html
                    [percent] => 5.09
                )

            [4] => Array
                (
                    [count] => 11
                    [string] => pake.html
                    [percent] => 1.4
                )

        )

    [unique_items] => 27
)

Test code:

<pre>
<?php
printf(
 "%s page impressions of document /toy/toy.html today<BR>",

   phpOpenTracker::get(
     array(
       'api_call'    => 'page_impressions',
       'range'       => 'today',
       'constraints' => array('document' => '/toy/toy.html'),
     )
   )
 );

echo "<BR>Top 5 page impressions for today<BR>";

$documents = phpOpenTracker::get(
  array(
   'api_call' => 'top',
   'what'     => 'document',
   'range'    => 'today',
   'limit'    => 5
  )
 );

print_r($documents);

?>



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.