From aa8eaf67ca9ec0a56c5adbb07eb015f626045139 Mon Sep 17 00:00:00 2001 From: Lawand Othman Date: Tue, 8 Oct 2024 16:38:09 +0100 Subject: [PATCH] analytics --- package.json | 1 + pages/_app.tsx | 2 ++ pnpm-lock.yaml | 26 ++++++++++++++++++++++++++ 3 files changed, 29 insertions(+) diff --git a/package.json b/package.json index e69d99a5..1d433816 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "@emotion/react": "^11", "@emotion/styled": "^11", "@fontsource/inter": "^5.0.15", + "@vercel/analytics": "^1.3.1", "framer-motion": "^10", "next": "^14.2.7", "next-seo": "^6.4.0", diff --git a/pages/_app.tsx b/pages/_app.tsx index db8e0e4c..558730d8 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -2,6 +2,7 @@ import { ChakraProvider } from '@chakra-ui/react' import { DefaultSeo } from 'next-seo' import SEO from 'next-seo.config' import { AppProps } from 'next/app' +import { Analytics } from '@vercel/analytics/react' import theme from 'styles/theme' @@ -11,6 +12,7 @@ const MyApp = ({ Component, pageProps }: AppProps) => { + ) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 10280647..a2bf9141 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -26,6 +26,9 @@ importers: '@fontsource/inter': specifier: ^5.0.15 version: 5.0.18 + '@vercel/analytics': + specifier: ^1.3.1 + version: 1.3.1(next@14.2.7(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1) framer-motion: specifier: ^10 version: 10.18.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) @@ -952,6 +955,17 @@ packages: '@ungap/structured-clone@1.2.0': resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} + '@vercel/analytics@1.3.1': + resolution: {integrity: sha512-xhSlYgAuJ6Q4WQGkzYTLmXwhYl39sWjoMA3nHxfkvG+WdBT25c563a7QhwwKivEOZtPJXifYHR1m2ihoisbWyA==} + peerDependencies: + next: '>= 13' + react: ^18 || ^19 + peerDependenciesMeta: + next: + optional: true + react: + optional: true + '@zag-js/dom-query@0.16.0': resolution: {integrity: sha512-Oqhd6+biWyKnhKwFFuZrrf6lxBz2tX2pRQe6grUnYwO6HJ8BcbqZomy2lpOdr+3itlaUqx+Ywj5E5ZZDr/LBfQ==} @@ -2066,6 +2080,9 @@ packages: engines: {node: '>=10'} hasBin: true + server-only@0.0.1: + resolution: {integrity: sha512-qepMx2JxAa5jjfzxG79yPPq+8BuFToHd1hm7kI+Z4zAq1ftQiP7HcxMhDDItrbtwVeLg/cY2JnKnrcFkmiswNA==} + set-function-length@1.2.2: resolution: {integrity: sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==} engines: {node: '>= 0.4'} @@ -3501,6 +3518,13 @@ snapshots: '@ungap/structured-clone@1.2.0': {} + '@vercel/analytics@1.3.1(next@14.2.7(react-dom@18.3.1(react@18.3.1))(react@18.3.1))(react@18.3.1)': + dependencies: + server-only: 0.0.1 + optionalDependencies: + next: 14.2.7(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + react: 18.3.1 + '@zag-js/dom-query@0.16.0': {} '@zag-js/element-size@0.10.5': {} @@ -4792,6 +4816,8 @@ snapshots: semver@7.6.2: {} + server-only@0.0.1: {} + set-function-length@1.2.2: dependencies: define-data-property: 1.1.4