add client and OS info to amplitude events

closes #7865
This commit is contained in:
Phillip Thelen
2016-08-02 16:45:06 +02:00
committed by Blade Barringer
parent e3c40aa142
commit 679378331d
37 changed files with 320 additions and 40 deletions
+1
View File
@@ -98,6 +98,7 @@ module.exports = function buyArmoire (user, req = {}, analytics) {
acquireMethod: 'Gold',
goldCost: item.value,
category: 'behavior',
headers: req.headers,
});
}
+1
View File
@@ -56,6 +56,7 @@ module.exports = function buyGear (user, req = {}, analytics) {
acquireMethod: 'Gold',
goldCost: item.value,
category: 'behavior',
headers: req.headers,
});
}
+1
View File
@@ -34,6 +34,7 @@ module.exports = function buyHealthPotion (user, req = {}, analytics) {
acquireMethod: 'Gold',
goldCost: item.value,
category: 'behavior',
headers: req.headers,
});
}
+1
View File
@@ -37,6 +37,7 @@ module.exports = function buyMysterySet (user, req = {}, analytics) {
itemType: 'Subscriber Gear',
acquireMethod: 'Hourglass',
category: 'behavior',
headers: req.headers,
});
}
});
+1
View File
@@ -34,6 +34,7 @@ module.exports = function buyQuest (user, req = {}, analytics) {
goldCost: item.goldValue,
acquireMethod: 'Gold',
category: 'behavior',
headers: req.headers,
});
}
+1
View File
@@ -49,6 +49,7 @@ module.exports = function changeClass (user, req = {}, analytics) {
acquireMethod: 'Gems',
gemCost: 3,
category: 'behavior',
headers: req.headers,
});
}
} else {
+1
View File
@@ -47,6 +47,7 @@ module.exports = function purchaseHourglass (user, req = {}, analytics) {
itemType: type,
acquireMethod: 'Hourglass',
category: 'behavior',
headers: req.headers,
});
}
+1
View File
@@ -24,6 +24,7 @@ module.exports = function openMysteryItem (user, req = {}, analytics) {
itemType: 'Subscriber Gear',
acquireMethod: 'Subscriber',
category: 'behavior',
headers: req.headers,
});
}
+2
View File
@@ -51,6 +51,7 @@ module.exports = function purchase (user, req = {}, analytics) {
acquireMethod: 'Gold',
goldCost: convRate,
category: 'behavior',
headers: req.headers,
});
}
@@ -114,6 +115,7 @@ module.exports = function purchase (user, req = {}, analytics) {
acquireMethod: 'Gems',
gemCost: item.value,
category: 'behavior',
headers: req.headers,
});
}
+1
View File
@@ -30,6 +30,7 @@ module.exports = function rebirth (user, tasks = [], req = {}, analytics) {
}
if (analytics) {
analyticsData.headers = req.headers;
analytics.track('Rebirth', analyticsData);
}
+1
View File
@@ -22,6 +22,7 @@ module.exports = function releaseBoth (user, req = {}, analytics) {
acquireMethod: 'Gems',
gemCost: 6,
category: 'behavior',
headers: req.headers,
});
}
+1
View File
@@ -29,6 +29,7 @@ module.exports = function releaseMounts (user, req = {}, analytics) {
acquireMethod: 'Gems',
gemCost: 4,
category: 'behavior',
headers: req.headers,
});
}
+1
View File
@@ -27,6 +27,7 @@ module.exports = function releasePets (user, req = {}, analytics) {
acquireMethod: 'Gems',
gemCost: 4,
category: 'behavior',
headers: req.headers,
});
}
+1
View File
@@ -26,6 +26,7 @@ module.exports = function reroll (user, tasks = [], req = {}, analytics) {
acquireMethod: 'Gems',
gemCost: 4,
category: 'behavior',
headers: req.headers,
});
}
+1
View File
@@ -93,6 +93,7 @@ module.exports = function revive (user, req = {}, analytics) {
lostItem,
gaLabel: lostItem,
category: 'behavior',
headers: req.headers,
});
}
+1
View File
@@ -100,6 +100,7 @@ module.exports = function unlock (user, req = {}, analytics) {
acquireMethod: 'Gems',
gemCost: cost / 0.25,
category: 'behavior',
headers: req.headers,
});
}
}