Before you start
- Live data sources enabled for your organization. See Live data sources.
- Admin role in the Lightdash project.
- A Google account that can read the channel’s analytics.
Connect YouTube Analytics
- On the nav bar, click Browse → Semantic Layer.
- In the sidebar, select Live data sources, then click Add.
- Select YouTube Analytics.
- Enter a Name, such as
YouTube Analytics. - Click Continue to Google.
- Sign in with your Google account and allow read-only access to YouTube.
- Back in Lightdash, pick the channel the source reads.
Dimensions
Revenue, demographics, playlists and audience retention aren’t available.
Metrics
Combination rules
YouTube answers a fixed set of reports. A query can break down by one of these:- Date or Date month
- Country
- Video ID
- Device type, optionally with Date
- Traffic source type, optionally with Date
- Device type and Traffic source type only work with Views, Engaged views and Estimated minutes watched.
- Video ID returns at most 200 videos, ranked from highest to lowest. Sort by one of Views, Estimated minutes watched, Subscribers gained or Subscribers lost.
- Date month only reads whole months. Filter Date to start on the first of a month and end on the last of a month or today.
Supported features
A query can’t filter by a dimension and break down by it at the same time.
Limits
YouTube leaves out the most recent days until all their metrics are ready, so the latest dates can be missing. YouTube also applies its own quotas.
Example questions
- “Views and watch time by day over the last 28 days.”
- “Top 20 videos by estimated minutes watched this month.”
- “Views by traffic source type last week.”