Documentation Center

Adding Experience Optimization to your .NET API (RESTful) Role

Copy and merge resources for the .NET API (RESTful) Role.

Procedure

  1. If you want to use search terms extracted from the referrer in the search of your Web site, then from the Experience Optimization\Content Delivery\resources\samples\ installation media folder, copy the file smarttarget.referrers.xml to the bin\config\ subfolder of the Web application.
  2. If you have chosen not to reference the online Content Interaction Libraries (CILs) on Maven from a pom.xml file, then, from the folder api\rest\java\lib\, copy all files to the WEB-INF/lib/ subfolder of the Web application that contains your API (RESTful) Role.
  3. From the Experience Optimization\Content Delivery\roles\api\rest\config\ installation media folder, copy the file smarttarget_conf.xml to the bin\config\ subfolder of the Web application.
  4. Merge the contents of the file Experience Optimization\Content Delivery\roles\api\rest\config\Web.config with the existing Web.config file in the root folder of your Web application.
  5. Configure logging settings by doing the following in Web.config:
    1. Set the log folder location and file name under sharedListeners, in the add child element, by modifying the initializeData attribute. The log path and file name default to C:\SDLWeb\log\experience_optimization.log.
    2. Set the log level by finding the add element with its name attribute set to sourceSwitch and changing its value attribute from its default value Error to one of Warning, Information or Verbose.
  6. Restart the Web site.