tailwind-nextjs-blog/components/analytics/Umami.js

19 lines
370 B
JavaScript
Raw Normal View History

2022-07-17 21:40:41 +08:00
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