Project

General

Profile

« Previous | Next » 

Revision 54609

moved piwik script to index

View differences:

app.component.html
1 1
<div class="uk-offcanvas-content">
2 2
  <top-menu></top-menu>
3 3
  <router-outlet></router-outlet>
4

  
5
  <!-- Piwik -->
6
  <script type="text/javascript">
7
    var _paq = _paq || [];
8
    /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
9
    _paq.push(['trackPageView']);
10
    _paq.push(['enableLinkTracking']);
11
    (function() {
12
      var u="//analytics.openaire.eu/";
13
      _paq.push(['setTrackerUrl', u+'piwik.php']);
14
      if ( (window.location.origin).includes('beta') || (window.location.origin).includes('athenarc') ) {
15
        _paq.push(['setSiteId', '92']);
16
        console.log('92');
17
      } else {
18
        _paq.push(['setSiteId', '111']);
19
        console.log('111');
20
      }
21
      var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
22
      g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
23
    })();
24
  </script>
25
  <!-- End Piwik Code -->
26

  
27
  <div style="height: 0px">
28
    <!-- Piwik Image Tracker-->
29
    <img src="{{ piwikUrl }}" style="border:0" alt="" />
30
    <!-- End Piwik -->
31
  </div>
32

  
33

  
34 4
  <footer></footer>
35 5
  <cookie-law position="bottom">
36 6
    OpenAIRE uses cookies in order to function properly.<br>

Also available in: Unified diff