Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

Commit

Permalink
[#524] GA improvements - Fix package GA date format
Browse files Browse the repository at this point in the history
  • Loading branch information
David Read committed Oct 20, 2016
1 parent a0d6614 commit 5bcad75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ckanext/dgu/lib/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,8 @@ def get_ga_custom_dimensions():
return info

def british_date_to_ga_date(british_date):
''' 31/9/2016 -> 2016-09 '''
''' 31/9/2016 -> 201609
Google Analytics stores dates as YYYYMMDD etc'''
if not british_date:
return ''
bits = re.split('[^\d]', british_date)[::-1]
Expand Down

0 comments on commit 5bcad75

Please sign in to comment.