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:
Matteo Pagliazzi
2020-11-13 15:42:46 +01:00
committed by GitHub
parent 41de90e578
commit d3ba0346af
12 changed files with 11 additions and 53 deletions

View File

@@ -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});