Wordpress Widget: Time spent on blog
May 31st, 2008
A free thing, isn't it awesome? This little widget shows the total time spent by your users on your blog, with a precision of about two seconds. Your users also get to see how much time they have spent themselves. A demo + download can be found here.
Tested on Internet Explorer 6 and Firefox 3 (RC1).
(before anyone asks: yes, it is based on my previous posts' code)
This is cool. Does this script work for Blogger blogs too? Please let us know.
Thanks
Falkor
http://surff.blogspot.com
I doubt it works for blogspot/blogger blogs, since it is a PHP based plugin.
Thank you for constantly updated, always a pleasure to read.
As far as I can tell, the plugin is not optimized for high traffic sites and can kill the server with AJAX requests. Especially when the same user opens several pages.
2 second precision and 5 open pages result in 2.5 requests/sec from the user. ~500 unique visitors, several open pages, keep-alive connections - server dies.
Consider using indexes for SELECT/UPDATE (ip address is not indexed at all), using INT instead of VARCHAR for the IP address (use ip2long) and INSERT DELAYED instead of INSERT for MyISAM tables (MyISAM is a bad choise here).