mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
fix(analytics): confirm that 2x/day task actions should track on client
This commit is contained in:
@@ -82,7 +82,7 @@ export default {
|
|||||||
uuid: user._id,
|
uuid: user._id,
|
||||||
taskType: task.type,
|
taskType: task.type,
|
||||||
direction,
|
direction,
|
||||||
});
|
}, { trackOnClient: true });
|
||||||
if (!tasksScoredCount) {
|
if (!tasksScoredCount) {
|
||||||
setLocalSetting(CONSTANTS.keyConstants.TASKS_SCORED_COUNT, 1);
|
setLocalSetting(CONSTANTS.keyConstants.TASKS_SCORED_COUNT, 1);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ export async function create (store, createdTask) {
|
|||||||
hitType: 'event',
|
hitType: 'event',
|
||||||
uuid,
|
uuid,
|
||||||
taskType: taskRes.type,
|
taskType: taskRes.type,
|
||||||
});
|
}, { trackOnClient: true });
|
||||||
if (!tasksCreatedCount) {
|
if (!tasksCreatedCount) {
|
||||||
setLocalSetting(CONSTANTS.keyConstants.TASKS_CREATED_COUNT, 1);
|
setLocalSetting(CONSTANTS.keyConstants.TASKS_CREATED_COUNT, 1);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user