summaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/config.ts4
-rw-r--r--src/utils/helpers/matomo.ts7
2 files changed, 4 insertions, 7 deletions
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,
diff --git a/src/utils/helpers/matomo.ts b/src/utils/helpers/matomo.ts
deleted file mode 100644
index 6930196..0000000
--- a/src/utils/helpers/matomo.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import { createInstance } from '@datapunt/matomo-tracker-react';
-
-export const instance = createInstance({
- urlBase: process.env.NEXT_PUBLIC_MATOMO_URL || '',
- siteId: Number(process.env.NEXT_PUBLIC_MATOMO_SITE_ID) || 0,
- linkTracking: true,
-});