mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-20 02:34:12 +00:00
fix(analytics): Include GA label for quest actions
This commit is contained in:
parent
175b4fa6e0
commit
3bbde2a548
1 changed files with 3 additions and 0 deletions
|
|
@ -924,6 +924,7 @@ api.questAccept = function(req, res, next) {
|
|||
category: 'behavior',
|
||||
owner: true,
|
||||
response: 'accept',
|
||||
gaLabel: 'accept',
|
||||
questName: key
|
||||
};
|
||||
analytics.track('quest',analyticsData);
|
||||
|
|
@ -969,6 +970,7 @@ api.questAccept = function(req, res, next) {
|
|||
category: 'behavior',
|
||||
owner: false,
|
||||
response: 'accept',
|
||||
gaLabel: 'accept',
|
||||
questName: group.quest.key
|
||||
};
|
||||
analytics.track('quest',analyticsData);
|
||||
|
|
@ -987,6 +989,7 @@ api.questReject = function(req, res, next) {
|
|||
category: 'behavior',
|
||||
owner: false,
|
||||
response: 'reject',
|
||||
gaLabel: 'reject',
|
||||
questName: group.quest.key
|
||||
};
|
||||
analytics.track('quest',analyticsData);
|
||||
|
|
|
|||
Loading…
Reference in a new issue