Skip to content

Commit 6181479

Browse files
committed
add analytics
1 parent ae63a56 commit 6181479

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"start": "next start"
99
},
1010
"dependencies": {
11+
"@vercel/analytics": "^1.4.1",
1112
"framer-motion": "^11.15.0",
1213
"next": "^15.1.2",
1314
"nextra": "^3.2.5",

docs/src/pages/_app.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import '../global.css';
22
import Head from 'next/head';
3+
import { Analytics } from '@vercel/analytics/react';
34

45
export default function App({ Component, pageProps }) {
56
return (
@@ -15,6 +16,7 @@ export default function App({ Component, pageProps }) {
1516
/>
1617
</Head>
1718
<Component {...pageProps} />
19+
<Analytics />
1820
</>
1921
);
2022
}

docs/yarn.lock

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1757,6 +1757,36 @@ __metadata:
17571757
languageName: node
17581758
linkType: hard
17591759

1760+
"@vercel/analytics@npm:^1.4.1":
1761+
version: 1.4.1
1762+
resolution: "@vercel/analytics@npm:1.4.1"
1763+
peerDependencies:
1764+
"@remix-run/react": ^2
1765+
"@sveltejs/kit": ^1 || ^2
1766+
next: ">= 13"
1767+
react: ^18 || ^19 || ^19.0.0-rc
1768+
svelte: ">= 4"
1769+
vue: ^3
1770+
vue-router: ^4
1771+
peerDependenciesMeta:
1772+
"@remix-run/react":
1773+
optional: true
1774+
"@sveltejs/kit":
1775+
optional: true
1776+
next:
1777+
optional: true
1778+
react:
1779+
optional: true
1780+
svelte:
1781+
optional: true
1782+
vue:
1783+
optional: true
1784+
vue-router:
1785+
optional: true
1786+
checksum: 10/c28e6824cccc9be7917f88d744492e03189d7b9f840430d90c016956c713bb61b94955ec0181a80177ef96c3b239fd8ebb9e9f3eb715b3bdf76b2630cb405dad
1787+
languageName: node
1788+
linkType: hard
1789+
17601790
"abbrev@npm:^2.0.0":
17611791
version: 2.0.0
17621792
resolution: "abbrev@npm:2.0.0"
@@ -5600,6 +5630,7 @@ __metadata:
56005630
version: 0.0.0-use.local
56015631
resolution: "react-native-awesome-slider-docs@workspace:."
56025632
dependencies:
5633+
"@vercel/analytics": "npm:^1.4.1"
56035634
autoprefixer: "npm:^10.4.20"
56045635
babel-plugin-react-native-web: "npm:^0.19.10"
56055636
framer-motion: "npm:^11.15.0"

0 commit comments

Comments
 (0)