diff --git a/web/components/follow-market-button.tsx b/web/components/follow-market-button.tsx index 92803d6c..82397339 100644 --- a/web/components/follow-market-button.tsx +++ b/web/components/follow-market-button.tsx @@ -10,6 +10,7 @@ import clsx from 'clsx' import { User } from 'common/user' import { useContractFollows } from 'web/hooks/use-follows' import { firebaseLogin } from 'web/lib/firebase/users' +import { track } from 'web/lib/service/analytics' export const FollowMarketButton = (props: { contract: Contract @@ -29,11 +30,17 @@ export const FollowMarketButton = (props: { toast('Notifications from this market are now silenced.', { icon: , }) + track('Unfollow Market', { + slug: contract.slug, + }) } else { await followContract(contract.id, user.id) toast('You are now following this market!', { icon: , }) + track('Follow Market', { + slug: contract.slug, + }) } }} >