From 3578ca23f74883899c6c1d28402cb5cebb8f7cc1 Mon Sep 17 00:00:00 2001 From: rithviknishad Date: Thu, 26 Sep 2024 19:00:06 +0530 Subject: [PATCH] track location --- src/Common/hooks/useFilters.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Common/hooks/useFilters.tsx b/src/Common/hooks/useFilters.tsx index 2d37d0e3217..341d1f19bdb 100644 --- a/src/Common/hooks/useFilters.tsx +++ b/src/Common/hooks/useFilters.tsx @@ -44,7 +44,10 @@ export default function useFilters({ query = FiltersCache.utils.clean(query); _setQueryParams(query, options); Object.keys(query).forEach((filter) => - triggerGoal("Advanced filter applied", { filter }), + triggerGoal("Advanced filter applied", { + filter, + location: location.pathname, + }), ); updateCache(query); };