How to Properly Setup Google Analytics in WordPress

How to Properly Setup Google Analytics in WordPress

Want to know how people are finding your site, which blog posts are most popular, or how many of your visitors are using mobile devices? All of that and more can be easily found out using Google Analytics and MonsterInsights. In this article, we’ll show you how to set up your Google Analytics account and install it on your WordPress site using MonsterInsights.

Step 1: Sign In to Google

The first thing you’ll need to do is log in or sign up for a Google account.

To get started, you’ll need to open the Google Analytics website and click the Sign In link in the top right corner of the page.

Sign in to Google Analytics

Then click Analytics at the top of the dropdown menu that appears.

Click Analytics to sign in

On the next page, you can log in to your existing Google account if you have one, or click the Create account link to create a new Google account.

Sign in to Google Analytics or create an account

Step 2: Sign Up For Google Analytics

After you’ve signed in to your Google account, you’ll need to sign up for Google Analytics. Click the Sign Up button on the right side of the page to get started.

Click to sign up for Google Analytics

Next you’ll need to enter the settings for the site you want to start tracking.

Make sure the Website option is selected at the top.

Select Website tracking

Then you can scroll down to enter your website information. You’ll need to name your Google Analytics account, and enter your website name, URL, and industry, as well as your time zone.

Fill in the info needed to create a Google Analytics account

After filling in your website details, you can scroll down a bit to customize your data sharing settings. When you’re finished selecting your options, you can click the Get Tracking ID button at the bottom of the page.

Choose your Google Analytics data sharing options

In the popup window that appears, you can review and accept the terms of service.

Agree to the Google Analytics terms of service to continue

That’s it! You’re now signed up for Google Analytics.

Step 3: Set Up MonsterInsights

Normally, you’d have to insert your Google Analytics tracking code into your WordPress website’s code.

But with MonsterInsights, you don’t need to worry about using any code.

Instead, you can get started by downloading the MonsterInsights plugin. To do that, you’ll need to login to your MonsterInsights account and download the plugin zip file.

Once you have the zip file, navigate to the site where you want to install MonsterInsights and go to the WordPress admin dashboard.

Then navigate to Plugins » Add New and click the Upload Plugin button at the top.

Add new plugin

On the next screen, you can click the Choose File button to select the zip file you just downloaded. Then click the Install Now button to upload the file and install the plugin on your site.

Choose the MonsterInsights plugin zip file to upload

Once the plugin has been uploaded and installed, you can click the Activate Plugin button to activate it on your site.

Activate MonsterInsights

After the plugin is activated, you’ll see a few messages at the top of your dashboard. To set up your Google Analytics account with MonsterInsights, click the Google Analytics settings link.

Click the link to configure your Google Analytics settings

This will bring you to the Insights » Settings menu. Now you can click the Authenticate with your Google account button to start the process.

Click to begin authenticating your Google Analytics account

In the popup that appears, click the Next button.

Start the Google Authentication process

Then click the Click To Get Google Code button.

Click to get your Google Analytics code

Next, you can click the Allow button to give MonsterInsights access to your Google Analytics data.

Allow MonsterInsights to access Google Analytics data

A long string of letters and numbers will be displayed. Copy the code, and then paste it into the field and click the Next button.

Paste your Google Analytics authentication code

Now you can click the Select a profile dropdown to select the website you set up in Google Analytics, and click the Next button.

Select your Google Analytics profile

That’s it! You’re all set.

It can take a few hours for Google Analytics to start collecting data.

Once it does, you can go to Insights » Dashboard to see how your site is doing.

MonsterInsights dashboard

We hope this tutorial helped you to set up Google Analytics with MonsterInsights.

If you liked this article, then please follow us on Twitter and Facebook for more free tutorials.


    Neal Umphred

    Excellent! Easy to follow instructions—even for technically inept people like me.


    My newly setup profile does not come up on this plugin though it’s visible with other GoogleAuth-using plugins? I’ve tried to disable an reinstall the plugin, but still don’t get the correct profile to show up when authenticating.


    Kim Smyth

    I got the tracking code for both my websites, but it won’t let me insert them into the box. I have a .org and a .com and the analytics site said they were free. Why can’t I get the box to open so I can paste my code in?


    I’m so glad I found this! I was getting very frustrated! Thanks


      KeriLynn Engel

      Thank you, Candy! Glad you found it helpful 🙂 Feel free to check out WPBeginner for more beginner-friendly WordPress tutorials!



    Excited try this, but at the last step it won’t let me select my website. It’ll only let me select the alternative which is All Web Site…..


      MonsterInsights Team

      Hi there,
      That’s the correct view. The default Google view for a website is called “All Website Data”. The heading name of the website is there for users who have more than 1 Google view per property and more than 1 property to help them separate their Google view/properties


    G. P. Gautam

    Hello MonsterInsights Team,

    I just try this plugin and setup very well in my website by reading this tutorial. It is really useful and working correctly.

    Thank you.


      KeriLynn Engel

      Thank you, G.P.! Glad you found it useful! You can follow us on Twitter and Facebook for more Google Analytics and MonsterInsights tutorials if you like 🙂


    Deborah Jacobs

    MonsterInsights came preloaded as a plugin with my version of WordPress (version 4.7.3). I am now using WordPress (with the Divi theme) to build my website and am trying to authenticate MonsterInsights with my Google account. Every time I put in the code that is given to me it says “Google Analytics had a connection error. Error code:403. I have tried clearing cookies, using a different browser (have tried both Chrome and Firefox), quit the app, restarted. . . Am at the end of my troubleshooting tricks. Can you please help???
    Many thanks!
    Deborah Jacobs


    adam moskowitz

    I have the code from analytics, and the plugin for monster insights is installed, but there is no traffic to track b/c I can’t seem to figure out the best way to embed the tracking ID on the pages of a WordPress site. I downloaded the Google Tag Manager plugin to help, but it doesn’t yield a method by which to push the code into the site. Under settings/general (word press), I’m asked for the Google Tag Manager ID… I inserted it, but no results show. Does the placement of the tag take time? Am I missing something?


    Christian Nelson

    I really appreciate this very complete step-by-step explanation…unusual to get something this good…thank you.


      KeriLynn Engel

      Thanks so much, Christian! Glad you found it useful 🙂 If you like, you can follow us on Twitter and Facebook for more step-by-step tutorials.


Leave a Reply

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.