Documentation Center

Step 3: Setting up a Google Analytics account

Set up a Google Analytics account to track the Web site you are going to create.

Procedure

  1. Follow the instructions at to obtain a Tracking ID and access your administration screen.
  2. From the PROPERTY menu, select Tracking Info > User-ID to specify a View Name and obtain a View ID.
  3. From the PROPERTY menu, select Custom Definitions > Custom Dimensions to enter the following custom dimensions, in the order specified, each with Scope set to Hit and with Active switched on:
    • Experiment ID
    • Instance ID
    • Publication ID
    • Page ID
    • Region ID
    • Component ID
    • Component Template ID
    • Chosen Variant
  4. In a new browser tab, create a new project in Google Developers Console at https://console.developers.google.com. Logging in with the same Google account, select to create a new project, giving it a name of your choosing.
  5. In the Dashboard screen of your project, select to enable an API and select Analytics API.
  6. In the Credentials screen, create a new service account key of the type P12.
    Google Developers Console stores the key on your machine. (If this is not the machine that contains your Web site, copy the key to that machine.) Make note of the e-mail address associated with this service account.
  7. Switching back to Google Analytics, access your Admin screen and under the View you created, select User Management.
  8. Add the e-mail address of the service account you just created, and enable all rights for this e-mail address.