Skip to content

Commit 1b692b7

Browse files
committed
Fixed GA code.
1 parent 49d76df commit 1b692b7

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

doc/_templates/layout.html

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,13 @@
66
{{ super() }}
77
<meta name="keywords" content="nipype, neuroimaging, pipeline, workflow, parallel, python, neuroscience">
88
<script type="text/javascript">
9+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
10+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
11+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
12+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
913

10-
var _gaq = _gaq || [];
11-
var pluginUrl = '//www.google-analytics.com/plugins/ga/inpage_linkid.js';
12-
_gaq.push(['_require', 'inpage_linkid', pluginUrl]);
13-
_gaq.push(['_setAccount', 'UA-339450-7']);
14-
_gaq.push(['_setDomainName', 'none']);
15-
_gaq.push(['_setAllowLinker', true]);
16-
_gaq.push(['_trackPageview']);
17-
18-
(function() {
19-
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
20-
ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';
21-
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
22-
})();
23-
24-
</script>
14+
ga('create', 'UA-339450-7', 'nipy.org');
15+
ga('send', 'pageview');
2516
{% endblock %}
2617

2718
{% block header %}

0 commit comments

Comments
 (0)