Want more features on Pastebin? Sign Up, it's FREE!
Guest

Filtering Self from Google Analytics

By: a guest on Jan 21st, 2011  |  syntax: HTML  |  size: 1.42 KB  |  views: 1,933  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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-Typecontent=text/html; charset=iso-8859-1/>
  5. <title>google analytics cookie excluder</title>
  6.  
  7. <!-- prevents indexing of this page by search engines -->
  8. <META NAME="ROBOTS" CONTENT="NOINDEX,NOFOLLOW">
  9.  
  10. <script type="text/javascript">
  11.  
  12.   var _gaq = _gaq || [];
  13.   _gaq.push(['_setAccount', 'Account ID']);
  14.   _gaq.push(['_trackPageview']);
  15.  
  16.   (function() {
  17.     var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  18.     ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  19.     var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  20.   })();
  21.  
  22. </script>
  23.  
  24.  
  25.  
  26. <body onLoad="javascript:_gaq.push(['_setVar', 'your_value_here']);">
  27.  
  28. </head>
  29.  
  30. <body bgcolor="#272d32">
  31. <div align="center">
  32.         <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" align="center">
  33.           <tr>
  34.             <td>
  35.               <div align="center">
  36.                 <p><font size="6"><font color="#FF6600">google analytics cookie excluder</font></font></font></p>
  37.               </div>
  38.             </td>
  39.           </tr>
  40.         </table>
  41.       </div>
  42.  
  43.  
  44. </body>
  45. </html>
clone this paste RAW Paste Data