From f18fe8caa611e9273c5504fa81522e1ac93b95d2 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Mon, 21 Feb 2022 17:13:50 +0100
Subject: feat: replace Matomo with Ackee

I do not use all Matomo features so I was searching a lightweight
analytics tools. I will give a try to Ackee.
---
 src/pages/_app.tsx | 9 ---------
 1 file changed, 9 deletions(-)

(limited to 'src/pages/_app.tsx')

diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx
index 6ff8e1b..1f5be8f 100644
--- a/src/pages/_app.tsx
+++ b/src/pages/_app.tsx
@@ -1,10 +1,8 @@
-import * as matomo from '@socialgouv/matomo-next';
 import { AppPropsWithLayout } from '@ts/types/app';
 import { settings } from '@utils/config';
 import { PrismThemeProvider } from '@utils/providers/prism';
 import { ThemeProvider } from 'next-themes';
 import { useRouter } from 'next/router';
-import { useEffect } from 'react';
 import { IntlProvider } from 'react-intl';
 import '../styles/globals.scss';
 
@@ -12,13 +10,6 @@ const MyApp = ({ Component, pageProps }: AppPropsWithLayout) => {
   const { locale, defaultLocale } = useRouter();
   const appLocale: string = locale || settings.locales.defaultLocale;
 
-  useEffect(() => {
-    matomo.init({
-      url: settings.matomo.urlBase,
-      siteId: settings.matomo.siteId,
-    });
-  }, []);
-
   const getLayout = Component.getLayout ?? ((page) => page);
   return (
     <IntlProvider
-- 
cgit v1.2.3

