[Swift-commit] r7901 - SwiftApps/tryswift

davidk at ci.uchicago.edu davidk at ci.uchicago.edu
Mon Jun 2 16:57:24 CDT 2014


Author: davidk
Date: 2014-06-02 16:57:24 -0500 (Mon, 02 Jun 2014)
New Revision: 7901

Modified:
   SwiftApps/tryswift/index.php
Log:
analytics


Modified: SwiftApps/tryswift/index.php
===================================================================
--- SwiftApps/tryswift/index.php	2014-06-02 21:11:10 UTC (rev 7900)
+++ SwiftApps/tryswift/index.php	2014-06-02 21:57:24 UTC (rev 7901)
@@ -4,6 +4,19 @@
       <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
       <title>Try Swift</title>
       <link rel="stylesheet" type="text/css" href="css/tryswift.css">
+
+      <!-- Google analytics -->
+      <script type="text/javascript">
+         var _gaq = _gaq || [];
+         _gaq.push(['_setAccount', 'UA-25069254-1']);
+         _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>
    </head>
 
    <body>




More information about the Swift-commit mailing list