From 6d00bd0f7adaea497dc5eb526f83da7dfc954c45 Mon Sep 17 00:00:00 2001 From: Leonardo Galli Date: Mon, 17 Apr 2017 12:01:56 +0200 Subject: [PATCH] Stats are now sent to our server instead of Sonarr's :) --- src/UI/Shared/NzbDroneController.js | 4 ++-- src/UI/Shared/piwikCheck.js | 3 +-- src/UI/index.html | 3 +++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/UI/Shared/NzbDroneController.js b/src/UI/Shared/NzbDroneController.js index a16b5aedf..b23000feb 100644 --- a/src/UI/Shared/NzbDroneController.js +++ b/src/UI/Shared/NzbDroneController.js @@ -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'); @@ -60,7 +60,7 @@ module.exports = Marionette.AppRouter.extend({ window.localStorage.clear(); Config.setValue("pageSize", pageSize); // Remove above when out of pre-release :) - + this.pendingUpdate = true; }, diff --git a/src/UI/Shared/piwikCheck.js b/src/UI/Shared/piwikCheck.js index 0146d36b5..aab5fac72 100644 --- a/src/UI/Shared/piwikCheck.js +++ b/src/UI/Shared/piwikCheck.js @@ -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); } diff --git a/src/UI/index.html b/src/UI/index.html index f099b6205..5d2bb4e54 100644 --- a/src/UI/index.html +++ b/src/UI/index.html @@ -30,6 +30,9 @@ + + +