Documentation Center

<Analytics> element

The <Analytics> element in the Experience Optimization configuration file, smarttarget_conf.xml, specifies configuration settings relating to Google Analytics and your Google developer account.

Procedure

  1. In the configuration location of the Experience Optimization Management service, open smarttarget_conf.xml for editing.
  2. In the <SmartTarget> section, ensure the presence of an <Analytics> section as specified below:
    <Analytics implementationClass="com.tridion.smarttarget.analytics.google.GoogleAnalyticsManager" timeoutMilliseconds="5000">
          <ServiceAccountEmailAddress></ServiceAccountEmailAddress>
          <PrivatekeyPath>C:/temps/My Project RS-8235a2fedac7.p12</PrivatekeyPath>
          <AccountId>12345678</AccountId>
          <TrackingId>UA-12345678-1</TrackingId>
          <ViewId>12345678</ProfileId>
          <CustomDimensions>
               <ExperimentId>dimension1</ExperimentId>
               <InstanceId>dimension2</InstanceId>
               <PublicationId>dimension3</PublicationId>
               <PageId>dimension4</PageId>
               <Region>dimension5</Region>
               <ComponentId>dimension6</ComponentId>
               <ComponentTemplateId>dimension7</ComponentTemplateId>
               <ChosenVariant>dimension8</ChosenVariant>
          </CustomDimensions>
     </Analytics>
    The <Analytics> element has the following properties:
    PropertyDescription
    implementationClassThe class that implements the analytics provider.
    trackingRedirectUrlA relative URL to your Web site redirects folder, by default "/redirect/".
    timeoutMillisecondsThe time in milliseconds to wait to retrieve the Experiment from the analytics provider before timing out.
  3. 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
  4. 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
  5. Save and close smarttarget_conf.xml.