[bknr-cvs] r2447 - trunk/projects/lisp-ecoop/website/templates
hhubner at common-lisp.net
hhubner at common-lisp.net
Wed Feb 6 12:08:45 UTC 2008
Author: hhubner
Date: Wed Feb 6 07:08:44 2008
New Revision: 2447
Modified:
trunk/projects/lisp-ecoop/website/templates/lisp-ecoop.xsl
trunk/projects/lisp-ecoop/website/templates/toplevel.xml
Log:
Add Google Analytics tracking to site.
Modified: trunk/projects/lisp-ecoop/website/templates/lisp-ecoop.xsl
==============================================================================
--- trunk/projects/lisp-ecoop/website/templates/lisp-ecoop.xsl (original)
+++ trunk/projects/lisp-ecoop/website/templates/lisp-ecoop.xsl Wed Feb 6 07:08:44 2008
@@ -38,6 +38,15 @@
<xsl:copy-of select="." />
</div>
</div>
+<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-3432041-2");
+pageTracker._initData();
+pageTracker._trackPageview();
+</script>
</body>
</html>
</xsl:template>
Modified: trunk/projects/lisp-ecoop/website/templates/toplevel.xml
==============================================================================
--- trunk/projects/lisp-ecoop/website/templates/toplevel.xml (original)
+++ trunk/projects/lisp-ecoop/website/templates/toplevel.xml Wed Feb 6 07:08:44 2008
@@ -47,5 +47,14 @@
<hr class="content-rule"/>
</div>
</div>
+<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-3432041-2");
+pageTracker._initData();
+pageTracker._trackPageview();
+</script>
</body>
</html>
More information about the Bknr-cvs
mailing list