Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e028970

Browse files
committed
DOC : added google tarcking code
1 parent 9da2e02 commit e028970

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

doc/_templates/layout.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,17 @@ <h3>{{ _('Navigation') }}</h3>
245245
href="http://sphinx-doc.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}
246246
{%- endif %}
247247
</div>
248-
{%- endblock %}
248+
{%- endblock %}
249+
250+
<script>
251+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
252+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
253+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
254+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
255+
256+
ga('create', 'UA-55954603-1', 'auto');
257+
ga('send', 'pageview');
249258

259+
</script>
250260
</body>
251261
</html>

0 commit comments

Comments
 (0)