diff --git a/web/pages/home.tsx b/web/pages/home.tsx
index ccf9a585..ee789eea 100644
--- a/web/pages/home.tsx
+++ b/web/pages/home.tsx
@@ -9,6 +9,8 @@ import { ContractSearch } from 'web/components/contract-search'
import { Contract } from 'common/contract'
import { ContractPageContent } from './[username]/[contractSlug]'
import { getContractFromSlug } from 'web/lib/firebase/contracts'
+import { useTracking } from 'web/hooks/use-tracking'
+import { track } from 'web/lib/service/analytics'
const Home = () => {
const user = useUser()
@@ -16,6 +18,8 @@ const Home = () => {
const router = useRouter()
+ useTracking('view home')
+
if (user === null) {
Router.replace('/')
return <>>
@@ -42,7 +46,10 @@ const Home = () => {
diff --git a/web/pages/leaderboards.tsx b/web/pages/leaderboards.tsx
index 1d76ec45..735a00f9 100644
--- a/web/pages/leaderboards.tsx
+++ b/web/pages/leaderboards.tsx
@@ -4,6 +4,7 @@ import { Page } from 'web/components/page'
import { getTopCreators, getTopTraders, User } from 'web/lib/firebase/users'
import { formatMoney } from 'common/util/format'
import { fromPropz, usePropz } from 'web/hooks/use-propz'
+import { useTracking } from 'web/hooks/use-tracking'
export const getStaticProps = fromPropz(getStaticPropz)
export async function getStaticPropz() {
@@ -32,6 +33,8 @@ export default function Leaderboards(props: {
}
const { topTraders, topCreators } = props
+ useTracking('view leaderboards')
+
return (