Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
desoindx committed Nov 28, 2024
2 parents 1df7202 + 8c3c42d commit e4fc8b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions detection/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ const transformText = (element: Element, language: 'fr' | 'en', darkMode?: boole
}
export const initMatomo = () => {
//@ts-expect-error: Matomo redefinition
const _paq_impact_co2 = (window._paq_impact_co2 = window._paq_impact_co2 || [])
const _paq = (window._paq = window._paq || [])
;(function () {
//@ts-expect-error: injected MATOMO_SITE_URL, MATOMO_SITE_ID constant from env var, see webpack.config.js
const u = MATOMO_SITE_URL
//@ts-expect-error: injected MATOMO_SITE_URL, MATOMO_SITE_ID constant from env var, see webpack.config.js
_paq_impact_co2.push(['addTracker', u + '/matomo.php', MATOMO_SITE_ID])
_paq.push(['addTracker', u + '/matomo.php', MATOMO_SITE_ID])

const d = document,
g = d.createElement('script'),
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ module.exports = [
plugins: [
new webpack.DefinePlugin({
MATOMO_SITE_URL: `'${process.env.NEXT_PUBLIC_MATOMO_SITE_URL || ''}'`,
MATOMO_SITE_ID: `'${process.env.NEXT_PUBLIC_MATOMO_SITE_ID || ''}'`,
MATOMO_SITE_ID: `'${process.env.NEXT_PUBLIC_MATOMO_DETECTOR_SITE_ID || ''}'`,
}),
//new BundleAnalyzerPlugin(),
//new StatoscopeWebpackPlugin(),
Expand Down

0 comments on commit e4fc8b1

Please sign in to comment.