Remove piwik

This commit is contained in:
Andreas Nedbal 2020-04-25 16:18:49 +02:00
parent 96309eb8ba
commit 9ee5811243
3 changed files with 0 additions and 21 deletions

View File

@ -25,7 +25,6 @@
#= require memes
#= require notifications
#= require pagination
#= require piwik
#= require question
#= require settings
#= require user

View File

@ -1,16 +0,0 @@
<% if Rails.env.production? %>
var _paq = _paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
_paq.push(['setCustomUrl', document.location]);
_paq.push(['setDocumentTitle', document.title]);
(function() {
var u="//stat.rrerr.net/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', 9]);
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);
})();
<% elsif !Rails.env.test? %>
console.log("i track'd ur bich");
<% end %>

View File

@ -40,7 +40,3 @@
= `git rev-parse --short HEAD`.strip
%p.text-danger Debug params:
= debug params
- if Rails.env.production?
%noscript
%p
%img{:alt => "", :src => "//stat.rrerr.net/piwik.php?idsite=9", :style => "border:0;"}/