Documentation Center

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

  1. On the SDL Web installation media, navigate to Experience Optimization\Content Delivery\roles\api\google-analytics-provider\lib\.
  2. 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.
  3. Copy all JAR files from the source location to the that folder.
  4. Copy the P12 key associated with your Google Analytics account to a location on this machine.
  5. In the configuration location of the Content Service or Session-enabled Content Service, open cd_smarttarget_conf.xml for editing.
  6. In the Analytics section, specify parameters for the analytics provider you specified in the implementationClass attribute. If you chose the default Google Analytics provider, set values for the following subelements:
    ElementDescription 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
  7. If you use the default Google Analytics provider, in the CustomDimensions subsection, also specify the IDs of the custom dimensions you created in the subelements:
    ElementDescription of value
    ExperimentIdExperiment ID
    InstanceIdInstance ID
    PublicationIdPublication ID
    PageIdPage ID
    RegionIdRegion ID
    ComponentIdComponent ID
    ComponentTemplateIdComponentTemplate ID
    ChosenVariantChosenVariant
  8. Save and close cd_smarttarget_conf.xml.