Skip to content

Commit d5b5312

Browse files
committed
First pass of updates
1 parent 4b02f23 commit d5b5312

File tree

1 file changed

+8
-3
lines changed
  • src/connections/sources/catalog/libraries/website/plugins/youtube

1 file changed

+8
-3
lines changed

src/connections/sources/catalog/libraries/website/plugins/youtube/index.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,14 @@ hidden: true
66
With the analytics.js YouTube Plugin you can collect YouTube player events into the Segment ecosystem.
77

88
## Prerequisites
9-
The Segment YouTube Plugin requires the YouTube player JavaScript object as an input, so your YouTube player embed must use the [YouTube IFrame player API](https://developers.google.com/youtube/iframe_api_reference#Getting_Started).
9+
To begin, create a new project in the Google Developer Console, then create a new API key in that project for the Segment YouTube plugin. You can read more about this process in the YouTube documentation on [registering an application](https://developers.google.com/youtube/registering_an_application){:target="_blank”}.
1010

11-
To begin, generate an API Key for the Segment YouTube plugin, which it uses to access metadata about the playing video content. To do this, create a new project in the Google Developer Console, then create a new API Key in that project for the Segment YouTube plugin. You can read more about this process in the YouTube documentation on [registering an application](https://developers.google.com/youtube/registering_an_application).
11+
The Segment YouTube Plugin requires the following APIs:
12+
- [YouTube IFrame player API](https://developers.google.com/youtube/iframe_api_reference#Getting_Started){:target="_blank”}: Segment's YouTube plugin uses this to control the video (play, pause, stop) and retrieve information stored inside the iFrame.
13+
- [Data API](https://developers.google.com/youtube/v3/getting-started){:target="_blank”}: Segment's YouTube plugin uses this to access metadata about the video in the iFrame.
14+
15+
> note "Securely using API keys"
16+
> You can [secure your API keys](https://cloud.google.com/docs/authentication/api-keys#securing){:target="_blank”} by adding API key restrictions, deleting unused API keys, and periodically rotating your keys.
1217
1318
## Getting Started
1419

@@ -38,7 +43,7 @@ var player;
3843
})}
3944
```
4045

41-
That's it! The plugin listens to the YouTube player for events, and fires the corresponding [Segment Video Spec](/docs/connections/spec/video/) events on analytics.js.
46+
The plugin listens to the YouTube player for events, and fires the corresponding [Segment Video Spec](/docs/connections/spec/video/) events on analytics.js.
4247

4348
## Supported Events
4449
The plugin tracks the following [Segment Video Spec](/docs/connections/spec/video/) events:

0 commit comments

Comments
 (0)