Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc194082

Browse files
committed
Reset to merge
1 parente5c77f8 commitc194082

File tree

1 file changed

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

1 file changed

+13
-13
lines changed

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,34 @@ title: analytics.js YouTube Plugin
33
hidden:true
44
---
55

6-
With the analytics.js YouTube Plugin, you can collect YouTube player events into the Segment ecosystem.
6+
With the analytics.js YouTube Plugin you can collect YouTube player events into the Segment ecosystem.
77

88
The Segment YouTube Plugin uses the following Google APIs:
99
-[YouTube IFrame player API](https://developers.google.com/youtube/iframe_api_reference#Getting_Started){:target="_blank”}: Controls the video (play, pause, stop).
1010
-[Data API](https://developers.google.com/youtube/v3/getting-started){:target="_blank”}: Accesses metadata about the video in the iFrame.
1111

1212
##Prerequisites
1313

14-
To begin, create a new project in the Google Developer Console, then create a new API key in that project. 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”}.
14+
To begin, create a new project in the Google Developer Console, then create a new API key in that project. 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”}.
1515

1616
>warning "Secure your API keys"
17-
>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.
17+
>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.
1818
19-
##Gettingstarted
19+
##GettingStarted
2020

2121
After you've generated the API key:
2222

2323
1. Enable a new plugin.
2424

25-
- Navigate to**Connections > Sources** and choose the source you want to connect the YouTube plugin to. Go to the**Settings** tab of your source and select**Plugins**. You can enable the YouTube plugin from this menu:
25+
- Navigate to**Connections > Sources** and choose the source you want to connect the YouTube plugin to. Go to the**Settings** tab of your source and select**Plugins**. You can enable the YouTube plugin from this menu:
2626

27-
![Screenshot ofthe plugins setting screen](./images/youtube-vimeo-plugins-beta-2021-06-04.png)
27+
![the plugins setting screen](./images/youtube-vimeo-plugins-beta-2021-06-04.png)
2828

29-
**Note:** Only JavaScript sources support plugins.
29+
**Note:** Only JavaScript sources support plugins.
3030

3131
2. Initialize the plugin by giving it access to the YouTube video player instance(s) running on your page. This can be done by adding the following script to the section of the source code where the page loads.
3232

33-
- Use the initialize method in the YouTube`onYouTubeIframeAPIReady()` function to register and initialize the plugin with the player instance and your API key:
33+
- Use the initialize method in the YouTube`onYouTubeIframeAPIReady()` function to register and initialize the plugin with the player instance and your API key:
3434

3535
```js
3636
var player;
@@ -48,7 +48,7 @@ var player;
4848

4949
The plugin listens to the YouTube player for events, and fires the corresponding[Segment Video Spec](/docs/connections/spec/video/) events on analytics.js.
5050

51-
##Supportedevents
51+
##SupportedEvents
5252
The plugin tracks the following[Segment Video Spec](/docs/connections/spec/video/) events:
5353

5454
Event | Details
@@ -60,17 +60,17 @@ Video Playback Buffer Started/Completed | When playback starts and finishes buff
6060
Video Playback Seek Started/Completed | When a user manually seeks a certain position of the content or ad in the playback.
6161
Video Content Started/Completed | When a video content segment starts and completes playing within a playback. <br><br>- If playing a playlist, these events get fired for each individual video.
6262

63-
##Supportedproperties
64-
The plugin automatically attaches the following[Segment Video Spec](/docs/connections/spec/video/) to[supportedevents](#supported-events):
63+
##SupportedProperties
64+
The plugin automatically attaches the following[Segment Video Spec](/docs/connections/spec/video/) tothe aboveevents:
6565

66-
**'Playback'events**
66+
**'Playback'Events**
6767
- Total Length
6868
- Position
6969
- Quality
7070
- Video Player
7171
- Sound
7272

73-
**'Content'events**
73+
**'Content'Events**
7474
- Title
7575
- Description
7676
- Keywords

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp