Search event notification

 

Questo articolo è attualmente disponibile in inglese e spagnolo. Puoi fare riferimento a questa documentazione mentre arriva nella tua lingua.

"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.

  

This article is part of the guide to creating a custom integration.
If your integration is via a module, this tag will be added to your ecommerce platform automatically.

 

How to use it

The search event notification uses the entityInfooption in the sendEvents method to enrich the information about the sent events.

  

This event is an alternative when implementing the Contact has made a search" tag in your store or website’s HTML.

 

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 });
  

In the example, the page visited event, is also reported, to report both events with a single call to Connectif tracking.

 

 

Congratulations!
You’ve reached the end of the tutorial.

  

Do you have questions?
Don’t forget, our Connectif specialists are here to help you. To contact them, just open a Support ticket by clicking the blue “Help” button on your dashboard.


Keep learning!

To make the most of your Connectif account, we recommend reading these articles next:

Questo articolo ti è stato utile?
Utenti che ritengono sia utile: 0 su 0