8000 added google analytics · jruby/blog.jruby.org@1b40170 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1b40170

Browse files
added google analytics
1 parent a9468c0 commit 1b40170

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

_layouts/default.html

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,12 @@ <h2>{{ site.subtitle }}</h2>
3636
<p>All post content is licensed under <a rel="license" href="http://creativecommons.org/licenses/by/3.0/" title="Creative Commons &mdash; Attribution 3.0 Unported">Creative Commons Attribution 3.0</a> unless stated otherwise by the author in that post.</p>
3737
</footer>
3838

39-
<!-- Google Analytics -->
40-
<script>
41-
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
42-
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js'%3E%3C/script%3E"));
43-
</script>
44-
<script>
45-
var pageTracker = _gat._getTracker("UA-xxxyyy-zz");
46-
pageTracker._trackPageview();
47-
</script>
48-
<!-- Google Analytics end -->
39+
<script>
40+
// google analytics
41+
var _gaq=[['_setAccount','UA-764576-26'],['_trackPageview']];
42+
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
43+
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
44+
s.parentNode.insertBefore(g,s)}(document,'script'));
45+
</script>
4946
</body>
5047
</html>

0 commit comments

Comments
 (0)
0