title: How to Track Clicks in an IFrame with Google Analytics?
body: <p>I'd like to track outbound clicks within an iframe on my self-hosted Wordpress site. I already use Google Analytics to track inbound visitors (GA code in the header), but I'd like to know which/how many of those visitors click on links within the iframe on each of my pages.  For the record, the iframe does come from an external advertiser.</p>
  
  <p>This is the iframe code I was given (using sample names in place of real ones):</p>
  
  <pre><code>&lt;iframe src="http://www.advertisersite123.com//widget.html?width=510&amp;height=950&amp;product=2" frameborder="0" scrolling="no" width="510" height="950"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>This line of code is currently pasted on single.php, making a table of links appear on every single post at the bottom of the page.</p>
  
  <p>I'd like to know how many clicks (just clicks in general is fine, don't need to know where they go) are occurring in this iframe.  Ideally broken down by each individual URL on my website so I can determine which URLs are more successful in generating clicks within the iframe.</p>
  
  <p>And if possible, I'd like to create a funnel that tells me which visitors to my website (by source) exit via clicks in the iframe.  </p>
  
  <p>Is any of this possible?  And if so, what code do I add to the page?</p>
  
  <p>Thank you for any and all assistance, it is appreciated!</p>