title: Analytics Facebook Javascript Issue: “FB is not defined”
body: <p>I want to track the status of facebook likes and unlikes in Analytics but am having problems.</p>
  
  <p>The following code, copied from the Analytics documentation <a href="http://code.google.com/intl/sv-SE/apis/analytics/docs/tracking/gaTrackingSocial.html" rel="nofollow">here</a>, is not working for me. </p>
  
  <pre><code>FB.Event.subscribe('edge.create', function(targetUrl) {
    _gaq.push(['_trackSocial', 'facebook', 'like', targetUrl]);
  
  });
  </code></pre>
  
  <p>I've put that code snippet in my sites footer but the error message says: "FB not defined", checked with Firebug. Since I have a facebook-box on my site containg a like button I thought that the FB-related code would be loaded and not undefined.</p>
  
  <p>The facebook-box I have is iframed. Is that why it wont work? What would I have to do to start tracking the like-button in my facebook-box in Analtycs?</p>