Black Friday: deals on the tools I use, up to 83% off. See the deals →

The Best Way To Add Google Services To WordPress – Google Site Kit

OMG, Google made the most essential plugin for all WordPress websites to connect analytics, search console, tag manager, and more -- rolled into one!

Adam Preiser·Updated September 24, 2019·4 min read

Oops, Google is now in the WordPress plugin business!

It makes perfect sense with WordPress powering a 3rd of all websites. I am just surprised that it took them so long to do this.

Google Site Kit is the brand new official Google plugin for WordPress. It helps you connect Google services such as Google Analytics and Search Console to your WordPress website and pulls the data on the right side on your admin dashboard.

With Google Site Kit, you won’t need any other Google Analytics plugins such as Analytify.

Image 83

It also has AdSense PageSpeed Insights integrated with it so you can monitor your site’s performance. The best thing about this plugin? It’s totally free.

Pretty exciting, huh?

I added it already on my website. And, I’m going to show you how to add it on your website, too.

Installing Google Site Kit On Your WordPress Website

Go to https://sitekit.withgoogle.com/ and click on Get developer beta button.

Image 84 1

Scroll down and click on the “download right here” link.

Image 85 1

Now, on your WordPress dashboard, go to Plugins menu and click Add New. Click on ‘Upload Plugin’ and select the Google Site Kit plugin file you have downloaded. Click on ‘Install Now’ then ‘Activate’.

Image 86 1

If you see the ‘Congratulations’ message, click on the ‘Start Setup’ button.

Image 87

Click on the developers.google.com/web/sitekit link.

Image 88 1

You’ll be redirected to a new window with the information about your website. Click on the ‘Get Oauth Credentials’ button.

Image 90 1

A popup showing the “Terms of Service” agreement will display. Tick ‘Yes ‘and click ‘Next.’ Note that if you have a popup blocker, temporarily disable it.

Click on the Copy button and Click ‘Done.’

Image 91 2

Go back to your WordPress dashboard and paste the code in the Client Configuration text area. Click ‘Proceed.’

Image 92 2

The next step is to authenticate your Google account. Click on ‘Sign In With Google’ button.

Image 93 2

Select your account.

Image 94 1

Click on ‘Allow’ on the popup messages.

Image 95 2

You’ll be redirected to your WordPress dashboard. Verify your website and click ‘Continue.’

Image 96 2

And, congratulations! You’re done. Now, ‘Go To Dashboard.’

Image 98 3

You’ll see that you’re connected to Search Console and you can connect with the other three Google Services such as AdSense, Analytics, and PageSpeed Insights.

Connecting Google Analytics

To connect to Google Analytics, simply click on its corresponding Connect Service link.

Image 99 3

Click on ‘Proceed.’

Image 100 2

Select your account. And then, click on the Advanced link. Click Go to [your domain] link.

Image 101 2

Click ‘Allow’ on each popup message until you get redirected to the dashboard. If you don’t have Google Analytics account yet, you can click on Create An Account. If you have an existing account, just click on the Re-fetch My Account link.

If you click on ‘Create An Account,’ you’ll see the Google Analytics area where you have to fill out all the necessary fields.

Once done, click on the Get Tracking ID. Tick on the checkboxes to agree with the terms and click on the I Accept button.

Image 102 1

You can now copy the tracking code into the <HEAD> of every web page that you want to track.

Or, you can go back to your WordPress dashboard and reconnect your account. Then, connect Analytics. You’ll have to repeat the previous steps.

Once you get to the Analytics section, click on ‘Configure Analytics’ button.

Image 103 1

You’re now connected to Google Analytics.

Image 104 1

Connecting PageSpeed Insights

Now, click on the ‘Connect Service’ link under the PageSpeed Insights. This lets you know the performance of your website.

Image 106 2

Click on the link to generate the API Key.

Image 107 2

Click on the Get API Key button.

Image 108 2

Click on the copy button and click ‘Done.’

Image 109 1

Go back to your WordPress dashboard, paste the code, and click ‘Proceed.’

Image 110 1

And, that’s it! If you go to Site Kit’s Settings, you’ll see the Google Services connected to your website.

Image 111

Conclusion

Google Site Kit is indeed revolutionary. Imagine, you don’t have to install third-party plugins to track analytics. It’s very convenient because you can have all Google Services in just one dashboard.

Hopefully, when the beta is complete, it’ll be available in the WordPress repository. So, watch this space for updates.

Adam Preiser
Adam Preiser

I've been teaching people to build and grow their businesses online since 2014, on YouTube and here. I tell you what I'd actually use, and why.

From the comments

22 comments · I've answered 6 of 14 questions

  1. D
    Dim MarJanuary 2020

    Hello Adam.

    Does fhe above process of site kit include the Set up of Ecommerce Tracking code too?

    Have a new year!

    Reply
  2. M
    Marc PitreDecember 2019

    Hey Adam, I configured Sitekit and it rocks on my WP user. However, no other WP users have access to the sitekit data. Have you experienced this? Is there a setting I’m missing? Do you have any thoughts on why this might be happening? I can’t use site kit if the other WP users on my team don’t have access to it.

    Reply
    Adam PreiserWPCrafterDecember 2019

    Do they have different user roles? It may be available to admins only.

    Reply
  3. R
    RyanNovember 2019

    Adam,

    Thanks for this awesome article. I just installed Google Site Kit and connected all services except AdSense.

    I could see all matrices. I deleted the analytics codes from Astra custom layout.

    Now the problem is then the Google analytics ( web) does not show any real time data about how many visitors are presently accessing my website.

    Have I done correct by deleting every piece of code for Analytics and Only connected to the service using site Kit. Have you faced this kind of issues?

    Reply
    Adam PreiserWPCrafterNovember 2019

    That’s very odd because it adds the tracking code.

    Reply
    R
    RyanNovember 2019

    Hey Adam,

    Finally I could able to track it down and it’s working smoothly now. It was a plugin conflict which I was not aware of.

    Thanks

    Reply
  4. A
    Angu Ransom AzehOctober 2019

    Thanks for this. I was almost out of it and decided to get some search on Google Site Kit. Its going to be a good project and hope it will be successful. I was searching a plugin to use on my site and stumbled on this.

    Reply
  5. R
    RohitSeptember 2019

    unable to generate Client Configuration it is always generating API Key, any specific problem or i am missing anything

    Reply
  6. B
    BrittAugust 2019

    This is awesome, thank you so much for these instructions! Worked perfectly first time I tried. Thanks again and keep up the good work!

    Reply

Leave a comment

Ask a question or share what worked for you. Your email won't be published.

The WPCrafter newsletter.

One useful move every other week, read by 10,000+ crafters. Subscribe and I'll send you The Crafter's Stack free, as a thank-you.