mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-15 05:37:22 +01:00
chore(analytics): various updates to analytics tracking
This commit is contained in:
@@ -71,8 +71,7 @@ export default function changeClass (user, req = {}, analytics) {
|
||||
analytics.track('change class', {
|
||||
uuid: user._id,
|
||||
class: klass,
|
||||
acquireMethod: balanceRemoved === 0 ? 'Free' : 'Gems',
|
||||
gemCost: balanceRemoved / 0.25,
|
||||
currency: balanceRemoved === 0 ? 'Free' : 'Gems',
|
||||
category: 'behavior',
|
||||
headers: req.headers,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user