Analytics: More / improved tracking (#10608)

* WIP(analytics): add / improve tracking

* fix(groups): revert attempt at tracking on group model

* fix(analytics): track questing based on user data

* each buy-operation now has a getItemType method - typo getItemKey - removed unneeded overrides
This commit is contained in:
Sabe Jones
2018-08-20 14:13:22 -05:00
committed by GitHub
parent f27e9b02d8
commit c78b5ecf7c
11 changed files with 57 additions and 25 deletions

View File

@@ -107,7 +107,7 @@ module.exports = function purchase (user, req = {}, analytics) {
analytics.track('acquire item', {
uuid: user._id,
itemKey: key,
itemType: 'Market',
itemType: type,
acquireMethod: 'Gems',
gemCost: price * 4,
quantityPurchased: quantity,