Skip to content

Commit

Permalink
feat: add umami tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
jordigarciaventura authored and rogargon committed Jan 20, 2025
1 parent c004364 commit c9ca297
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Home from '../components/Home'
import Page from '@shared/Page'
import { useRouter } from 'next/router'
import { useMarketMetadata } from '@context/MarketMetadata'
import Script from 'next/script'

export default function PageHome(): ReactElement {
const { siteContent } = useMarketMetadata()
Expand All @@ -15,6 +16,11 @@ export default function PageHome(): ReactElement {
uri={router.route}
headerCenter
>
<Script
defer
src="https://umami.agrospai.udl.cat/umami"
data-website-id="584819b4-4484-4ba7-a74a-0cdfefbdb0fd"
/>
<Home />
</Page>
)
Expand Down

0 comments on commit c9ca297

Please sign in to comment.