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.
- 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.
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.
By clicking on the Create button, Your project will be created and redirects you to your projects list in Console. Go to the Dashboard from the menu navigation > APIs & Services > Dashboard from the left corner icon. Clicking on the project name which you have recently created will take you to your Project Dashboard.
Now you need to select a Library. Go to the Library page from the navigation menu > APIs & Services > Library from the left corner icon. first Search Analytics API and then search the Google Analytics Reporting API, Select & Enable them both one by one
Next, Go to Credentials and click on the CREATE CREDENTIALS button at the top. It will show you three options. You have to click on the OAuth client ID.
In the next step, it will ask you to Configure the Consent Screen, click on the Configure Consent Screen.
In this step, you have to select the user type. so select the External and click on Create button.
After clicking on the CREATE button you will be landed on the next screen. You have to write the name of your application, the authorized domain (make sure not to add the https//:www before your domain)
In the Application Homepage URL enter your website URL including the https. and click on the Save button.
Once you are done with creating the Consent Screen its time to get back to Credentials and click on the CREATE CREDENTIALS button at the very top. and select the OAuth Client ID .
In the next step, it will ask you to select the Application Type, Here you have to select the Web application.
After selecting the application type, you will see the next page, where you have to write the application name. and you have to paste the Authorized Redirects URIs, after pasting the URL click on Create Button and don't close this window. Redirect URI must the same as your application installation URL.
For 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 “Do you want to use your own API keys?” option and get the Redirect URL. Copy the URL and paste it into Authorized redirect URI and click on the create button.
After pasting the Client ID, 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 APIs for Analytics Tracking inside Analytify.