UserActivityByProvince
This report provides user activity statistics, sorted by province (includes Washington DC).
Table-Specific Information
SELECT Rules
User activity by province applies to U.S. states and the District of Columbia. You must set country==US in the filters parameter.Video Reports:
| Parameter | Rule | Values |
| Dimensions | Required | province |
| Optional | creatorContentType | |
| Metrics | Use 1 or more | views, redViews, estimatedMinutesWatched, estimatedRedMinutesWatched, averageViewDuration, averageViewPercentage, annotationClickThroughRate, annotationCloseRate, annotationImpressions, annotationClickableImpressions, annotationClosableImpressions, annotationClicks, annotationCloses, cardClickRate, cardTeaserClickRate, cardImpressions, cardTeaserImpressions, cardClicks, cardTeaserClicks |
| Filters | Required | country==US |
| Use 0 or 1 | video, group |
Playlist Reports:
This report provides playlist activity statistics for US states and Washington DC. Include country==US in the filters parameter.
| Parameter | Rule | Values |
| Dimensions | Required | province |
| Use 0 or more | subscribedStatus, youtubeProduct | |
| Metrics | Use 1 or more | views, redViews, estimatedMinutesWatched, estimatedRedMinutesWatched, averageViewDuration, playlistStarts, viewsPerPlaylistStart, averageTimeInPlaylist |
| Filters | Required | isCurated = true; country==US |
| Use 0 or 1 | continent, subContinent | |
| Use 0 or 1 | playlist, group | |
| Use 0 or more | subscribedStatus, youtubeProduct |
Content Owner Reports:
| Parameter | Rule | Values |
| Dimensions | Required | province |
| Optional | creatorContentType | |
| Metrics | Use 1 or more | views, redViews, estimatedMinutesWatched, estimatedRedMinutesWatched, averageViewDuration, averageViewPercentage, annotationClickThroughRate, annotationCloseRate, annotationImpressions, annotationClickableImpressions, annotationClosableImpressions, annotationClicks, annotationCloses, cardClickRate, cardTeaserClickRate, cardImpressions, cardTeaserImpressions, cardClicks, cardTeaserClicks |
| Filters | Use exactly 1 | video, channel, group, or a supported combination of uploaderType and claimedStatus |
| Required | country==US |
Content Owner Playlist Reports:
| Parameter | Rule | Values |
| Dimensions | Required | province |
| Use 0 or more | subscribedStatus, youtubeProduct | |
| Metrics | Use 1 or more | estimatedMinutesWatched, estimatedRedMinutesWatched, averageViewDuration, playlistStarts, viewsPerPlaylistStart, averageTimeInPlaylist |
| Filters | Required | isCurated = true; country==US |
| Use 0 or 1 | playlist, channel, group | |
| Use 0 or more | subscribedStatus, youtubeProduct |
Columns
| Name | Type | Dimension | DefaultMetric | DefaultDimension | Description |
| Province | String | True | True | The U.S. state or territory associated with the metrics in the report row. The dimension value is an ISO 3166-2 code that identifies a U.S. state or the District of Columbia, such as US-MI (Michigan) or US-TX (Texas). The province code US-ZZ is used to report metrics for which YouTube could not identify the associated U.S. state. If the Province column is specified, Country must be set to US in the WHERE clause. | |
| CreatorContentType | String | True | This dimension identifies the type of content associated with the user activity metrics in the data row. The allowed values are LIVE_STREAM, SHORTS, STORY, VIDEO_ON_DEMAND, UNSPECIFIED. | ||
| Views | Double | True | The number of times that a video was viewed. In a playlist report, the metric indicates the number of times that a video was viewed in the context of a playlist. | ||
| RedViews | Double | The number of times that a video was viewed by YouTube Premium (previously known as YouTube Red) members. | |||
| EstimatedMinutesWatched | Double | The number of minutes that users watched videos for the specified channel, content owner, video, or playlist. | |||
| EstimatedRedMinutesWatched | Double | The number of minutes that YouTube Premium (previously known as YouTube Red) members watched a video. | |||
| AverageViewDuration | Double | The average length, in seconds, of video playbacks. As of December 13, 2021, this metric excludes looping clips traffic. In a playlist report, the metric indicates the average length, in seconds, of video playbacks that occurred in the context of a playlist. | |||
| AverageViewPercentage | Double | The average percentage of a video watched during a video playback. | |||
| AnnotationClickThroughRate | Double | The ratio of annotations that viewers clicked to the total number of clickable annotation impressions. | |||
| AnnotationCloseRate | Double | The ratio of annotations that viewers closed to the total number of annotation impressions. | |||
| AnnotationImpressions | Double | The total number of annotation impressions. | |||
| AnnotationClickableImpressions | Double | The number of annotations that appeared and could be clicked. | |||
| AnnotationClosableImpressions | Double | The number of annotations that appeared and could be closed. | |||
| AnnotationClicks | Double | The number of clicked annotations. | |||
| AnnotationCloses | Double | The number of closed annotations. | |||
| CardClickRate | Double | The click-through-rate for cards, which is calculated as the ratio of card clicks to card impressions. | |||
| CardTeaserClickRate | Double | The click-through-rate for card teasers, which is calculated as the ratio of clicks on card teasers to the total number of card teaser impressions. | |||
| CardImpressions | Double | The number of times cards were displayed. When the card panel is opened, a card impression is logged for each of the video's cards. | |||
| CardTeaserImpressions | Double | The number of times that card teasers were displayed. A video view can generate multiple teaser impressions. | |||
| CardClicks | Double | The number of times that cards were clicked. | |||
| CardTeaserClicks | Double | The number of clicks on card teasers. Card icon clicks are attributed to the last teaser displayed to the user. | |||
| Country | String | The country associated with the metrics in the report row. The dimension value is a two-letter ISO-3166-1 country code, such as US, CN (China), or FR (France). The country code ZZ is used to report metrics for which YouTube could not identify the associated country. | |||
| Video | String | True | The Id of a YouTube video. | ||
| Playlist | String | The Id of a YouTube playlist. | |||
| Group | String | (filter only) The Id of a YouTube Analytics group. | |||
| Channel | String | (only used in content owner reports) The Id for a YouTube channel. The channel dimension is frequently used in content owner reports because those reports typically aggregate data for multiple channels. | |||
| StartDate | Date | Start date for fetching Analytics data. | |||
| EndDate | Date | End date for fetching Analytics data. |
Pseudocolumns
Pseudocolumn fields are used in the WHERE clause of SELECT statements and offer more granular control over the data returned from the data source.
| Name | Type | Description |
| Segments | String | Segments the data returned for your request. Either a SegmentId or a custom segment. |