How to Set Up Google Analytics In WordPress?

How to set up google analytics in wordpressIf you are running an online business, you need an analytic tool to help you to analyze your website’s performance and gain customer insights. Google offers you free web analytic service that help you track and reports website traffic. Today I am going to show you how to set up Google Analytics in WordPress.

I will be showing you how to add a Google Analytics tracking code into your website in WordPress.

What is Google Analytics?

Google Analytics Logo

Google Analytics is a free analytic service offered by Google. It gives the digital analytic tools you need to analyze data from all you website in one place. Google Analytics tools help you to have a deeper understanding of your customer experience and insights.

Basically, Google Analytics helps you to collect data from your websites. This data is then transformed into useful information for you to analyze your website’s performance.

Below are the information you can get from Google Analytics:

  1. Number of new visitor
  2. Number of return visitor
  3. Page Views by visitor
  4. Location of your visitor came from
  5. Traffic channel – Direct, organic search or social
  6. Type of devices used by visitors
  7. And many more.

audience overview

You can start analyzing your website’s traffic with Google Analytics in 3 easy steps:

  1. Sign up for Google Analytics account if you don’t have one yet.
  2. Get a Google Analytics tracking code and add it to your website.
  3. You will be able to start seeing data about your website in a few hours.

Create a Google Analytics Account

Below are the steps to create a Google Analytics account.

  1. First thing first, go to Google Analytics website.
  2. Click Sign In to sign in to your Google account.
  3. If you don’t have a Google account, click more options and select Create account to create a Google account.Google create account
  4. Once you have signed in to your Google account, click Sign Up to create a Google Analytics account.Google Analytics SignUp
  5. Fill in your account name, website name, website URL, and select an industry category and reporting time zone.
  6. Under the Data Sharing Options, check the boxes next to the options that you want.
  7. Lastly, click Get Tracking ID.
  8. The next thing you need to do is to add the tracking code into your website.

Copy Google Analytics Tracking Code

  1. Under Google Analytics side menu, click ADMIN.Google Analytics Admin
  2. In the PROPERTY column, click Tracking Info and then select Tracking Code from the menu.Google Tracking Code
  3. Now you can get the tracking code under the Website Tracking section.
  4. Copy the Global Site Tag (gtag.js) tracking code.
  5. Next, you will need to paste the tracking code into your WordPress website.Google Site Tag

Add Google Analytics Tracking Code into WordPress Site

  1. Log in to your WordPress dashboard and navigate to Appearance » Editor.wordpress editor
  2. Now click the header.php file on the right-hand side below the Theme Files section.wordpress header
  3. Paste the tracking code you copied earlier right before the </head> tag.wordpress paste code
  4. Click Update File button to save.
  5. Now, you have successfully added the Google Analytic tracking code into your website.
  6. You can view your Google Analytics dashboard with this link

Closing Words

Thank you for reading my guide on how to set up Google Analytics in WordPress. I hope you found it useful and I hope you decide to start taking some action today.

Feel free to drop me a comment below if you have any question about setting up Google Analytics in WordPress or any other aspect of online marketing.


To Your Success,

Kwah Choon Hiong


Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.