Skip to content

Commit

Permalink
feat: #44 implement matomo integration for api tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasbaldi committed May 31, 2020
1 parent ec71bf2 commit c35116c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/lib/tracking_helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function apiTrack(req, action, contentInfo) {
trackObj['cip'] = getRemoteAddr(req);
}

matomo.track(trackObj);
if (matomo) matomo.track(trackObj);
}

module.exports = {
Expand Down

0 comments on commit c35116c

Please sign in to comment.