Skip to content
This repository has been archived by the owner on Sep 11, 2020. It is now read-only.

Commit

Permalink
fix(stats): corrige l'implémentation du tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
francoisromain committed Apr 16, 2020
1 parent ce81f0f commit 584fca8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/stats/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@ const MatomoTracker = require('matomo-tracker')

module.exports =
process.env.MATOMO_SITE_ID && process.env.MATOMO_HOST
? new MatomoTracker(process.env.MATOMO_SITE_ID, process.env.MATOMO_HOST)
? new MatomoTracker(
Number(process.env.MATOMO_SITE_ID),
`${process.env.MATOMO_HOST}/matomo.php`,
false
)
: null

0 comments on commit 584fca8

Please sign in to comment.