WordPress Plugin: Unique Visitors
The Unique Visitors plugin makes it easier to identify specific anonymous repeat visitors. It adds a globally unique ID to an image tag that is visible in server logs. This cookie-based ID is also made available for other plugins to use with a simple function call.
Requirements
The Unique Visitors plugin works with WordPress v2.3.3. It was originally developed for WordPress v2.02, but the simple plugin has worked perfectly with every subsequent version without needed modification and is expected to work with any future version, including the upcoming WP v2.5.
No other plugins are required. It is not necessary to configure the plugin or edit your templates.
Installation
- Create a new
/unique-visitors/folder in the/wp-content/plugins/folder. - Copy all of the files in the zip archive into the new
/wp-content/plugins/unique-visitors/folder. - Activate the plugin in the WordPress Plugin Admin panel.
- Installation complete!
Usage
For the average user, there’s nothing to do. No other plugins are required. It is not necessary to configure the plugin or edit your templates. The only thing you’ll notice is that your server logs will have new lines like the following:
/wp-content/plugins/unique-visitors/spacer.gif?2c2f0b6bdddb88540b38e525094376a0
/wp-content/plugins/unique-visitors/spacer.gif?74b6f37dab1db92681ed0286468149c1
/wp-content/plugins/unique-visitors/spacer.gif?32f83c5b453e878496029761dcc7ca4
/wp-content/plugins/unique-visitors/spacer.gif?70cd54924d15293aee0f0652dc143758
WordPress plugin developers might also find all sorts of creative ways to use the globally unique identifier, available with the get_unique_visitors_id function. Example usage (not that you’d normally print it out!):
<?php echo get_unique_visitors_id(); ?>
gives you a nice long unique identifier like this: 2c2f0b6bdddb88540b38e525094376a0
Revision History
| Version | Release Date | Description |
|---|---|---|
| v0.99 | 2006-06-30 | Initial release. |
| v1.00 | 2006-08-11 | Add empty ALT atttributes to image for XHTML compliance. |
| v1.01 | 2008-03-02 | Added image and made it's home relative to the plugin folder. Added get_unique_visitor_id function. Minor changes in anticipation of WP v2.5. |
This plugin is provided as-is, without any warranty of any kind, express, implied or otherwise, including without limitation, any warranty of merchantability or fitness for a particular purpose. In no event shall I be liable for any special, incidental, consequential or indirect damages of any kind, or any damages whatsoever resulting from loss of; use, data or profits, whether or not advised of the possibility of damage, and on any theory of liability, arising out of or in connection with the use or performance of this plugin.