- [Narrator] In the last video,
we created a google analytics account
under our main google account,
and we stopped at this part here.
We were presented with this tracking code.
Now, we're at the point where we can finally
take that last step before we can see
the actual reports of our website analytics,
and this step is to install this javascript code
on the site that you're going to track.
Now, I need to pause for a minute
and say this is not an in-depth course
on how to install Googleitics
which can require some web development background.
This course is mostly about how to use Google Analytics.
In order to get you going, I'm going to
show you the process for how you might install this code
and a bit how it works, but you should be warned
that every website is different.
And, if you aren't familiar with how the code
on your site works, you should stop right now,
and get the help of your site admin or developer.
So, say example, I'm gonna show you a simple site,
but again it doesn't mean your site is going
to be coded in this exact same way.
So, if you're here, and you want to come back here,
it's simple enough.
If we're somewhere else, say back at the home screen,
we would come back to the admin section down here;
come on over, select your account, select your property,
and then come down here to tracking info,
and click on tracking code,
and that's how you get back to this spot.
You're going to simply copy this data here.
It's got some more information here too.
We've got our tracking ID, this UA number,
that often we're going to be asked for,
and then, of course, if you'll notice this actually uses
a google tag manager in the background.
We're going to paste this one in directly,
but I want to have a quick plug
for the Google Tag Manager Course.
If you have a lot of these scripts to track on your site,
if you're going to be using a lot of tags,
then I highly recommend you check that out.
There is a Lynda course here
that I've done on Google Tag Manager,
and it can really make your life a lot simpler
when trying to manage all these different tags.
But, for the sake of this course
we're just gonna grab this code here
and copy that into there,
and we're gonna paste it into our site.
Okay, so, I'm gonna show you our example site here.
In fact, I'm gonna use the site from the GTM course,
and if we go and we look at the underlying code,
and here we go to view page source,
what we're gonna see is, as they told us,
to go back to the analytic for a second,
it says we want to past this as the first item
into the head of every webpage that we want to track.
Okay, so we're going to go, and I've done just that.
If we look into the header tag here,
what you'll see is exactly that script here.
You'll recognize that UA number.
It's been pasted as the first item here into the head tag,
and we see that on the website.
So, again you want to do that for every single page,
and then when this page loads,
it's going to load our script here.
It's got our account number,
and it's gonna send that data back to Google
where it's gonna be captured into our account
and added to our reports.
Now again, how you get this pasted into the head on here;
whether it's include file,
whether you go through something like wordpress.com
or wix or something that'll have built in ways to do this
where they'll just ask you to take the UA number and paste
that directly in and it will take care of the rest of that,
that's gonna be up to your site.
And, you should consult your developer.
But one way or another we need to get this code on the page.
Okay, so now we've got our tracking code on here.
We go back to our page here.
We can check our status and see
if there's traffic received here.
We can see there is one active user on here right now.
Of course, that's me.
You can send test traffic if you'd like.
So, as far as installing goes this is about it.
Now we sit back, and we wait for the data to come in
for users to visit our website
and for the data to come into our reports,
so we can analyze our users.
While we wait for that, I've got a couple more things
we're gonna do in the next chapter;
kind of back up and talk about the ecosystem
and maybe pull in some demo data,
so we can get right away into analytics.