Click & Conversion Analytics
The Algolia Search for Magento 1 extension is no longer supported (and Magento 1 has reached end of life). However, Algolia does offer a supported extension for Magento Open Source and Adobe Commerce.
This feature of the extension allows you to analyse how your customers are behaving on your website using Algolia’s Click & Conversion Analytics .
In both, autocomplete and instant search page, you can track which products are clicked more, and which search queries lead to more conversions.
This feature is not available on all plans, please refer to Algolia’s pricing page for more details.
Configuration
The analytics feature has four configuration variables:
Enable Click Analytics | Enables the Click Analytics feature if set to “yes” and if your current plan allows it. Default value : No |
DOM selector of a result container on instant search page | Only displayed if the Click Analytics is enabled. Defines the DOM selector that will trigger the click tracking. Note that this selector must contains both “data-objectid” (unique identifier of your product) and “data-position” (its position in the list) attributes to send needed data. Default value : “.ais-infinite-hits--item a.result, .ais-hits a.result” (The default value allows you to track clicks on your product lists whether or not the infinite scrolling is enabled) |
Conversion Analytics mode | Possible values : “Disabled”, “Add to cart”, “Place Order” Enables the Conversion Analytics feature and defines which action triggers the conversion tracking. If set to “Add to cart”, the conversion will be triggered by both instantsearch product listing and product page “add to cart” buttons. If set to “Place Order”, the conversion will be triggered on the Magento checkout success page. Default value : “Disabled” |
DOM selector of a "Add to Cart" buttons | Defines the DOM selector that will trigger the conversion tracking. Note that this selector must contains “data-objectid” (unique identifier of your product) attribute to send needed data. Default value : “.add-to-cart-buttons .btn-cart, .hit-addtocart” (The default value allows you to track conversion on both instantsearch result page and Magento product page) |
Conversion rules
To be considered as “converted”, a product has to be tracked as “clicked” before. This means that if a user goes directly to a product page without clicking on it in the autocomplete menu or in an instant search product listing page and adds it to the cart (or places an order with it), it won’t be tracked as “converted”.
If conversion analytics mode is set to “Add to cart” and the user clicks on the “Add to cart” button of the instant search product listing, the clicked product is both tracked as “clicked” and “converted” at the same time.
If conversion analytics mode is set to “Place order”, and the event is triggered on the Magento checkout success page, this means that the conversion will be tracked only if the order submitting is successful (i.e. if the payment process is finalized without any errors).