Adding Experience Optimization to your .NET API (RESTful) Role
Copy and merge resources for the .NET API (RESTful) Role.
Procedure
- 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.
- 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.
- 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.
- 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.
- Configure logging settings by doing the following in Web.config:
- Set the log folder location and file name under
sharedListeners, in theaddchild element, by modifying theinitializeDataattribute. The log path and file name default to C:\SDLWeb\log\experience_optimization.log. - Set the log level by finding the
addelement with itsnameattribute set tosourceSwitchand changing itsvalueattribute from its default valueErrorto one ofWarning,InformationorVerbose.
- Set the log folder location and file name under
- Restart the Web site.