AnalyticsEngine: use common code for tracking in both Oasis and Venus