mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
fix(analytics): move lfp events out of mounted
This commit is contained in:
@@ -122,6 +122,7 @@
|
||||
|
||||
<script>
|
||||
import orderBy from 'lodash/orderBy';
|
||||
import * as Analytics from '@/libs/analytics';
|
||||
import { mapGetters, mapActions } from '@/libs/store';
|
||||
import MemberDetails from '../memberDetails';
|
||||
import createPartyModal from '../groups/createPartyModal';
|
||||
@@ -237,6 +238,12 @@ export default {
|
||||
this.$router.push('/looking-for-party');
|
||||
} else {
|
||||
this.$root.$emit('bv::show::modal', 'create-party-modal');
|
||||
Analytics.track({
|
||||
eventName: 'Start a Party button',
|
||||
eventAction: 'Start a Party button',
|
||||
eventCategory: 'behavior',
|
||||
hitType: 'event',
|
||||
}, { trackOnClient: true });
|
||||
}
|
||||
},
|
||||
loadMembers (payload = null) {
|
||||
|
||||
Reference in New Issue
Block a user