Stats are now sent to our server instead of Sonarr's :)

Leonardo Galli 8 years ago
parent 5bf95e0d9e
commit 6d00bd0f7a

@ -25,7 +25,7 @@ module.exports = Marionette.AppRouter.extend({
if (window.NzbDrone.Analytics && window.Piwik) {
try {
var piwik = window.Piwik.getTracker(window.location.protocol + '//piwik.nzbdrone.com/piwik.php', 1);
var piwik = window.Piwik.getTracker(window.location.protocol + '//radarr.video/piwik/piwik.php', 1);
piwik.setReferrerUrl('');
piwik.setCustomUrl('http://local' + window.location.pathname);
piwik.setCustomVariable(1, 'version', window.NzbDrone.Version, 'page');

@ -1,5 +1,4 @@
'use strict';
if(window.NzbDrone.Analytics) {
var d = document;
var g = d.createElement('script');
@ -7,6 +6,6 @@ if(window.NzbDrone.Analytics) {
g.type = 'text/javascript';
g.async = true;
g.defer = true;
g.src = '//piwik.sonarr.tv/piwik.js';
g.src = 'https://radarr.video/piwik/piwik.js';
s.parentNode.insertBefore(g, s);
}

@ -30,6 +30,9 @@
<!-- Windows Phone -->
<meta name="msapplication-navbutton-color" content="#272727"/>
<!-- Piwik -->
<!-- End Piwik Code -->
<!-- Generated by http://realfavicongenerator.net/ -->
<link rel="apple-touch-icon" sizes="180x180" href="/Content/Images/favicon/apple-touch-icon.png">

Loading…
Cancel
Save