Notifications
You currently have no notifications!
Search
Menu
Close Menu

How can we help you?

Tell us more about your query, we'd be happy to help.
Reference:
How did you hear about us?:
 *
 *
 *
IRP Shopper
Common Tasks (1)
Open
Interventions (1)
Open
Languages (1)
Open
Questions & Answers (1)
Open
Reviews (1)
Open
Site Scripts (1)
Open
Subscriptions (1)
Open
Web Services (1)
Open
IRP Freshdesk
Training Videos
Peer Support

Enabling Google Analytics API with IRP

Google have created an extremely comprehensive API linking to Analytics which allows us to harness the powerful reporting capabilities of Google for tracking visitor numbers, conversion rates and other transactional data.

We have integrated Google’s Analytics API with the IRP for use within the IRP’s own Statistics section and also in IRP World. Statistics are sought from both the IRP and from Google Analytics and this data is combined to provide a comprehensive analysis of a client’s month-by-month progress.

Google have written their own documentation on how to access the Analytics API:

https://developers.google.com/analytics/solutions/articles/hello-analytics-api

There are 3 steps involved in enabling access to the Google Analytics API from a client’s IRP:

  1. Log in to Google
  2. Register project in Google Developers console
  3. Configure IRP Statistic Settings

Step 1. Log In to Google

Please ensure that when logging into Google, the account being used has full access rights to Google Analytics. If the account does not have the sufficient permissions to access Analytics, please ask someone with greater access rights to grant permission to the Google account.

Sign in to Google Developers Console window

Once logged in to an appropriate Google account, verify that the account has access to Google Analytics. Once verified, move to Step 2.

Step 2. Register Project in Google Developers Console

To access the Google Analytics API from a client IRP, a project must be created in the client’s Google Developers Console. This process can be broken down into the following steps:

  1. Create API project
  2. Enable Google Analytics API on new project
  3. Set Up Credentials and Create a Key File
  4. Add Permissions for the Project in Google Analytics
  1. Create API Project
    Google Developers Console Create New Project window
    1. Go to the Google Developers Console and create a project to talk to the IRP:
      https://console.developers.google.com/project?authuser=0
    2. Click Create Project:

    3. Enter the Project Name API Project.
    4. Leave the Project ID as the automatically generated value.
    5. Tick the check box agreeing to the Terms of Service.
    6. Click Create.
    7. Google will redirect to the newly created project dashboard:
      Google Developers Console Project Dashboard

  2. Enable Google Analytics API on New Project
    1. Click Enable and manage APIs.
    2. Scroll down to the Advertising APIs section, click Analytics API and select Enable API.
  3. Set Up Credentials and Create a Key File
    New Credentials menu
    New Service Key Account
    1. Select Credentials from the left navigation menu in the Project Dashboard.
    2. Using the New Credentials drop-down menu, select Service Account Key.
    3. Select a name for the account and select the P12 option for the key type:
    4. Click Create.
      The key file is now downloaded to your Downloads folder by default, from where you can upload it to the IRP via the OAuth P12 Key setting on the IRPStatisticsSettings.aspx screen (see Step 3 in the following section).
  4. Add Permissions for the Project in Google Analytics
    Service account email address
    Add permissions box
    1. Click Manage service accounts on the right side of the main Credentials screen.
    2. Copy the Email address.
    3. You use this email address to populate the OAuth Email Address setting on the IRPStatisticsSettings.aspx screen (see Step 3 in the following section).
    4. Open Google Analytics and navigate to Admin > User Management > Add Permissions for.
    5. Allow ALL permissions using the drop-down menu.
    6. Click Add.

Step 3. Configure IRP Statistic Settings

There are several IRP Statistic Settings associated with the Google Analytics API that you need to configure. To access these, click the cog wheel icon in the top-right corner of the IRPStatistics.aspx screen (you can find this page by going to Statistics > Monthly Statistics or by clicking the 'Enter Costs' button in the bottom nav). You will then be on the IRPStatisticsSettings.aspx page where you can enter values for the following settings in the Google Analytics Settings section:

  • Profile ID
    To find this:
    1. Log in to the Google Analytics Dashboard and click Admin on the top navigation bar.
    2. Click View Settings in the View column.
    3. The View ID (Profile ID) is located under the heading View ID under View Settings.
  • OAuth Email Address
    You can find this in the Permissions section of the Google Developers Console, on the Service Accounts tab. This is the oAuth Email Address connected to the Service account set up against your API Developer's Project in Google Analytics.
  • OAuth P12 Key
    You can get this file in the Credentials section of the Google Developers Console, on the Service Accounts tab. Use this to upload the oAuth .p12 authentication key for your developer's app's Service account.

You can automate statistics by clicking the Automation tab and selecting to repeat on a Daily, Hourly, Weekly or other basis (Daily is generally sufficient). You can also select the time when the automation should first be run.

When you have entered these details, click the Update IRP Statistics button.

NOTE: For other important IRP World settings, see the following help topics: Monthly Statistics (for Statistics Settings) and Common Tasks (for the 'Auto Update IRP Statistics' Common Task).

Live Market Data
Today v Yesterday 0.24%
November 2024 v November 2023 1.44%
YTD 2024 v 2023 6.62%
Arts and Crafts 0.24%
Baby & Child 0.47%
Cars and Motorcycling 0.14%
Electrical & Commercial Equipment 0.22%
Fashion Clothing & Accessories 0.43%
Food & Drink 0.96%
Health and Wellbeing 0.39%
Kitchen & Home Appliances 0.22%
Pet Care 0.72%
Sports and Recreation 0.07%
Toys, Games & Collectables 1.00%

Copyright © 2024 IRP Commerce. Use of this website constitutes acceptance of the IRP World Acceptable Use Policy, IRP World Terms of Use, IRP Privacy Policy and IRP Cookie Policy

IRP Commerce Limited, Concourse 3, Catalyst, BT3 9DT, UK. Company Number: NI 041856. VAT Number: GB 888249658
A Deloitte Fast 50 Company eight times: 2010, 2011, 2012, 2013, 2014, 2018, 2019 & 2020