Menu Close

How to set up and track YouTube Channel performance with Google Analytics

How to set up and track YouTube Channel performance with Google Analytics

Managing a YouTube channel is a lot of work. It includes content experimentation which can make or break your SEO effectiveness for your channel. How can we track our channel’s performance to see what works?

Why is SEO important?

SEO, or Search Engine Optimization, is the practice of writing and organizing content in a way that search engines like Google can crawl and ultimately understand what your website or YouTube channel is about.

Using this information, Google and others make decisions with their algorithms to determine which content is of higher quality, more relevant, and more likely to answer the question you’re looking for on their search engine in the first place. With that information, the search engines rank this content and display their results ordered by those rankings.

How is SEO important to YouTube?

Just like any other website, YouTube gets crawled by Google and other search engines. Additionally, YouTube has its own internal search that will take these same things into consideration when deciding how to display results on a YouTube search.

Searching for “code” channels on YouTube

This means, depending on how well you create your descriptions, manage your keywords, or name your videos, it could impact how well your videos rank in the results. And this can impact how many views your videos get.

This also applies to your channel. You have opportunities to experiment with effectiveness through the content you feature, your channel description, and the name of your channel.

And what is Google Analytics?

Google Analytics is a free analytics tool from Google that will allow you to gain better insights into your traffic. I previously wrote about what is Google Analytics and how you can make sense of it which provides a more in depth view. So if you want to learn a little more before diving in, I highly recommend starting there.

How do I connect my channel?

Setting up a new tracking code

To start, we’ll need a tracking code from Google Analytics. Google has some great up to date resources on how to do this, so I’m not going to try to re-explain here:

Though some say you can use your website’s property and create a filtered View, I recommend starting with a separate property. That way you don’t have to worry about any data crossover or setting up complicated filters.

Tracking ID in Google Analytics

Your tracking ID will be in the following format: UA-######-#. Once you have that, we’re ready to go.

Adding your tracking code to YouTube

There are a few steps we have to navigate through to find where we can set up our Google Analytics account. If you want to skip to the right place, you can visit

To take the long route, which will also help you get a little more familiar with your YouTube account, first head over to the Settings section from within your YouTube Studio page.

Finding Settings on your YouTube Studio dashboard

Once selected, find the Advanced channel settings link by visiting Channel, Advanced Settings, and then scrolling down to the bottom.

Advanced channel settings on YouTube

Finally, scroll down to the bottom of the page again, find the Google Analytics property tracking ID field, enter the tracking ID you created, and hit save.

Setting the Google Analytics property tracking ID for your YouTube channel

Sit back and wait

Google Analytics will only show your website traffic from the point it was set up and through the future. Unfortunately we can’t check out that weekend your video first went viral if you didn’t have Google Analytics set up then, but at least we’re prepared for the next time!

Joey and Chandler reclining their chairs

That said, now’s the time to continue working hard on your channel since you have the ability to track how that hard work is paying off as people visit your channel.

Setting up Google Analytic’s Site Search feature gives us an easy way to separate out search usage to make it easier to gain insight into how people are searching our channel.

To enable Site Search, we want to go to the Admin section of our Google Analytics property and then navigate over to View Settings. Once there, under the Site Search settings at the bottom, first click the button to toggle on Site search Tracking, then type “query” into the Query parameter input.

Site search Tracking in Google Analytics

Optionally, though recommended, you can select to strip query parameters out of your URL. This means that in your main content view, you will see all traffic as /search instead of many instances of /search?query=[keyword], which can be more cumbersome to analyze.

Note: before you set this up, it’s generally recommended to have more than one view for your property. I would recommend having at least 2 views, a Raw Data view and Main view. You would only apply the Site Search feature to your Main view. This will help to make sure you can always see the unfiltered Raw Data view if you want.

What will I be able to see?

How many people visited my channel?

The first thing we get immediately with our new data when we open up our Google Analytics property is how many people visited our site.

Google Analytics Home

The default here is in the past 7 days, but you can change the time range in the bottom left corner of the panel.

What this also provides is a quick insight into how the number of people has changed since the previous period (the 7 days before in this example). As we can see here, the number of people this week has increased by 13.9% which is awesome news for freeCodeCamp’s YouTube channel, proving whatever they did is working.

How are people finding our channel?

So how do we figure out if the strategies we’re using (like SEO) to get people to our channel are effective? By analyzing our organic search traffic.

By navigating to the Source/Medium report by visiting Acquisition, All Traffic, then Source/Medium, we can see what sources are providing our YouTube channel the most traffic.

Source/Medium report in Google Analytics

By clicking in to google / organic, we can also see how this has changed over time.

Organic Google traffic report in Google Analytics

While analyzing a single week isn’t the most effective, being able to tell how your organic traffic has changed over multiple weeks will be able to tell you if your strategy is working.

What websites and pages are people coming from?

Navigating to the Referrals report by going to Acquisition, All Traffic, and then Referrals, we can see that most of the referral traffic for the freeCodeCamp YouTube is from itself.
Referral traffic showing as highest referrer in Google Analytics

But say we want to see what pages those referrals are coming from. We can find this out by clicking on the link in the view above where we can see a full breakdown of which pages are giving the channel the most traffic. referral pages on Google Analytics

What are people searching for on my channel?

After setting up Site Search on your Google Analytics account, you’ll be able to get better insight into how people are actually searching your site.

Search Terms report in Google Analytics

Here we can see what keywords people want to see the most, meaning we can tailor our content and future videos to those keywords, making our channel more effective.

More insights

By default, you’ll get a lot of other cool insights from Google Analytics that are baked in like where your visitors are physically located and whether they’re visiting on a desktop or mobile device.

To learn more about what you can see, check out my article on making sense of Google Analytics.

What won’t I be able to see?

While the information you’ll discover through Google Analytics is important, it’s not all inclusive. There are many points you’ll need to dive into YouTube’s own Analytics tool to see.

Analytics dashboard in YouTube Studio

Video analytics

Video states and actions aren’t going to be visible in Google Analytics, which includes things like Play, Pause, and time watched.

However, by using the Engagement tab in the YouTube Studio Analytics section, we can see how long people are watching our videos and a graph of the Audience retention. This will help us determine how the content of our videos is performing.


You’re not going to be able to gain insights into how the visitors on your channel are subscribing.

The good news is you can find this by visiting the the Analytics section in your YouTube Studio page, then clicking the Audience tab at the top.

Dig in to YouTube Studio Analytics

There’s a whole lot you can find out if you dig around YouTube Studio Analytics. Take the time to poke around both Analytics report solutions and learn what information is most useful to providing an impactful experience for your channel.

What else can I do with YouTube and Google Analytics?

If you have a website outside of your YouTube channel and have Google Analytics set up on it, you can build custom URLs that will allow you to see your YouTube traffic as a campaign. This is useful not only for YouTube, but any other source you’re directing traffic to your website from.

Building campaign URLs Campaign URL Builder

Google Analytics provides this capability using URL parameters attached to the links. You can learn more about the setup and what you need to do with Google’s Analytics Help site.

It should also be noted that you don’t really need to set up your YouTube channel with Google Analytics to make use of this feature.

Track how videos are watched when embedded on your website

YouTube provides an API that developers can use to write custom JavaScript and track usage of embedded videos on a given website.

Using this, we can send custom events based on time references or video actions (like play and pause) to get a better idea of how the videos on our site are being used.

To be clear – this is only for videos embedded on your website and will probably track usage with your website’s Google Analytics property unless you configure it otherwise.

Check out YouTube iFrame Player API for more info.

Pretty much anything Google Analytics provides by default

There’s a whole lot you can do with Google Analytics, whether it’s getting better visibility into where people are coming from or where they’re physically located. And by connecting your YouTube channel you automatically get those insights.

The more resources, the more insight you can gain

Though there are benefits to both YouTube Analytics and Google Analytics, having more information will ultimately help you make better judgement calls about how you manage your channel and content. Use these tools to help launch yourself to inevitable YouTube stardom!

View Source
Posted in Tech