Report legacy tasker usage

pull/437/head
Alex Baker 8 years ago
parent dded53039b
commit 089480f3c5

@ -18,6 +18,7 @@ public class Tracking {
GTASK_LOGOUT(R.string.tracking_category_google_tasks, R.string.tracking_action_clear),
GTASK_MOVE(R.string.tracking_category_google_tasks, R.string.tracking_action_move),
UPGRADE(R.string.tracking_category_event, R.string.tracking_event_upgrade),
LEGACY_TASKER_TRIGGER(R.string.tracking_category_event, R.string.tracking_event_legacy_tasker_trigger),
NIGHT_MODE_MISMATCH(R.string.tracking_category_event, R.string.tracking_event_night_mode_mismatch),
SET_PREFERENCE(R.string.tracking_category_preferences, 0);

@ -4,6 +4,8 @@ import android.content.Context;
import android.content.Intent;
import org.tasks.Notifier;
import org.tasks.analytics.Tracker;
import org.tasks.analytics.Tracking;
import org.tasks.injection.BroadcastComponent;
import org.tasks.injection.InjectingBroadcastReceiver;
@ -23,6 +25,7 @@ public class ListNotificationReceiver extends InjectingBroadcastReceiver {
public static final String EXTRA_FILTER_VALUES = "extra_filter_values";
@Inject Notifier notifier;
@Inject Tracker tracker;
@Override
public void onReceive(Context context, final Intent intent) {
@ -30,6 +33,8 @@ public class ListNotificationReceiver extends InjectingBroadcastReceiver {
Timber.i("onReceive(%s, %s)", context, intent);
tracker.reportEvent(Tracking.Events.LEGACY_TASKER_TRIGGER);
executorService.execute(new Runnable() {
@Override
public void run() {

@ -294,6 +294,7 @@
<string name="tracking_action_clear">Clear</string>
<string name="tracking_event_night_mode_mismatch">Night Mismatch</string>
<string name="tracking_event_upgrade">Upgrade</string>
<string name="tracking_event_legacy_tasker_trigger">Legacy Tasker</string>
<string name="p_tesla_unread_enabled">tesla_unread_enabled</string>
<string name="p_purchased_tesla_unread">purchased_tesla_unread</string>
<string name="p_purchased_tasker">purchased_tasker</string>

Loading…
Cancel
Save