mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Add content group metric dev/production
This commit is contained in:
parent
e444bad4de
commit
88a7b52e51
2 changed files with 5 additions and 0 deletions
|
@ -373,6 +373,10 @@ for i in range(0, 200):
|
||||||
Tracker.alias(safe_unicode, 'cd{0}'.format(i), 'dimension{0}'.format(i))
|
Tracker.alias(safe_unicode, 'cd{0}'.format(i), 'dimension{0}'.format(i))
|
||||||
Tracker.alias(int, 'cm{0}'.format(i), 'metric{0}'.format(i))
|
Tracker.alias(int, 'cm{0}'.format(i), 'metric{0}'.format(i))
|
||||||
|
|
||||||
|
# Content groups
|
||||||
|
for i in range(0, 5):
|
||||||
|
Tracker.alias(safe_unicode, 'cg{0}'.format(i), 'contentGroup{0}'.format(i))
|
||||||
|
|
||||||
# Enhanced Ecommerce
|
# Enhanced Ecommerce
|
||||||
Tracker.alias(str, 'pa') # Product action
|
Tracker.alias(str, 'pa') # Product action
|
||||||
Tracker.alias(str, 'tcc') # Coupon code
|
Tracker.alias(str, 'tcc') # Coupon code
|
||||||
|
|
|
@ -1699,6 +1699,7 @@ def initialize_tracker():
|
||||||
'dimension1': '{} {}'.format(common.PLATFORM, common.PLATFORM_VERSION), # App Platform
|
'dimension1': '{} {}'.format(common.PLATFORM, common.PLATFORM_VERSION), # App Platform
|
||||||
'userLanguage': plexpy.SYS_LANGUAGE,
|
'userLanguage': plexpy.SYS_LANGUAGE,
|
||||||
'documentEncoding': plexpy.SYS_ENCODING,
|
'documentEncoding': plexpy.SYS_ENCODING,
|
||||||
|
'contentGroup': 'dev' if DEV else 'production',
|
||||||
'noninteractive': True
|
'noninteractive': True
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue