Skip to content

Commit

Permalink
Merge pull request #20451 from wordpress-mobile/task/refactors-analyt…
Browse files Browse the repository at this point in the history
…ics-tracker-nosara

Moves the analytics event names declaration in the Stats enum
  • Loading branch information
Antonis Lilis authored Mar 13, 2024
2 parents ba91e0f + 3fe73d7 commit 2f25490
Show file tree
Hide file tree
Showing 4 changed files with 664 additions and 2,418 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import org.wordpress.android.analytics.AnalyticsMetadata;
import org.wordpress.android.analytics.AnalyticsTracker;
import org.wordpress.android.analytics.AnalyticsTracker.Stat;
import org.wordpress.android.analytics.AnalyticsTrackerNosara;
import org.wordpress.android.fluxc.Dispatcher;
import org.wordpress.android.fluxc.generated.AccountActionBuilder;
import org.wordpress.android.fluxc.model.CommentModel;
Expand Down Expand Up @@ -518,7 +517,7 @@ private static void trackRailcarInteraction(AnalyticsTracker.Stat stat, String r
}

Map<String, Object> properties = railcarJsonToProperties(railcarJson);
properties.put("action", AnalyticsTrackerNosara.getEventNameForStat(stat));
properties.put("action", stat.getEventName());
AnalyticsTracker.track(AnalyticsTracker.Stat.TRAIN_TRACKS_INTERACT, properties);
}

Expand Down
Loading

0 comments on commit 2f25490

Please sign in to comment.