Skip to content

Commit

Permalink
Merge pull request #1911 from BaseAdresseNationale/jugurtha/fix_widge…
Browse files Browse the repository at this point in the history
…t_error

fix widget error
  • Loading branch information
vinsag authored Nov 28, 2024
2 parents e7f1203 + c75c9f4 commit c056992
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/matomo.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { push as matomoPush } from '@socialgouv/matomo-next'
import { env } from 'next-runtime-env'

export const matomoTrackEvent = (category: string, ...args: any[]) => {
matomoPush(['trackEvent', `${env('NODE_ENV') !== 'production' ? 'DEVMODE - ' : ''}${category}`, ...args])
matomoPush(['trackEvent', `${process.env.NODE_ENV !== 'production' ? 'DEVMODE - ' : ''}${category}`, ...args])
}

0 comments on commit c056992

Please sign in to comment.