Author: bugman Date: Tue Mar 20 12:39:53 2012 New Revision: 15578 URL: http://svn.gna.org/viewcvs/relax?rev=15578&view=rev Log: The HTML user manual now will have Google analytics javascript added to all pages. This is a Latex2html configuration option $LATEX2HTML_META and will in the future affect all HTML files of http://www.nmr-relax.com/manual/relax.html. Modified: 1.3/docs/latex/.latex2html-init Modified: 1.3/docs/latex/.latex2html-init URL: http://svn.gna.org/viewcvs/relax/1.3/docs/latex/.latex2html-init?rev=15578&r1=15577&r2=15578&view=diff ============================================================================== --- 1.3/docs/latex/.latex2html-init (original) +++ 1.3/docs/latex/.latex2html-init Tue Mar 20 12:39:53 2012 @@ -27,6 +27,25 @@ # Set the HTML version. $HTML_VERSION = "4.0"; +# Additions to the head tag (Google analytics JS). +$LATEX2HTML_META = " + <!--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> +"; + # The names of the HTML pages. $LONG_TITLES = 5;