Skip to content

Commit

Permalink
add analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
the-kwisatz-haderach committed May 19, 2024
1 parent 9c97c4f commit 198bceb
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"@storyblok/react": "^2.4.7",
"@tanstack/react-query": "^4.24.4",
"@tanstack/react-query-devtools": "^4.24.4",
"@vercel/analytics": "^1.2.2",
"@vercel/kv": "^0.2.3",
"clsx": "^2.0.0",
"cookie": "^0.6.0",
Expand Down
2 changes: 2 additions & 0 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import App, { AppContext, AppProps } from 'next/app'
import { ReactElement, useState } from 'react'
import { appWithTranslation } from 'next-i18next'
import { Analytics } from '@vercel/analytics/react'
import {
AppProvider,
IAppContext,
Expand Down Expand Up @@ -59,6 +60,7 @@ function MyApp({
<ReactQueryDevtools initialIsOpen={false} />
</Hydrate>
</QueryClientProvider>
<Analytics />
</ChakraProvider>
)
}
Expand Down
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2223,6 +2223,13 @@
dependencies:
isomorphic-fetch "^3.0.0"

"@vercel/analytics@^1.2.2":
version "1.2.2"
resolved "https://registry.yarnpkg.com/@vercel/analytics/-/analytics-1.2.2.tgz#715d8f203a170c06ba36b363e03b048c03060d5d"
integrity sha512-X0rctVWkQV1e5Y300ehVNqpOfSOufo7ieA5PIdna8yX/U7Vjz0GFsGf4qvAhxV02uQ2CVt7GYcrFfddXXK2Y4A==
dependencies:
server-only "^0.0.1"

"@vercel/kv@^0.2.3":
version "0.2.3"
resolved "https://registry.yarnpkg.com/@vercel/kv/-/kv-0.2.3.tgz#182419a8e44fcc7ff1638522f8d79a1846d99795"
Expand Down Expand Up @@ -7946,6 +7953,11 @@ semver@^7.3.5, semver@^7.5.4:
dependencies:
lru-cache "^6.0.0"

server-only@^0.0.1:
version "0.0.1"
resolved "https://registry.yarnpkg.com/server-only/-/server-only-0.0.1.tgz#0f366bb6afb618c37c9255a314535dc412cd1c9e"
integrity sha512-qepMx2JxAa5jjfzxG79yPPq+8BuFToHd1hm7kI+Z4zAq1ftQiP7HcxMhDDItrbtwVeLg/cY2JnKnrcFkmiswNA==

set-blocking@^2.0.0:
version "2.0.0"
resolved "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz"
Expand Down

0 comments on commit 198bceb

Please sign in to comment.