Retrospring/app/assets/javascripts/piwik.js.erb

18 lines
635 B
Plaintext
Raw Normal View History

2015-01-10 09:53:25 -08:00
// -*- C++ -*-
<% 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);
})();
2015-01-18 05:15:21 -08:00
<% elsif !Rails.env.test? %>
2015-01-10 09:53:25 -08:00
console.log("i track'd ur bich");
<% end %>