Configuring additional search engines for Experience Optimization

If you need to add additional search engines for Experience Optimization, you can do so by editing the smarttarget.referrers.xml.

About this task

The smarttarget.referrers.xml file contains regular expressions to extract keywords (search terms) from referrer URLs. By default, Experience Optimizationprovides support for Google, Bing, Yahoo and Altavista search engines. You can extend this list by adding a node in the smarttarget.referrers.xml and defining the regular expression to extract the search term for a different search engine.

Procedure

  1. Open the smarttarget.referrers.xml file for editing.
  2. Add a <referrer> element and define a regular expression to extract the search term for a custom search engine
    The following example shows a new "examplesite" search engine added to the configuration:
    <?xml version="1.0"?>
    <smarttarget>
    	<referrers>
    		<referrer name="Google">
    				<![CDATA[.*google\.(?:[a-z\.]+)/search\?.*?q=([^&]+).*]]>
    		</referrer>
    		<referrer name="Yahoo">
    				<![CDATA[.*yahoo\.(?:[a-z\.]+)/search\?.*?p=([^&]+).*]]>
    		</referrer>
    		<referrer name="Bing">
    				<![CDATA[.*bing\.(?:[a-z\.]+)/search\?.*?q=([^&]+).*]]>
    		</referrer>
    		<referrer name="Altavista">
    				<![CDATA[.*altavista\.(?:[a-z\.]+)/web/results\?.*?q=([^&]+).*]]>
    		</referrer>
    		<referrer name="local1">
    				<![CDATA[.*examplesite/search\.jsp\?q=([^&]+).*]]>
    		</referrer>
    	</referrers>
    </smarttarget>
  3. Save and close smarttarget.referrers.xml file.

What to do next

Specify the path to the smarttarget.referrers.xml configuration file in the <Referrers> element in the smarttarget_conf.xml file.