Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added Google Analytics

  • Loading branch information...
commit c21978efe857dc60f213eb16350b9cfa4d8da40e 1 parent fe89cc9
Dave Cross authored September 30, 2013

Showing 2 changed files with 32 additions and 12 deletions. Show diff stats Hide diff stats

  1. 26  about.html
  2. 18  index.html
26  about.html
@@ -7,18 +7,18 @@
7 7
     <meta name="author" content="">
8 8
     <link rel="shortcut icon" href="http://perlhacks.com/favicon.png">
9 9
 
10  
-    <title>About Perl Search</title>
  10
+    <title>About - Perl Search</title>
11 11
 
12 12
     <!-- Bootstrap core CSS -->
13  
-    <link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.css" rel="stylesheet">
  13
+    <link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet">
14 14
 
15 15
     <!-- Custom styles for this template -->
16  
-    <link href="css/starter-template.css" rel="stylesheet">
  16
+    <link href="/css/starter-template.css" rel="stylesheet">
17 17
 
18 18
     <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
19 19
     <!--[if lt IE 9]>
20  
-      <script src="js/html5shiv.js"></script>
21  
-      <script src="js/respond.min.js"></script>
  20
+      <script src="/js/html5shiv.js"></script>
  21
+      <script src="/js/respond.min.js"></script>
22 22
     <![endif]-->
23 23
   </head>
24 24
 
@@ -36,8 +36,8 @@
36 36
         </div>
37 37
         <div class="collapse navbar-collapse">
38 38
           <ul class="nav navbar-nav">
39  
-            <li><a href="/#">Home</a></li>
40  
-            <li class="active"><a href="about.html">About</a></li>
  39
+            <li><a href="#">Home</a></li>
  40
+            <li class="active"><a href="/about.html">About</a></li>
41 41
           </ul>
42 42
         </div><!--/.nav-collapse -->
43 43
       </div>
@@ -46,7 +46,7 @@
46 46
     <div class="container">
47 47
 
48 48
       <div class="starter-template">
49  
-        <h1>About Perl Search</h1>
  49
+        <h1>About</h1>
50 50
         <p>There's a lot of information about Perl out there on the World
51 51
           Wide Web. Unfortunately, a lot of it is of rather questionable
52 52
           quality. And, even more unfortunately, Google seems really happy
@@ -69,6 +69,7 @@
69 69
           <a href="http://twitter.com/davorg">on Twitter</a>.</p>
70 70
         <p>He would love to hear if you find the site useful or if you
71 71
           have suggestions for improvements.</p>
  72
+
72 73
       </div>
73 74
 
74 75
     </div><!-- /.container -->
@@ -79,5 +80,14 @@
79 80
     <!-- Placed at the end of the document so the pages load faster -->
80 81
     <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
81 82
     <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
  83
+    <script>
  84
+(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  85
+(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  86
+m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  87
+})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  88
+
  89
+ga('create', 'UA-56332-51', 'perlhacks.com');
  90
+ga('send', 'pageview');
  91
+    </script>
82 92
   </body>
83 93
 </html>
18  index.html
@@ -13,12 +13,12 @@
13 13
     <link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet">
14 14
 
15 15
     <!-- Custom styles for this template -->
16  
-    <link href="css/starter-template.css" rel="stylesheet">
  16
+    <link href="/css/starter-template.css" rel="stylesheet">
17 17
 
18 18
     <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
19 19
     <!--[if lt IE 9]>
20  
-      <script src="js/html5shiv.js"></script>
21  
-      <script src="js/respond.min.js"></script>
  20
+      <script src="/js/html5shiv.js"></script>
  21
+      <script src="/js/respond.min.js"></script>
22 22
     <![endif]-->
23 23
   </head>
24 24
 
@@ -47,7 +47,7 @@
47 47
 
48 48
       <div class="starter-template">
49 49
         <h1>Perl Search</h1>
50  
-          <div>
  50
+        <div>
51 51
 <script>
52 52
   (function() {
53 53
     var cx = '008350714774536055976:a2zesuxuecs';
@@ -62,6 +62,7 @@
62 62
 </script>
63 63
 <gcse:search></gcse:search>
64 64
         </div>
  65
+
65 66
       </div>
66 67
 
67 68
     </div><!-- /.container -->
@@ -72,5 +73,14 @@
72 73
     <!-- Placed at the end of the document so the pages load faster -->
73 74
     <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
74 75
     <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
  76
+    <script>
  77
+(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  78
+(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  79
+m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  80
+})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  81
+
  82
+ga('create', 'UA-56332-51', 'perlhacks.com');
  83
+ga('send', 'pageview');
  84
+    </script>
75 85
   </body>
76 86
 </html>

0 notes on commit c21978e

Please sign in to comment.
Something went wrong with that request. Please try again.