mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-14 21:27:23 +01:00
chore(analytics): various updates to analytics tracking
This commit is contained in:
@@ -260,6 +260,7 @@ function _sendPurchaseDataToAmplitude (data) {
|
||||
|
||||
amplitudeData.event_type = 'purchase';
|
||||
amplitudeData.revenue = data.purchaseValue;
|
||||
amplitudeData.productId = data.itemPurchased;
|
||||
|
||||
if (LOG_AMPLITUDE_EVENTS) {
|
||||
logger.info('Amplitude Purchase Event', amplitudeData);
|
||||
|
||||
Reference in New Issue
Block a user