Step 7: Adding Experience Optimization to the Content Service
Add Experience Optimization resources, Google Analytics resources and Cartridges to the Content Service.
Procedure
- In the services\ subfolder of your (Session-enabled) Content Service, create a new subfolder experienceoptimization\ and navigate to it.
- Copy the contents of the Experience Optimization installation media folder Content Delivery\roles\content\rest\ to this location.
- Copy the contents of the Experience Optimization installation media folder Content Delivery\roles\api\google-analytics-provider\lib\ to this location.
- Copy the contents of Content Delivery\Ambient Data Framework\cartridges\ to this location.
- Copy the P12 key that you generated when you created your Google Analytics account to this machine.
- Access the configuration location of your (Session-enabled) Content Service.
- Add the following
Cartridgeelements to the file cd_ambient_conf.xml:<Cartridge File="session_cartridge_conf.xml" /> <Cartridge File="smarttarget_cartridge_conf.xml" /> - Copy the installation media file Content Delivery\roles\api\rest\config\cd_client_conf.xml to this location.
- In this file, set the
ServiceUriattribute of theDiscoveryServiceelement to the URL of the Discovery Endpoint, and set theClientIdandClientSecretattributes of theTokenServiceelement to the credentials needed to access the Endpoint. - From the configuration location of the Query Service you installed previously, copy smarttarget_conf.xml to this location.
- In smarttarget_conf.xml, in the
Analyticselement, set thePrivatekeyPathattribute to the location of your Google Analytics P12 key on this machine.