From c9d8bd619268003719e8a48f6d2871acacc5be75 Mon Sep 17 00:00:00 2001 From: majakomel Date: Fri, 23 Feb 2024 11:07:04 +0100 Subject: [PATCH] Drop matomo tracking --- components/Layout.js | 40 ++++++++++++---------------------------- package.json | 1 - yarn.lock | 12 ------------ 3 files changed, 12 insertions(+), 41 deletions(-) diff --git a/components/Layout.js b/components/Layout.js index a69c5536..ece98307 100644 --- a/components/Layout.js +++ b/components/Layout.js @@ -1,7 +1,6 @@ -import { MatomoProvider, createInstance } from '@datapunt/matomo-tracker-react' import { theme } from 'ooni-components' import PropTypes from 'prop-types' -import React, { useEffect } from 'react' +import React from 'react' import { ThemeProvider, createGlobalStyle } from 'styled-components' import { getDirection } from 'components/withIntl' @@ -46,37 +45,22 @@ const GlobalStyle = createGlobalStyle` } ` -const matomoInstance = createInstance({ - urlBase: 'https://matomo.ooni.org/', - siteId: 2, - trackerUrl: 'https://matomo.ooni.org/matomo.php', - srcUrl: 'https://matomo.ooni.org/matomo.js', - configurations: { - disableCookies: true - } -}) - const Layout = ({ children, disableFooter = false }) => { const { locale } = useIntl() - useEffect(() => { - matomoInstance.trackPageView() - }, []) return ( - - - - -
-
-
- { children } -
- {!disableFooter &&