diff --git a/onebusaway-android/src/main/java/com/joulespersecond/seattlebusbot/ReportStopProblemFragment.java b/onebusaway-android/src/main/java/com/joulespersecond/seattlebusbot/ReportStopProblemFragment.java index dd793d3bf..bb929d020 100644 --- a/onebusaway-android/src/main/java/com/joulespersecond/seattlebusbot/ReportStopProblemFragment.java +++ b/onebusaway-android/src/main/java/com/joulespersecond/seattlebusbot/ReportStopProblemFragment.java @@ -28,6 +28,7 @@ import android.widget.TextView; import com.actionbarsherlock.app.SherlockFragmentActivity; +import com.joulespersecond.oba.ObaAnalytics; import com.joulespersecond.oba.elements.ObaStop; import com.joulespersecond.oba.request.ObaReportProblemWithStopRequest; import com.joulespersecond.seattlebusbot.util.LocationHelp; @@ -113,6 +114,8 @@ protected void sendReport() { InputMethodManager imm = (InputMethodManager) getActivity().getSystemService( Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(mUserComment.getWindowToken(), 0); + ObaAnalytics.reportEventWithCategory(ObaAnalytics.ObaEventCategory.SUBMIT.toString(), + getString(R.string.analytics_action_problem), getString(R.string.analytics_label_report_stop_problem)); super.sendReport(); } diff --git a/onebusaway-android/src/main/java/com/joulespersecond/seattlebusbot/ReportTripProblemFragment.java b/onebusaway-android/src/main/java/com/joulespersecond/seattlebusbot/ReportTripProblemFragment.java index 20c4b0063..bf4dd4b47 100644 --- a/onebusaway-android/src/main/java/com/joulespersecond/seattlebusbot/ReportTripProblemFragment.java +++ b/onebusaway-android/src/main/java/com/joulespersecond/seattlebusbot/ReportTripProblemFragment.java @@ -29,6 +29,7 @@ import android.widget.TextView; import com.actionbarsherlock.app.SherlockFragmentActivity; +import com.joulespersecond.oba.ObaAnalytics; import com.joulespersecond.oba.elements.ObaArrivalInfo; import com.joulespersecond.oba.request.ObaReportProblemWithTripRequest; import com.joulespersecond.seattlebusbot.util.LocationHelp; @@ -159,6 +160,8 @@ protected void sendReport() { InputMethodManager imm = (InputMethodManager) getActivity().getSystemService( Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(mUserComment.getWindowToken(), 0); + ObaAnalytics.reportEventWithCategory(ObaAnalytics.ObaEventCategory.SUBMIT.toString(), + getString(R.string.analytics_action_problem), getString(R.string.analytics_label_report_trip_problem)); super.sendReport(); } diff --git a/onebusaway-android/src/main/res/values/do_not_translate.xml b/onebusaway-android/src/main/res/values/do_not_translate.xml index 4cc1ffe2a..9783e67f4 100644 --- a/onebusaway-android/src/main/res/values/do_not_translate.xml +++ b/onebusaway-android/src/main/res/values/do_not_translate.xml @@ -54,7 +54,7 @@ Clicked Settings Link Clicked Donate Link Clicked Help Link - Clicked Send Feedback Link + Clicked Email Link Clicked MapStopIcon Search box selected Search button clicked @@ -69,6 +69,8 @@ Set Region:\u0020 Loaded Twitter via Web Reported Problem + Reported Stop Problem + Reported Trip Problem Loaded view:\u0020 Custom URL Set Send anonymous usage data:\u0020