Skip to content

Commit

Permalink
fix(tracking): Change condition to enable Matomo tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
annelhote committed Mar 29, 2024
1 parent 8bd2d2d commit 13665d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ import { ToastContextProvider } from './hooks/useToast';
import './styles/index.scss';
import 'react-tooltip/dist/react-tooltip.css';

const { VITE_APP_MATOMO_BASE_URL, VITE_APP_MATOMO_SITE_ID } = import.meta.env;
const { VITE_APP_MATOMO_BASE_URL, VITE_APP_MATOMO_SITE_ID = 0 } = import.meta.env;

const queryClient = new QueryClient();

const matomo = createInstance({
urlBase: VITE_APP_MATOMO_BASE_URL,
siteId: VITE_APP_MATOMO_SITE_ID,
disabled: VITE_APP_MATOMO_SITE_ID !== 0,
disabled: VITE_APP_MATOMO_SITE_ID === 0,
configurations: {
disableCookies: true,
},
Expand Down

0 comments on commit 13665d5

Please sign in to comment.