Download

Get Client ID, Client Secret and Developer API Key for Google Developers Console Application

Here is a video guide specially made for Analytify WordPress Plugin users.

The following are the simple steps that can help you to get your Client ID, Client Secret and Developer API Key for your Web Apps or WordPress plugins from Google Developers Console. We wrote this tutorial for Analytify users but It can be beneficial for everyone.

Steps to Get Google Client ID and Client Secret key

Step 1

You need to create a Project in Google Developer Console. Click here to go to the Console page. It will ask you to login with your Google Account if you are not logged in already. If you have already created Projects in Google Developers Console, you will see the list of created projects. If not, the following screen will appear.

Step 2

In both scenarios, Click on the ‘Create Project‘ button. A page will redirect, where you will enter ‘Project Name‘ and ‘Project ID‘ which will help you to recognize your project in the console and click on the Create button.

Step 3

By clicking on the Create button, Your project will be created and redirects you to the APIs & Services dashboard.

Step 4

Now you need to select a Library. Go to the Library page from the navigation menu > APIs & Services > Library from the left corner icon.

Now first Search Google Analytics API and then search the Google Analytics Reporting API.

Now Select & Enable both (Google Analytics API & Google Analytics Reporting API) APIs one by one.

Step 5

Once Google Analytics Reporting API and Google Analytics API the are enabled, click Google Analytics API from the left bar as shown.

Step 6

Upon clicking the suggested Google Analytics API from the left bar, choose the OAuth consent screen option from the left side menu.

Then select External Option & click on the Create button

Now add app information and click on save and continue button in all steps.

Note: The following details are mandatory to fill to continue the ongoing process.

  1. App Name*
  2. User Support Email*
  3. Email addresses* 

After the Completion of all steps of adding app information, at the end click on the button Back to dashboard.

On pressing the Back to Dashboard button, you will land to a new page.

Now click on the Publish app and confirm the Publish App by clicking on the Confirm option in Push to production popup screen.

Step 7

After Confirming the App, now click on the Credentials option from the left sidebar menu and click on the create credentials option and select OAuth client ID.

A new window will open where you have to select the Application typeWebsite Application” from the drop-down list.

Now enter Information Name & Authorized redirect URls and click on the Create button.

For the Analytify WordPress plugin, you will get Authorized Redirects URIs from Analytify > Settings > Advanced tab.

After clicking on Create Button a popup will appear where you will find the Client ID and Secret ID. Copy them one by one and paste them inside the Analytify > Settings > Advanced tab.

Here you need to enable the “Setup Custom API keys?” option in Analytify Advanced option then copy your Client Key and Secret one by one and paste into the Analytify Client ID and Client secret including Redirect URL.

After pasting the Google Client ID and Client Secret, and Redirect URL in plugin settings, save the settings and log in with your Google Analytics Account to connect with Analytify.

Next, you have to authenticate your Google Analytics account with Analytify, In order to do this go to Analytify>Authentication and click on Login with your Google Analytics Account

After clicking here you will be redirected to Google Accounts, you have to select your Google Account that is associated with your Google Analytics account.

In the next step, it will ask you to Allow the permissions. you have to click on the Allow button.

You will be redirected back to Analytify>Profiles here you need to select profiles of tracking and profiles for showing analytics inside WordPress Dashboard.

Congratulations! you have successfully implemented the Google Analytics APIs key for Analytics Tracking inside Analytify. This is how you can get the Client ID and Client Secret key from Google Developers Search Console.

App Verification Alert

It is possible that you get the following error of App Verification “ Google hasn’t verified this app” during the authentication of Google Analytics account with Analytify.

Note: You can also continue without app verifcation simply you need to click on the Advanced option in This app isn't verified window and click on the option Go to (unsafe) otherwise you need to verfiy the app.

In order to verify the app, you are suggested to implement the recommended steps as below:

How To Verify The App

The app verification process is not dependant on hardcore work of long hours, but it needs few clicks and understanding the verification of apps. So let’s begin:

Step 1

The very first thing to begin with is to update the OAuth consent screen details in the Google Cloud Platform Console APIs & Services Credentials. By clicking on the Edit App option you will be asked to put  a privacy policy URL , a mandatory detail. You can add URLs for your homepage and Terms of Service if you like, not a mandatory detail.

Owing to which you will get the page to fill the required details to update the OAuth consent screen , pressing the Save and Continue button.

Note:  * You must have privacy policy URL (It is mandatory) and if you have URLs for your homepage and Terms of Service , add them.

After the Completion of all steps of adding app information, at the end click on the button Back to dashboard.

Now click on the Publish app and confirm the Publish App by clicking on the Confirm option in Push to production popup screen.

Note: After you confirma or submit the app the Google Trust and Quality team will contact you through email to verfiy your property ownership through Google search console.

Step 2

After receving email from Google trust and quality team, simply you need to verify your ownership of your domain that you have added during the creation and publish app procedure and make sure that email used to create app should be same in Google search console to ensure the ownership of domain.

That's how you can easily verify your app to avoid the App Verification Alert error.

33 thoughts on “Get Client ID, Client Secret and Developer API Key for Google Developers Console Application

    1. Hey, you are Premium Customer right ??

      You don’t need to enter Keys. Just authenticate and paste the Access code and it should work.

      Check this video for Premium customers.

  1. Hi,

    I just installed the plugin and it looks really great. But I miss the click route people have. Where can I see on a page where people came from and what page they went to after this particular page or post? I can’t find it in the overview.

    Thanks for your reply in advance.

  2. You should update this tutorial. Google has changed its layout and your instructions do not reflect the actual page.

    I am getting a 401 error when requesting “Get your access code”.

  3. Hi,,
    I created oauth for installed application i.e., android correctly, but when i downloaded json file in that client secret key is missing.How do i find it, is google changed their policy? Pls help me to find client secret key.

    1. In recent update to WP Analytify, You don’t need access code. Simply login with your Google account and you will be connect.

      Update your WP Analytify please.

      1. Ok, thanks. How do I update it Adnan!

        Just to let you know, that when I t to get short url from inside my blog, it went error, and then I couldn’t access my pages, so had to deactivate the plugin! So hope the updated version works.

        🙂

        1. This what I get. Please advise. Thanks!

          Fatal error: Uncaught exception ‘Shortify_WP_Google_Service_Exception’ with message ‘Error calling POST https://www.googleapis.com/urlshortener/v1/url: (403) Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.’ in /home3/becomey1/public_html/wp-content/plugins/wp-shortify/src/Google/Http/REST.php:79 Stack trace: #0 /home3/becomey1/public_html/wp-content/plugins/wp-shortify/src/Google/Http/REST.php(44): Shortify_WP_Google_Http_REST::decodeHttpResponse(Object(Shortify_WP_Google_Http_Request)) #1 /home3/becomey1/public_html/wp-content/plugins/wp-shortify/src/Google/Client.php(503): Shortify_WP_Google_Http_REST::execute(Object(Shortify_WP_Google_Client), Object(Shortify_WP_Google_Http_Request)) #2 /home3/becomey1/public_html/wp-content/plugins/wp-shortify/src/Google/Service/Resource.php(195): Shortify_WP_Google_Client->execute(Object(Shortify_WP_Google_Http_Request)) #3 /home3/becomey1/public_html/wp-content/plugins/wp-shortify/src/Google/Service/Urlshortener.php(136): Shortify_WP_Google_Service_Resou in /home3/becomey1/public_html/wp-content/plugins/wp-shortify/src/Google/Http/REST.php on line 79

  4. Help me please. I used gdata.youtube.service to upload video on youtube channel – i have YOUTUBE_DEVELOPER_KEY
    gdata sends me error now. As a solve of this problem i wanted to go for API3 but it tells me to use
    CLIENT_SECRETS_FILE = “client_secrets.json”
    What is it? A once more new KEY? Or I cen gen it from
    YOUTUBE_DEVELOPER_KEY ?

  5. Hi,
    After I configure my own API key, when I try to login with google analytics account I get 403 Forbidden error.
    What is the problem?

  6. Hi,
    After I configure my own analytics API key in the plugin when I try to login to my google analytics account I get 403 forbidden error.
    What is the problem?

  7. I’m getting a similar issue to Mohammad. When I try to authenticate with my own API, it connects to Google, but once I click allow it redirects me back to a 404 page on my site instead of the analytify authentication page.

  8. Hello ! i am trying to authenticate using this script:

    from pydrive.auth import GoogleAuth
    from pydrive.drive import GoogleDrive

    gauth = GoogleAuth()
    gauth.LoadCredentialsFile(‘client_secrets.json’)

    if gauth.credentials is None:
    gauth.LocalWebserverAuth()
    elif gauth.access_token_expired:
    gauth.Refresh()
    else:
    gauth.Authorize()
    gauth.SaveCredentialsFile(“mycreds.txt”)

    drive = GoogleDrive(gauth)

    but i got this error: KeyError: ‘_module’
    how can i fix it ?? thanks !

  9. Thanks a lot, Adnan. It was really helpful. I’ve tried other steps and almost gave up till I met this. I followed the procedure step by step and it got me the result I needed.

Leave a Reply

Your email address will not be published. Required fields are marked *