Permalink
Browse files

adds analytics to the latest version

  • Loading branch information...
semmypurewal committed Jan 20, 2013
1 parent 05fe776 commit 720fab68180fdd7b57aabe8a5e0815a3342fbc56
Showing with 15 additions and 3 deletions.
  1. +5 −3 index.html
  2. +10 −0 scripts/analytics.js
View
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
- <meta charset="UTF-8">
+ <meta charset='UTF-8'>
<title>Semmy Purewal</title>
@@ -11,8 +11,8 @@
</head>
<body>
- <div class="content">
- <h1 class="name">Semmy Purewal</h1>
+ <div class='content'>
+ <h1 class='name'>Semmy Purewal</h1>
<div class='icons'>
<a href='http://www.youtube.com/user/semmypurewal' target='_blank'>
<img alt='youtube' class='icon' src='icons/television.png' />
@@ -28,5 +28,7 @@ <h1 class="name">Semmy Purewal</h1>
</a>
</div>
</div>
+
+ <script src='scripts/analytics.js'></script>
</body>
</html>
View
@@ -0,0 +1,10 @@
+var _gaq = _gaq || [];
+_gaq.push(['_setAccount', 'UA-25090104-1']);
+_gaq.push(['_setDomainName', '.semmy.me']);
+_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);
+})();

0 comments on commit 720fab6

Please sign in to comment.