How can we help?

Table of Contents

Create Google Analytics Client ID and Client Secret

Step 1

  • Navigate to https://console.cloud.google.com/ and select an existing project or create a new one
    Create Google Analytics Client ID and Client Secret 1
  • At the top of the screen, search for Analytics API
    Create Google Analytics Client ID and Client Secret 2
  • Enable the API
    Create Google Analytics Client ID and Client Secret 3

 

Step 2

  • On the same Google Analytics API page, go to Credentials
    Create Google Analytics Client ID and Client Secret 4
  • Click the Create Credentials button, and then from the menu, select API key
    Create Google Analytics Client ID and Client Secret 5

Step 3

  • On the same Google Analytics API page, go to OAuth consent screen
  • Fill in App name, User support email, and Developer contact information fields
    Create Google Analytics Client ID and Client Secret 6
  • Click the Save and continue button until the last page Summary, without changing anything on Scopes and Optional info subpages

Step 4

  • Click the Create Credentials button, and then from the menu, select OAuth client ID
  • Select Web Application, enter Name and paste the Authorized redirect URIs from your MainWP Dashboard > Extensions > Google Analytics > Add Account page, and click the Create button
    Create Google Analytics Client ID and Client Secret 7

Step 5

  • On the Credentials page, click Click Download OAuth client to your computer for later
    Create Google Analytics Client ID and Client Secret 8

 

Step 6

  • Click the OAuth consent screen then click Publish App button & click Confirm Button
    Create Google Analytics Client ID and Client Secret 9

Step 7

  • Locate the Credentials you saved to your computer & open it in a text editor of your choice.
  • Navigate to MainWP > Extensions > Google Analytics > Add Account
  • Enter in your Credentials & click Connect Account
  • Note: ( PROJECT ID = ACCOUNT NAME )
    Create Google Analytics Client ID and Client Secret 10Create Google Analytics Client ID and Client Secret 11

Step 8

  • Select Your Google Analytics Account
  • Click Continue to give consent to your MainWP Dashboard
  • Click Advanced on the SSL Warning ( don’t worry about this – you’re ok )
  • Click Goto Unsafe Website.
    Create Google Analytics Client ID and Client Secret 12Create Google Analytics Client ID and Client Secret 13

Done!

  • Please check the Manage Accounts tab to verify a successful connection
    Create Google Analytics Client ID and Client Secret 14
  • Follow these instructions to assign Google Analytics properties to your Child sites

Important Notes

If the process keeps failing for you, please try a different browser and ensure that any ad-blocker add-ons in your browser are disabled.

The process was verified and updated on May 18, 2022

Still Have a Questions?
Search for additional solutions in the MainWP Community or start your own discussion