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:
@@ -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>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user