Add content group metric dev/production
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user