From 0b56806db411758bd44294acd3ba2f76c0651d80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gorzeli=C5=84ski?= Date: Wed, 9 Oct 2024 18:28:04 +0200 Subject: [PATCH] feat: Add analytics --- app/[lang]/layout.tsx | 2 ++ package-lock.json | 26 ++++++++++++++++++++++++++ package.json | 1 + 3 files changed, 29 insertions(+) diff --git a/app/[lang]/layout.tsx b/app/[lang]/layout.tsx index 3da94ff..048c62f 100644 --- a/app/[lang]/layout.tsx +++ b/app/[lang]/layout.tsx @@ -2,6 +2,7 @@ import type { Metadata } from 'next' import { cookies } from 'next/headers' import { getCookie } from 'cookies-next' import { WebSite, WithContext } from 'schema-dts' +import { Analytics } from '@vercel/analytics/react' import { PageProps, Theme } from '@/types' import { COOKIES, metadataBase } from '@/constants' import { Locale, i18n } from '@/i18n.config' @@ -115,6 +116,7 @@ export default async function RootLayout({
{children}