fix: improve Plausible
This commit is contained in:
+14
-18
@@ -1,3 +1,4 @@
|
||||
import PlausibleProvider from 'next-plausible'
|
||||
import TopLoader from '../components/top-loader'
|
||||
import Navigasyon from '../components/navigasyon'
|
||||
import ThemeRegistry from './theme-registy'
|
||||
@@ -53,25 +54,20 @@ const jsonLd = {
|
||||
export default async function RootLayout({children}) {
|
||||
return (
|
||||
<html lang='fr' suppressHydrationWarning>
|
||||
<head>
|
||||
<script
|
||||
defer
|
||||
data-domain='pawol.nu'
|
||||
src='https://plausible.io/js/pa-3sQidCSfiSOXQUh-4La0T.js'
|
||||
/>
|
||||
</head>
|
||||
<body>
|
||||
<TopLoader color='#ffeb3b' />
|
||||
<ThemeRegistry>
|
||||
<Navigasyon />
|
||||
{children}
|
||||
</ThemeRegistry>
|
||||
<section>
|
||||
<script
|
||||
type='application/ld+json'
|
||||
dangerouslySetInnerHTML={{__html: JSON.stringify(jsonLd)}}
|
||||
/>
|
||||
</section>
|
||||
<PlausibleProvider src='https://plausible.io/js/pa-3sQidCSfiSOXQUh-4La0T.js'>
|
||||
<TopLoader color='#ffeb3b' />
|
||||
<ThemeRegistry>
|
||||
<Navigasyon />
|
||||
{children}
|
||||
</ThemeRegistry>
|
||||
<section>
|
||||
<script
|
||||
type='application/ld+json'
|
||||
dangerouslySetInnerHTML={{__html: JSON.stringify(jsonLd)}}
|
||||
/>
|
||||
</section>
|
||||
</PlausibleProvider>
|
||||
</body>
|
||||
</html>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user