Skip to content

Commit c7d2209

Browse files
committed
Updating google analytics snippet
1 parent 93fb6c2 commit c7d2209

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

_includes/footer.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,4 @@
2424
{% if page.url %}<li><a href="https://github.com/biojava/biojava.github.io/edit/master/{{ page.path }}">Edit this page</a></li>{% endif %}
2525
<li>Design: <a href="http://html5up.net" target="_blank">HTML5 UP</a></li>
2626
</ul>
27-
</footer>
28-
29-
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
30-
<script type="text/javascript">_uacct = "{{ site.google_analytics }}";urchinTracker();</script>
27+
</footer>

_includes/head.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,12 @@
99
<!--[if lte IE 8]><link rel="stylesheet" href="{{ "/css/ie8.css" | prepend: site.baseurl }}" /><![endif]-->
1010
<!--[if lte IE 9]><link rel="stylesheet" href="{{ "/css/ie9.css" | prepend: site.baseurl }}" /><![endif]-->
1111
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}">
12+
<script>
13+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
14+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
15+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
16+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
17+
ga('create', '{{ site.google_analytics }}', 'auto');
18+
ga('send', 'pageview');
19+
</script>
1220
</head>

0 commit comments

Comments
 (0)