Last Updated on:
Before I teach you how to install Google Analytics with WordPress, you need to know what it is and why you need it.
What Is Google Analytics And Why Do You Need It?
As you publish posts on your website, visitors will start to come. Google Analytics provides the tools you need so you will know all critical data about your traffic. Traffic is commonly known as your site visitors.
As an example, let’s use the data of firsttimeparentguide.com for the last 7 days.
According to the photo:
- There were 4,500 visitors during the previous 7 days.
- I had 5,100 sessions from those visitors.
- My bounce rate was quite high for the last week. 84.68% of the 4500 visitors left my site after reading one post.
- My visitors only stayed for an average of 1 minute and 10 seconds before they left my site.
With this information, I can improve the number of visitors by adding more contents, sharing my posts to social media, or promoting my site via paid ads. The easiest and most cost-effective way to get more visits is by adding new articles.
Increasing the number of sessions would mean adding more internal links. Internal links are links that you put in your post so that they will read another article that you have written.
Lowering the bounce rate is subjective. Sometimes, you don’t know why your visitors left your site immediately. They have probably found the answer just by reading a few paragraphs from your post. Or they have maybe clicked on an affiliate link to buy a product that you reviewed. Bounce rate is not used to measure a website’s success, but it’s always good that it is low.
As for the session duration, it is good to make it higher by writing longer posts or embedding videos in the articles.
These are just some of the useful information that Google Analytics provides. Data that you can leverage on to make better your site.
How To Install Google Analytics With WordPress
Setting up Google Analytics is pretty straight-forward.
1. Go To Google Analytics Sign Up Page.
When you go to Google Analytics sign up page, you will be asked to log in to your Gmail account.
After which you can sign in to your Google Analytics account.
Fill out the form.
Check or uncheck the boxes to get your tracking code.
Agree to the terms and conditions.
Save your Tracking ID. You’ll need it later.
2. Install All-In-One SEO plugin
Configure the settings inside All-In-One SEO. We will only be touching those that we need for Google Analytics.
If your site is hosted thru the SiteRubix, All-In-One (AIO) SEO is one of the plugins that is installed by default. Otherwise, you need to add the AIO plugin manually.
First, log in to your WordPress dashboard. Here’s a screenshot from the Wealthy Affiliate (SiteRubix) dashboard. Do the counterpart wherever you are hosted.
Next, go to the left part of the dashboard and click on Plugins>Add New.
In the upper right search box, type “All In One SEO.”
You’ll see the button “Activate” in the screenshot below since the website we are talking about was built with SiteRubix.
You’ll see “Install Now” if it’s not yet there. Just click “Install Now,” then activate, if that’s the case.
You’ll now see the All-In-One SEO from the left dashboard. Click on the All In One SEO>General Settings.
We will only be looking for the boxes related to connecting your website to your Google Analytics.
In the General Settings of your AIO SEO plugin, look for the “Google Settings” then paste your tracking ID in the “Google Analytics ID” box.
Scroll down and do the following.
- Enable the “Advanced Analytics Options.”
- Tick on the Box “Exclude Users From Tracking>Administrator.
- Check the “Track Outbound Links”
Scroll down to the bottom of the AIO settings and click on “Update Options.”
Again, the settings we have configured is ONLY for Google Analytics. To avoid confusing you, we will cover the other settings configuration in another lesson. 🙂
Visit your site’s homepage, so the settings start to reflect.
Wait for a few seconds or a minute and visit back your Google Analytics account. You should now be able to access the dashboard of Google Analytics.
If you did not tick on the Box “Exclude Users From Tracking>Administrator (You), you would see that you currently have one active visitor, that’s you.
This is a useful function only when you suspect that your Google Analytics is faulty and is not tracking correctly. Otherwise, you will want to exclude yourself from being monitored.
I hope this post has been helpful.
If you have any questions at all, don’t hesitate to drop them below the comments section. I’ll respond ASAP. 🙂
Until The Next Lesson,