Step 7: Setting up Experience Optimization in a .NET website

Copy and merge resources used by Experience Optimization to your .NET API (RESTful) Role.

Before you begin

The .NET web application to which you add Experience Optimization resources must have the API (RESTful) Content Delivery Role installed.

Procedure

  1. Access your installation media and go to the following folder: Content Delivery\roles\xo\api\rest\dotnet\bin\
  2. Copy the following DLLs from the installation media to the bin/ subdirectory of your .NET web application:
    • Sdl.Web.Experience.dll
    • Tridion.Smarttarget.dll
  3. On the installation media, go one folder down to the bin\config\ folder.
  4. Copy or merge files from the installation media to the config/ subdirectory of the web application, as follows:
    1. smarttarget_conf.xml — Copy the file. You will configure settings in the file in a later task.
    2. cd_client_conf.xml — If you have an existing file in your web application, merge the file with the existing file. Additional configuration will be needed in the next step.
  5. Open your web application's cd_client_conf.xml file for editing and do the following:
    1. Locate the DiscoveryService element, and edit the discoveryurl to point to your Discovery Service.
    2. Save and close cd_client_conf.xml.
  6. In the root folder of your .NET website, open Web.config for editing.
    1. Inside the pages section, in the <controls> section, add the following element:
      <add tagPrefix="smarttarget" namespace="Tridion.SmartTarget.Web.UI" assembly="Tridion.SmartTarget" />
    2. In the <handlers> section, add the following element:
      <add name="XO Experiment Tracking" path="/redirect/*" verb="*" type="Tridion.SmartTarget.Analytics.TrackingRedirect" resourceType="Unspecified" />
    3. Save and close Web.config.
  7. Restart the web application.