chore(analytics): various updates to analytics tracking

This commit is contained in:
Sabe Jones
2021-08-30 16:21:05 -05:00
parent 722770354d
commit 40bf664f20
44 changed files with 76 additions and 775 deletions

View File

@@ -113,11 +113,11 @@ export default function purchase (user, req = {}, analytics) {
}
if (analytics) {
analytics.track('acquire item', {
analytics.track('buy', {
uuid: user._id,
itemKey: key,
itemType: type,
acquireMethod: 'Gems',
currency: 'Gems',
gemCost: price * 4,
quantityPurchased: quantity,
category: 'behavior',