In order to start collecting data on your websites traffic, you will need to install a tracking code within WordPress. Google Analytics generally is a good place to start if you are a new webmaster.

There are other 3rd party self hosted and hosted tracking programs as well like piwik, but the install process is more complicated. Google is just the most common tracking tool for webmasters to use, and allows you to verify the website in Googles Search Console as well.

We are going to be using a fake example/domain, but you can follow along with your information.  

Head over to Google Analytics Home Page and sign in.

If you do not have a gmail account, create one before moving to the next step.

Once logged in, you will see a Admin tab on the top main menu. 
Click on that, and create a new account under the Account drop down Menu.

Enter your websites information, and click on “Get Tracking ID

If you are using a custom theme, or another plugin with WordPress.
You can use the website tracking script. 

Otherwise head back to your WordPress dashboard.
Click on the Main Plugins Menu
Then add new

Search for and install:
Google Analytics Dashboard for WP
Plugin Download

by Alin Marcu

Under the Google Analytics General Setting Tab – 
You will see the button to authorize the plugin.

Click on that, and it will take you to a google popup window, with a special authorization code.

Copy and paste this code into the text box in the analytics plugin general settings. It will appear after click on the authorize button. 

Save and select the correct account for this domain.

Being you can have multiple websites/projects on one Google account. You might have to select it after saving the authorization code.

Select it and save changes.

Congrats! You have correctly installed Google Analytics on your site!

You will see a new widget appear on the dashboard. The data is slightly limited, but will give you some quick feedback on how things are going. Otherwise you want to look at the data collected on googles main analytic dashboard. 

You will find this under the reporting tab on Their Dashboard.

Related Articles: