Skip to content

Commit

Permalink
chore: use label on events
Browse files Browse the repository at this point in the history
  • Loading branch information
omarciovsena committed Jun 19, 2020
1 parent 2d239cf commit 68cc641
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/track.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const trackEvent = async (req, res, next) => {
userId: user ? user._id.toString() : ''
})

return visitor.event({ ec: action, ea: 'request', dp: url }, (err) => {
return visitor.event({ ec: action, ea: 'request', el: url }, (err) => {
if (err) throw Error(err)
}).send()
} catch (e) {
Expand Down

0 comments on commit 68cc641

Please sign in to comment.