1
0
mirror of https://github.com/theoludwig/theoludwig.git synced 2025-12-12 20:46:52 +01:00

fix: use new plausible/analytics script tag

This commit is contained in:
2025-12-12 20:42:17 +01:00
parent 203fee5416
commit dbe7a73d1f

View File

@@ -90,10 +90,14 @@ const LocaleLayout: React.FC<LocaleLayoutProps> = async (props) => {
</NextIntlClientProvider>
<Script
defer
data-domain={DOMAIN}
src="https://plausible.theoludwig.fr/js/script.js"
async
src="https://analytics.theoludwig.fr/js/pa-MToGPBn2iXgorPLkh6f_s.js"
/>
<Script id="analytics-init">
{`
window.plausible=window.plausible||function(){(plausible.q=plausible.q||[]).push(arguments)},plausible.init=plausible.init||function(i){plausible.o=i||{}};
plausible.init()`}
</Script>
</body>
</html>
)