Well, here's the HTML Snippet with your code :
http://mkstudios.comxa.com/MK_Studios//Home_files/widget2_markup.html
Google will analyze the widget page, not the page you ceate in iWeb.
Use my method or change the lines in the code by adding the word parent :
var ga = parent.document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == parent.document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = parent.document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);