If you want to add a Sitemeter widget to WordPress sidebar you can use this plugin. True, you can just paste the sitemeter code into a text widget but when you are using WordPress MU that will not work. WordPress MU will not allow to paste Jave Script code into posts.
Download
Get the Sitemeter widget here (just change the .txt extension to .php).
Install
Drop the sitemeter.php file into your wp-content/plugin and activate it. If you are running WordPress MU just drop it in the wp-content/plugins-mu directory.
Usage
Add the widget to your sidebar and enter your Sitemeter counter code.

Please let me know if have any problems
Did you find this post interesting? Please subscribe to my feed.
Comments 9
I’m a new user of wordpress and my php knowlegde is about nill.
How do I add the widget to my sidebar. The stuff above was fairly simple.
Maybe a stupid question but I can always ask.
Thanks in advance,
Pieter
Posted 12 Jan 2007 at 5:50 pm ¶If the theme you are using supports widgets you will see a widget sub-menu on the “Presentation” tab. There you can drag the widget to the side-bar.
Posted 14 Jan 2007 at 6:45 am ¶I’m getting this error if I try to configure this widget on WordPress 2.1:
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /var/www/wordpress/wp-content/plugins/widgets/sitemeter.php on line 62
Warning: Invalid argument supplied for foreach() in /var/www/wordpress/wp-content/plugins/widgets/sitemeter.php on line 80
Posted 09 Feb 2007 at 9:07 pm ¶For PHP5 try replacing line 62 with:
Posted 09 Feb 2007 at 9:15 pm ¶$options = array_merge(widget_sitemeter_options(), array(get_option(‘widget_sitemeter’)));
Just wanted to say its a very nice blog you got here
its a very nice blog you got here
there you go i said it
Posted 20 Jul 2007 at 11:32 am ¶Can’t show the counter number after Sitemeter have changed the system~~~ any help?
Posted 14 Sep 2008 at 10:31 pm ¶Ken – jave not had the chance to review the changes. At this moment the old system is still active.
Posted 15 Sep 2008 at 6:35 am ¶Thanks for widget, it work great. However everytime I update other wdigets settings, it clear the sitemeter widget setting. I need input the code and save again to make to work.
I have using WordPress 2.7
Thank for help in advance.
Posted 11 Feb 2009 at 9:39 am ¶Chris, I’m running 2.7 as well without this issue. Anyone else with it? Try removing other widgets, maybe its one of them.
Posted 11 Feb 2009 at 3:16 pm ¶Trackbacks & Pingbacks 2
[...] Visit [...]
[...] 8th, 2008 · No Comments Sitemeter widget for WordPress | Ring Of Blogs If you want to add a Sitemeter widget to WordPress sidebar you can use this plugin. True, you [...]
Post a Comment