"Search event notification" indicates that a search has been performed and identifies which terms have been used. It notifies you, via JavaScript, when a visitor performs a search in your eCommerce by using the function connectif.managed.sendEvents.
How to use it
The search event notification uses the entityInfooption in the sendEvents method to enrich the information about the sent events.
Report search event
This object represents the result of a search performed by a web visitor. It includes the following property:
First name | Required | Type | Multiple | Description |
---|---|---|---|---|
search | Yes | string | No | Text of the search performed. |
Example
The notification will look like this:
connectif.managed.sendEvents([
{type: "search", searchText: "something to find" },
{type: "page-visit"}
], { entityInfo, cart });
Keep learning!
To make the most of your Connectif account, we recommend reading these articles next:
- Add Connectif JavaScript to your website, to insert the code and start collecting information about the visits to your site.
- Tag integration, to discover all the notifications you can send from your ecommerce to Connectif and how they work.
- Integration with Connectif via API, to synchronize contacts, products, purchases and vouchers.
- Check the integration with your ecommerce, so you can be confident that your data is syncing correctly with your Connectif account.