From 52a2a3d8421d9ac5128a54a5881b19bdd795be3d Mon Sep 17 00:00:00 2001 From: mantikoros Date: Wed, 10 Aug 2022 11:50:21 -0500 Subject: [PATCH] track search --- web/components/contract-search.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/components/contract-search.tsx b/web/components/contract-search.tsx index f3bdbd6a..30be1f6e 100644 --- a/web/components/contract-search.tsx +++ b/web/components/contract-search.tsx @@ -236,7 +236,7 @@ export function ContractSearch(props: { if (newFilter === filter) return setFilter(newFilter) setPage(0) - trackCallback('select search filter', { filter: newFilter }) + track('select search filter', { filter: newFilter }) } const selectSort = (newSort: Sort) => { @@ -244,7 +244,7 @@ export function ContractSearch(props: { setPage(0) setSort(newSort) - track('select sort', { sort: newSort }) + track('select search sort', { sort: newSort }) } if (IS_PRIVATE_MANIFOLD || process.env.NEXT_PUBLIC_FIREBASE_EMULATE) { @@ -263,6 +263,7 @@ export function ContractSearch(props: { type="text" value={query} onChange={(e) => updateQuery(e.target.value)} + onBlur={trackCallback('search', { query })} placeholder={showPlaceHolder ? `Search ${filter} markets` : ''} className="input input-bordered w-full" />