Documentation Center

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

If your SDL Web implementation used the new RESTful, service-based setup of Content Delivery introduced in SDL Web 8, your Presentation Server contains the API (RESTful) Server Role. Copy and merge resources for that Server Role.

Procedure

  1. If you have chosen not to reference the online Content Interaction Libraries (CILs) on NuGet from your Visual Studio project, then, from your Experience Optimization installation media folder Content Delivery\roles\api\rest\dotNet\bin\, copy all files to the bin\ subfolder of the Web application that contains your API (RESTful) Server Role. .
  2. If you use Google Analytics, do the following:
    1. From the installation media folder Content Delivery\roles\api\google-analytics-provider\lib\, copy all files to the bin\lib\ subfolder of the Web application.
    2. Copy the P12 key associated with your Google Analytics account to a location on this machine.
  3. Optionally, if you want to use search terms extracted from the referrer in the search of your Web site, then from the Content Delivery\resources\samples\ installation media folder, copy the file smarttarget.referrers.xml to the bin\config\ subfolder of the Web application.
  4. From the Content Delivery\roles\api\rest\config\ installation media folder, copy the file smarttarget_conf.xml to the bin\config\ subfolder of the Web application.
  5. Merge the contents of the file Content Delivery\roles\api\rest\config\Web.config with the existing Web.config file in the root folder of your Web application.
  6. 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.
  7. Restart the Web site.