The Rel canonical tag is always a good thing to implement. My preferred solution is to do a .htaccess 301 redirect from non-www to www by this code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain.com [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]
By doing the 301, all users are sent to www url. This means all future links to your site will be to the same URL. Hereby, you avoid the small link juice loss which occurs whenever you use the rel cnonical url to direct from non-www to www (or the other way around).
