Google Analytics is the most powerful website analytics tool out there (and it is free). In this video I will walk you through the entire set-up process, from the initial account set-up.
To set up Google Analytics, you simply need a Google Account. You can either use an existing gmail or Google + account and connect your analytics to that (easiest) or you can create a brand new Google account within the set-up.
Here is the link to Google Analytics:
http://google.com/analytics
Once you have the account set-up, you will be adding the provided "code" to your websites header.php file which is found under Appearance => Editor inside of your WP-Admin area.
If you have any questions about the set-up process, please leave a comment below and I will be more than happy to help you out.
To set up Google Analytics, you simply need a Google Account. You can either use an existing gmail or Google + account and connect your analytics to that (easiest) or you can create a brand new Google account within the set-up.
Here is the link to Google Analytics:
http://google.com/analytics
Once you have the account set-up, you will be adding the provided "code" to your websites header.php file which is found under Appearance => Editor inside of your WP-Admin area.
If you have any questions about the set-up process, please leave a comment below and I will be more than happy to help you out.
Join the Discussion
Write something…
Foobard
Premium Plus
Ok, so after reading the comments and doing some research, I know that you can just add your Google Analytics code to the SEO All-in-one plugin, and you won't have to redo it the next time you update your theme. It also has the added benefit of not hosing your website if you aren't careful.
I do know that there are some GA plugins that integrate Analytics into your WordPress dashboard, but I'm not really into that.
But my research did not answer a question I have: is there a performance benefit to adding it directly to the header.php file? or for that matter, the functions.php file?
I do know that there are some GA plugins that integrate Analytics into your WordPress dashboard, but I'm not really into that.
But my research did not answer a question I have: is there a performance benefit to adding it directly to the header.php file? or for that matter, the functions.php file?
PrimePlace
Premium
Kyle I need Help!
I followed the above video and pasted the code accordingly but it is not updated under real time - overview to show anything as it is still at zero????
<head>
[removed]
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m[removed].insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-97510386-1', 'auto');
ga('send', 'pageview');
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>
[removed]
I followed the above video and pasted the code accordingly but it is not updated under real time - overview to show anything as it is still at zero????
<head>
[removed]
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m[removed].insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-97510386-1', 'auto');
ga('send', 'pageview');
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php wp_head(); ?>
[removed]
JackieSmith
Premium
Hi Kyle,
Where in the header.php file do we add this code? Is it the verification code that is displayed after we have uploaded the html file to the server? I'm not sure if this is related but I added my website to the Webmaster tool about a week ago. I have since updated the theme but when I go into the Webmaster tool, it's still showing the old theme, so I readded the site..it's still showing the old theme. When I go to Google Analytics, even though I am on my website, it doesn't show that there is an active user. Can you please help/advise.
I'm using Yoast NOT the ALL in One SEO. The site in question is hosted here.
Another site of mine that is hosted elsewhere and is using Yoast seems to be working fine in that it shows the Active user count correctly.
Thanks
Where in the header.php file do we add this code? Is it the verification code that is displayed after we have uploaded the html file to the server? I'm not sure if this is related but I added my website to the Webmaster tool about a week ago. I have since updated the theme but when I go into the Webmaster tool, it's still showing the old theme, so I readded the site..it's still showing the old theme. When I go to Google Analytics, even though I am on my website, it doesn't show that there is an active user. Can you please help/advise.
I'm using Yoast NOT the ALL in One SEO. The site in question is hosted here.
Another site of mine that is hosted elsewhere and is using Yoast seems to be working fine in that it shows the Active user count correctly.
Thanks
KachinaB
Premium
I actually had to add my tracking number in my All in One SEO. I did not see the "header" tab in my editor section of my website. I didn't want to break my website so I tried another method. This one works just as well. I wanted to share that to everyone who may have seen something different. Check out the link below for more info Connect Google Analytics with All in One SEO
WAwannab
Premium
It seems okay, however, I don't see a #1 even after going on my site. I did have analytics before getting to this lesson and with the help from Jays training, I am now better able to see and understand the traffic. According to what I am seeing on Analytics, it seems to be working correctly, though.
Thanks Kyle!
Thanks Kyle!