By making some modifications to the GA code it is possible to send data to two Analytics accounts from one web page. For urchin.js: <script src=”http://www.google-analytics.com/urchin.js” type=”text/javascript”> </script> <script type=”text/javascript”> _uacct = “UA-XXXXXXX-1″; urchinTracker(); _uff = 0; // Reset flag to allow for second account _uacct = “UA-XXXXXXX-2″; </script> For ga.js: <script type=”text/javascript”> var gaJsHost [...]
You might have noticed that the new version of Google’s Analytics tracking code (ga.js) doesn’t validate using the W3C Validation tool. For those of us who like to write valid code there is an answer. Look for this line in your ga.js code: <code>document.write(unescape(“%3Cscript src=’” + gaJsHost + “google-analytics.com/ga.js’ type=’text/javascript’%3E%3C/script%3E”));</code> Replace it with this line: [...]