Step 4: Installing the Experience Optimization Management Service
Install the Management Service to enable communication between Content Manager and the Fredhopper Index Server. Have your Google Analytics settings ready.
Procedure
- On the Experience Optimization installation media, navigate to Content Delivery\roles\management\.
- Copy the contents of this folder to a folder of your choosing on your target machine (for example, a machine on which the Fredhopper Index Server runs).
- From your SDL Web Content Delivery server, copy cd_licenses.xml into the config\ subfolder of your target folder.
- In the same folder, open smarttarget_conf.xml for editing.
- Find the
<IndexServer>section and set the value of theUrlsubelement to the value http://HOST:8180, where HOST is the host name of the machine on which the Fredhopper Index Server runs (localhostif you run both on the same server). - In the
Analyticssection, specify parameters for the analytics provider you specified in theimplementationClassattribute. If you chose the default Google Analytics provider, set values for the following subelements:Element Description of value ServiceAccountEmailAddressThe e-mail address you created in the Google Developers Console PrivatekeyPathThe full path and filename of the P12 key you created AccountIdThe ID of the Google Analytics account you created TrackingIdThe Tracking ID of the Google Analytics account ViewIdThe View ID of the view you created in Google Analytics - If you use the default Google Analytics provider, in the
CustomDimensionssubsection, also specify the IDs of the custom dimensions you created in the subelements:Element Description of value ExperimentIdExperiment IDInstanceIdInstance IDPublicationIdPublication IDPageIdPage IDRegionIdRegion IDComponentIdComponent IDComponentTemplateIdComponentTemplate IDChosenVariantChosenVariant - Save and close smarttarget_conf.xml
- In the configuration location of the Management service, open cd_storage_conf.xml for editing.
- Configure the
Storageelement to point to the SDL Web Content Data Store (you can use the Content Deployer's cd_storage_conf.xml file as a reference). - Save and close cd_storage_conf.xml.
- On your target machine, from the target folder, open a PowerShell prompt and run the following command:
& '.\installService.ps1' - Navigate to the location of your SDL Web Content Delivery Discovery Service registration tool (the file discovery-registration.jar).
- If there is no file called cd_storage_conf.xml in this location, copy it from the Discovery Service configuration folder.
- Open cd_storage_conf.xml for editing.
- Find the
ConfigRepositorysection and itsRolessubsection. - Add a
Roleelement and set attributes as follows:Attribute Value NameSmartTargetManagementCapabilityUrlhttp://localhost:8093/management.svc - Save and close cd_storage_conf.xml.
- From a command prompt, run the following command:
java -jar discovery-registration.jar update