Skip to content

Commit 2c62972

Browse files
chore: enabled Web Analytics
1 parent f4181ba commit 2c62972

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

app/layout.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import './globals.css';
22

3+
import { Analytics } from '@vercel/analytics/react';
34
import { SpeedInsights } from '@vercel/speed-insights/next';
45
import type { Metadata, Viewport } from 'next';
56
import { Noto_Sans } from 'next/font/google';
@@ -40,8 +41,9 @@ const RootLayout = async ({ children }: RootLayoutProps) => {
4041
<Providers appConfig={appConfig} exchangeRates={exchangeRates}>
4142
{children}
4243
</Providers>
43-
<CookieConsent />
4444
<SpeedInsights />
45+
<Analytics />
46+
<CookieConsent />
4547
</body>
4648
</html>
4749
);

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"@radix-ui/react-tabs": "^1.0.4",
4646
"@tanstack/react-table": "^8.11.8",
4747
"@uploadthing/react": "^6.5.4",
48+
"@vercel/analytics": "^1.3.1",
4849
"@vercel/kv": "^1.0.1",
4950
"@vercel/speed-insights": "^1.0.10",
5051
"@yandex/smart-captcha": "^2.6.0",

yarn.lock

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2400,6 +2400,23 @@ __metadata:
24002400
languageName: node
24012401
linkType: hard
24022402

2403+
"@vercel/analytics@npm:^1.3.1":
2404+
version: 1.3.1
2405+
resolution: "@vercel/analytics@npm:1.3.1"
2406+
dependencies:
2407+
server-only: "npm:^0.0.1"
2408+
peerDependencies:
2409+
next: ">= 13"
2410+
react: ^18 || ^19
2411+
peerDependenciesMeta:
2412+
next:
2413+
optional: true
2414+
react:
2415+
optional: true
2416+
checksum: 10c0/a8c3d363a3327a4bb6b555374eecc814fc6840870c757ea96227111692a219916b960081424d46b8d5f5d84bcd40b8078bc882b774ab4dfd8e77f67d61b38ab1
2417+
languageName: node
2418+
linkType: hard
2419+
24032420
"@vercel/kv@npm:^1.0.1":
24042421
version: 1.0.1
24052422
resolution: "@vercel/kv@npm:1.0.1"
@@ -5928,6 +5945,7 @@ __metadata:
59285945
"@types/react-syntax-highlighter": "npm:^15.5.11"
59295946
"@typescript-eslint/eslint-plugin": "npm:^6.20.0"
59305947
"@uploadthing/react": "npm:^6.5.4"
5948+
"@vercel/analytics": "npm:^1.3.1"
59315949
"@vercel/kv": "npm:^1.0.1"
59325950
"@vercel/speed-insights": "npm:^1.0.10"
59335951
"@yandex/smart-captcha": "npm:^2.6.0"
@@ -8748,6 +8766,13 @@ __metadata:
87488766
languageName: node
87498767
linkType: hard
87508768

8769+
"server-only@npm:^0.0.1":
8770+
version: 0.0.1
8771+
resolution: "server-only@npm:0.0.1"
8772+
checksum: 10c0/4704f0ef85da0be981af6d4ed8e739d39bcfd265b9c246a684060acda5642d0fdc6daffc2308e71e2682c5f508090978802eae0a77623c9b90a49f9ae68048d6
8773+
languageName: node
8774+
linkType: hard
8775+
87518776
"set-blocking@npm:^2.0.0":
87528777
version: 2.0.0
87538778
resolution: "set-blocking@npm:2.0.0"

0 commit comments

Comments
 (0)