Skip to content

Commit

Permalink
include matomo script in all environment
Browse files Browse the repository at this point in the history
  • Loading branch information
MarBert committed Jan 13, 2025
1 parent 2f9b39d commit b9453dc
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions apps/nextjs-website/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,12 @@ export default async function RootLayout({
return (
<html lang='it' className={titilliumWeb.variable}>
<head>
{isProduction && (
<Script
id='matomo'
key='script-matomo'
dangerouslySetInnerHTML={{ __html: MATOMO_SCRIPT }}
strategy='lazyOnload'
/>
)}
<Script
id='matomo'
key='script-matomo'
dangerouslySetInnerHTML={{ __html: MATOMO_SCRIPT }}
strategy='lazyOnload'
/>
</head>
<ThemeRegistry options={{ key: 'mui' }}>
<NextIntlContext
Expand Down

0 comments on commit b9453dc

Please sign in to comment.