mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08:00
Add analytics to TagOrderStore
This commit is contained in:
parent
a9cc8eba33
commit
8f88995b3d
@ -15,7 +15,7 @@ limitations under the License.
|
||||
*/
|
||||
import {Store} from 'flux/utils';
|
||||
import dis from '../dispatcher';
|
||||
// import Analytics from '../Analytics';
|
||||
import Analytics from '../Analytics';
|
||||
import MatrixClientPeg from "../MatrixClientPeg";
|
||||
|
||||
const INITIAL_STATE = {
|
||||
@ -76,6 +76,7 @@ class TagOrderStore extends Store {
|
||||
break;
|
||||
case 'commit_tags':
|
||||
MatrixClientPeg.get().setAccountData('im.vector.web.tag_ordering', {tags: this._state.orderedTags});
|
||||
Analytics.trackEvent('TagOrderStore', 'commit_tags');
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user