Step 5: Adding Experience Optimization to Content Deployer

Add resources to your Content Deployer Role, and update its configuration, in order to ensure that you can publish to Fredhopper.

Procedure

  1. On the SDL Web installation media, navigate to Experience Optimization\Content Delivery\roles\deployer\experience-optimization\.
  2. On the machine on which you run Content Deployer, navigate to the Content Deployer library folder.
  3. Copy all files from the installation media folder to the Content Deployer library folder.
  4. On the machine on which you run Content Deployer, navigate to the Content Deployer configuration folder.
  5. From the installation media folder Content Delivery\resources\samples\, copy smarttarget_conf.xml to the Content Deployer configuration folder.
  6. On the target location, open smarttarget_conf.xml for editing.
  7. In the <IndexServer> section, do the following:
    1. Set the value of the Url subelement to the value http://HOST:8180, where HOST is the host name of the machine on which the Fredhopper Index Server runs.
    2. In the Authentication subsection, specify valid values for the Username and Password subelements.
    3. In the Deployment subsection, set Location to the full path of the folder in which packages for Fredhopper should be placed, for example, c:/fredhopper/ExperienceOptimization/data/fas-xml-incremental/catalog01. Also, set InstanceName to the name you gave to your Index Server, and set KettleJobName to the filename of the Kettle job you placed in Fredhopper, that is, STJob.kjb.
  8. Save and close smarttarget_conf.xml.
  9. In the Content Deployer configuration folder, open deployer-conf.xml for editing.
  10. Add the following Pipeline section for deployment below the last Pipeline section in the file:
    <Pipeline Id="Tridion-Process-PostCommit" Action="Deploy" Verb="Process">
      <Steps>
        <Step Id="SmartTargetDeploy" Factory="com.sdl.delivery.deployer.steps.TridionExecutableStepFactory">
          <Module Class="com.tridion.smarttarget.deployer.FredHopperDeployerModule" Type="SmartTargetDeploy">
            <Transformer Class=com.tridion.deployer.TCDLTransformer" />
          </Module>
        </Step>
      </Steps>
    </Pipeline>
  11. Add the following Pipeline section for undeployment the section you just added:
    <Pipeline Id="Tridion-Undeploy-PostCommit" Action="Undeploy" Verb="Process">
      <Steps>
        <Step Id="SmartTargetUndeploy" Factory="com.sdl.delivery.deployer.steps.TridionExecutableStepFactory">
          <Module Class="com.tridion.smarttarget.deployer.FredHopperUndeployModule" Type="SmartTargetUndeploy" />
        </Step>
      </Steps>
    </Pipeline>
  12. Save and close deployer-conf.xml.
  13. Open tcdl-conf.xml for editing.
  14. Add the following to the <TCDLEngine> section:
    <TCDLEngine>
    	<TagBundle Resource="com/tridion/smarttarget/tcdl/tagbundle.xml" />
    </TCDLEngine>

    where the value of Resource is a relative or absolute path to the tagbundle.xml file which contains Experience Optimization-specific tags.

  15. Save and close tcdl-conf.xml.