Skip to content

Commit

Permalink
top_files_downloaded post process update
Browse files Browse the repository at this point in the history
  • Loading branch information
utku-ozturk committed Sep 12, 2023
1 parent e6ef1f2 commit 5fcef45
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chalicelib_fourfront/checks/helpers/google_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ def post_process_report_items(report_key_name, report_items):
file_item_type = r_item['customEvent:file_classification'].split('/', 2)[1]
str_file_item_type = re.findall(r'[A-Z](?:[a-z]+|[A-Z]*(?=[A-Z]|$))', file_item_type)
r_item['ga:productSku'] = '/{}s-{}/{}/'.format(str_file_item_type[0].lower(), str_file_item_type[1].lower(), r_item['ga:productName'].split('.')[0])
r_item['ga:productCategoryLevel2'] = file_item_type
del r_item['customEvent:file_classification']
elif report_key_name == 'views_by_file':
for r_item in report_items:
Expand Down

0 comments on commit 5fcef45

Please sign in to comment.