forked from escopecz/grav-ganalytics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
blueprints.yaml
260 lines (231 loc) · 8.24 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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
name: Google Analytics
version: 1.5.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.TACKING_ID
help: PLUGIN_GANALYTICS.TACKING_ID_HELP
placeholder: "UA-00000000-0"
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: "ga"
async:
type: toggle
label: PLUGIN_GANALYTICS.ASYNC
help: PLUGIN_GANALYTICS.ASYNC_HELP
hightlight: 1
default: 0
options:
1: PLUGIN_GANALYTICS._YES
0: PLUGIN_GANALYTICS._NO
validate:
type: bool
forceSsl:
type: toggle
label: PLUGIN_GANALYTICS.FORCE_SSL
help: PLUGIN_GANALYTICS.FORCE_SSL_HELP
hightlight: 1
default: 0
options:
1: PLUGIN_GANALYTICS._YES
0: PLUGIN_GANALYTICS._NO
validate:
type: bool
anonymizeIp:
type: toggle
label: PLUGIN_GANALYTICS.ANONYMIZE_IP
help: PLUGIN_GANALYTICS.ANONYMIZE_IP_HELP
hightlight: 1
default: 0
options:
1: PLUGIN_GANALYTICS._YES
0: PLUGIN_GANALYTICS._NO
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"
blockingCookieAllowValue:
type: text
label: PLUGIN_GANALYTICS.BLOCKING_COOKIE_ALLOWVALUE
help: PLUGIN_GANALYTICS.BLOCKING_COOKIE_ALLOWVALUE_HELP
size: small
default: ""
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
cookieName:
type: text
label: PLUGIN_GANALYTICS.COOKIE_NAME
help: PLUGIN_GANALYTICS.COOKIE_NAME_HELP
size: small
default: "_ga"
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: Opt-Out
fields:
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."
optOutRevertMessage:
type: text
label: PLUGIN_GANALYTICS.OPTOUT_REVERT_MESSAGE
help: PLUGIN_GANALYTICS.OPTOUT_REVERT_MESSAGE_HELP
size: medium
default: "Google tracking is now enabled."
codesamples:
type: section
title: PLUGIN_GANALYTICS.SECTION_CODESAMPLES
underline: true
fields:
hint:
type: spacer
text: PLUGIN_GANALYTICS.OPTOUT_HINT
underline: false
linkhint:
type: display
size: large
label: Opt-Out-Link
markdown: true
content: `<a href="javascript:gaOptout()">Disable Google Analytics ...</a>`
hintcallback:
type: spacer
text: PLUGIN_GANALYTICS.OPTOUT_REVERT_HINT
underline: false
debug:
type: tab
title: PLUGIN_GANALYTICS.SECTION_DEBUG
fields:
debugStatus:
type: toggle
label: PLUGIN_GANALYTICS.DEBUG_STATUS
help: PLUGIN_GANALYTICS.DEBUG_STATUS_HELP
hightlight: 1
default: 0
options:
1: PLUGIN_GANALYTICS.ENABLED
0: PLUGIN_GANALYTICS.DISABLED
validate:
type: bool
debugTrace:
type: toggle
label: PLUGIN_GANALYTICS.DEBUG_TRACE
help: PLUGIN_GANALYTICS.DEBUG_TRACE_HELP
hightlight: 1
default: 0
options:
1: PLUGIN_GANALYTICS.ENABLED
0: PLUGIN_GANALYTICS.DISABLED
validate:
type: bool