diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ee746e..8e92c2b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# 1.5.0 (2023-11-20) + +### Feat + ++ add @vercel/analytics ++ add microsoft clarity + # 1.4.0 (2023-11-15) ### Feat diff --git a/package.json b/package.json index 9a829f5..a38d854 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "lint:style": "stylelint --fix \"src/**/*.scss\"" }, "dependencies": { + "@vercel/analytics": "^1.1.1", "classnames": "^2.3.2", "next": "14.0.1", "react": "^18", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 62e5c84..529dc17 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5,6 +5,9 @@ settings: excludeLinksFromLockfile: false dependencies: + '@vercel/analytics': + specifier: ^1.1.1 + version: registry.npmmirror.com/@vercel/analytics@1.1.1 classnames: specifier: ^2.3.2 version: registry.npmmirror.com/classnames@2.3.2 @@ -852,6 +855,14 @@ packages: version: 1.2.0 dev: true + registry.npmmirror.com/@vercel/analytics@1.1.1: + resolution: {integrity: sha512-+NqgNmSabg3IFfxYhrWCfB/H+RCUOCR5ExRudNG2+pcRehq628DJB5e1u1xqwpLtn4pAYii4D98w7kofORAGQA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/@vercel/analytics/-/analytics-1.1.1.tgz} + name: '@vercel/analytics' + version: 1.1.1 + dependencies: + server-only: registry.npmmirror.com/server-only@0.0.1 + dev: false + registry.npmmirror.com/JSONStream@1.3.5: resolution: {integrity: sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/JSONStream/-/JSONStream-1.3.5.tgz} name: JSONStream @@ -4429,6 +4440,12 @@ packages: lru-cache: registry.npmmirror.com/lru-cache@6.0.0 dev: true + registry.npmmirror.com/server-only@0.0.1: + resolution: {integrity: sha512-qepMx2JxAa5jjfzxG79yPPq+8BuFToHd1hm7kI+Z4zAq1ftQiP7HcxMhDDItrbtwVeLg/cY2JnKnrcFkmiswNA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/server-only/-/server-only-0.0.1.tgz} + name: server-only + version: 0.0.1 + dev: false + registry.npmmirror.com/set-function-length@1.1.1: resolution: {integrity: sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/set-function-length/-/set-function-length-1.1.1.tgz} name: set-function-length diff --git a/src/app/layout.tsx b/src/app/layout.tsx index bdfeb3c..bbf7c6d 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,5 +1,7 @@ import type { Metadata } from 'next'; +import Script from 'next/script'; import { AppProviders } from '@/context'; +import { Analytics } from '@vercel/analytics/react'; import '@/styles/globals.scss'; export const metadata: Metadata = { @@ -15,8 +17,19 @@ export default function RootLayout({ }) { return ( +