forked from ampproject/amphtml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathamp-redbull-player.amp.html
63 lines (62 loc) · 2.07 KB
/
amp-redbull-player.amp.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!doctype html>
<html amp lang="en">
<head>
<meta charset="utf-8">
<link rel="canonical" href="amps.html">
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<style amp-custom>
</style>
<script async src="https://cdn.ampproject.org/v0.js"></script>
<script async custom-element="amp-redbull-player" src="https://cdn.ampproject.org/v0/amp-redbull-player-0.1.js"></script>
<script async custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js"></script>
</head>
<body>
<h1>amp-redbull-player</h1>
<amp-redbull-player
id="rbvideo_1"
data-param-videoid="rrn:content:videos:3965a26c-052e-575f-a28b-ded6bee23ee1:en-INT"
data-param-locale="us"
height="169"
width="300"
layout="fixed">
</amp-redbull-player><br/>
<amp-redbull-player
id="rbvideo_2"
data-param-videoid="rrn:content:videos:3e27acc3-2fd2-44f4-9d6f-c1ec0ff587f1:en-INT"
data-param-locale="at"
data-param-skinid="stv"
height=169
width=300
layout="fixed">
</amp-redbull-player>
<amp-analytics>
<!-- Docs: https://amp.dev/documentation/components/amp-video-iframe/ -> postAnalyticsEvent(eventType[, vars]) -->
<!--
https://amp.dev/documentation/components/amp-analytics/#transport
"transport": {"xhrpost": false, "beacon": false, "image": true},
-->
<script type="application/json">
{
"requests": {
"base": "https://www.google-analytics.com/collect?",
"event": {
"baseUrl": "${base}${custom_request}"
}
},
"triggers": {
"rbvideo_1": {
"on": "video-custom-tracking-rbvideo_1",
"request": "event",
"selector": "#rbvideo_1"
},
"rbvideo_2": {
"on": "video-custom-tracking-rbvideo_2",
"request": "event",
"selector": "#rbvideo_2"
}
}
}
</script>
</amp-analytics>
</body>
</html>