Skip to content

Commit

Permalink
track location
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Sep 26, 2024
1 parent fdd8932 commit 3578ca2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Common/hooks/useFilters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand Down

0 comments on commit 3578ca2

Please sign in to comment.