Skip to content

Commit 3984029

Browse files
committedMay 6, 2013
Add GA
1 parent f192b2c commit 3984029

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
 

‎ga.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
var _gaq = _gaq || [];
2+
_gaq.push(['_setAccount', 'UA-15365980-1']);
3+
_gaq.push(['_trackPageview']);
4+
(function() {
5+
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
6+
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
7+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
8+
})();

‎index.html

+1
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,6 @@ <h1>About</h1>
4545

4646
</section>
4747
<script src="sort.js"></script>
48+
<script src="ga.js"></script>
4849
</body>
4950
</html>

0 commit comments

Comments
 (0)
Please sign in to comment.