Creating a ClientID

  1. Go to the Google Developers Console.
  2. Make sure you login with the Google Account that can access the Analytics Data you want to show in the Dashboard.
  3. Select a project, or create a new one.
  4. In the sidebar on the left, expand APIs & auth.
    Next, click APIs. Select the Enabled APIs link in the API section to see a list of all your enabled APIs. Make sure that the Analytics API is on the list of enabled APIs. If you have not enabled it, select the Analytics API from the list of APIs, then select the Enable API button for the API.
  5. In the sidebar on the left, select Credentials.
  6. To set up a new Web application account, do the following:

    1. Under the OAuth heading, select Create new Client ID.
    2. When prompted, select Web Application and click Create Client ID.
    3. A dialog box appears. To proceed, click Configure consent screen
    4. In the consent screen you need to set a Product name, give a obvious name:

      Only Product name is required, optional content can be empty.
    5. A dialog box appears. Insert into the textarea Authorized JavaScript origins the following:

      And insert into the textarea Authorized redirect URIs the following:
    6. Then click Create new Client ID.
    7. The dialog closes and your new Client ID is being generated.
  7. Copy/Paste the Client ID into the field 'ClientID' below. And copy/paste the Client Secret into the field 'Secret' below.
  8. Before clicking Save you need to know what will happen.
    You will be redirected to Google. There you will be asked to accept the site to access your Analytics Data, so please click Accept.
  9. Please click Save and Accept.