From ab3a65dc463eaa0e209e9b66290f52e5a3dc237a Mon Sep 17 00:00:00 2001 From: g9singh Date: Thu, 5 Sep 2019 14:50:42 -0700 Subject: [PATCH] update special events screen tracking to firebase analytics --- app/views/specialEvents/SpecialEventsDetailView.js | 4 ++-- app/views/specialEvents/SpecialEventsItem.js | 4 ++-- app/views/specialEvents/SpecialEventsView.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/views/specialEvents/SpecialEventsDetailView.js b/app/views/specialEvents/SpecialEventsDetailView.js index a850e0d5d..553c2e93f 100755 --- a/app/views/specialEvents/SpecialEventsDetailView.js +++ b/app/views/specialEvents/SpecialEventsDetailView.js @@ -12,12 +12,12 @@ import COLOR from '../../styles/ColorConstants' class SpecialEventsDetailView extends React.Component { static removeSession(remove, id, title) { remove(id) - logger.trackEvent('Special Events', 'Session Removed: ' + title) + logger.trackEvent('SpecialEvents', { SessionRemoved: title }) } static addSession(add, id, title) { add(id) - logger.trackEvent('Special Events', 'Session Added: ' + title) + logger.trackEvent('SpecialEvents', { SessionAdded: title }) } componentDidMount() { diff --git a/app/views/specialEvents/SpecialEventsItem.js b/app/views/specialEvents/SpecialEventsItem.js index 9d173df60..656637d66 100755 --- a/app/views/specialEvents/SpecialEventsItem.js +++ b/app/views/specialEvents/SpecialEventsItem.js @@ -81,12 +81,12 @@ const CircleBorder = () => ( const removeSession = (remove, id, title) => { remove(id) - logger.trackEvent('Special Events', 'Session Removed: ' + title) + logger.trackEvent('SpecialEvents', { SessionRemoved: title }) } const addSession = (add, id, title) => { add(id) - logger.trackEvent('Special Events', 'Session Added: ' + title) + logger.trackEvent('SpecialEvents', { SessionAdded: title }) } const wrappedSpecialEventsItem = withNavigation(SpecialEventsItem) diff --git a/app/views/specialEvents/SpecialEventsView.js b/app/views/specialEvents/SpecialEventsView.js index 7faf022d4..0f5de9242 100755 --- a/app/views/specialEvents/SpecialEventsView.js +++ b/app/views/specialEvents/SpecialEventsView.js @@ -17,7 +17,7 @@ class SpecialEventsView extends Component { title, headerRight: ( (!personal) ? ( - +