-
Notifications
You must be signed in to change notification settings - Fork 0
/
amp.html
109 lines (101 loc) · 3.59 KB
/
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<!doctype html>
<html amp lang="en">
<head>
<meta charset="utf-8">
<script async src="https://cdn.ampproject.org/v0.js"></script>
<script async custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js"></script>
<title>Hello, AMPs</title>
<link rel="canonical" href="http://example.ampproject.org/article-metadata.html">
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "NewsArticle",
"headline": "Open-source framework for publishing content",
"datePublished": "2015-10-07T12:02:41Z",
"image": [
"logo.jpg"
]
}
</script>
<style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;
-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes
-amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes
-amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes
-amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;
-ms-animation:none;animation:none}</style></noscript>
</head>
<body>
<h1>AMP Tagging test page</h1>
<!-- Google Tag Manager -->
<amp-analytics config="https://www.googletagmanager.com/amp.json?id=GTM-PF8BPBL>m.url=SOURCE_URL" data-credentials="include"></amp-analytics>
<!-- <amp-analytics type="atinternet" id="atinternet">
<script type="application/json">
{
"vars": {
"site": "613023",
"log": "logs1412",
"domain": ".xiti.com",
"title": "pageChapter::AMP2",
"level2": "4"
},
"triggers": {
"defaultPageview": {
"on": "visible",
"request": "pageview",
"extraUrlParams": {
"visitor_privacy_mode": "exempt"
}
},
"links": {
"on": "click",
"selector": "a",
"request": "click",
"vars": {
"label": "clickChapter::clickLabel",
"level2Click": "12",
"type": "a"
}
}
}
}
</script>
</amp-analytics> -->
<amp-analytics>
<script type="application/json">
{
"requests": {
"event": "https://${collectDomain}/${path}?s=${siteId}"
},
"triggers": {
"defaultPageview": {
"on": "visible",
"request": "event",
"vars": {
"collectDomain": "logs1412.xiti.com",
"path": "event",
"siteId": "613023"
}
}
},
"transport": {
"beacon": true,
"useBody": true
},
"extraUrlParams": {
"events": [{
"name":"page.display",
"data":{
"page":"test_event_amp",
"event_collection_platform":"amp",
"visitor_privacy_mode": "optin",
"b:visitor_privacy_consent": true,
"custom_prop":"customprop"
}
}]
}
}
</script>
</amp-analytics>
</body>
</html>