summaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-01-31 21:33:22 +0100
committerArmand Philippot <git@armandphilippot.com>2022-01-31 21:33:22 +0100
commit8f8a3957b5d3b33bafaa0a6afe4187f75d6dd2b7 (patch)
treefca0e9d0742334399eebce33ba771417c1fe4e97 /src/utils
parent796bac09eab8259783343ca0db2610345d50496a (diff)
chore: add Matomo
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/helpers/matomo.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/utils/helpers/matomo.ts b/src/utils/helpers/matomo.ts
new file mode 100644
index 0000000..6930196
--- /dev/null
+++ b/src/utils/helpers/matomo.ts
@@ -0,0 +1,7 @@
+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,
+});