Hi would it be possible to compress my Google Analytics code, so that it was all on one line? Thankyou for your time <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> <script type="text/javascript"> var pageTracker = _gat._getTracker("UA-6797325-1"); pageTracker._initData(); pageTracker._trackPageview(); </script> Code (markup):
Here is your code in one line <script type="text/javascript">var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");var pageTracker = _gat._getTracker("UA-6797325-1");document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));pageTracker._initData();pageTracker._trackPageview();</script> Code (markup): If you want even more compression, here is code whiteout some spaces: <script type="text/javascript">var gaJsHost=(("https:"==document.location.protocol)?"https://ssl.":"http://www.");var pageTracker=_gat._getTracker("UA-6797325-1");document.write(unescape("%3Cscript src='"+gaJsHost+"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));pageTracker._initData();pageTracker._trackPageview();</script> Code (markup):