Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added Google Analytics

  • Loading branch information...
commit c21978efe857dc60f213eb16350b9cfa4d8da40e 1 parent fe89cc9
@davorg authored
Showing with 32 additions and 12 deletions.
  1. +18 −8 about.html
  2. +14 −4 index.html
View
26 about.html
@@ -7,18 +7,18 @@
<meta name="author" content="">
<link rel="shortcut icon" href="http://perlhacks.com/favicon.png">
- <title>About Perl Search</title>
+ <title>About - Perl Search</title>
<!-- Bootstrap core CSS -->
- <link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.css" rel="stylesheet">
+ <link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
- <link href="css/starter-template.css" rel="stylesheet">
+ <link href="/css/starter-template.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
- <script src="js/html5shiv.js"></script>
- <script src="js/respond.min.js"></script>
+ <script src="/js/html5shiv.js"></script>
+ <script src="/js/respond.min.js"></script>
<![endif]-->
</head>
@@ -36,8 +36,8 @@
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
- <li><a href="/#">Home</a></li>
- <li class="active"><a href="about.html">About</a></li>
+ <li><a href="#">Home</a></li>
+ <li class="active"><a href="/about.html">About</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
@@ -46,7 +46,7 @@
<div class="container">
<div class="starter-template">
- <h1>About Perl Search</h1>
+ <h1>About</h1>
<p>There's a lot of information about Perl out there on the World
Wide Web. Unfortunately, a lot of it is of rather questionable
quality. And, even more unfortunately, Google seems really happy
@@ -69,6 +69,7 @@
<a href="http://twitter.com/davorg">on Twitter</a>.</p>
<p>He would love to hear if you find the site useful or if you
have suggestions for improvements.</p>
+
</div>
</div><!-- /.container -->
@@ -79,5 +80,14 @@
<!-- Placed at the end of the document so the pages load faster -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
+ <script>
+(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+ga('create', 'UA-56332-51', 'perlhacks.com');
+ga('send', 'pageview');
+ </script>
</body>
</html>
View
18 index.html
@@ -13,12 +13,12 @@
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
- <link href="css/starter-template.css" rel="stylesheet">
+ <link href="/css/starter-template.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
- <script src="js/html5shiv.js"></script>
- <script src="js/respond.min.js"></script>
+ <script src="/js/html5shiv.js"></script>
+ <script src="/js/respond.min.js"></script>
<![endif]-->
</head>
@@ -47,7 +47,7 @@
<div class="starter-template">
<h1>Perl Search</h1>
- <div>
+ <div>
<script>
(function() {
var cx = '008350714774536055976:a2zesuxuecs';
@@ -62,6 +62,7 @@
</script>
<gcse:search></gcse:search>
</div>
+
</div>
</div><!-- /.container -->
@@ -72,5 +73,14 @@
<!-- Placed at the end of the document so the pages load faster -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
+ <script>
+(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+ga('create', 'UA-56332-51', 'perlhacks.com');
+ga('send', 'pageview');
+ </script>
</body>
</html>
Please sign in to comment.
Something went wrong with that request. Please try again.