Quite a few people requested I do a tutorial on “Google Analytics” as many wordpress owners haven’t been able to figure out how to set it up! So here in this Tutorial I will show you how you can easily set up Google Analytics in WordPress (Step by Step).
Having a website designed without also setting up the ability to check detailed stats is pointless! Your website is not a brochure or a place just to sell your products! Your website is the best tool to learn exactly how your audience interacts with your website, so having Google Analytics setup asap is crucial for your Business success.
Before we get started, I’d like to just go through a few points on why Google Analytics is so important for Small Businesses.
Why is Google Analytics Important for Small Businesses?
Once you setup a WordPress Website (or any Website for that matter), your #1 goal should be to get more traffic to your site. Google Analytics help you make data-driven decisions by showing you the stats that matter. Google Analytics tracks things like:
Who visits your website?
This part of analytics shows you data about your audience’s geographical location, age range, sex, market sector, which browser or device they used, screen resolution, language and so on.
This data is extremely useful, and it can help in numerous ways. When getting a custom website design, you can use the user data to make sure that your site will be compatible with your audience.
Although many people still browse the internet on Desktops and Tablets, the most used device is now Mobile. If most of your users are on a mobile device, then you need to make sure that your web design is compatible and looks its best with that screen size.
What do people do when they are on your website?
You can also track where the user is going on your website, how long they stay on it, and what is the bounce rate.
Bounce Rate – the percent of users that exit your site on the first visit. The lower the percentage the better!
You can see what pages your visitors are exiting on and if they do stick around, you can see what events occur (what links or buttons they clicked). You can then use this information to decrease the bounce rate and increase page views by making improvements to your call to actions and content.
When do people visit your website?
This is useful especially for those who have a blog and schedule their social media posts! By looking at the hottest hours in the day for your site, you can pick the best time to publish your posts. If that time zone is not compatible with yours, then you can schedule your post from WordPress to meet that hour. If you use a social media schedule app such as Buffer, Hootsuite etc. then you can copy the link to the post and paste it in.
How do people find your website?
This section of the analytics show you where the user came from, for example: Search Engines, Social Media Channels, Direct Links, Referral links from another site etc. It also shows you what percentage visitors came from each of these sources along with a breakdown for each of these categories. If it is the social category, then it shows you which social media platform got you the most traffic, Instagram, Facebook, Twitter etc.
If your top referral source is Instagram, then you need to have exclusive Instagram content to make your Instagram audience feel special. Instagram is pretty hard though unless you can link to articles in your story (available to business profiles (not personal profiles) that have over 10,000 followers on Instagram) or have product tagging ability! You need to engage in a different way than you would with your Facebook as it’s easy to just share the link over there!
This is a crucial information that not only helps you understand your users but it also helps you to improve your SEO because if you connect it to your Google Adwords or Google Search Console (I will cover this another day!) you also get to see what keywords are being used in Google Search Queries that result in people clicking on your website!
How do people interact with your content?
As I briefly mentioned, Google analytics shows you how your users interact with your site’s content. It shows you what percent of the user clicked on which link on your site and lots of other useful stats about your content.
There is a great article here to help you run A/B split tests by creating content experiments in Google Analytics. This will allow you to understand what works best to meet your goals.
Seeing the user interactivity stats, enables you to work your content around your users and focus on the strategies that work for your site.
Simply put, eliminate the guess work and focus on stats that matter, so you can make data driven-decisions on products to sell and services to provide.
Right, so we have discussed why it important to use Google Analytics for your website so lets move on to setting it up on your WordPress site…
HOW TO ADD GOOGLE ANALYTICS TO WORDPRESS
Please Note: If you already have a Google or Gmail account, then you can use that to sign-in to Google and then set up your Google Analytics Account. If you do not have a Gmail account, then you would have to create an account for yourself first!
Step One: Setup a Google Analytics Account
Once you have logged in to your Google account, go to Google Analytics and sign up for an account. If you already have an account go ahead and log in and move on to the next step.
On the next screen, you will be given a choice to choose between a website or mobile app. Make sure you select website. Then you need to enter account name (It will be the Google Analytics profile name for this website), Website name, website’s URL, country, and the time zone.
When you have entered all this info, click on the Get Tracking ID button. You don’t need this to setup the way I am going to show you but you might need to know it in future, so take note of it.
If you don’t know where to Get your tracking ID then go to the Admin Settings on the left hand side (gear icon) then in the second column you will see Tracking Info > Tracking Code > and the “UA-” code under Global Site Tag is your tracking code.
Step Two: Hide Yourself from Stats
So you can get the most accurate information you need to hide your ip address. First find out what that is by Googling “What is my IP address”. Copy this or note this down.
Then go back to your admin settings screen (gear icon on the left) and this time go to “Filters” (its in the third column).
On the screen screen click the red “Add Filter” button. Then enter in everything as shown on the screen using your ip address. It is useful to put “Your Name”or even writing something like Home or Work in as the name of the filter because you might need to hide yourself or colleagues too from different locations. For example: if you access the website on a computer in work and then use your mobile and your laptop at home these are all different ip addresses!
When you have everything entered click save and this will now stop tracking you!
Step Three: Setup Google Analytics on WordPress
There is a few ways to do this but for simplicty I will just cover the easiest method using Monster insights.
Log in to your WordPress website > Plugins > Search for Google Analytics > Choose Monster Insights and Install & Activate it.
MonsterInsights has both a free version and the Pro version. In this tutorial, we will be using the MonsterInsights free version.
You can use the MonsterInsights Pro version if you want more advanced features like Ecommerce tracking, Ads tracking, Author tracking, etc. The process of setting them up is the same.
Upon activation the plugin will add a new menu item labeled ‘Insights’ to your WordPress admin menu. You need to visit Insights » Settings to configure the plugin settings.
On this screen, you need to click on ‘Authenticate with your Google account’ button to connect Google Analytics with your WordPress site.
This will redirect you to Google accounts where you will be prompted to sign in if you are already signed in. After you click next you will be asked to allow MonsterInsights to access your Google Analytics account.
Click on the ‘Allow’ button to continue.
The final step is to select the profile you want to track. Select your website here and then click on the ‘Complete authentication’ button to continue.
You will be now redirected back to your WordPress site.
That’s it! You have now successfully installed and Setup Google Analytics on your WordPress site!
One of my favourite parts about Monster Insights is that you can view your Google Analytics report inside your WordPress dashboard.
Simply visit Insights » Reports page to checkout a quick overview of your analytics data. It does take time though however for stats to start showing!
I hope you enjoyed this Tutorial, if you have any questions leave them in the comments below and be sure to subscribe for updates!