Author Kyle
2005
5
1
Premium
Ambassador
Rank 1
Unfollow
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.
Join the Discussion
Write something…
Recent messages
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]
Reply
Labman Premium
Why do you need to enter it manually, just add the UA code to the All In One SEO pack and you are done.
Reply
amgolf Premium
I add code to Yoast SEO, in the plugin space.
Reply
varleysheen Premium
I cant find where you add in yoast
Reply
PrimePlace Premium
Thank You It worked!
Reply
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
Reply
Chezbrown Premium
Hi Jackie, if you haven't managed to get this sorted out yet, go to Marion Black and she has an excellent training for this. I found it easier than Kyle's to follow. xx
Reply
MsMerry Premium
Did you also refresh your site after the changes? I use Yoast as well and had no issues. It is probably something simple and you will laugh about it later. :)
Reply
JackieSmith Premium
Thanks Chezbrown. Yes. I was following Marion Blacks training which are brilliant. I will review them again.
Reply
JackieSmith Premium
Thanks MsMerry. I do not have a problem with Yoast on my non- WA hosted site. The problem is with the site hosted here. Even when I remove the site from Webmaster Tools and add it again, it still shows the template I used when I first registered the site so I'm thinking it's something on the WA end. I will try again, maybe third time lucky.
Reply
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
Reply
Gerlinde Premium
You are right! I prefer this option as well! Otherwise with every theme update you have to do it again...
Thanks for the link!
Gerlinde
Reply
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!
Reply
Lilika84 Premium
Thanks, Kyle.
I installed this a few weeks ago; it was a bit different process (as I remember I haven't added code in the WP editor)
Anyways, wanted to ask if it is a mistake to have it installed again (this time I added the code as per your training).
Now I have two accounts for one site.
Is that ok?

Thanks you :)
Sunny
Reply
Top