title: Google Analytics Event Tracking isn't firing from iframe
body: <p>I have a site that I'm working on which is using a email sign up form inside an iFrame (for random CMS reasons, this has been the work around). I am attempting to install the Event tracking in to the iFrame so that we can see the actual conversion. </p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  (function (i, s, o, g, r, a, m) {
  i['GoogleAnalyticsObject'] = r;
  i[r] = i[r] || function () {
      (i[r].q = i[r].q || []).push(arguments)
  }, i[r].l = 1 * new Date();
  a = s.createElement(o),
  m = s.getElementsByTagName(o)[0];
  a.async = 1;
  a.src = g;
  m.parentNode.insertBefore(a, m)
  })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
  
  ga('create', 'UA-#######-1', 'site.org');
  &lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  &lt;div id='header'&gt;&lt;span&gt;Get the latest treatment tips&lt;/span&gt; &lt;span style='color:     #c9c9c9; padding: 0 5px;'&gt;|&lt;/span&gt; Sign up for e-news&lt;/div&gt;
  &lt;form name='signup' id='signup' method='post' action='index.php'&gt;
  &lt;input type='text' class='input' name='email' id='email' onfocus="if(this.value == 'Your email') { this.value = ''; }" onblur="if(this.value == '') { this.value = 'Your email'; }" value='Your email' /&gt;
  &lt;input type='text' class='input' name='zip' id='zip' onfocus="if(this.value == 'Zip code') { this.value = ''; }" onblur="if(this.value == '') { this.value = 'Zip code'; }" value='Zip code' /&gt;
  &lt;input onclick="ga('send', 'event', 'newsletter', 'sign-up', {'nonInteraction': 1});" type='submit' id='submit' value='Sign up &amp;raquo;' class='submit' name='submit' /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Previously, someone had put the ga('send', 'event'...) code in the script section, under ga('create', 'UA-'...) and it fired every time the page loaded. So, I've seen it actually work. It just doesn't seem to be firing on the button click itself.</p>
  
  <p>I have also tried firing it onSubmit and that also is not working.</p>
  
  <p>So, I'm not really sure why it isn't going at this stage.</p>
  
  <p>Help! Thank you!</p>