include branch as analytics custom variable

This commit is contained in:
Keivan Beigi
2014-10-02 21:25:28 -07:00
parent eb96d62577
commit 4b51fc04ae
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -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){