mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-14 02:26:58 -07:00
Add python version to Google Analytics
This commit is contained in:
parent
a116c26c25
commit
416d869288
3 changed files with 4 additions and 3 deletions
|
@ -37,8 +37,7 @@ from apscheduler.triggers.interval import IntervalTrigger
|
|||
from UniversalAnalytics import Tracker
|
||||
import pytz
|
||||
|
||||
PYTHON_VERSION = sys.version_info[:3]
|
||||
PYTHON2 = PYTHON_VERSION[0] == 2
|
||||
PYTHON2 = sys.version_info[0] == 2
|
||||
|
||||
if PYTHON2:
|
||||
import activity_handler
|
||||
|
@ -2264,6 +2263,7 @@ def initialize_tracker():
|
|||
'appInstallerId': CONFIG.GIT_BRANCH,
|
||||
'dimension1': '{} {}'.format(common.PLATFORM, common.PLATFORM_RELEASE), # App Platform
|
||||
'dimension2': common.PLATFORM_LINUX_DISTRO, # Linux Distro
|
||||
'dimension3': common.PYTHON_VERSION,
|
||||
'userLanguage': SYS_LANGUAGE,
|
||||
'documentEncoding': SYS_ENCODING,
|
||||
'noninteractive': True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue