Skip to content

Commit 3d2b6d9

Browse files
more wallet analytics polish, add contact us link (#1812)
1 parent 1c60d7c commit 3d2b6d9

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

pages/dashboard/wallets/analytics.tsx

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import {
2222
LinkButton,
2323
MenuItem,
2424
Text,
25+
TrackedLink,
2526
} from "tw-components";
2627
import React, { useEffect, useMemo, useState } from "react";
2728
import {
@@ -49,6 +50,7 @@ import { useAddress } from "@thirdweb-dev/react";
4950
import { CustomConnectWallet } from "@3rdweb-sdk/react/components/connect-wallet";
5051

5152
const RADIAN = Math.PI / 180;
53+
const TRACKING_CATEGORY = "wallet-analytics";
5254

5355
const DashboardWalletsAnalytics: ThirdwebNextPage = () => {
5456
const { colorMode } = useColorMode();
@@ -299,13 +301,25 @@ const DashboardWalletsAnalytics: ThirdwebNextPage = () => {
299301
<Flex flexDir="column" gap={8}>
300302
{statsQuery.data && statsQuery.data.timeSeries.length > 0 ? (
301303
<>
304+
<Text size="body.md">
305+
Showing data for the <b>last 7 days</b>. Need more insights?{" "}
306+
<TrackedLink
307+
href="https://thirdweb.com/contact-us"
308+
category={TRACKING_CATEGORY}
309+
label="contact-us"
310+
color="blue.500"
311+
isExternal
312+
>
313+
Contact us.
314+
</TrackedLink>
315+
</Text>
302316
<Flex gap={4}>
303317
<WalletStatCard
304318
label="Connections"
305319
value={totalStasData.totalWallets}
306320
/>
307321
<WalletStatCard
308-
label="Unique Users"
322+
label="Unique Wallets"
309323
value={totalStasData.uniqueWallets}
310324
/>
311325
</Flex>
@@ -317,11 +331,11 @@ const DashboardWalletsAnalytics: ThirdwebNextPage = () => {
317331
>
318332
<Stack spacing={0} padding={{ base: 2, md: 6 }}>
319333
<Heading as="h3" size="subtitle.sm">
320-
Users Connected
334+
Daily Connections
321335
</Heading>
322336
<Text>
323337
Total and unique wallets addresses that connected to your
324-
app.
338+
app each day.
325339
</Text>
326340
</Stack>
327341
<ChartContainer w="full" ratio={21 / 9}>
@@ -346,8 +360,8 @@ const DashboardWalletsAnalytics: ThirdwebNextPage = () => {
346360
Wallet Connectors
347361
</Heading>
348362
<Text>
349-
The different types of wallets used to connect to your
350-
app.
363+
The different types of wallets used to connect to your app
364+
each day.
351365
</Text>
352366
</Stack>
353367
<ChartContainer w="full" ratio={21 / 9}>

0 commit comments

Comments
 (0)