YouTube Analytics: Setup guide#

This guide explains how to collect data from YouTube Analytics.

Introduction#

For a list of the fields that you can collect from YouTube Analytics, see YouTube Analytics.

Limitations#

Collecting data from YouTube Analytics comes with the following limitations:

  • The data of YouTube Analytics is made available daily, but a delay of a few days may occur. For more information, see the YouTube Analytics documentation.

  • Some data may only be available to specific roles and permissions. For example, users with the viewers role may not retrieve data from certain features of YouTube Studio. For more information, see the YouTube documentation.

  • YouTube Analytics data has a delay of approximately 48-72 hours for updates. This means the most recent data might not be immediately available.

  • For Bulk report types, historical data is only available for up to 30 days in the past, while daily reports can access data for the last 60 days.

  • Some metrics like impressions are not available via the YouTube Analytics API.

  • To collect yesterday’s data accurately, you need to use an offset of -1 day when configuring your date range.

Prerequisites#

Before you start collecting data from Mailgun, perform all of the following actions:

  • Ensure your account is assigned at least the role Viewer or has higher permissions. For more information on user permissions, see the YouTube documentation.

Creating a datastream to collect data from YouTube Analytics#

The basics of creating a datastream to collect data from any data source are explained in our guide to Collecting data in Adverity. This guide contains information about the specific steps to create a datastream to fetch data from YouTube Analytics.

Configuration: Choose the data you want to collect from YouTube Analytics#

To choose what data to collect and customize the YouTube Analytics datastream configuration, follow these steps:

  1. (Optional) Rename your datastream.

  2. In Data Type, select one of the following options:

    • Select Channel Report to collect data for a channel connected to your account.

    • Select Content Owner to collect data for a channel created by other content owners. When this option is selected, enter the respective ID in the Content owner ID field that appears below.

  3. In Report type, select the type of data to collect from YouTube Analytics. For more information on the report types, see Understanding data types, report types and reports.

  4. In Report, select the specific report to collect from YouTube Analytics.

  5. In Channels, select the channels for which to collect data. If you do not select any items in a drop-down list, Adverity collects data for all items in the drop-down list.

  6. In Dimensions and Metrics, change the list of fields that you want to see in your data extract.

  7. In Insight traffic source type, select the traffic type for which you want to collect data. For more information, see the Google documentation.

  8. In Sorting, select how to sort the collected data.

  9. In Filter expression, enter filters to be applied when collecting data. For more information on using filters, see the YouTube Analytics documentation.

  10. In Video IDs, select a value table that contains the video IDs that you want to use in the filter.

What’s next?#