Merge pull request #1779 from flaviut/ga-docs
Add google analytics to docs
This commit is contained in:
commit
20da8c9400
4 changed files with 35 additions and 6 deletions
|
|
@ -192,13 +192,15 @@ View at: localhost:5000
|
|||
</footer>
|
||||
|
||||
<script>
|
||||
# if c.gaId != nil:
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||||
|
||||
ga('create', 'UA-48159761-1', 'nim-lang.org');
|
||||
ga('create', '${c.gaId}', 'nim-lang.org');
|
||||
ga('send', 'pageview');
|
||||
# end if
|
||||
|
||||
var timer;
|
||||
var prevIndex = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue