mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
update: analytics debugging
This commit is contained in:
@@ -322,9 +322,8 @@ export default {
|
||||
eventName: 'group plan create',
|
||||
eventAction: 'group plan create',
|
||||
eventCategory: 'behavior',
|
||||
createGroupName: this.newGroup.name,
|
||||
demographicsCreated: this.newGroup.demographics,
|
||||
typeCreated: this.newGroup.type,
|
||||
demographics: this.newGroup.demographics,
|
||||
type: this.newGroup.type,
|
||||
});
|
||||
|
||||
if (this.upgradingGroup && this.upgradingGroup._id) {
|
||||
|
||||
@@ -43,13 +43,13 @@
|
||||
]"
|
||||
class="group-input"
|
||||
:placeholder="'groupUseDefault'"
|
||||
:value="groupPlanUpgraded.demographics"
|
||||
@select="groupPlanUpgraded.demographics = $event"
|
||||
:value="upgradedGroup.demographics"
|
||||
@select="upgradedGroup.demographics = $event"
|
||||
/>
|
||||
<button
|
||||
v-if="!paymentData.newGroup"
|
||||
class="btn btn-primary mx-auto"
|
||||
:disabled="!groupPlanUpgraded.demographics"
|
||||
:disabled="!upgradedGroup.demographics"
|
||||
@click="submit()"
|
||||
>
|
||||
{{ $t('submit') }}
|
||||
@@ -363,8 +363,8 @@ export default {
|
||||
eventName: 'group plan upgrade',
|
||||
eventAction: 'group plan upgrade',
|
||||
eventCategory: 'behavior',
|
||||
demographics: this.paymentData.group.demographics, // if that's where this lives?
|
||||
typeUpgraded: this.paymentData.group.type,
|
||||
demographics: this.upgradedGroup.demographics,
|
||||
type: this.paymentData.group.type, // also tried this.upgradedGroup.type
|
||||
});
|
||||
}
|
||||
this.paymentData = {};
|
||||
|
||||
@@ -83,12 +83,8 @@ function _gatherGroupStats (properties) {
|
||||
|
||||
properties.UUID = user._id;
|
||||
|
||||
properties.createGroupName = group.newGroup.name;
|
||||
properties.demographicsCreated = group.newGroup.demographics;
|
||||
properties.typeCreated = group.newGroup.type;
|
||||
// properties.upgradedGroupName = group.upgradedGroup.name;
|
||||
// properties.demographicsUpgraded = group.upgradedGroup.demographics;
|
||||
// properties.typeUpgraded = group.upgradedGroup.type;
|
||||
properties.demographics = group.newGroup.demographics || group.upgradedGroup.demographics;
|
||||
properties.type = group.newGroup.type || group.upgradedGroup.type;
|
||||
}
|
||||
|
||||
export function setUser () {
|
||||
|
||||
Reference in New Issue
Block a user