Skip to content

Commit

Permalink
Add analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
PolEpie committed Nov 18, 2023
1 parent 438c252 commit 0f639d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"@types/testing-library__jest-dom": "5.14.0",
"@types/webpack": "5.28.0",
"@types/webpack-env": "1.16.2",
"@vercel/analytics": "1.1.1",
"@walletconnect/web3-provider": "1.7.7",
"@web3-react/core": "^6.0.9",
"@web3-react/injected-connector": "^6.0.7",
Expand Down
2 changes: 2 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { QueryClientProvider } from 'react-query';
import { queryClient } from 'config/queryClient';
import { ReactQueryDevtools } from 'react-query/devtools';
import { DataContextProvider } from 'contexts/DataContext';
import { Analytics } from '@vercel/analytics/react';

const MOUNT_NODE = document.getElementById('root') as HTMLElement;
const root = createRoot(MOUNT_NODE);
Expand All @@ -44,6 +45,7 @@ root.render(
<HelmetProvider>
<EthersConnector>
<App />
<Analytics mode={'production'} />;
</EthersConnector>
</HelmetProvider>
<ReactQueryDevtools />
Expand Down

0 comments on commit 0f639d8

Please sign in to comment.