Skip to content
Snippets Groups Projects
Commit 7ca643b6 authored by BITARD Michaël's avatar BITARD Michaël Committed by vmaubert
Browse files

fix(ui): matomo peut différencier dev, preprod et prod

parent 8b4d01c7
Branches
Tags
No related merge requests found
......@@ -46,13 +46,13 @@ Promise.resolve().then(async () => {
try {
const response = await fetch('/matomoOptions')
const options = await response.json()
if (!options || !options.host || !options.siteId)
if (!options || !options.host || !options.siteId || !options.environment)
throw new Error('host et/ou siteId manquant(s)')
const matomo = await VueMatomo({
host: options.host,
siteId: options.siteId,
environnement: options.environnement,
environnement: options.environment,
router,
store,
requireConsent: false,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment