进入文档目录下
1 2 3 4 |
$ ls _build/ _themes/ dev/ make.bat scenarios/ writing/ _static/ conf.py index.rst Makefile shipping/ _templates/ contents.rst.inc intro/ notes/ starting/ |
进入
1 |
cd _templates/ |
创建个layout.html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
{% extends "!layout.html" %} {% block footer %} {{ super() }} <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> try { var pageTracker = _gat._getTracker("YOUR_GOOGLE_CODE_HERE"); pageTracker._trackPageview(); } catch(err) {}</script> {% endblock %} |
将其中谷歌统计代码换成自己的就可以统计了
欢迎来到昊天seo的博客