So, I have a simple page, and when the user clicks on the link, an iframe opens. I'm trying to use
http://www.google.com/support/analytics/bin/answer.py?hl=en&answer=55527
pageTracker._trackPageview('/outgoing/example.com');
Inside an iframe - but it seems like it doesn't work? I read this page
code.google.com/apis/analytics/docs/tracking/gaTrackingSite.html#trackingIFrames
And it seems that I am using "iframe.src = pageTracker._getLinkerUrl" to pass some cookie information to the iframe - the problem is that I want to track INSIDE iframe stuff (like events, etc.) and I get an error "pageTracker undefined".
Do I need to include something like
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
iFrame - pageTracker . , "Publisher UA-XXXXX-X" cookie, ?
Thomas