the example was a bit outdated.
you should use fs_api_get_page_views, which is documented here : http://firestats.cc/wiki/API
Returns the number of pages displayed in the specified time period.
days_ago is an optional parameter which specifies how many days ago to start counting.
if days_ago is not specified, the count will begin when you installed FireStats.
site_id : see comment at the start of the file
url: see comment at the start of the file
if you don't want to specify days_ago, pass NULL instead, like:
echo "Number of times this page was viewed: ". fs_api_get_hit_count(NULL,true,the_permalink());
note that you had an extra ; after the_permalink().
the site id parameter (second true in your call) is documented at the page.
you probably want to use true here.
On 01/31/2010 02:28 PM, ovivankenobi wrote: