Configuring the smarttarget.referrers.xml file

The smarttarget.referrers.xml file contains regular expressions to extract keywords (search terms) from referrer URLs.

About this task

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. In a text editor, open the smarttarget.referrers.xml file.
  2. Add a <referrer> element and define a regular expression to extract the search term for a custom search engine:
    <?xml version="1.0"?>
    <smarttarget>
    	<referrers>
    
    <!--
    		<referrer description="CustomSearchEngine">
    			<![CDATA[name\RegularExpression]]>
    		</referrer>
    -->
    
    		<referrer description="Google">
    			<![CDATA[google\.(?:[a-z\.]+)/search\?.*?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.