Upgrading smarttarget_conf.xml if you are upgrading from SmartTarget 2011 SP2
The smarttarget_conf.xml file has changed between SmartTarget 2011 SP2 and Experience Optimization 8. Use a migration tool to migrate the file and then, if you are upgrading from SmartTarget 2011 SP2, also manually configure a number of sections in the file.
Procedure
- Back up the
smarttarget_conf.xmlconfiguration file in your configuration location; for example, create a copy of the file calledsmarttarget_conf_old.xml. - Open a command prompt.
- Access the Experience Optimization installation media.
- Access the
Migration\directory. - Run the
configuration_upgrade.jarusing the following command:
wherejava -jar configuration_upgrade.jar "/PATH/smarttarget_conf.xml"PATHspecifies the location to yoursmarttarget_conf.xmlfile.The tool creates a
smarttarget_conf.xml.upgradedfile containing old settings migrated to a new file. - Open
smarttarget_conf.xml.upgradedin a text editor and check the migrated settings. - In the
<IndexServer>section, change the value of the<Location>child element. This value has changed (Experience Optimization deployment now makes use of the Fredhopper Deployment Agent):The following is an example of the oldsmarttarget_conf.xmlsetting:<Location>c:/fredhopper/instance01/FAS/data/xml/incoming/batch/</Location>The following is an example of the newsmarttarget_conf.xmlsetting:<Location>c:/fredhopper/indexer/data/fas-xml-incremental/catalog01</Location> - Also in the
<IndexServer>section, set the value of the<InstanceName>child element to the name of the Fredhopper Index Server. - In the
<SmartTarget><TimeZoneOffset>section of thesmarttarget_conf.xmlconfiguration file, enter the offset:<TimeZoneOffset>0</TimeZoneOffset>For example:<TimeZoneOffset>Description -7The Content Manager system is in a time zone 7 hours earlier than the Content Delivery system. -7:45The Content Manager system is in a time zone 7 hours and 45 minutes earlier than the Content Delivery system. +5The Content Manager system is in a time zone 5 hours later than the Content Delivery system. +5:30The Content Manager system is in a time zone 5 hours and 30 minutes later than the Content Delivery system. - In the
<Analytics>section, enter details of your Google Analytics account:<!-- Analytics --> <Analytics implementationClass="com.tridion.smarttarget.analytics.google.GoogleAnalyticsManager" timeoutMilliseconds="5000" trackingRedirectUrl="/redirect/"> <ServiceAccountEmailAddress/> <PrivatekeyPath/> <AccountId/> <TrackingId/> <ViewId/> <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>TheNote: For more information, see .<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. The<Analytics>element has the following child elements:ServiceAccountEmailAddress- The email account created when you created a Project in the Google Console Developer.
PrivatekeyPath-
The path to the location of the P12 key generated when you created a Project in the Google Console Developer, for
C:/Google/MyProject RS-8235a2fedac7.p12. AccountId- The Account ID created when you set up Google Analytics.
TrackingId- The Tracking ID created when you set up Google Analytics.
ViewId- The View ID created when you set up Google Analytics.
CustomDimensions-
The custom dimensions created when you set up Google Analytics to bring Content Manager data into the platform:
Element Value ExperimentIddimension1InstanceIddimension2PublicationIddimension3PageIddimension4Regiondimension5ComponentIddimension6ComponentTemplateIddimension7ChosenVariantdimension8
- Save your
smarttarget_conf.xml.upgradedfile assmarttarget_conf.xml.