mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Move more analytics to server (#12782)
* track events on the client by default, remove unused ones * fix lint, remove some calls to updateUser * remove dead code from guide.js
This commit is contained in:
@@ -143,12 +143,6 @@ export default {
|
||||
|
||||
return null;
|
||||
},
|
||||
hoyo (user) {
|
||||
// @TODO: What is was the timeout for?
|
||||
// @TODO move to analytics
|
||||
window.amplitude.setUserId(user._id);
|
||||
window.ga('set', { userId: user._id });
|
||||
},
|
||||
goto (chapter, page, force) {
|
||||
if (chapter === 'intro' && this.user.flags.welcomed !== true) {
|
||||
// @TODO: Add dispatch User.set({'flags.welcomed': true});
|
||||
|
||||
Reference in New Issue
Block a user