On-site search signals

An on-site search represents an action where a user invokes a search feature or faceted navigation. The use of the feature typically results in a filtered set of products or content being offered to the user.

Configuration

Required fields

FieldValuesDefinition
categoryString. Valid value - BehaviorThe category of the signal. For behavioral signals the category should always be “Behavior”.
nameString The name assigned to the signal. Can contain specific information about the signal that differentiates it from other signals.
signalTypeString. For on-site search signals, use
onSiteSearch.
The type of signal being sent. Must be from the set of supported signals.
searchTermStringThe string term that the customer searched for
numberOfResultsNumberThe number of results that matched the search term

Optional fields

FieldValuesDefinition
effectString. Valid values:

- negative
- positive
Describes the effect of the signal on engagement. It is intended to be used for engagement index scoring.
signalCustomAttributesStringAllows for custom attributes that are not predefined by the product

Here is an example:

var PageSignal = {
    signalType: "onSiteSearch",
    name: "onSiteSearch generated by web site",
    category: "Behavior",
    searchTerm: "", // Required
    numberOfResults: 0, // Required
    effect: "", // Required
    signalCustomAttributes: []
}
TLT.logSignal(PageSignal); // Method to push the data to Connect       

Sample payload

{
  "signalType": "onSiteSearch",
  "name": "onSiteSearch from product page",
  "category": "Behavior",
  "searchTerm": "frame",
  "numberOfResults": "4",
  "effect": "positive"
}