How to Add Google Analytics to Your WordPress Blog
Understand what you will gain by adding Google Analytics to your Wordpress blog., Create a Google Analytics account if you haven't already done so., Once you confirm the login with your Google account, you will be prompted to confirm your sign up...
Step-by-Step Guide
-
Step 1: Understand what you will gain by adding Google Analytics to your Wordpress blog.
Knowing this will help you to decide whether it's the right addition for your site.
In terms of what you'll learn, Google Analytics will allow you to keep track of:
Who visits your site What they do when they are on your website When they visit your website Where did they arrive on your website from How they interact with your site’s content. -
Step 2: Create a Google Analytics account if you haven't already done so.
To do this:
Visit the Google Analytics Signup Page at https://www.google.com/analytics/sign_up.html.
Follow the registration prompts using your own unique username/password combination.
If you already have a Google account (namely, a Gmail, Google Apps, or Google for Business account), you can use those same credentials to log in. ,, Make sure that you've selected the website or it will not work properly on your WordPress site. , This allows Google to ensure that it is tracking the proper information about your page(s).
The most important part is ensuring that the URL of your site in correct.
Just add the root directory of your site. , Copy this tracking code because you will need to enter it in your WordPress site. , Log in to your WordPress site.
From your dashboard, select the Appearance menu on the right hand side.
Select the 'Header' option.
This will load the .php code. , It should be located towards the top.
Paste your Google Analytics tracking code immediately after this opening tag. , Log out of your site and return to your Google Analytics dashboard.
Turn your tracking on via the toggle on the homepage. , Check your Analytics account to verify that it is now tracking. -
Step 3: Once you confirm the login with your Google account
-
Step 4: you will be prompted to confirm your sign up.
-
Step 5: On the next screen
-
Step 6: you will be able to choose between either a website or mobile app.
-
Step 7: Input all of the information about your WordPress site.
-
Step 8: Now you will be presented with Google Analytics tracking code.
-
Step 9: Open a new browser tab.
-
Step 10: Search through the code for the tag.
-
Step 11: Save the changes.
-
Step 12: Refresh your browser's cache by closing and reloading your WordPress site.
Detailed Guide
Knowing this will help you to decide whether it's the right addition for your site.
In terms of what you'll learn, Google Analytics will allow you to keep track of:
Who visits your site What they do when they are on your website When they visit your website Where did they arrive on your website from How they interact with your site’s content.
To do this:
Visit the Google Analytics Signup Page at https://www.google.com/analytics/sign_up.html.
Follow the registration prompts using your own unique username/password combination.
If you already have a Google account (namely, a Gmail, Google Apps, or Google for Business account), you can use those same credentials to log in. ,, Make sure that you've selected the website or it will not work properly on your WordPress site. , This allows Google to ensure that it is tracking the proper information about your page(s).
The most important part is ensuring that the URL of your site in correct.
Just add the root directory of your site. , Copy this tracking code because you will need to enter it in your WordPress site. , Log in to your WordPress site.
From your dashboard, select the Appearance menu on the right hand side.
Select the 'Header' option.
This will load the .php code. , It should be located towards the top.
Paste your Google Analytics tracking code immediately after this opening tag. , Log out of your site and return to your Google Analytics dashboard.
Turn your tracking on via the toggle on the homepage. , Check your Analytics account to verify that it is now tracking.
About the Author
Sarah Anderson
Writer and educator with a focus on practical home improvement knowledge.
Rate This Guide
How helpful was this guide? Click to rate: