Skip to content

Commit 7b9add7

Browse files
committed
Add GA snippet to doc page template.
1 parent b06bc85 commit 7b9add7

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<div id="footer">
2+
Generated on <%= Time.now.strftime("%c") %> by
3+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
4+
<%= YARD::VERSION %> (ruby-<%= RUBY_VERSION %>).
5+
</div>
6+
7+
<script>
8+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
9+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
10+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
11+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
12+
13+
ga('create', 'UA-59095215-1', 'auto');
14+
ga('send', 'pageview');
15+
16+
</script>

0 commit comments

Comments
 (0)