How to Connect Your Blog to Google Analytics

Categories Start a BlogLast Updated on Last Updated on
Connect your blog to Google Analytics

How to Connect Your Blog to Google Analytics:

Once you start to get traffics to your blog, you would want to analyze it.

Through analytics, you can find out what your users are doing on your blog, how much time they are spending on it, which posts are getting more reads, what is the demographic of your readers etc.

And if you don’t analyze the¬†web traffic that’s coming, you might end up¬†creating content that is actually being ignored on your blog. That is why it is very important to know your reader’s likes and dislikes so that you can create content that they will interact with.

And to analyze your blog’s traffic, Google Analytics is the best place to be. There’s plenty of other analytics tools available in the market but Google Analytics is my favorite, coz it’s absolutely FREE and yet does everything you want.

So, how do you connect analytics to your blog?

Glad you asked; just follow the steps below and you will be good to go.

Step 1: Sign up for a Google Analytics account

Sign up for Google Analytics

Step 2: Set up your account.

Setting up your analytics account

Once you’re done filling up the required fields scroll down and click on the button Get Tracking ID.

Step 3: Accept the terms of service agreement presented by Google. Select India from the drop-down menu and click on I Accept.

Once you are inside and able to see the Tracking ID and the javascript code that means your account has been set up successfully.

Now the only thing left to do here is, implement either the tracking code or the JavaScript into your blog.

You might also like:  How to Start A Blog Today: The A-to-Z Guide for Beginners

There are two ways you can do that and for both, you are going to need a different plug-in. Which means you are free to go with any of the ways you like.

Let’s try the first one…

Connect your blog to Google Analytics account by using the Tracking ID:

On the first way, we will implement the tracking ID. To do that we will need a plug-in like the Google Analytics Dashboard for WP (GADWP). There are other plugins available too, but this one is my favorite.

Step 1: Install the plug-in and activate it.

Need help? Read this >> How to install a WordPress plugin?

Once the plug-in is successfully installed, head over to its general settings. Google Analytics > General Settings

Step 2: Click on Authorize Plugin.

Step 3: Click on Get Access Code.

It will automatically open up a new tab and it will ask you to login to Google. Once you are logged in, the plugin will ask for permission to access your analytics account; click on Allow.

Now it will present you the access code; copy the code and head back to the plugin settings and paste it in the box against Access Code.

Step 4: Click on Save Access Code.

It will now automatically fetch in the tracking code and the basic information of your blog from your analytics account.

Step 5: Select a color if you like for the stats which will show up on your WP dashboard once you start to get traffic.

Click on Save Changes.

That’s it. that was one to connect your blog to Google Analytics.

 

Recommended read for your >> How to connect your blog to Google Search Console.

 

For the second way, we will be using a plugin called SOGO Add Script Header Footer

Connect your blog to Google Analytics account by using the Universal Analytics tracking code:

For this technique, we will have to insert the java scripts provided by Google into your blog’s header.

You might also like:  9 essential settings for your WordPress blog

The disadvantage of Connecting your blog to Analytics by using this method is, you will not be able to see the Google Analytics data in your WordPress dashboard.

If that’s not an issue for you then here is how to connect analytics to your blog by using the website tracking code:

Step 1: Install the SOGO Add Script Header-Footer plugin and activate it.

You will find some other similar plugins in the WordPress repository as well.  But what I like about this plugin is, you can restrict the use of Javascript to individual pages and posts if you want.

Which means if you don’t need to use some scripts to the whole site, then you can skip them. And that’s a good idea because the unnecessary use of javascript will make your blog slow only.

If you have logged out from your analytics account go ahead and log in again.

Follow the steps below to find your tracking information again:

>> On the left bottom corner click on ADMIN

>> A new screen will appear on the right side. Click on Tracking Info in the middle column and then Tracking Code.

 

 

Step 2: Copy the javascript code that you have found (below the tracking ID inside your Analytics account).

Step 3: Go back to your WP dashboard and then go to Settings> Header Footer Settings>  paste the code into the box that says Header.

Step 4: Scroll down and click on Save Changes.

 

That’s it. You have now successfully connected your blog to Google analytics.

If you want to verify whether the website tracking code is implemented properly or not then here is a way:

Login to your Analytics account >Click on Admin > Tracking Info> Tracking Code

Now on to the right side of the Tracking ID you will see a button has appeared and which says Send test traffic, below the Status section.

You might also like:  So, You Have Decided to Start A Blog; Now What?

Click that button; your website will now open up in a new pop-up window, don’t close the window and head back to your analytics account.

If your tracking code is working fine then you should see something like the screenshot below:

If it says, “1 active user right now (including 1 from test traffic)” then go ahead and¬†pat yourself on the back; you deserve it.¬†You have now successfully connected your blog to Google Analytics.

Recommended Read>> How to configure Yoast SEO Plugin to get the most out of your SEO

Final Words:

Congratulation! You are now ready to track your blog’s traffic.

But, your job is not finished yet, this is just the beginning and to be honest, as long as you are sticking to blogging you will have to use this tool every day, I mean literally.

It’s a never ending process, you will have to analyze the data that you are receiving from the tool to determine your readers need and your success rate with it. You will have to constantly analyze the data and figure out ways to improve your work.

Remember…

Nothing is perfect and nothing can be. But you can improve yourself from your yesterday, so can the content you create on your blog.

With that thought, see you soon.

Cheers!

 

P.S. If you have liked what you read today, please share it with your friends and family who you believe might benefit from this.

Subscribe to our newsletters
Never Miss an Update !!

Join the other 1600+ Subscribers. You can unsubscribe at any time if you don't like our content.

Invalid email address
We hate spammers too. Your details are safe with us.

The man behind The Blogging Job. A full-time Blogger and Digital Marketer. A late bloomer in the blogosphere; but I am finally finding my way in and I am here to help you find yours. Join me for the Laptop Lifestyle. Subscribe above!

4 comments

  1. Can you please tell me about “SOGO Add Script Header Footer” plugin and why we need it? I tried reading the description but no luck with that!

    Thank you!

    1. Hi,

      It is simply used to insert Javascripts to your theme’s header and footer.

      With the help of this plugin, you can restrict the effects of the javascript to individual pages. let’s just hypothetically say, you don’t want to track traffic that comes to your pages (not posts), then you can just do that with it.

      Most of the tracking codes you get from third party tools like Webmaster tools, Analytics, and even Facebook pixels are javascript and being a no-coder it is safe to use plugins like SOGO Add Script Header Footer.

      Hope that helped.
      Still have doubts? let me know

      Thanks

  2. I simply must tell you that you have written an excellent and unique article that I really enjoyed reading. I’m fascinated by how well you laid out your material and presented your views. Thank you.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.