I just uploaded version 1.2.0 of my WordPress Google Analytics plugin. It includes some minor bug fixes, and updated options page, and optional anonymous statistics collection. As my plugins are getting more and more popular (1000s of users now), I’m struggling to keep in touch with my plugin users. Gathering some statistics will help me to design my plugins to meet the needs of the users. This is not meant as an invasion of privacy, and you can easily disable it from the options page.
Here is the data it collects and sends:
- Plugin Name
- I plan to eventually add this to more of my plugins, so this is used for me to tell sort the data by plugin.
- Unique identifier
- This is a hash (one way encryption) of the URL and a random number. This simply helps eliminate duplicate info from being added to the pool of data.
- Plugin Version
- Just the version of the plugin.
- PHP Version
- Most of my plugins require PHP 5+, this one does not, but I would like to update it. I’m hoping to see how many users are on an old version of PHP.
- MySQL Version
- Certain database queries can be vastly optimized on newer versions of MySQL, so this information could be very helpful.
- Server Software
- Microsofts IIS can cause a lot of problems for PHP applications, so knowing how many users are using IIS is important.
- Memory Limit
- Your web server puts a limit on the amount of memory a script can use. This plugin should never come close to an average memory limit, but this is a statistic that will be nice to keep in mind as new plugins are developed.
For those that want to know, here is the code that collects the data:
$s['plugin'] = 'WP Google Analytics';
$s['id'] = wpGoogleAnalytics::get_wgaId();
$s['version'] = WGA_VERSION;
$s['php_version'] = phpversion();
$s['mysql_version'] = @mysql_get_server_info($wpdb->dbh);
$s['server_software'] = $_SERVER["SERVER_SOFTWARE"];
$s['memory_limit'] = ini_get('memory_limit');

Was a bit worried about the statistics gathering, but you have explain what you are doing well. Upgraded without problem and all looks good. Cheers X.
(ps. in this blog with FF 2.0.0.14 the comment submit button ends up under the ‘Acholi Beads’ link block…had to jump into IE to make this comment)
ChuckMcB: I’m glad that you appreciate the up front disclosure on the statistics. I’m really trying to insure the user’s privacy, and gather only the data that can help me to create better plugins.
As for the site display error, thanks for pointing it out. It seems that it only affected Firefox on Windows, which is a rarity. I fixed it now, and if you see any other glitches, please let me know!
Waiting For next version