Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <meta http-equiv="P3P" content='CP="CAO PSA OUR"'><!-- This encourages IE to track 3rd Party content/cookie. -->
  6. <title>Primary Domain : Parent Page V2</title>
  7. <!-- Google recommends placing tracking script just above closing head tag -->
  8. <script type="text/javascript">    
  9.     var _gaq = _gaq || [];    
  10.     _gaq.push(['_setAccount', 'UA-XXXXXXXX-8']);                // Sets proper Google Analytics account    
  11.     _gaq.push(['_setAllowLinker', true]);                       // Allows tracking of links NECESSARY
  12.     _gaq.push(['_setDomainName', 'primarydomain.com']);         // Sets the primary domain being tracked    
  13.     _gaq.push(['_trackPageview']);                              // Tracks the pageview
  14.    
  15.     // This loads the content of the iFrame and creates another tracker just for tracking the iFrame called iFrameTracker
  16.     _gaq.push(function() {
  17.     var iframe = document.getElementById('myIframe');
  18.     iframe.src = _gat._createTracker('UA-17536118-8', 'iFrameTracker')._getLinkerUrl('http://www.secondarydomain.com/secondaryDomain.html');
  19.     });
  20.    
  21.     // This is also REQUIRED and loads the ga.js script, everything is first pushed to a queue for efficiency
  22.     (function() {        
  23.         var ga = document.createElement('script');
  24.         ga.type = 'text/javascript'; ga.async = true;        
  25.         ga.src = (
  26.                   'https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';        
  27.                   var s = document.getElementsByTagName('script')[0];
  28.                   s.parentNode.insertBefore(ga, s);    
  29.                 })();  
  30. </script>
  31. </head>
  32. <body>
  33. <p>This text is before the iFrame.</p>
  34.  
  35. <iframe id="myIframe"></iframe>
  36.  
  37. <p>This text is after the iFrame.</p>
  38. </body>
  39. </html>