Skip to content

Commit a75f695

Browse files
author
jpaten
committed
chore: refactored ga metric and dimension names to constants (#4305)
1 parent bb68fb1 commit a75f695

File tree

1 file changed

+25
-0
lines changed
  • analytics/analytics_package/analytics

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Metric names
2+
METRIC_EVENT_COUNT = 'eventCount'
3+
METRIC_TOTAL_USERS = 'totalUsers'
4+
5+
# DIMENSIONS
6+
DIMENSION_PAGE_PATH = {
7+
'id': 'pagePath',
8+
'alias': 'page_path',
9+
'remove_matches': None,
10+
}
11+
DIMENSION_BUILTIN_URL = {
12+
'id': 'linkUrl',
13+
'alias': 'builtin_url',
14+
'remove_matches': r"\s*",
15+
}
16+
DIMENSION_EVENT_NAME = {
17+
'id': 'eventName',
18+
'alias': 'event_name',
19+
'remove_matches': None,
20+
}
21+
DIMENSION_CUSTOM_URL = {
22+
'id': 'customEvent:click_url',
23+
'alias': 'outbound_url',
24+
'remove_matches': r"\(not set\)",
25+
}

0 commit comments

Comments
 (0)