This article is general for Shopify, BigCommerce, Wix, WooCommerce, Magento 1, Magento 2.
The Google Analytics integration allows Searchanise to automatically send search-related events to your Google Analytics 4 (GA4) property. This enables you to measure customer interactions with search, recommendations, and product discovery, and analyze their impact on conversions.
Prerequisites
Before enabling the integration, make sure that:
- Google Analytics 4 (GA4) is configured for your store.
- Google Analytics is installed on your storefront.
Enable Google Analytics Events
- Go to Searchanise Search & Filter control panel > Integrations section > Google Analytics.
- Set the toggle for Analytics events to on.
- Apply the changes.
After the setting is enabled, Searchanise automatically starts sending supported GA4 events.
Supported Events
| Event | Description | Parameters | Event type |
|---|---|---|---|
| search | Sent after a search query returns results. The event is sent once for each new search query, including searches with no results. | search_term, results_count, searchanise_widget | Standard |
| view_item_list | Sent when a list of products is displayed in search results, recommendation widgets, or collection pages. | item_list_id, item_list_name, items[], search_term (search only), page_type (recommendations only) | Standard |
| view_item | Sent when a customer clicks a product or opens Quick View from a Searchanise product list. | item_list_id, item_list_name, items[], search_term (search only), page_type (recommendations only), interaction_type | Standard |
| add_to_cart | Sent when a customer adds a product to the cart after interacting with Searchanise. The event preserves the context of the original Searchanise product list. | item_list_id, item_list_name, items[], search_term (search only), page_type (recommendations only) | Standard |
| select_content | Sent when a customer clicks a non-product search result, such as a page, blog post, or collection (category). | content_type, content_id, search_term, searchanise_widget | Standard |
| snize_suggestion_click | Custom event sent when a customer selects an autocomplete suggestion. | search_term, suggestion, suggestion_type | Custom |
| snize_filter_apply | Custom event sent when a customer applies a filter in search results. | filter_name, filter_value, search_term, results_count, item_list_id, item_list_name | Custom |
Event Parameters
The following parameters may be included in one or more events.
| Parameter | Description |
|---|---|
| search_term | The customer’s search query. Included only for search-related events. |
| results_count | Number of products returned for the search query. A value of 0 indicates that no matching products were found. |
| searchanise_widget | The Searchanise widget where the interaction occurred: instant_search or search_results. |
| item_list_id | A unique identifier of the product list, such as search:isw, search:srw, collection:{collection_id}, or recommendation:{identifier}. |
| item_list_name | A human-readable name of the product list displayed to customers. |
| items[] | The GA4 array containing information about the products associated with the event. |
| page_type | The page where a recommendation widget is displayed, such as home, product, collection, cart, or search. This parameter is included only for recommendation events. |
| interaction_type | Indicates how the product was opened: product_click or quick_view. |
| content_type | Type of non-product content selected, such as blog, page, or collection. |
| content_id | Identifier of the selected non-product content. |
| suggestion | The autocomplete suggestion selected by the customer. |
| suggestion_type | Type of autocomplete suggestion: popular or did_you_mean. |
| filter_name | Name of the applied filter. |
| filter_value | Selected filter value. |
Additional Information
- Searchanise uses standard GA4 events whenever a corresponding GA4 event exists. Custom events are used only for Searchanise-specific interactions.
- Search-related events include the
search_termparameter whenever applicable. - If Google Analytics is unavailable, Searchanise safely skips event delivery without affecting your storefront or causing JavaScript errors.