Copying Google Analytics resources to the Content Service
If you use Google Analytics, add the same resources you use for Google Analytics in your API Server Role to the Content Service Server Role.
Procedure
- On your Experience Optimization installation media, navigate to Content Delivery\roles\api\google-analytics-provider\lib\.
- On your target machine, navigate to the subfolder for Experience Optimization (called, for example, experienceoptimization\) that you created under the services\ subfolder of the Content Service or Session-enabled Content Service root location.
- Copy all JAR files from the source location to the that folder.
- Copy the P12 key associated with your Google Analytics account to a location on this machine.
- In the configuration location of the Content Service or Session-enabled Content Service, open cd_smarttarget_conf.xml for editing.
- 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 cd_smarttarget_conf.xml.