mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-22 13:48:46 +00:00
fix(analytics): send user on reg (#8044)
Also fixes an issue that could prevent item name data from being correctly sent to Amplitude.
This commit is contained in:
parent
019560df64
commit
67febde1cb
2 changed files with 2 additions and 1 deletions
|
|
@ -155,6 +155,7 @@ api.registerLocal = {
|
|||
gaLabel: 'local',
|
||||
uuid: savedUser._id,
|
||||
headers: req.headers,
|
||||
user: savedUser,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -144,7 +144,7 @@ let _formatDataForAmplitude = (data) => {
|
|||
let itemName = _lookUpItemName(data.itemKey);
|
||||
|
||||
if (itemName) {
|
||||
event_properties.itemName = itemName;
|
||||
ampData.event_properties.itemName = itemName;
|
||||
}
|
||||
return ampData;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue