New Feature: Playlist Center! Pick a topic and let our playlists guide the way.

Start learning with our library of video tutorials taught by experts. Get started

Google Analytics Tips
Illustration by Richard Downs

Google Analytics Tips

with Corey Koberg

Video: YouTube videos

In the last two videos, we showed how to do Dimension Widening to add more data We're going to add more data to our Google Analytics data, by keying So in this scenario, I want to do some analysis about those video pages.
Expand all | Collapse all
  1. 9m 3s
    1. YouTube videos
      9m 3s
  2. 54s
    1. Welcome to the series
  3. 17m 8s
    1. How Google Analytics accounts, properties, and views are structured
      6m 36s
    2. User management: 2013 update
      6m 19s
    3. Best practices for user management
      4m 13s
  4. 20m 49s
    1. Installing Google Analytics on WordPress
      8m 28s
    2. Google Analytics debugging and troubleshooting: The basics
      6m 10s
    3. Google Analytics debugging and troubleshooting: With a tag management system (TMS)
      6m 11s
  5. 23m 58s
    1. Demographics
      6m 45s
    2. Interest categories
      5m 26s
    3. Enabling Audience reports and understanding where the data comes from
      11m 47s
  6. 26m 37s
    1. Intro and built-in segments
      14m 57s
    2. Custom segments via the Segment Builder
      11m 40s
  7. 12m 25s
    1. User Segments: A huge improvement
      6m 23s
    2. Advanced Topic: Sequenced Segments
      6m 2s
  8. 27m 8s
    1. Cohort analysis now built into Google Analytics
      8m 22s
    2. Permanent filters and removing internal traffic
      8m 19s
    3. Filters everyone should use to get clean data
      10m 27s
  9. 13m 25s
    1. Using an advanced filter to get accurate information on subdomains
      7m 20s
    2. When to use a segment vs. a filter
      6m 5s
  10. 18m 0s
    1. Finding my most valuable customers
      9m 54s
    2. Making Adwords work smarter and more profitably
      8m 6s
  11. 15m 20s
    1. What is Google’s Universal Analytics?
      7m 7s
    2. Upgrading from Classic to Universal Analytics
      8m 13s
  12. 7m 11s
    1. Test driving the API in 5 minutes
      7m 11s
  13. 14m 16s
    1. Migrating Custom Variables to Custom Dimensions
      14m 16s
  14. 4m 5s
    1. Creating a Custom Report in 30 seconds
      4m 5s
  15. 5m 41s
    1. Five Time zone tips to save your data
      5m 41s
  16. 9m 56s
    1. Importing data with Custom Data Import
      9m 56s
  17. 6m 29s
    1. Query string parameters
      6m 29s

Watch this entire course now—plus get access to every course in the library. Each course includes high-quality videos taught by expert instructors.

Become a member
please wait ...
Google Analytics Tips
3h 52m Intermediate Dec 04, 2013 Updated Jul 16, 2014

Viewers: in countries Watching now:

Get a new Google Analytics tip every other week from online marketing expert Corey Koberg. Most users unlock just a fraction of the power that Google Analytics offers, so in this course Corey exposes tips and tricks to unlock insights into one of the most sophisticated tools in the marketer or site owner's arsenal. He offers peeks into the latest power features, advice for deeply mining your digital data, and actions you can take to optimize your site for both traffic and conversions. Corey answers common questions about online marketing and web analytics, including installation, tag management, reporting, custom variables/dimensions, attribution modeling, segmentation, multichannel funnels, data accuracy, visualizations, Universal Analytics, and more. What's more, Corey welcomes your questions and will shape future videos based on member requests, so send them to us at

Marketing Analytics
Google Analytics
Corey Koberg

YouTube videos

In the last two videos, we showed how to do Dimension Widening to add more data and we looked at a way to do by keying off query student parameters in the URL. Today we're going to look at a question that came in from over Twitter. For a case where we have embedded YouTube videos on a page similar to this very simplistic example webpage that I've got here. We're going to add more data to our Google Analytics data, by keying off of some of the metadata in the form of a custom dimension. Now you can see here that I've several test pages where I've embedded various videos on their own page, as if they were pages on my site where I embedded YouTube videos for visitors to view.

So in this scenario, I want to do some analysis about those video pages. Now my site is not a video sharing site. I just happen to have some videos in various places. So I've got a table here where you can see the set of videos that I've got, and some additional info and context about them. Some have different authors. Some are about different topics, or categories, and so on. I want to understand if say, one topic is outperforming another. Now, to get this data there are a few different plugins and scripts out there that will automatically query the YouTube player and extract all kinds of information, such as stop, start, play, fast forward, video completed, and some more basic info about the video itself.

These scripts all are going to hit the YouTube Analytics API. You can find a little bit more about that on this page. Now almost all of these scripts are going to pull back the video ID, which is the unique identifier in the YouTube database for that video. For example, if we come here to this YouTube page, we can see the video ID up here in the query stream parameter is right here after the v. Now, that ID is going to be very useful for the YouTube servers to keep track of the videos. But as an analyst that string means almost nothing to me. I want to capture this other information here. I've got the video ID in this column, but the other information here is what's actually useful to me as an analyst.

So what I can do is I can key off of that unique ID and upload this spreadsheet. That way, whenever anyone views the video, which is going to be stored in Google Analytics with that video ID. It's going to increment the stats around the rest of this information. The titles, the categories, the authors. Okay, we said that I've got this script running and those videos are already populating that video ID custom dimension. So let's go ahead and verify that that's actually the case. One thing I can do here, I can come and I can create a custom report. And let's call this Video ID. We take a look here, if I go up to Edit, we'll see that it's a very simple one.

Here, I'm simply going to look at the total number of events, which is how this data is being sent in. And I'm going to do it in my primary dimension here is Video ID. So if I come to this custom report. I see here that I got my video ID as the primary dimension and I do see some events coming in. So there are some views of those pages and those video IDs are being captured and sent to Google analytics. Problem is, this is pretty much worthless as far as analysis goes. This tells me almost nothing about how this content's being consumed or even what it really is. Okay. We're going to fix that. The next thing I need to do is create the custom dimensions that are going to receive my title, category and authors.

We come back here to the admin, come down here to my custom definitions. Custom dimensions. And we see I've got these here. I've got video Author, Video ID. As well as Title. Now, I won't go through how to create these custom dimensions for the sake of time. I've got the other videos that will show how to do that if you need a quick refresher. The next thing we need to do is actually create the data import. So, I come on down here to Data Import. I've got here my Video Data and what we see here is that I'm going to import this data and it's going to key again off of this video ID which I've got here in custom dimension number ten.

The imported data's going to be the title, the category, and the video author. And those are in seven, eight, and nine. We of course want to remember these. We're going to go ahead and get the schema. This is going to download the Excel file for us. I'm actually also going to copy this in here, this ten, seven, eight, and nine. And I'll show you why later, but for now I want to get those commas and everything. Download the schema template and it's going to give us the Excel file that we're going to populate. Okay. So here's what we've got. We've got our, our header's already set here. Again this is dimension ten, seven, eight and nine. What I want to do is take the exact data that I had over here in my Excel form.

I'm just going to copy that in and paste it right in. Course my headers are going to change to the custom dimensions but otherwise. It's going to stay exactly the same. Okay, I've saved this data here. And what I want to do now is upload that. We click down here, come back here, click Done. And we need to do is come up to our video data and click on Manage Uploads. Here we want to go select our file. Choose files. Select one that we just saved. Go ahead and upload that. We see it's been uploaded here. Refresh this until it says Completed and we're all set. Now remember, to test this, you actually have to fire off these pages, so if you're on your own site, and you're getting lots of traffic, that's no problem, but if you're on a test site like I am, you're going to have to actually go and fire those pages yourself, so come back up to those tabs.

Refresh through each one of those and so on. And make sure this data actually gets sent back to Google. Another quick tip. Make sure that you're not filtering out your own traffic. I know many of you have set up filters so that your internal traffic gets excluded. So if your excluding yourself and filtering yourself out here. You're not going to be able to test this here. So make sure you're not filtering your own traffic out if you're trying to test this. Now, because this takes a while, I've already done the import. So let's go ahead and see what that looks like. One thing we can do is just come right back to that same custom report we had before. Remember we had the video ID in here and said it was pretty useless. So now that we've got those other dimensions in here.

We've got that other data. We can pull that in. I can come down here for a secondary dimension. Click on this. Now remember I had the category. I had the video author. And I had the title. So let's go ahead and pull in title. Just to see which of those videos it is. Okay we see that the video ID is here. Then I've got some much more useful titles that are here. I could also go ahead and look at category, would be a useful one. If I wanted to see how the categories were doing. I can sort by total events. And see in order which ones are the most popular, we see the categorises in here and how they respond to the various video IDs.

Now one thing I can do if I wanted to see instead of fun being spread out by the video ID, maybe I want to see in general which categories are getting the most traffic. I can come up here and edit this. Instead of having VideoID as my primary metric I can just change this to be one of those ones I just added. For example, we could add Category. And here I can see them all summed together. So all the fun videos, all the CPT ones, all the premium ones are going to be summed up to see which category is doing the best. And then of course if I want to break that out, I could have my secondary dimensions on top of those. So I could go ahead and add something like, Author.

Actually that's not the right one. I want to make sure I get Video Author. Gotta make sure I keep our custom divisions straight. Video Author. Okay, and then we're going to see which of those are broken out, in which case. So, here we've got the fun ones done by Lynda and then each of those if they do repeat, as they do down here, if we have several different authors, we'll see those as we normally would in secondary dimensions. Now one issue I've got here is that I can only see the secondary dimension. I've basically only got two dimensions that I can play with, unless I get into pivot tables and other things. But what if I wanted to see what we had in that original Excel sheet, where I had the Video ID, the Description, the Title, the Category, the Speaker, etc.

? What if I want to see all four of these across just like this? Well I can do that, one of the ways I want to do it is we can head back to query explorer. Remember when we talked about the API query explorer. So if I put in API query explorer, come right back to that tool. And one thing that I can do is take those exact dimensions that I have and just push them across. Now remember I said I was going to copy those in? What I'm going to do is just go ahead and paste those right in. Now if you don't remember that, one other trick you can do is go back to your template.

Remember that the template has those across the top, ten, seven, eight, nine things there. But the nice thing here is I've already even got my commas right in there. It's an exact format that I needed when I copied it there. So I've got that ten, seven, eight, nine here. I can go ahead and select my metrics, in those cases, I wanted to grab total events. Set my date range. Click Get Data. What I see here is exactly what I had in that sheet. I've got the video ID, I've got the title, I've got the category, I've got the author. And of course how many events for each one of those, so the performance of all that. Okay, so now you've seen how we can extend custom dimensions in a real world example where we've appended information in context about our YouTube videos, where only a ID was populated in a custom dimension.

Now, again, if you have any more use cases you'd like to see, let me know.

Find answers to the most frequently asked questions about Google Analytics Tips.

Expand all | Collapse all
please wait ...
Q: Why can't I earn a Certificate of Completion for this course?
A: We publish a new tutorial or tutorials for this course on a regular basis. We are unable to offer a Certificate of Completion because it is an ever-evolving course that is not designed to be completed. Check back often for new movies.
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.
Upgrade now

Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ.

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

join now Upgrade now

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.

Mark all as unwatched Cancel


You have completed Google Analytics Tips.

Return to your organization's learning portal to continue training, or close this page.

Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any page and choose Site preferencesfrom the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Are you sure you want to delete this note?


Thanks for signing up.

We’ll send you a confirmation email shortly.

Sign up and receive emails about and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from

Sign up and receive emails about and our online training library:

Here’s our privacy policy with more details about how we handle your information.

submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.