mirror of
https://github.com/Radarr/Radarr
synced 2024-12-28 02:40:01 +00:00
include branch as analytics custom variable
This commit is contained in:
parent
eb96d62577
commit
4b51fc04ae
3 changed files with 3 additions and 0 deletions
|
@ -93,6 +93,7 @@ private string GetIndexText()
|
|||
text = text.Replace("API_ROOT", URL_BASE + "/api");
|
||||
text = text.Replace("API_KEY", API_KEY);
|
||||
text = text.Replace("APP_VERSION", BuildInfo.Version.ToString());
|
||||
text = text.Replace("APP_BRANCH", _configFileProvider.Branch.ToLower());
|
||||
|
||||
text = text.Replace("APP_ANALYTICS", _analyticsService.IsEnabled.ToString().ToLowerInvariant());
|
||||
|
||||
|
|
|
@ -32,6 +32,7 @@ define(
|
|||
piwik.setReferrerUrl('');
|
||||
piwik.setCustomUrl('http://local' + window.location.pathname);
|
||||
piwik.setCustomVariable(1, 'version', window.NzbDrone.Version, 'page');
|
||||
piwik.setCustomVariable(2, 'branch', window.NzbDrone.Branch, 'page');
|
||||
piwik.trackPageView(title);
|
||||
}
|
||||
catch (e){
|
||||
|
|
|
@ -76,6 +76,7 @@
|
|||
ApiRoot: 'API_ROOT',
|
||||
ApiKey : 'API_KEY',
|
||||
Version: 'APP_VERSION',
|
||||
Branch : 'APP_BRANCH',
|
||||
Analytics: APP_ANALYTICS
|
||||
};
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue