Google Analytics Setup
This section describes how to set up Google Analytics. Please follow the steps below.
-
Log into a Google account.
-
Select Start Measuring.
-
Provide the name of your account (usually a company name) and select Next.
-
Provide a Property Name and choose the Reporting Time Zone and Currency.
-
Select Next.
-
Set your industry category and business size.
-
Select Next.
-
Set your business objectives.
-
Select Create.
-
Read the Terms of Service Agreement. Tick the Accept checkbox and select I Accept.
-
Select your platform.
-
Provide the website URL and Stream name, then select Create stream.
Install Google tag
-
At Web stream details, select View tag instructions to install a tag on your website.
-
Select the Install manually tab, which provides guidance on copying and pasting a Google tag.
-
Select the All Accounts dropdown menu at the upper left side of the page.
-
Copy the numbers as they will be required in RPI:
-
Analytics Account number (Account profile ID)
-
Property number (Property ID.)
-
Google Analytics OAuth configuration
This section describes how to configure a Google Analytics web adapter in RPI using OAuth authentication. Please follow the steps below:
-
In a web browser, log into the Developer Console to acquire OAuth credentials such as Client ID, Client Secret, and Redirect URI.
-
Go to Select a project> New Project>Create.
-
Enter your Project name and select Create.
-
Select the OAuth consent screen in the left menu.
-
Choose User Type.
-
Select Create.
-
Add Application name, Support email, Authorized domain, and Developer content information.
-
Select Save and Continue.
-
Copy Authorized domain, as this will be used as the adapter’s Website URL.
Add Scope (1)
-
Filter on "Google Analytics API (3)”.
-
Tick the "Google Analytics API [scope ../auth/analytics]" and "Google Analytics API [scope ../auth/analytics.readonly]" checkboxes.
-
Select Update.
-
Select Save and Continue.
-
If you cannot find Google Analytics Data Api, select Google API Library Link (2):
-
At the search field, type "Google Analytics API".
-
Select Google Analytics API. Select Enable and do the same for Google Analytics Reporting API and Google Analytics Data API.
-
-
Add Test Users or skip.
-
Select Save and Continue.
-
Complete all 4 steps in the OAuth consent screen, and then select Back to Dashboard.
Create credentials
-
Go to Credentials.
-
Select Create Credentials.
-
Select OAuth client ID from the dropdown list.
-
From the Application type dropdown list, select Web application.
-
Enter the name of the OAuth 2.0 client.
-
Copy your Client ID and Client Secret for RPI configuration.