How to Set Up Google Analytics for a WordPress site

This is a guide on how to set up Google Analytics in your WordPress. Google Analytics will provide you with your website’s traffic stats and this information will help you get to know more about your audience. How well you know your audience plays an important role in making your website successful. So let’s get on with the steps of installing Google Analytics in your WordPress site or blog.

  1. Image Completed

    Sign Up for a Google Analytics Account

    Important Note: This guide is meant for websites using WordPress.org and NOT WordPress.com. <span>To sign up for Google Analytics, simply go to <a href="https://accounts.google.com/ServiceLogin?service=analytics&amp;userexp=signup&amp;hl=en" target="_blank" rel="nofollow">Google Analytics Sign Up page </a>.</span>&nbsp;<br><span><br>You’ll need a gmail account to sign up for Google Analytics. So if you don’t have one yet simply <a href="https://accounts.google.com/SignUp?service=mail" target="_blank" rel="nofollow">sign up for Gmail</a>. <br><br>If you already have one simply enter your gmail address and your password then click on the Sign In button. You’ll be taken to a new screen where it says Sign Up for Google Analytics. Simply click on the Sign Up button.</span>

    Edit Remove Move
  2. Image Completed

    Provide Your Website Information

    You will then be asked for your website information. The fields you need to fill out are very easy to understand. <br><ul><li><span>First field is for the URL of your WordPress&nbsp;website (<a href="http://www.yourwebsite%27sname.com/" target="" rel="">www.yourwebsite’sname.com</a>)</span> </li></ul><ul><li>The second field is for the account name you want to use. You can choose any account name you like.&nbsp;</li><li>For the third field, simply click on the drop down arrow and choose the country you are in (example: United States)&nbsp;</li><li>The last field asks for a time zone. Click the drop down arrow and choose your time zone.</li><li>Click the Continue button.</li></ul>

    Edit Remove Move
  3. Image Completed

    Enter Your Contact Details

    Simply fill in the fields. <br><ul><li>Type in your last name&nbsp;</li><li> Type in your first name&nbsp;</li><li>Click on the drop down arrow to select your country or territory.&nbsp;</li><li>Click Continue</li></ul>

    Edit Remove Move
  4. Text Completed

    Agree to the Terms of Google Analytics

    You will need to agree to the terms of Google Analytics to start using it.

    Edit Remove Move
  5. Image Completed

    Copy the Code

    After agreeing to the terms of Google Analytics, you will then be provided with the code you need to paste in your website. This code is very important so don’t lose it. Simply copy and paste the code in a notepad or an HTML editor. Don't close this&nbsp;screen just yet. Keep it&nbsp;open until you have finished installing Google Analytics in your WordPress site

    Edit Remove Move
  6. Image Completed

    Installing Google Analytics in WordPress: Via Direct Paste

    To install Google Analytics in your WordPress website, open your footer.php file and simply copy the code you just received and paste it in your theme’s footer.php just right above the &lt;/body&gt; tag.&nbsp;Don’t forget to click on Update file after pasting the Google Analytics code in&nbsp;See the screenshot for a clearer picture. <br><span><i><br>Sidenote</i>: To open up the footer.php file of your WordPress theme, you can use an FTP client to have access to your server or do the editing of your file themes from your WordPress dashboard. <br></span> To edit your file themes directly from your dashboard: <ul> <li>Go to the sidebar menu and under the Appearance tab you’ll find your file editor. </li> <li>To the right of your text editor you’ll see a list of template files. Go through the list until you see footer.php. Click on it to open.</li> </ul>

    Edit Remove Move
  7. Text Completed

    Installing Google Analytics in WordPress: Via Plugins

    To install Google Analytics using a plugin, simply paste your Google Analytic code in the plugins setting page. You have plenty of choices for plugins to add Google Analytics into your WordPress site. Check out your options for installing Google Analytics in the WordPress plug in directory

    Edit Remove Move
  8. Image Completed

    Click Save and Finish/Check Your Site’s Analytics Overview

    After you have finished installing Google Analytics in your site, go back to the screen where you got the code. Hope you kept it open as mentioned in the instruction under Copy the Code. Simply click on Save and Finish. Once you click this you will be shown your site’s analytics overview. It will take 12-24 hours for Google Analytics to start working and providing you with your site stats. So you’ll probably be seeing an exclamation sign on the status for now.&nbsp;

    Edit Remove Move
  9. Text Completed

    You're Done!

    Congratulations! You have just added Google Analytics into your WordPress site. If you know other ways to install Google Analytics in a WordPress site, feel free to share. 

    Edit Remove Move

Continue learning by following more paths or create your own. Join for FREE

By clicking 'Get Started Free' you agree to our Terms of Service and Privacy Policy