1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-09-11 20:12:41 +02:00

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

This commit is contained in:
Leonardo Galli 2017-04-17 12:01:56 +02:00
parent 5bf95e0d9e
commit 6d00bd0f7a
3 changed files with 6 additions and 4 deletions

View File

@ -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;
},

View File

@ -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);
}

View File

@ -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">