Documentation Center

Search Experience Optimization

The Search Experience Optimization Template Building Block inserts code in your Web pages to implement Search functionality: to display Promotions based on search terms or synonyms of search terms.

You can handle content items related to the search query using the Show Experience Optimization Items Template Building Block.

You can define the following attributes for Search Experience Optimization:
AttributeDescription
Search Type*Specify a type of search:
  • parameter—retrieves the search terms entered by the user from the URL query string. Specify the name of the query string parameter in which you pass search terms in the Query string parameter attribute.
  • referrer—uses the search terms entered in a search engine to search for content items. By default, Experience Optimization provides support for Google, Bing, Yahoo and Altavista search engines. You can configure support for other search engines in the smarttarget.referrers.xml.
  • keyword—uses the search terms specified in the Web page. To implement a keyword search you need to add code to your published Web pages to pass the search term values to Experience Optimization.
Query string parameter

When the value of Search Type is parameter, enter the name of the URL parameter from which Experience Optimization retrieves the search terms. For example, enter q if the URL is google.com/q=example.