Project

General

Profile

« Previous | Next » 

Revision c6f1acdb

Added by Serghei Mihai almost 9 years ago

piwik tracking code added (#7378)

View differences:

ckanext/ozwillo_theme/templates/base.html
18 18
{% block links %}
19 19
   <link rel="shortcut icon" href="/img/data.ico" />
20 20
{% endblock %}
21

  
22

  
23
{% block body_extras %}
24
   {{ super() }}
25
   <script>
26
     var _prum = [['id', '5565b790abe53d4857ed5942'] , ['mark', 'firstbyte', (new Date()).getTime()]];
27
     (function() {
28
        var s = document.getElementsByTagName('script')[0], p = document.createElement('script');
29
        p.async = 'async';
30
        p.src = '//rum-static.pingdom.net/prum.min.js';
31
        s.parentNode.insertBefore(p, s);
32
     })();
33
   </script>
34

  
35
   <!-- Piwik -->
36
   <script type="text/javascript">
37
     var _paq = _paq || [];
38
     _paq.push(['trackPageView']);
39
     _paq.push(['enableLinkTracking']);
40
     (function() {
41
         var u="//oasis.piwikpro.com/";
42
         _paq.push(['setTrackerUrl', u+'piwik.php']);
43
         _paq.push(['setSiteId', 79]);
44
         var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
45
         g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
46
     })();
47
</script>
48
<noscript><p><img src="//oasis.piwikpro.com/piwik.php?idsite=79" style="border:0;" alt="" /></p></noscript>
49
<!-- End Piwik Code -->
50
{% endblock %}

Also available in: Unified diff