So here it is, it still doesn’t do much, but if you use AWStats and WordPress, you may find my first WordPress plugin handy… And it does a bit more than it used to!
AWStats Xtended Info inserts the awstats_misc_tracker.js into each page WordPress serves, allowing you to track additional items including screen size, Flash, PDF, and Java support among other things.
For finer control you can select which types of pages will include the script from the AWStats X options page.
- AWStats 6 or greater
- WordPress 1.5 or greater (compatible with 2.0 and 2.1)
Upgrading from a version prior to 2.1b r004:
- Delete the existing “wp-awstats-ext” directory before uploading 2.1b r004 or above.
- Change:
MiscTrackerUrl=”/wp-content/plugins/wp-awstats-ext/js/awstats_misc_tracker.js”
in your AWStats configuration file to:
MiscTrackerUrl=”/wp-content/plugins/wp-awstats-x/js/awstats_misc_tracker.js” - Activate the AWStats Xtended Info plugin from the WordPress Manage Plugins admin panel.
First-time Installation:
- Unzip and upload wp-awstats-ext directory into your WordPress plugins directory (/wp-content/plugins).
- In your site’s AWStats configuartion file set the following options:
- MiscTrackerUrl=”/wp-content/plugins/wp-awstats-x/js/awstats_misc_tracker.js”
- ShowScreenSizeStats=1
- ShowMiscStats=anjdfrqwp
- Activate the AWStats Xtended Info plugin from the WordPress Manage Plugins admin panel.
- Navigate to Options > AWStats X and select the pages the script should be added to. Update Options.
2.1b r005 :: April 5, 2007
- BUG FIX - Forgot to change the path in the ‘js/awstats_misc_tracker.js’ file to… Good catch, and much thanks to Dave, Dominique Stender, and GreyDuck.
2.1b r004 :: March 31, 2007
BUG FIX - Seems to work better on post pages and static pages if you use the full url rather than the relative url. Duh.
2.1b r003 :: March 16, 2007
BUG FIX - I broke the link to the script on either r001 or r002. Didn’t notice it until now… But hey, problem solved.
BUG FIX - Script is now inserted on all pages by default.
2.1b r002 :: February 25, 2007
FEATURE - Added Version Checking
FIX - Updated all links to new AWStats X dedicated page at Tossed Salad
2.1b r001 :: February 24, 2007
FEATURE - Added Options Page Subpanel “AWStats X”
FEATURE - User can select pages to load the AWStats Extended script
MINOR - Checked WP 2.1 Compatibility
2.0.2b :: April 26, 2005
Public beta. Changed version number to reflect WP compatibility.
NO KNOWN ISSUES
Released: April 5, 2007
If you have any troubles, feel free to e-mail me using the Contact link in the menu bar or by posting comments here. Good luck and enjoy.






I have my site hosted at Hosting Matters and Awstats comes with the service. Therefore I don’t have an awstats file in my files. It is all at the server. Still applicable?
Just tried this out… works as expected except that the second request still looks to be pulling a 404:
/wp-content/plugins/wp-awstats-ext/js/awstats_misc_tracker.js?
Needed to update the referenced .js script file to:
var awstatsmisctrackerurl=”/wp-content/plugins/wp-awstats-x/js/awstats_misc_tracker.js”;
The .js file you supply with 2.1b r004 still uses the wp-awstats-ext path as variable not wp-awstats-x. Shows up nicely in awstats as HTTP 404 error ;)
Other than that, good work!
It’s not working for me at the moment, and I think I know why:
var awstatsmisctrackerurl=”/wp-content/plugins/wp-awstats-ext/js/awstats_misc_tracker.js”;
…which isn’t the correct path, is it? That’d be why I’m seeing the Apache log entry which actually contains the info AWstats seeks coming in as a 404, correct?
I’m going to try adjusting that to /yadda/wp-awstats-x/js/yaddayadda and see what happens.
Y’all are absolutely right… Forgot about that one! Great catch, and thanks, I’ve updated the plug-in, but if you already changed it you’re good.