Skip to content

How to enable Click Analytics for facet search #744

Discussion options

You must be logged in to vote

Hi @Haroenv,

Nice ! Thanks for this answer/explanation, we successfully used a mix of both your answers to insight a filtering on this facet when user select it in autocomplete.
Something like this in the onSelect :

  onSelect({ itemUrl, itemInputValue, setIsOpen, state }) {
    state.context.algoliaInsightsPlugin.insights.clickedFilters({
      eventName: 'Filter Applied',
      filters: [`facetName:${itemInputValue}`],
      index: indexName,
    });
    {...}
  },

Yours faithfully,
LCDP

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Haroenv
Comment options

Comment options

You must be logged in to vote
2 replies
@Haroenv
Comment options

@francoischalifour
Comment options

Answer selected by Haroenv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants