<Analytics> element
Experience Optimization uses Google Analytics to track Content Experiments running in your websites and generate statistics on the data collected. The <Analytics> element in the smarttarget_conf.xml file specifies Experience Optimization configuration settings relating to Google Analytics and your Google developer account.
Procedure
- 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:AnalyticsattributesDescription implementationClassThe Java class that implements the analytics provider Value is a fully qualified class name, and defaults to com.tridion.smarttarget.analytics.GoogleAnalyticsManager. This is the implementation class for Google Analytics that ships with Experience Optimization.
trackingRedirectUrlA relative URL to your website redirects folder Default:
"/redirect/"timeoutMillisecondsThe time in milliseconds to wait to retrieve the Experiment from the analytics provider before timing out Default: 5000
- Specify parameters for the analytics provider you specified in the
implementationClassattribute. If you chose the default Google Analytics provider, set values for the following subelements:implementationClasssubelementsDescription ServiceAccountEmailAddressEmail address of the service account that you created in the Google Developers Console PrivatekeyPathFull path and filename of the P12 key you created AccountIdID of the Google Analytics service account TrackingIdTracking ID of the Google Analytics service account ViewIdView 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:CustomDimensionssubelementsDescription ExperimentIdExperiment ID InstanceIdInstance ID PublicationIdPublication ID PageIdPage ID RegionIdRegion ID ComponentIdComponent ID ComponentTemplateIdComponent Template ID ChosenVariantChosen Variant