<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="P3P" content='CP="CAO PSA OUR"'><!-- This encourages IE to track 3rd Party content/cookie. -->
<title>Primary Domain : Parent Page V2</title>
<!-- Google recommends placing tracking script just above closing head tag -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXXXXX-8']); // Sets proper Google Analytics account
_gaq.push(['_setAllowLinker', true]); // Allows tracking of links NECESSARY
_gaq.push(['_setDomainName', 'primarydomain.com']); // Sets the primary domain being tracked
_gaq.push(['_trackPageview']); // Tracks the pageview
// This loads the content of the iFrame and creates another tracker just for tracking the iFrame called iFrameTracker
_gaq.push(function() {
var iframe = document.getElementById('myIframe');
iframe.src = _gat._createTracker('UA-17536118-8', 'iFrameTracker')._getLinkerUrl('http://www.secondarydomain.com/secondaryDomain.html');
});
// This is also REQUIRED and loads the ga.js script, everything is first pushed to a queue for efficiency
(function() {
var ga = document.createElement('script');
ga.type = 'text/javascript'; ga.async = true;
ga.src = (
'https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<p>This text is before the iFrame.</p>
<iframe id="myIframe"></iframe>
<p>This text is after the iFrame.</p>
</body>
</html>