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

@@ -305,11 +305,11 @@ export default function unlock (user, req = {}, analytics) {
user.balance -= cost;
if (analytics) {
analytics.track('acquire item', {
analytics.track('buy', {
uuid: user._id,
itemKey: path,
itemType: 'customization',
acquireMethod: 'Gems',
currency: 'Gems',
gemCost: cost / 0.25,
category: 'behavior',
headers: req.headers,