Author: bugman Date: Tue Mar 20 14:40:00 2012 New Revision: 15582 URL: http://svn.gna.org/viewcvs/relax?rev=15582&view=rev Log: Added the Google Analytics javascript code (modified for a <head> tag) to the scripts directory. This will be used for building the API and relax HTML manual webpages of http://www.nmr-relax.com. Added: 1.3/scripts/google_analytics.js Added: 1.3/scripts/google_analytics.js URL: http://svn.gna.org/viewcvs/relax/1.3/scripts/google_analytics.js?rev=15582&view=auto ============================================================================== --- 1.3/scripts/google_analytics.js (added) +++ 1.3/scripts/google_analytics.js Tue Mar 20 14:40:00 2012 @@ -1,0 +1,15 @@ + <!--Google analytics JS--> + <script type="text/javascript"> + + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-30096326-1']); + _gaq.push(['_setDomainName', 'nmr-relax.com']); + _gaq.push(['_trackPageview']); + + (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>