Skip to content

Commit 1c5d8aa

Browse files
author
Fabian Pedregosa
committed
Add analytics code to web page, SF discontinued web page stats.
1 parent 1f2a807 commit 1c5d8aa

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

doc/themes/scikit-learn/layout.html

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,22 @@
1010
#}
1111
{% extends "basic/layout.html" %}
1212

13+
{% block extrahead %}
14+
<script type="text/javascript">
15+
16+
var _gaq = _gaq || [];
17+
_gaq.push(['_setAccount', 'UA-22606712-2']);
18+
_gaq.push(['_trackPageview']);
19+
20+
(function() {
21+
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
22+
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
23+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
24+
})();
25+
26+
</script>
27+
{% endblock %}
28+
1329
{%- if pagename == 'index' %}
1430
{% set title = 'scikits.learn: machine learning in Python' %}
1531
{%- endif %}
@@ -77,7 +93,7 @@
7793
{% else %}
7894
<h3>News</h3>
7995

80-
<p>scikits.learn 0.7 is available
96+
<p>scikits.learn 0.8 is available
8197
for <a href="https://sourceforge.net/projects/scikit-learn/files/">download</a>.
8298
See <a href="{{pathto('whats_new')}}">what's new</a> and tips
8399
on <a href="{{pathto('install')}}">installing</a>.</p>
@@ -88,7 +104,7 @@ <h3>Videos</h3>
88104
ICML <a href="http://videolectures.net/icml2010_varaquaux_scik/">Introductory
89105
Video</a> by Gaël Varoquaux.</p>
90106

91-
<h3>Participate</h3>
107+
<h3>Participate</h3>
92108

93109
<p>Fork
94110
the <a href="http://github.com/scikit-learn/scikit-learn">source

0 commit comments

Comments
 (0)