How to Install Google Analytics in WordPress

Google Analytics is an important tool for any WordPress user. It allows you to see how your audience interacts with your site and a wealth of other critical information. This data is especially useful when having your site custom designed. It gives you the insight and ability to have your site tailor made for the exact wants and needs of your audience.

So what exactly does it show you? It gives information on when someone has visited, where they were sent from, what they did while they were there, and how long they stayed. Sound interesting?

Installing Google Analytics in WordPress

Here is Our Step-By-Step Guide:

Create a Google Analytics Account

Before you can begin, you must first create an account by visiting the Google Analytics Sign Up page. If you are a Gmail user, signup is a breeze. If not, you must first create anĀ account.

    • Sign into Your Account

After you’ve logged into your Google account, you will be prompted to sign up for Google Analytics. On the next screen, you have the option to choose website or mobile app. Select website.

    • Get Your Tracking Id

Next enter an Account Name, your website name, URL, industry, and time zone. Then click the “Get Tracking Id” button. You must agree to the terms and conditions to continue.

    • Install Your Code into WordPress

Now that you have your Google Analytics tracking code, you need to install it onto your WordPress Site. Make sure to leave the Google Analytics tab open so you can save your work later in the process.

Plugin Method

Using a plugin to install Google Analytics is the easiest option and the recommended method for beginners. Simply download the plugin of your choice and paste the tracking code where advised by the text.

Direct Paste Method

If you choose to use direct paste, go to the “Appearance” tab and select “Editor”. There will be a list of templates on the right hand side of the screen. Find “header.php”. Next, use CTRL+F to search for the “</head>” tag. Once you’ve found it, paste the code directly aboveĀ the tag. After all the steps are complete, make sure to click “Update File”.

Functions.php Method

Note: This method should only be used by advanced WordPress users. Simply paste the tracking code in front of your theme’s “functions.php” file.

If you would like to see these instructions in action WPBeginner has an excellent video, you can watch it here:

Now that you have installed Google Analytics, go back to your Google Analytics page and click save. It may take anywhere between 12 and 24 hours for your traffic to appear.

If you want to get serious about your site, then installing Google Analytics is one of the first steps. The wealth of knowledge and insight it provides can help guide the directions of your marketing efforts, content creation, and much more. If you haven’t yet, installing Google Analytics in WordPress can take your site to the next level.

Leave a Reply

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