search

If the visitor successfully performs a search, track this action on the search results page.

Prerequisite: Product Datalayer Pushes per Product from all products found by the search (Documentation: E-Commerce Tracking)

Trackingcommand: "search"

Properties:

namedescriptiontypemandatoryexample
groupA meaningfull groupname for the searchstring
"global site search"
termThe search input termstring
"chair"
countresultsThe number of search resultsint
158
source

If there are different search available on the page, you can differentiate between them by using the source property

f.e. headersearch, subsidiarysearch, facetsearch, ...

string
"headersearch"
goalThe pagetype of the search result page f.e. productlist, cms-page, product-detail-page, ...string
"productlist"

example:

_jts.push({
	"track"		:	"search",
	"group"		:	"global site search",
	"term"		:	"chair",
	"countresults"	:	144,
	"source"	:	"headersearch",
	"goal"		:	"productlist"
});
CODE