algoliasearchZendeskHC function.
JavaScript
Click and conversion events
To track clicks and conversions for your help center articles, setclickAnalytics to true.
This sends click events when users click search results.
If you have defined conversion events,
you can track them using the algoliasearchZendeskHC.trackConversion() function.
Customize the CSS
To customize the style of the Algolia search interface, add a<style> element:
HTML
index.scss.
Customize the templates
When customizing the templates, include the CSS and JavaScript snippets for the Algolia integration with its full version. This prevents breaking your customizations if templates change between versions. To see which templates you can customize, see the filetemplates.js.
Each template is a key in the defaultTemplates object.
By default, the templates use ES6 syntax.
Some templates use a compile function to compile them with the Hogan.js templating engine.
To prevent conflicts with the Zendesk templates, these templates use square brackets [] instead of curly braces {} inside the compile functions.