该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

AWStats Script

描述

AWStats is a free log file analysis
tool for web servers. It consists of a collection of Perl scripts that analyse
Apache-style access logs and produce graphical web pages with extended information
about the visits.

Browser Data Collection

AWStats can collect information about the browser capabilities and screen size,
but that requires embedding a <script> HTML tag in all the pages. This calls
a JavaScript function contained in the file awstats_misc_tracker.js that will
report the extra data to the web server in a specific HTTP GET request. An
extended explanation is provided in the AWStats FAQ

This plugin simplifies the job of adding the required <script> tag and provides
the latest stable version of the awstats_misc_tracker.js file, both in extended
and “minified” version using the Yahoo YUI Compressor.

Placing the Script

To speed-up the page rendering, the <script> tag is best placed at the bottom
of the page. This is the preferred option for WordPress themes that have a footer.
If the theme doesn’t have a footer, the tag is added to the page header. This
behaviour can be controlled using the plugin’s settings page. This has been
borrowed from the Google Analyticator plugin by Ronald Heft Jr.

No Logging for Administrators

The plugin also allows administrators to remove themselves and their visits from
the AWStats log. There is a field in the settings page where we can enter the user
level (a number from 0 to 10) above which the plugin will omit the <script> tag.

屏幕截图

  • Settings page with default values, right after activation.
  • Most typical configuration, adding the <script> tag at the page footer and disabling the AWStats logging for blog admins (level 8 or greater).

安装

  1. Upload the awstats-script directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Configure and enable the plugin in the ‘AWStats Script’ Options page

评价

阅读所有1条评价

贡献者及开发者

「AWStats Script」是开源软件。 以下人员对此插件做出了贡献。

贡献者

帮助将「AWStats Script」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

Version 0.3 (01/07/2008)

  • BUGFIX: Added alt attribute for <img> inside <noscript>
  • BUGFIX: Closed the <img> tag properly
  • BUGFIX: Removed a superfluous double quote that broke XHTML validation

Version 0.2 (29/06/2008)

  • NEW: Screenshots of settings page
  • NEW: Support for i18n

Version 0.1 (29/06/2008)

  • First release