[Swift-commit] r2603 - trunk/docs/formatting

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Tue Feb 24 10:57:37 CST 2009


Author: benc
Date: 2009-02-24 10:57:36 -0600 (Tue, 24 Feb 2009)
New Revision: 2603

Modified:
   trunk/docs/formatting/swift_html.xsl
   trunk/docs/formatting/swiftsh_html.xsl
   trunk/docs/formatting/swiftsh_html_chunked.xsl
Log:
add Google Analytics to manuals

Modified: trunk/docs/formatting/swift_html.xsl
===================================================================
--- trunk/docs/formatting/swift_html.xsl	2009-02-24 16:50:27 UTC (rev 2602)
+++ trunk/docs/formatting/swift_html.xsl	2009-02-24 16:57:36 UTC (rev 2603)
@@ -180,6 +180,17 @@
 
 				<xsl:call-template name="user.footer.navigation"/>
 
+				<!-- for google analytics -->
+<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">
+try {var pageTracker = _gat._getTracker("UA-106257-5");
+pageTracker._trackPageview();
+} catch(err) {}</script>
+
+
 			</body>
 		</html>
 	</xsl:template>
@@ -242,4 +253,4 @@
 		]]>
 		</xsl:text>
 	</xsl:template>
-</xsl:stylesheet>
\ No newline at end of file
+</xsl:stylesheet>

Modified: trunk/docs/formatting/swiftsh_html.xsl
===================================================================
--- trunk/docs/formatting/swiftsh_html.xsl	2009-02-24 16:50:27 UTC (rev 2602)
+++ trunk/docs/formatting/swiftsh_html.xsl	2009-02-24 16:57:36 UTC (rev 2603)
@@ -183,6 +183,17 @@
 
 				<xsl:call-template name="user.footer.navigation"/>
 
+				<!-- for google analytics -->
+<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">
+try {
+var pageTracker = _gat._getTracker("UA-106257-5");
+pageTracker._trackPageview();
+} catch(err) {}</script>
+
 			</body>
 		</html>
 	</xsl:template>

Modified: trunk/docs/formatting/swiftsh_html_chunked.xsl
===================================================================
--- trunk/docs/formatting/swiftsh_html_chunked.xsl	2009-02-24 16:50:27 UTC (rev 2602)
+++ trunk/docs/formatting/swiftsh_html_chunked.xsl	2009-02-24 16:57:36 UTC (rev 2603)
@@ -198,6 +198,15 @@
       </xsl:call-template>
 
 				<xsl:call-template name="user.footer.navigation"/>
+				<!-- for google analytics -->
+<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">
+try {var pageTracker = _gat._getTracker("UA-106257-5");
+pageTracker._trackPageview();
+} catch(err) {}</script>
 
 			</body>
 		</html>




More information about the Swift-commit mailing list