Knowing how your audience interacts with your website is crucial for your success. The best way to know your audience is through your traffic stats and this is what Google Analytics provides for FREE. In this article, we will share how you can install Google Analytics in your WordPress blog.
How to sign-up with Google Analytics
Step 1: First you would need to create a Google Analytics account. To do this, visit Google Analytics Signup Page.
You will see a screen like the one below. If you already have a Gmail account, then use that to sign-in in. If you do not have a Gmail account, then you would have to create an account for yourself.
Step 2: Once you sign-in with your Gmail account, you will be prompted to a screen like the one below. This is where you will sign up for Google analytics with your Gmail account.
Step 3: On the next screen, you will be given choice to choose between a website or a mobile app. Make sure the website is selected.
Currently, Google is offering a Universal Access account, which is in beta and comes with extra features and a classic analytics account. Feel free to choose either of them. Even if you choose classic analytics, you will be upgraded to new features once they come out of beta.
The rest of the information required on the page is quite self-explanatory. You enter your Website’s URL, Account name (it can be anything that you like), country, and time zone.
Once you have entered this information click on the Get Tracking ID button. You will be presented with Google Analytics terms and services which you must agree, so click on I Agree to button.
Step 4: Now you will be presented with a Google Analytics tracking code. Copy this tracking code because you will need to enter it in your WordPress site.
Leave the analytics browser tab open as you will need to revisit it, once you have installed the code on your WordPress site.
How to Install Google Analytics in WordPress
There are 3 ways to install Google Analytics in WordPress. Direct paste, functions.php, and plugins.
Plugins Method (Recommended)
There are tons of plugins available to add Google Analytics to your site. However, it is probably best to just use a simple light-weight plugin like:
Insert Header and Footer
Paste the Google Analytics code into the plugin’s Settings page.
Direct Paste Method
Copy the code that you received in Step 6, and paste it into your theme’s header.php right after the <body> tag.
Note: only use this if you know what you are doing.
Add the following code in your theme’s functions.php file and don’t forget to paste your Google Analytics code from Step 6 here.
Once you have installed Google Analytics on your site, you can go back to the screen from Step 4 and click Save.
Read Also:- How to Add Keyword Placement in Your Article
You can now click on the Reporting tab to see your site’s analytics overview. It takes Google up to 12 – 24 hours to start providing you with the awesome site stats that you need.
Google Analytics is a must-have for every blog, so get it now. If you have any questions then feel free to ask in the comments. If you like this article, then please share it with your friends on Twitter and Facebook.