diff --git a/server/lib/tracking_helper.js b/server/lib/tracking_helper.js index f6aa79f..7d32ba9 100644 --- a/server/lib/tracking_helper.js +++ b/server/lib/tracking_helper.js @@ -53,7 +53,7 @@ function apiTrack(req, action, contentInfo) { trackObj['cip'] = getRemoteAddr(req); } - matomo.track(trackObj); + if (matomo) matomo.track(trackObj); } module.exports = {