Setting up Google Analytics
Google Analytics is a Google service that generates detailed statistics about a Web site's traffic and sources and measures conversions and sales. To track Experiments running in your Web sites, you need to set up a Google Analytics account and create a development Project.
Procedure
- Go to the Google Analytics Web site: http://www.google.com/analytics/.
- Log in using your Google Account.
- Click Admin in the menu bar.
- In the Account column, click Create new account and enter your account details.
- Click Get Tracking ID.
The Tracking ID is created. You will need to specify the Tracking ID in the
TrackingIdelement in thesmarttarget_conf.xmlfile. - In the Account Settings, get the Account ID and specify it in the
AccountIdelement in thesmarttarget_conf.xmlfile. - In the View column, select Create new view.
- In the New Reporting View screen:
- Select Website.
- Enter Reporting View Name, for example
My_ID. - Select Reporting Time Zone.
- Click Create View.
The View is created. You will need to specify the View ID in theViewIdelement in thesmarttarget_conf.xmlfile. - In the Property column, open Custom Definitions > Custom Dimensions.
- Click NEW CUSTOM DIMENSION and add the following dimensions:
Custom Dimension Name Index Scope ExperimentId1 Hit PublicationTargetId2 Hit PublicationId3 Hit PageId4 Hit Region5 Hit ComponentId6 Hit ComponentTemplateId7 Hit ChosenVariant8 Hit You will need to specify these Custom Dimensions in the<CustomDimensions>element in thesmarttarget_conf.xmlfile. - Switch to Google Console Developer https://console.developers.google.com and create a Project.
- Enter a PROJECT NAME and PROJECT ID and click Create.
- Click Enable an API.
- Find and enable the Analytics API in the list of APIs.
- In Credentials, click Create new Client ID.
- Select Service Account.
- Click Create Client ID.
- Delete the JSON key which is generated.
- Click Generate new P12 key
The key is downloaded. You will need to copy the key to the machines where your install the Google Analytics Provider (and specify the location in the
PrivatekeyPathelement in thesmarttarget_conf.xmlfile). - Copy the Service Account
EMAIL ADDRESSto your clipboard. - Return to the Google Analytics Web site and navigate to Admin > View > User Management and add this email address granting all rights.
You will need to specify theEMAIL ADDRESSin theServiceAccountEmailAddresselement in thesmarttarget_conf.xmlfile.