feat(analytics): booster + daily-reward events
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -61,4 +61,16 @@ class AnalyticsService {
|
||||
void tutorialFinished({required bool skipped}) {
|
||||
_backend.logEvent('tutorial_finished', {'skipped': skipped ? 1 : 0});
|
||||
}
|
||||
|
||||
void boosterUsed({required String type}) =>
|
||||
_backend.logEvent('booster_used', {'type': type});
|
||||
|
||||
void boosterGranted(
|
||||
{required String type, required int count, required String source}) =>
|
||||
_backend.logEvent(
|
||||
'booster_granted', {'type': type, 'count': count, 'source': source});
|
||||
|
||||
void dailyRewardClaimed({required int day, required bool doubled}) =>
|
||||
_backend.logEvent(
|
||||
'daily_reward_claimed', {'day': day, 'doubled': doubled ? 1 : 0});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user