-
Notifications
You must be signed in to change notification settings - Fork 9
/
blueprints.yaml
201 lines (179 loc) · 6.2 KB
/
blueprints.yaml
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
name: Google Analytics
type: plugin
slug: ganalytics
version: 2.1.0
description: "Easily integrate and configure Google Analytics without the need to touch any code within your Grav site."
icon: google
author:
name: John Linhart
email: [email protected]
url: http://johnlinhart.com
homepage: https://github.com/escopecz/grav-ganalytics
keywords: google, plugin, tracking, analytics, grav
bugs: https://github.com/escopecz/grav-ganalytics/issues
docs: https://github.com/escopecz/grav-ganalytics/blob/master/README.md
license: MIT
form:
validation: strict
fields:
tabs:
type: tabs
active: 1
class: subtle
fields:
configuration:
type: tab
title: PLUGIN_GANALYTICS.SECTION_CONFIGURATION
fields:
enabled:
type: toggle
label: PLUGIN_GANALYTICS.PLUGIN_STATUS
hightlight: 1
default: 0
options:
1: PLUGIN_GANALYTICS.ENABLED
0: PLUGIN_GANALYTICS.DISABLED
validate:
type: bool
trackingId:
type: text
size: medium
label: PLUGIN_GANALYTICS.TRACKING_ID
help: PLUGIN_GANALYTICS.TRACKING_ID_HELP
placeholder: "G-XXXXXXXXXX"
validate:
required: true
advanced:
type: section
title: PLUGIN_GANALYTICS.SECTION_ADVANCED
underline: true
fields:
position:
type: toggle
label: PLUGIN_GANALYTICS.POSITION
help: PLUGIN_GANALYTICS.POSITION_HELP
hightlight: 1
default: head
options:
head: PLUGIN_GANALYTICS.POSITION_HEAD
body: PLUGIN_GANALYTICS.POSITION_BODY
validate:
type: string
objectName:
type: text
label: PLUGIN_GANALYTICS.OBJECT_NAME
help: PLUGIN_GANALYTICS.OBJECT_NAME_HELP
size: small
default: "gtag"
dnt:
type: toggle
label: PLUGIN_GANALYTICS.DNT
help: PLUGIN_GANALYTICS.DNT_HELP
hightlight: 1
default: 1
options:
1: PLUGIN_GANALYTICS.ENABLED
0: PLUGIN_GANALYTICS.DISABLED
validate:
type: bool
blockedIps:
type: array
size: large
label: PLUGIN_GANALYTICS.BLOCKED_IPS
help: PLUGIN_GANALYTICS.BLOCKED_IPS_HELP
value_only: true
blockedIpRanges:
type: array
size: large
label: PLUGIN_GANALYTICS.BLOCKED_IP_RANGES
help: PLUGIN_GANALYTICS.BLOCKED_IP_RANGES_HELP
placeholder_value: PLUGIN_GANALYTICS.BLOCKED_IP_RANGES_VALUE
value_only: true
blockingCookie:
type: text
label: PLUGIN_GANALYTICS.BLOCKING_COOKIE
help: PLUGIN_GANALYTICS.BLOCKING_COOKIE_HELP
size: small
default: "blockGA"
cookie:
type: tab
title: PLUGIN_GANALYTICS.SECTION_COOKIE
fields:
cookieConfig:
type: toggle
label: PLUGIN_GANALYTICS.COOKIE_CONFIG
help: PLUGIN_GANALYTICS.COOKIE_CONFIG_HELP
hightlight: 1
default: 0
options:
1: PLUGIN_GANALYTICS._YES
0: PLUGIN_GANALYTICS._NO
validate:
type: bool
cookiePrefix:
type: text
label: PLUGIN_GANALYTICS.COOKIE_PREFIX
help: PLUGIN_GANALYTICS.COOKIE_PREFIX_HELP
size: small
default: ""
cookieDomain:
type: text
label: PLUGIN_GANALYTICS.COOKIE_DOMAIN
help: PLUGIN_GANALYTICS.COOKIE_DOMAIN_HELP
size: medium
cookieExpires:
type: text
size: small
label: PLUGIN_GANALYTICS.COOKIE_EXPIRES
help: PLUGIN_GANALYTICS.COOKIE_EXPIRES_HELP
append: PLUGIN_GANALYTICS.SECONDS
default: 63072000
validate:
type: number
min: 0
optout:
type: tab
title: PLUGIN_GANALYTICS.SECTION_OPTOUT
fields:
hint:
type: spacer
text: PLUGIN_GANALYTICS.OPTOUT_HINT
underline: false
linkhint:
type: display
size: large
label: PLUGIN_GANALYTICS.OPTOUT_LINK
markdown: true
content: "`<a href=\"javascript:gaOptout()\">Disable Google Analytics ...</a>`"
optOutEnabled:
type: toggle
label: PLUGIN_GANALYTICS.OPTOUT_STATUS
help: PLUGIN_GANALYTICS.OPTOUT_STATUS_HELP
hightlight: 0
default: 0
options:
1: PLUGIN_GANALYTICS.ENABLED
0: PLUGIN_GANALYTICS.DISABLED
validate:
type: bool
optOutMessage:
type: text
label: PLUGIN_GANALYTICS.OPTOUT_MESSAGE
help: PLUGIN_GANALYTICS.OPTOUT_MESSAGE_HELP
size: medium
default: "Google tracking is now disabled."
debug:
type: tab
title: PLUGIN_GANALYTICS.SECTION_DEBUG
fields:
debugMode:
type: toggle
label: PLUGIN_GANALYTICS.DEBUG_MODE
help: PLUGIN_GANALYTICS.DEBUG_MODE_HELP
hightlight: 1
default: 0
options:
1: PLUGIN_GANALYTICS.ENABLED
0: PLUGIN_GANALYTICS.DISABLED
validate:
type: bool