From b79a46e6c2dc4b6df0a8e4c1a28ecf9178af965e Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Mon, 14 Feb 2022 00:05:23 +0100 Subject: chore(matomo): use another dependency to track page views I though the previous package would track all visits with the provided but it seems that I need to add trackPageView on all pages. So I decided to use another package. --- src/utils/config.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/utils/config.ts') diff --git a/src/utils/config.ts b/src/utils/config.ts index dc009d9..07d42a3 100644 --- a/src/utils/config.ts +++ b/src/utils/config.ts @@ -13,6 +13,10 @@ export const settings = { defaultCountry: 'FR', supported: ['en', 'fr'], }, + matomo: { + urlBase: process.env.NEXT_PUBLIC_MATOMO_URL || '', + siteId: process.env.NEXT_PUBLIC_MATOMO_SITE_ID || '0', + }, postsPerPage: 10, twitterId: '@ArmandPhilippot', url: process.env.NEXT_PUBLIC_FRONTEND_URL, -- cgit v1.2.3