Algolia Insights Plugin - search-insight - "o is not a function" error
mertcildogan opened this issue · 8 comments
Could you reproduce this somewhere online so we can find what the root cause of this error is?
Oh, it's because you passed createAlgoliaInsightsPlugin({ aa })
instead of createAlgoliaInsightsPlugin({ insightsClient: aa })
Hm, with the incomplete URL, I'm not sure what could cause this. I'd recommend contacting support again for this issue, so they can escalate to the right team (not frontend experiences, but insights api)
Is there any more information in the response?
Is there any more information in the response?
I prepared a simple example. It just contains the suggestion & insights plugin.
https://codepen.io/mertcildogan/full/... (Deleted)
This fixed when I added "useCookie: true" parameter. Thank you very much again. :)
Ah yes, the userToken is indeed required, either via useCookie or passing it yourself.