Skip to content

Commit

Permalink
Merge pull request #232 from NEARBuilders/analytics
Browse files Browse the repository at this point in the history
Add Vercel Analytics
  • Loading branch information
itexpert120 authored Mar 27, 2024
2 parents c8b01eb + 572e4f1 commit 7f9ad88
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 @@ -15,6 +15,7 @@
"@near-wallet-selector/neth": "^8.5.0",
"@near-wallet-selector/nightly": "^8.5.0",
"@near-wallet-selector/sender": "^8.5.0",
"@vercel/analytics": "^1.2.2",
"@web3-onboard/core": "^2.20.2",
"@web3-onboard/injected-wallets": "^2.10.1",
"@web3-onboard/ledger": "^2.4.6",
Expand Down
2 changes: 2 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ import JoinPage from "./pages/JoinPage";
import Viewer from "./pages/Viewer";
import { KEYPOM_OPTIONS } from "./utils/keypom-options";
import { TrialAccountGenerator } from "./components/TrialAccountGenerator";
import { Analytics } from "@vercel/analytics/react";

export const refreshAllowanceObj = {};
const documentationHref = "https://docs.near.org/bos/overview";
Expand Down Expand Up @@ -234,6 +235,7 @@ function App() {
</Switch>
</Router>
</EthersProviderContext.Provider>
<Analytics />
</div>
);
}
Expand Down
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3774,6 +3774,13 @@
resolved "https://registry.yarnpkg.com/@ungap/structured-clone/-/structured-clone-1.2.0.tgz#756641adb587851b5ccb3e095daf27ae581c8406"
integrity sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==

"@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"

"@walletconnect/browser-utils@^1.8.0":
version "1.8.0"
resolved "https://registry.yarnpkg.com/@walletconnect/browser-utils/-/browser-utils-1.8.0.tgz#33c10e777aa6be86c713095b5206d63d32df0951"
Expand Down Expand Up @@ -10926,6 +10933,11 @@ serve-static@1.15.0:
parseurl "~1.3.3"
send "0.18.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.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7"
Expand Down

0 comments on commit 7f9ad88

Please sign in to comment.