Integrations / Magento 2

Algolia offers search analytics to help you understand how your search meets the expectations of your users. The Algolia extension for Magento Open Source and Adobe Commerce comes with its own Analytics dashboard that shows some of this data. Go to Stores > Algolia Search > Analytics Overview to get started.

Filtering data

You can filter analytics data by store view, index type, and date range. The index types are limited to products, categories, and pages.

By default, Algolia retains the last 90 days of your analytics history. You can extend your analytics retention up to 365 days.

Extended analytics retention is available as an add-on to your pricing plan.

Metrics

The Analytics page provides the following metrics out of the box:

Metric Description
Total searches How many searches were performed. As-you-type searches are aggregated. For example, if a user searches for “iPad”, the queries i, iP, iPa, and iPad count as one search
Users How many unique users performed a search
No results rate Percentage of searches that returned 0 results. The lower, the better
Daily searches A bar chart displaying the number of searches per day in the selected date range. You can reveal more daily statistics by hovering over each bar
Popular searches Which searches are performed most often
Popular results Results that are displayed most often in the results after a search
No results searches Search queries that returned 0 results. Consider adding synonyms to your index, or improve keywords in your data set to reduce the number of no results searches.

Click and conversion analytics

Algolia tracks a search, when the search request contains the clickAnalytics=true parameter. See Click and conversion analytics for more information.

With Click Analytics enabled, you can find these additional metrics in the Analytics dashboard:

Metric Description
Click-through rate (CTR) Percentage of users that click at least one result in a tracked search.
Conversion rate Percentage of tracked searches that lead to a successful conversion. See Click and conversion analytics for more information.
Click position The average position of the clicks in the search results. For example, a click position of 1 indicates that every user clicked on the first result when searching.

If General > Web > Default Cookie Settings > Cookie Restriction Mode is:

  • “No”, it implies the user has given their consent to use cookies. Hence, the useCookie parameter is true for all Insight events.
  • “Yes”, Insight events won’t be allowed without explicit cookie consent.

Algolia Cookie Configuration lets you override the default consent cookie name, DOM selector ID for the cookie acceptance button, and adjust the duration of Algolia cookies.

To examine your cookie settings, go to Stores > Configuration > Algolia Search > Credentials and Basic Setup > Algolia Cookie Configuration in the Magento Admin panel.

Consent Cookie Name

If you’ve incorporated any third-party extensions or made customizations to the cookies on your website, you must update Consent Cookie Name (default is user_allowed_save_cookie) and Allow Cookie Button Selector (default is #btn-cookie-allow).

Algolia Cookie Configuration lets you override the default consent cookie name, DOM selector ID for the cookie acceptance button, and adjust the duration for Algolia cookies.

Allow Cookie Button Selector Id

If you’re using the default Magento cookie notification there are no changes required. However, if you have a custom notification, find and note down the cookie button selector ID from your website’s cookie notification setup.

Did you find this page helpful?