mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
fix(analytics): don't record task events as "click"
This commit is contained in:
@@ -76,7 +76,7 @@ export default {
|
|||||||
if (!tasksScoredCount || tasksScoredCount < 2) {
|
if (!tasksScoredCount || tasksScoredCount < 2) {
|
||||||
Analytics.track({
|
Analytics.track({
|
||||||
eventName: 'task scored',
|
eventName: 'task scored',
|
||||||
eventAction: 'click',
|
eventAction: 'task scored',
|
||||||
eventCategory: 'behavior',
|
eventCategory: 'behavior',
|
||||||
hitType: 'event',
|
hitType: 'event',
|
||||||
uuid: user._id,
|
uuid: user._id,
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ export async function create (store, createdTask) {
|
|||||||
const uuid = store.state.user.data._id;
|
const uuid = store.state.user.data._id;
|
||||||
Analytics.track({
|
Analytics.track({
|
||||||
eventName: 'task created',
|
eventName: 'task created',
|
||||||
eventAction: 'click',
|
eventAction: 'task created',
|
||||||
eventCategory: 'behavior',
|
eventCategory: 'behavior',
|
||||||
hitType: 'event',
|
hitType: 'event',
|
||||||
uuid,
|
uuid,
|
||||||
|
|||||||
Reference in New Issue
Block a user