Skip to content

Commit

Permalink
Rename stats_next_date_tapped event to stats_date_tapped_forward
Browse files Browse the repository at this point in the history
  • Loading branch information
irfano committed Feb 15, 2024
1 parent 131e08b commit 78efa47
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import kotlinx.parcelize.Parceler
import kotlinx.parcelize.Parcelize
import org.wordpress.android.analytics.AnalyticsTracker.Stat.STATS_NEXT_DATE_TAPPED
import org.wordpress.android.analytics.AnalyticsTracker.Stat.STATS_DATE_TAPPED_FORWARD
import org.wordpress.android.analytics.AnalyticsTracker.Stat.STATS_DATE_TAPPED_BACKWARD
import org.wordpress.android.fluxc.network.utils.StatsGranularity
import org.wordpress.android.ui.stats.refresh.utils.StatsDateFormatter
Expand Down Expand Up @@ -101,7 +101,7 @@ class SelectedDateProvider
fun selectNextDate(statsGranularity: StatsGranularity) {
val selectedDateState = getSelectedDateState(statsGranularity)
if (selectedDateState.hasData()) {
analyticsTrackerWrapper.trackWithGranularity(STATS_NEXT_DATE_TAPPED, statsGranularity)
analyticsTrackerWrapper.trackWithGranularity(STATS_DATE_TAPPED_FORWARD, statsGranularity)
updateSelectedDate(selectedDateState.copy(dateValue = selectedDateState.getNextDate()), statsGranularity)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ public enum Stat {
STATS_PERIOD_MONTHS_ACCESSED,
STATS_PERIOD_YEARS_ACCESSED,
STATS_VIEW_ALL_ACCESSED,
STATS_NEXT_DATE_TAPPED,
STATS_DATE_TAPPED_BACKWARD,
STATS_DATE_TAPPED_FORWARD,
STATS_INSIGHTS_TOTAL_LIKES_GUIDE_TAPPED,
STATS_INSIGHTS_ACTION_BLOGGING_REMINDERS_CONFIRMED,
STATS_INSIGHTS_ACTION_BLOGGING_REMINDERS_DISMISSED,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1109,10 +1109,10 @@ public static String getEventNameForStat(AnalyticsTracker.Stat stat) {
return "stats_period_accessed";
case STATS_VIEW_ALL_ACCESSED:
return "stats_view_all_accessed";
case STATS_NEXT_DATE_TAPPED:
return "stats_next_date_tapped";
case STATS_DATE_TAPPED_BACKWARD:
return "stats_date_tapped_backward";
case STATS_DATE_TAPPED_FORWARD:
return "stats_date_tapped_forward";
case STATS_INSIGHTS_TOTAL_LIKES_GUIDE_TAPPED:
return "stats_insights_total_likes_guide_tapped";
case STATS_INSIGHTS_ACTION_BLOGGING_REMINDERS_CONFIRMED:
Expand Down

0 comments on commit 78efa47

Please sign in to comment.