Adding Experience Optimization to the deprecated .NET API (in-process) Server Role
You need to install Experience Optimization presentation server-side components (DLL files, JAR files and config files) in the .NET Web application that contains API (in-process).
Procedure
- Experience Optimization
- Navigate to the directory Experience Optimization\Content Delivery\roles\api\in-process\java\lib and copy all files to the lib/ subdirectory of your Web application.
- Navigate to the folder Content Delivery\Ambient Data Framework\configuration\samples\cd_ambient_conf.xml file and do one of the following to configure the Cartridge XML configuration files that are embedded in the JAR files:
- If this file already exists in your Web application classes/ directory, merge the contents of the
<Cartridges>section into this file. - If this file is not present in your Web application classes/ directory, copy the file to this directory.
YourCartridgessection must contain the following Cartridge configurations:<Cartridge File="/smarttarget_cartridge_conf.xml"/> <Cartridge File="/session_cartridge_conf.xml"/>If you have installed the Audience Manager cartridge, make sure it is also configured:<Cartridge File="/audiencemanager_cartridge_conf.xml"/> - If this file already exists in your Web application classes/ directory, merge the contents of the
- Navigate to the directory Experience Optimization\Content Delivery\roles\api\in-process\dotNet\bin\ and copy all files to the bin\ subdirectory of your Web application.
- Navigate to the folder Content Delivery\Ambient Data Framework\configuration\samples\ do one of the following with the cd_ambient_conf.xml file to configure the Cartridge XML configuration files:
- If this file already exists in your Web application classes/ directory, merge the contents of the
<Cartridges>section into this file. - If this file is not present in your Web application classes/ directory, copy the file to this directory.
YourCartridgessection must contain the following Cartridge configurations:<Cartridge File="/smarttarget_cartridge_conf.xml"/> <Cartridge File="/session_cartridge_conf.xml"/>If you have installed the Audience Manager cartridge, make sure it is also configured:<Cartridge File="/audiencemanager_cartridge_conf.xml"/> - If this file already exists in your Web application classes/ directory, merge the contents of the
- Copy the file smarttarget.referrers.xml to the classes/ subdirectory of your Web application.
- Merge the contents of the file logback.xml with the existing logback.xml file in the WEB-INF/classes/ subdirectory of your Web application.
- From the installation media folder Experience Optimization\Content Delivery\resources\samples\ folder, copy the smarttarget_conf.xml file to the config\ subdirectory of your Web application.
Results
- Registering Server Controls
You need to configure your Web application web.config file and add a page directive in your Page Templates to use Server Controls in your Web Application. - Configuring Experience Optimization in the deprecated in-process API
Edit smarttarget_conf.xml in the configuration location of your Web site to configure Fredhopper and Experience Optimization. - Configuring the smarttarget.referrers.xml file
The smarttarget.referrers.xml file contains regular expressions to extract keywords (search terms) from referrer URLs. - Configuring logging
Update your existinglogback.xmlto implement Experience Optimization logging on the Presentation Server. If your Web application does not already have alogback.xmlfile, you can simply rename thelogback_sample.xmlfile tologback.xmland use it directly.