diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-02-21 17:13:50 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-02-21 17:17:42 +0100 |
| commit | f18fe8caa611e9273c5504fa81522e1ac93b95d2 (patch) | |
| tree | 455ecf2631e61eb98c6c005c9a4c2e2e5a9b6780 /src/components | |
| parent | ad00b2dc9492d20b3b8c3dcd7c5b425ee7f8d404 (diff) | |
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.
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/Layouts/Layout.tsx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/components/Layouts/Layout.tsx b/src/components/Layouts/Layout.tsx index 9a47b2b..9c29df9 100644 --- a/src/components/Layouts/Layout.tsx +++ b/src/components/Layouts/Layout.tsx @@ -9,6 +9,7 @@ import { ReactElement, ReactNode, useEffect, useRef } from 'react'; import { useIntl } from 'react-intl'; import { SearchAction, WebSite, WithContext } from 'schema-dts'; import styles from './Layout.module.scss'; +import Script from 'next/script'; const Layout = ({ children, @@ -111,6 +112,13 @@ const Layout = ({ }} ></script> </Head> + <Script + strategy="afterInteractive" + async + src={`${settings.ackee.url}/${settings.ackee.filename}`} + data-ackee-server={settings.ackee.url} + data-ackee-domain-id={settings.ackee.siteId} + /> <noscript> <div className={styles['noscript-spacing']}></div> </noscript> |
