From 69cd37f162efae5872e1b40a5688ea6e1a36c71f Mon Sep 17 00:00:00 2001 From: Marcello Bertoli Date: Fri, 20 Dec 2024 14:17:00 +0100 Subject: [PATCH] revert layout update --- apps/nextjs-website/src/app/layout.tsx | 61 +++++++++----------------- 1 file changed, 21 insertions(+), 40 deletions(-) diff --git a/apps/nextjs-website/src/app/layout.tsx b/apps/nextjs-website/src/app/layout.tsx index 6caee80e76..35f5586b50 100644 --- a/apps/nextjs-website/src/app/layout.tsx +++ b/apps/nextjs-website/src/app/layout.tsx @@ -24,32 +24,21 @@ import NextIntlContext from '@/components/atoms/NextIntlContext/NextIntlContext' import ChatbotProvider from '@/components/organisms/ChatbotProvider/ChatbotProvider'; const MATOMO_SCRIPT = ` - var _paq = window._paq = window._paq || []; - /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ - _paq.push(['trackPageView']); - _paq.push(['enableLinkTracking']); - (function() { - var u="https://uqido.matomo.cloud/"; - _paq.push(['setTrackerUrl', u+'matomo.php']); - _paq.push(['setSiteId', '3']); - var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; - g.async=true; g.src='https://cdn.matomo.cloud/uqido.matomo.cloud/matomo.js'; s.parentNode.insertBefore(g,s); - })(); -`; - -const MATOMO_ENV = ` - var _mtm = window._mtm = window._mtm || []; - _mtm.push({'mtm.startTime': (new Date().getTime()), 'event': 'mtm.Start'}); - (function() { - var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; - g.async=true; g.src='https://cdn.matomo.cloud/uqido.matomo.cloud/container_50OlzmFz.js'; s.parentNode.insertBefore(g,s); - })(); -`; - -const MATOMO_PUSH = ` -funtion matomoEvent() { - var _paq = window._paq = window._paq || []; -_paq.push(['trackEvent', 'Contact', 'Email Link Click', 'name@example.com']);} +var _paq = (window._paq = window._paq || []); +/* tracker methods like "setCustomDimension" should be called before "trackPageView" */ +_paq.push(["trackPageView"]); +_paq.push(["enableLinkTracking"]); +(function () { + var u = "https://pagopa.matomo.cloud/"; + _paq.push(["setTrackerUrl", u + "matomo.php"]); + _paq.push(["setSiteId", "8"]); + var d = document, + g = d.createElement("script"), + s = d.getElementsByTagName("script")[0]; + g.async = true; + g.src = "//cdn.matomo.cloud/pagopa.matomo.cloud/matomo.js"; + s.parentNode.insertBefore(g, s); +})(); `; const titilliumWeb = Titillium_Web({ @@ -91,20 +80,12 @@ export default async function RootLayout({ {isProduction && ( - <> -