1. Skip to Navigation
  2. Skip to Content
our blog

Posts tagged awstats

Exclude WordPress’ Admin URLs from your AWStats Reports

After upgrading a friend’s blog to WordPress 2.7 we started noticing his pageview numbers in AWStats going through the roof, without a corresponding increase in visitors. Here’s a screenshot:

Screenshot of AWStats seemingly overreporting pageviews

Google Analytics was showing normal pageview numbers, so we knew something was amiss. When we looked at the most viewed pages in awstats, it became obvious:

Screenshot of AWStats views per page, showing 2228 hits on WP's admin-ajax.php file

AWStats has always counted pageviews on the WordPress backend, but compared to the total pageviews the impact was negligible. However, now that WordPress 2.7 makes so many AJAX calls to admin-ajax.php (primarily for saving drafts), we must exclude these pageviews from our reports to leave meaningful data. Thankfully its very easy.

(more…)