Permalink
Browse files

Add Google Analytics code to pages. Fix links to reflect new index.ht…

…ml name.
  • Loading branch information...
1 parent de862aa commit 9d374cb927c2eb1f27e53f4aca51adb659eb929f @ike committed Nov 30, 2011
Showing with 32 additions and 16 deletions.
  1. +0 −14 config.ru
  2. +15 −0 index.html
  3. +17 −2 results.html
View
@@ -1,14 +0,0 @@
-use Rack::Static,
- :urls => ["/stylesheets", "/images"],
- :root => "public"
-
-run lambda { |env|
- [
- 200,
- {
- 'Content-Type' => 'text/html',
- 'Cache-Control' => 'public, max-age=86400'
- },
- File.open('public/the-future.html', File::RDONLY)
- ]
-}
View
@@ -243,6 +243,21 @@
</p>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
+
+ <script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-27354968-1']);
+ _gaq.push(['_setDomainName', 'ikelewis.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>
</body>
</html>
View
@@ -18,8 +18,8 @@
<h2>Results:</h2>
<iframe src="http://www.browserscope.org/user/tests/table/agt1YS1wcm9maWxlcnINCxIEVGVzdBiZsv8KDA?o=html&v=3" width="100%" height="700px" style="border: none;" ></iframe>
- <a class="nodecor" href="./the-future.html">
- <div class="button blue wide"><< Test Page</div>
+ <a class="nodecor" href="./index.html">
+ <div class="button blue wide"><< Test Page</div>
</a>
</div>
@@ -32,6 +32,21 @@
Fork on <a href="https://github.com/Crossdiver/The-Future-Img-Tag/">Github</a>
</p>
+
+ <script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-27354968-1']);
+ _gaq.push(['_setDomainName', 'ikelewis.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>
</body>
</html>

0 comments on commit 9d374cb

Please sign in to comment.