I got tired of waiting for the module to be updated so it worked again with showing me user information and also with the latest Woopra code. I don't know much js but it wasn't hard, actually, since they give you the script right on the site. This is what I did and it works for me:
/**
* Implementation of hook_footer
*/
function woopra_footer($main = 0) {
global $user;
global $base_url;
$script = '';
if (arg(0) != 'admin') {
if ((_woopra_track($user))) {
$picture_path = "http://example.com/$user->picture";
$script = '<script type="text/javascript">';
$script .= "var woo_visitor={name:'$user->name', avatar:'$picture_path'}; ";
$script .= "(function(){ ";
$script .= "var wsc=document.createElement('script'); ";
$script .= "wsc.type='text/javascript'; ";
$script .= "wsc.src=document.location.protocol+'//static.woopra.com/js/woopra.js'; ";
$script .= "wsc.async=true; ";
$script .= "var ssc = document.getElementsByTagName('script')[0]; ";
$script .= "ssc.parentNode.insertBefore(wsc, ssc); ";
$script .= "})(); ";
$script .= "</script> ";
}
}
return $script;
}
I'm sure there's a much better way of getting the domain for the picture path but I took the easy way out since I was doing it just for my site. Make sure you change "example.com" to your site.
This is the code from the Woopra site docs as of today.
Michelle