Remove specific analytics code 0.1.3
authorymh <ymh.work@gmail.com>
Thu, 28 Jun 2018 17:35:03 +0200
changeset 560 0db3c37b90f1
parent 559 fee309a37e71
child 561 f3bd5ed7d738
Remove specific analytics code
src/iconolab/templates/iconolab_base.html
src/iconolab/templates/partials/piwik.html
--- a/src/iconolab/templates/iconolab_base.html	Thu Jun 28 15:24:22 2018 +0200
+++ b/src/iconolab/templates/iconolab_base.html	Thu Jun 28 17:35:03 2018 +0200
@@ -37,8 +37,5 @@
       <!-- Webpack devServer script to handle page reload -->
       <script src="http://localhost:8001/webpack-dev-server.js" type="text/javascript"></script>
       {% endif %}
-      {% if not "localhost" in request.get_host %}
-      {% include "partials/piwik.html" %}
-      {% endif %}
 	</body>
 </html>
--- a/src/iconolab/templates/partials/piwik.html	Thu Jun 28 15:24:22 2018 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-<!-- Piwik -->
-<script type="text/javascript">
-  var _paq = _paq || [];
-  /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
-  _paq.push(['trackPageView']);
-  _paq.push(['enableLinkTracking']);
-  (function() {
-    var u="//piwik.inventaire-des-orgues.fr/";
-    _paq.push(['setTrackerUrl', u+'piwik.php']);
-    _paq.push(['setSiteId', '2']);
-    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
-    g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
-  })();
-</script>
-<!-- End Piwik Code -->