<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
- In the configuration location of the Experience Optimization Management service, open smarttarget_conf.xml for editing.
- 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:Property Description 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. - 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.