|
88 | 88 | }
|
89 | 89 | </style>
|
90 | 90 | <script src="https://static.openfoodfacts.org/js/dist/jquery.js"></script>
|
91 |
| - <script type="text/javascript"> |
92 |
| - var _gaq = _gaq || []; |
93 |
| - _gaq.push(["_setAccount", "UA-31851927-1"]); |
94 |
| - _gaq.push(["_setDomainName", "openfoodfacts.org"]); |
95 |
| - _gaq.push(["_trackPageview"]); |
96 |
| - |
97 |
| - (function() { |
98 |
| - var ga = document.createElement("script"); |
99 |
| - ga.type = "text/javascript"; |
100 |
| - ga.async = true; |
101 |
| - ga.src = |
102 |
| - ("https:" == document.location.protocol |
103 |
| - ? "https://ssl" |
104 |
| - : "http://www") + ".google-analytics.com/ga.js"; |
105 |
| - var s = document.getElementsByTagName("script")[0]; |
106 |
| - s.parentNode.insertBefore(ga, s); |
107 |
| - })(); |
108 |
| - |
109 |
| -$(function() { |
110 |
| - |
111 |
| -$('iframe').load(function(){ |
112 |
| - $(".loading").remove(); |
113 |
| -}).show(); |
114 |
| - |
115 |
| -}); |
116 |
| - |
117 |
| - </script> |
| 91 | +<!-- Matomo --> |
| 92 | +<script> |
| 93 | + var _paq = window._paq = window._paq || []; |
| 94 | + /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ |
| 95 | + _paq.push(["setDocumentTitle", document.domain + "/" + document.title]); |
| 96 | + _paq.push(["setCookieDomain", "*.openfoodfacts.org"]); |
| 97 | + _paq.push(["setDomains", ["*.openfoodfacts.org"]]); |
| 98 | + _paq.push(["setDoNotTrack", true]); |
| 99 | + _paq.push(["disableCookies"]); |
| 100 | + _paq.push(['trackPageView']); |
| 101 | + _paq.push(['enableLinkTracking']); |
| 102 | + (function() { |
| 103 | + var u="//analytics.openfoodfacts.org/"; |
| 104 | + _paq.push(['setTrackerUrl', u+'matomo.php']); |
| 105 | + _paq.push(['setSiteId', '5']); |
| 106 | + var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; |
| 107 | + g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); |
| 108 | + })(); |
| 109 | +</script> |
| 110 | +<noscript><p><img src="//analytics.openfoodfacts.org/matomo.php?idsite=5&rec=1" style="border:0;" alt="" /></p></noscript> |
| 111 | +<!-- End Matomo Code --> |
118 | 112 | </head>
|
119 | 113 | <body>
|
120 | 114 | <div class="wrapper">
|
|
0 commit comments