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

Click and Conversion Analytics #1045

Closed
oliviertassinari opened this issue Sep 15, 2021 · 13 comments
Closed

Click and Conversion Analytics #1045

oliviertassinari opened this issue Sep 15, 2021 · 13 comments

Comments

@oliviertassinari
Copy link
Contributor

Describe the problem

Our team is diving into how we can improve the Algolia search results. Having the access to the clicks and how they change in an A/B test could guide us.

Describe the solution

We could implement https://www.algolia.com/doc/guides/getting-analytics/search-analytics/advanced-analytics/.

@shortcuts
Copy link
Member

Hey @oliviertassinari,

Search Insights are not supported by DocSearch yet. We are planning to support Autocomplete plugins before the v3 stable release, which would make this possible out of the box!

In the meantime, you might find useful informations on the analytics we provide on the dashboard?

@clowder
Copy link

clowder commented May 9, 2022

Search Insights are not supported by DocSearch yet. We are planning to support Autocomplete plugins before the v3 stable release, which would make this possible out of the box!

@shortcuts Is this now possible in v3? There doesn't appear to be a way to pass the insights plugin (created with createAlgoliaInsightsPlugin) to the autocomplete instance used by docsearch.

@yuhan
Copy link

yuhan commented Jun 24, 2022

Hi @shortcuts is there an estimate for support autocomplete plugins in DocSearchModal or DocSearch? Meanwhile, without out-of-box support, what's the best way to send analytics when I want to keep using DocSearchModal? Could you please point me to a guide or example of how to implement the analytics events with DocSearchModal? - Neither of the docsearch, autocomplete, or algolia docs is helpful in this case. Thank you!

p.s. I liked how convenient and flexible Algolia has been but it's been a big pain point (soon to be a deal breaker) that I can't manage to get click and conversion analytics.

@sarahg
Copy link
Contributor

sarahg commented Dec 13, 2022

@shortcuts We're very interested in using click analytics with DocSearch as well. We need to be able to track the "No Clicks" rate in particular as we work on improving result quality.

Is it correct that this is still unsupported? I tried setting it up like this but am not seeing anything coming in on the Algolia side.

Seems like #1688 is a similar question, but for Docusaurus.

Thank you!

@C451
Copy link

C451 commented Dec 17, 2022

I guess the reason is that it requires additional computations, but DocSearch is free, so it's not profitable.
Would be nice to have at least a very simple version: just a list of timestamped search queries, I believe this wont be very heavy (even getting through a REST api would be great).

@shortcuts
Copy link
Member

(Hey there, sorry for the huge delay, provided more context here #1734)

@shortcuts
Copy link
Member

shortcuts commented Dec 27, 2022

For anyone who wants to do a custom DocSearch implementation or contribute to the project by adding the plugins feature, here's what to do:

expose Autocomplete's plugins API at the root of the DocSearch one, and forward it to our internal Autocomplete implementation, then importing the createAlgoliaInsightsPlugin plugin should make insights usable directly from DocSearch

@YosephKS
Copy link

Hey @shortcuts,

I don't follow here your instruction on exposing the plugins API and forward the implementation and so on here 🤔

Can you provide the code for this? I suppose when you mean the root of the DocSearch, it is by swizzling SearchBar component from the @docusaurus/theme-search-algolia

@KoenRijpstra
Copy link

I see that the latest version of autocomplete-core (1.9.2) now has insight included by default: https://github.com/algolia/autocomplete/blob/next/packages/autocomplete-core/src/createAutocomplete.ts#LL72C24-L72C24

Could we update to 1.9.2 and enable insights by default?

@8bittitan
Copy link
Contributor

This has now been added with version 3.5.0. DocSearch now allows to pass in insights: true within the options params.

Also noted in the docs here.

Resolved by #1912

@jfitzgerald
Copy link

jfitzgerald commented Jun 8, 2023

@8bittitan

This has now been added with version 3.5.0. DocSearch now allows to pass in insights: true within the options params.

The example in the docs simply passes insights. Should that be fixed to your example of insights: true?

@8bittitan
Copy link
Contributor

@jfitzgerald yes, sorry about that will fix it! Good catch 😄

@oliviertassinari
Copy link
Contributor Author

Solved in #1904

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

11 participants