Skip to main content
The following code lists all options of the algoliasearchZendeskHC function.
JavaScript

Click and conversion events

To track clicks and conversions for your help center articles, set clickAnalytics 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
You can see all available classes in the file index.scss.
When styling the autocomplete, set debug to true to keep the autocomplete menu open.

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 file templates.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.
Last modified on May 19, 2026