Skip to content

Commit 13ec254

Browse files
committed
update analytics
1 parent bc71f0e commit 13ec254

File tree

1 file changed

+20
-26
lines changed

1 file changed

+20
-26
lines changed

docs/_templates/layout.html

+20-26
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
{% extends "!layout.html" %}
22

3+
{%- block extrahead %}
4+
{{ super() }}
5+
6+
<script type="text/javascript">
7+
8+
var _gaq = _gaq || [];
9+
_gaq.push(['_setAccount', 'UA-32855587-1']);
10+
_gaq.push(['_setDomainName', 'pycsw.org']);
11+
_gaq.push(['_trackPageview']);
12+
13+
(function() {
14+
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
15+
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
16+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
17+
})();
18+
19+
</script>
20+
21+
{% endblock %}
22+
323
{% block relbar1 %}
424

525
<style type="text/css">
@@ -23,29 +43,3 @@
2343

2444
{{ super() }}
2545
{% endblock %}
26-
27-
{% block footer %}
28-
29-
{{ super() }}
30-
31-
<!-- Piwik -->
32-
<script type="text/javascript">
33-
var pkBaseURL = (("https:" == document.location.protocol) ? "https://sourceforge.net/apps/piwik/pycsw/" : "http://sourceforge.net/apps/piwik/pycsw/");
34-
document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
35-
</script>
36-
37-
<script type="text/javascript">
38-
try {
39-
var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", 3);
40-
piwikTracker.trackPageView();
41-
piwikTracker.enableLinkTracking();
42-
} catch( err ) {}
43-
</script>
44-
<noscript>
45-
<p>
46-
<img src="http://sourceforge.net/apps/piwik/pycsw/piwik.php?idsite=3" style="border:0" alt=""/>
47-
</p>
48-
</noscript>
49-
<!-- End Piwik Tag -->
50-
51-
{% endblock %}

0 commit comments

Comments
 (0)