19 lines
370 B
TypeScript
19 lines
370 B
TypeScript
import Script from 'next/script'
|
|
|
|
import siteMetadata from '@/data/siteMetadata'
|
|
|
|
const UmamiScript = () => {
|
|
return (
|
|
<>
|
|
<Script
|
|
async
|
|
defer
|
|
data-website-id={siteMetadata.analytics.umamiWebsiteId}
|
|
src="https://umami.example.com/umami.js" // Replace with your umami instance
|
|
/>
|
|
</>
|
|
)
|
|
}
|
|
|
|
export default UmamiScript
|