Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hi @nguyenthixuan

    How much of the examples/details from https://www.algolia.com/doc/guides/building-search-ui/events/js/ have you already utilized?

    I ask this because at the present time, we don’t have a lot of the steps for this enabled in our out-of-box template. For example the insights: true portion or the user token setting. So there’s going to be a certain amount of customization needed to get these parts rolling. I can provide documentation on how to safely override the default templates with your own copy.

    But I get issue that the previus result container not cleared.

    Not quite sure what you mean here.

    Thread Starter nguyenthixuan

    (@nguyenthixuan)

    Hi Michale,
    I followed this their code
    https://codesandbox.io/p/sandbox/github/algolia/doc-code-samples/tree/master/instantsearch.js/algolia-insights?file=%2Fsrc%2Fapp.js
    So instead of using item: wp.template('instantsearch-hit') I return html as in their example and set insights and clickAnalytics to true ,
    For the result, sometimes I get as in screenshot here
    https://postimg.cc/WtfbTkfD
    The result of previous search still display in the container, above current result.

    “I can provide documentation on how to safely override the default templates with your own copy.” I’m graceful if you can provide the document to override template to send conversion event.

    Thanks for your response!

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    If you haven’t touched the instantsearch.php template file at all that we ship with the plugin, then at least at the moment, I’m not sure how you’ve implemented any parts just yet. However if you have code that you’ve used that you can share, I could better and more easily see exactly what you’ve tried thus far. Not just screenshots, just the entire code snippets would be better for me to visualize and comprehend.

    Regarding the default template overrides, check out our documentation at https://github.com/WebDevStudios/wp-search-with-algolia/wiki/Customize-Templates and https://github.com/WebDevStudios/wp-search-with-algolia/wiki/Customize-your-search-page Noted that this is just how to get started with safely customizing them in any way, this won’t cover insights and analytics yet. It’ll cover where to move the instantsearch.php file so that you can edit and use that copy instead of editing the copy in our plugin’s template folder that’d get over written with any update we provide.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Any news or changes here @nguyenthixuan ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Send click and conversion event with default template’ is closed to new replies.