Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insight fonctionality compatibility #410

Closed
bidoubiwa opened this issue May 26, 2021 · 3 comments
Closed

Insight fonctionality compatibility #410

bidoubiwa opened this issue May 26, 2021 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@bidoubiwa
Copy link
Contributor

Insight is a feature provided by instantSearch to help user track search analytics.

It is accessible in the InstantSearch component. Where it asks for an insightClient.

const search = instantsearch({
  // ...
  insightsClient: window.aa
});

This feature seems to be working best with algolia insight library as per the following guide: Send Insight Events

But as InstantSearch tend to be an open-source project not only accessible to algolia they also provide the possibility of providing your own insight client, see insight middleware references.

My investigation stopped there and I can't say with guarantee another insight API that is not algolia can be used.

@bidoubiwa bidoubiwa changed the title Test insight fonctionality Insight fonctionality compatibility May 26, 2021
@bidoubiwa bidoubiwa added the help wanted Extra attention is needed label Jun 1, 2021
@bidoubiwa
Copy link
Contributor Author

With the update on insight, it is now only possible to use it with algolia. Closing

@AntoineDuComptoirDesPharmacies

Hi @bidoubiwa,

We are currently evaluating Meilissearch in replacement of Algolia.
Currently with Algolia we are creating an insigtsClient from search-insights library and we are passing it to :

  • InstantSearch DOM node
  • Autocomplete DOM node using createAlgoliaInsightsPlugin from @algolia/autocomplete-plugin-algolia-insights

The problem is that it produce some errors and insights are not sent.

Uncaught Error: Could not infer `queryID`. Ensure `clickAnalytics: true` was added with the Configure widget.
See: https://alg.li/VpPpLt

We do not understand your last messasge on this issue. Are the insights and insight client supposed to work ?
Do we have to change the insight client to use one from meilisearch ?

Yours faithfully,
LCDP

@curquiza
Copy link
Member

Hello @AntoineDuComptoirDesPharmacies

Maybe @Strift can help here 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants