mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
feat(analytics): differentiate party CTA scenarios
This commit is contained in:
@@ -235,15 +235,23 @@ export default {
|
||||
},
|
||||
createOrInviteParty () {
|
||||
if (this.user.party._id) {
|
||||
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',
|
||||
eventName: 'Header Party CTA',
|
||||
eventAction: 'Header Party CTA',
|
||||
eventCategory: 'behavior',
|
||||
hitType: 'event',
|
||||
state: 'Find Party Members',
|
||||
}, { trackOnClient: true });
|
||||
this.$router.push('/looking-for-party');
|
||||
} else {
|
||||
Analytics.track({
|
||||
eventName: 'Header Party CTA',
|
||||
eventAction: 'Header Party CTA',
|
||||
eventCategory: 'behavior',
|
||||
hitType: 'event',
|
||||
state: 'Get Started',
|
||||
}, { trackOnClient: true });
|
||||
this.$root.$emit('bv::show::modal', 'create-party-modal');
|
||||
}
|
||||
},
|
||||
loadMembers (payload = null) {
|
||||
|
||||
Reference in New Issue
Block a user