diff --git a/app/layout.tsx b/app/layout.tsx
index 3e23a56..c8d8f3b 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -1,5 +1,5 @@
-import { Analytics } from '@vercel/analytics/react'
import type { Metadata } from 'next'
+import Script from 'next/script'
import { ButtonUp } from '@/components/button/button-up'
import Navbar from '@/components/navbar/navbar'
@@ -19,10 +19,24 @@ export default function RootLayout({
}: {
children: React.ReactNode
}) {
+ const UMAMI_ANALYTICS = process.env.NEXT_PUBLIC_ANALYTICS_ID
+ const environment = process.env.NODE_ENV
+
return (
-
+
+ {environment === 'production' && (
+
+ )}
@@ -32,7 +46,6 @@ export default function RootLayout({
{children}
-
diff --git a/components/button/button-up.tsx b/components/button/button-up.tsx
index 743dcd6..676b86a 100644
--- a/components/button/button-up.tsx
+++ b/components/button/button-up.tsx
@@ -1,8 +1,10 @@
import { WebLink } from '@/components/web-link/web-link'
+import { EventNames } from '@/lib/metrics/event-name-types'
export const ButtonUp = () => {
return (
{
{links?.map(({ url, type }, index) => (
diff --git a/components/contributors/contributors.tsx b/components/contributors/contributors.tsx
index 36adee7..0dcaff4 100644
--- a/components/contributors/contributors.tsx
+++ b/components/contributors/contributors.tsx
@@ -1,6 +1,7 @@
import Image from 'next/image'
import { Contributor } from '@/lib/mdx/mdx-utils'
+import { EventNames } from '@/lib/metrics/event-name-types'
import { adaptContributorsFromMdx } from '@/services/github/adapters'
import { getContributorsFromGitHub } from '@/services/github/get-contributors'
@@ -34,7 +35,9 @@ export const Contributors = async ({
{data.map(contributor => {
return (
-
+
)
diff --git a/components/navbar/navbar.tsx b/components/navbar/navbar.tsx
index 4446af2..d706808 100644
--- a/components/navbar/navbar.tsx
+++ b/components/navbar/navbar.tsx
@@ -7,6 +7,8 @@ import { DocSearch } from '@docsearch/react'
import dynamic from 'next/dynamic'
import Link from 'next/link'
+import { EventNames } from '@/lib/metrics/event-name-types'
+
import { Figure } from '../figure/figure'
import { WebLink } from '../web-link/web-link'
@@ -33,16 +35,14 @@ function NavBar() {
apiKey={SEARCH_API_KEY}
indexName={'recursostech'}
appId={SEARCH_APP_ID}
- // transformItems={items => {
- // console.log(items)
- // return items
- // }}
/>
)}
-
+