Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Google Analytics individually for trip/stop problem reports #244

Closed
barbeau opened this issue Mar 5, 2015 · 7 comments
Closed

Add Google Analytics individually for trip/stop problem reports #244

barbeau opened this issue Mar 5, 2015 · 7 comments

Comments

@barbeau
Copy link
Member

barbeau commented Mar 5, 2015

In the current Google Analytics implementation, we're reporting a generic "problem report" metric in ReportProblemFragmentBase:
https://github.com/OneBusAway/onebusaway-android/blob/master/onebusaway-android/src/main/java/com/joulespersecond/seattlebusbot/ReportProblemFragmentBase.java#L117

However, as far as I can tell this won't provide any separate reporting for trip/stop reports, and I'd like to be able to record what reports of each type are submitted.

So, this analytics event should probably be moved to the sendReport() method of the subclasses ReportStopProblemFragment and ReportTripProblemFragment, and a separate label should be included (or another way to distinguish the report types).

@cagryInside Could you please confirm this is correct, and if so submit a quick fix for this? We should fix this before pushing the next beta based on master, and would need to fix in develop too.

@barbeau
Copy link
Member Author

barbeau commented Mar 5, 2015

Also, if iOS has the same behavior, can you please open a similar ticket on the OBA iOS project with a pointer to the code and referencing this issue?

Thanks!

@cagryInside
Copy link
Contributor

@barbeau Yes, this event should be moved to ReportStopProblemFragment and ReportTripProblemFragment classes.
However, in IOS, the same sendReport labeled event triggered for ReportStopProblemFragment and ReportTripProblemFragment classes. I think, for consistency, we should keep the same structure with ios and add this into the proposal.

@barbeau
Copy link
Member Author

barbeau commented Mar 5, 2015

@cagryInside I really want to get a handle on separate trip/stop problem reporting in the next release, since that will help us when designing the feedback improvement (#187), and will give us some "before" data for how people used the app, as compared to after our improved process to handle issue reports.

One solution would be to report both - a generic category (as-is), and then add the specific events to the stop/trip problem reporting to the subclasses. Thoughts?

@barbeau
Copy link
Member Author

barbeau commented Mar 5, 2015

And, we'd add the new specific events to the proposal for iOS as well.

@cagryInside
Copy link
Contributor

@barbeau

One solution would be to report both - a generic category (as-is), and then add the specific events to the stop/trip problem reporting to the subclasses.

I agree on the solution. For now, we can report the generic one and also specific events to the stop/trip problem. And, when we release the new issue reporting improvement (#187), we should rearrange the analytics labels.

One question:
Should we keep the generic "problem report" event in ``ReportProblemFragmentBase`?

@cagryInside
Copy link
Contributor

@barbeau sorry, I miss understood. I thought I implemented the "problem report" event different then IOS. Now, I checked, the current android implementation is exactly same with IOS. So, please ignore the following comments:

@barbeau Yes, this event should be moved to ReportStopProblemFragment and ReportTripProblemFragment classes.

One question:
Should we keep the generic "problem report" event in `ReportProblemFragmentBase?

So, as a new proposal, we can also add specific events to the stop/trip problem reporting to the subclasses (ReportStopProblemFragment and ReportTripProblemFragment)

@barbeau
Copy link
Member Author

barbeau commented Mar 5, 2015

@cagryInside No problem. Yes, let's keep the current generic "problem report" event in ReportProblemFragmentBase so we match iOS, and add specific events to the stop/trip problem reporting to the subclasses (ReportStopProblemFragment and ReportTripProblemFragment).

@barbeau barbeau closed this as completed in e92f65e Mar 5, 2015
barbeau added a commit that referenced this issue Mar 5, 2015
Fix #244 - Add Google Analytics individually for trip/stop problem reports
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants