Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Sep 26, 2024
1 parent 3578ca2 commit c0327fa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Common/hooks/useFilters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,17 @@ export default function useFilters({
) => {
query = FiltersCache.utils.clean(query);
_setQueryParams(query, options);

// For each of the newly applied filters (additional filters compared to
// previously applied ones), trigger a plausible goal "Advanced filter
// applied" with the applied filter's query key and current location as tags.
Object.keys(query).forEach((filter) =>
triggerGoal("Advanced filter applied", {
filter,
location: location.pathname,
}),
);

updateCache(query);
};

Expand Down

0 comments on commit c0327fa

Please sign in to comment.