@@ -151,14 +151,6 @@ public function __construct() {
151
151
'value ' => '404 ' ,
152
152
'caps ' => [ self ::CAP_GOALS ],
153
153
],
154
- 'outbound-links ' => [
155
- 'label ' => esc_html__ ( 'Outbound links ' , 'plausible-analytics ' ),
156
- 'docs ' => 'https://plausible.io/wordpress-analytics-plugin#how-to-track-external-link-clicks ' ,
157
- 'slug ' => 'enhanced_measurements ' ,
158
- 'type ' => 'checkbox ' ,
159
- 'value ' => 'outbound-links ' ,
160
- 'caps ' => [ self ::CAP_GOALS ],
161
- ],
162
154
'file-downloads ' => [
163
155
'label ' => esc_html__ ( 'File downloads ' , 'plausible-analytics ' ),
164
156
'docs ' => 'https://plausible.io/wordpress-analytics-plugin#how-to-track-file-downloads ' ,
@@ -167,21 +159,21 @@ public function __construct() {
167
159
'value ' => 'file-downloads ' ,
168
160
'caps ' => [ self ::CAP_GOALS ],
169
161
],
170
- 'search ' => [
171
- 'label ' => esc_html__ ( 'Search queries ' , 'plausible-analytics ' ),
172
- 'docs ' => 'https://plausible.io/wordpress-analytics-plugin#how-to-enable-site-search-tracking ' ,
162
+ 'outbound-links ' => [
163
+ 'label ' => esc_html__ ( 'Outbound links ' , 'plausible-analytics ' ),
164
+ 'docs ' => 'https://plausible.io/wordpress-analytics-plugin#how-to-track-external-link-clicks ' ,
173
165
'slug ' => 'enhanced_measurements ' ,
174
166
'type ' => 'checkbox ' ,
175
- 'value ' => 'search ' ,
167
+ 'value ' => 'outbound-links ' ,
176
168
'caps ' => [ self ::CAP_GOALS ],
177
169
],
178
- 'tagged-events ' => [
179
- 'label ' => esc_html__ ( 'Custom events ' , 'plausible-analytics ' ),
180
- 'docs ' => 'https://plausible.io/wordpress-analytics-plugin#how-to-setup -custom-events-to-track-goal-conversions ' ,
170
+ 'pageview-props ' => [
171
+ 'label ' => esc_html__ ( 'Authors and categories ' , 'plausible-analytics ' ),
172
+ 'docs ' => 'https://plausible.io/wordpress-analytics-plugin#how-to-send -custom-properties ' ,
181
173
'slug ' => 'enhanced_measurements ' ,
182
174
'type ' => 'checkbox ' ,
183
- 'value ' => 'tagged-events ' ,
184
- 'caps ' => [ self ::CAP_GOALS ],
175
+ 'value ' => 'pageview-props ' ,
176
+ 'caps ' => [ self ::CAP_PROPS ],
185
177
],
186
178
'revenue ' => [
187
179
'label ' => esc_html__ ( 'Ecommerce revenue ' , 'plausible-analytics ' ),
@@ -191,14 +183,6 @@ public function __construct() {
191
183
'value ' => 'revenue ' ,
192
184
'caps ' => [ self ::CAP_GOALS , self ::CAP_FUNNELS , self ::CAP_PROPS , self ::CAP_REVENUE ],
193
185
],
194
- 'pageview-props ' => [
195
- 'label ' => esc_html__ ( 'Authors and categories ' , 'plausible-analytics ' ),
196
- 'docs ' => 'https://plausible.io/wordpress-analytics-plugin#how-to-send-custom-properties ' ,
197
- 'slug ' => 'enhanced_measurements ' ,
198
- 'type ' => 'checkbox ' ,
199
- 'value ' => 'pageview-props ' ,
200
- 'caps ' => [ self ::CAP_PROPS ],
201
- ],
202
186
'form-completions ' => [
203
187
'label ' => esc_html__ ( 'Form completions ' , 'plausible-analytics ' ),
204
188
'docs ' => 'https://plausible.io/wordpress-analytics-plugin#how-to-track-form-completions ' ,
@@ -207,6 +191,30 @@ public function __construct() {
207
191
'value ' => 'form-completions ' ,
208
192
'caps ' => [ self ::CAP_GOALS ],
209
193
],
194
+ 'user-logged-in ' => [
195
+ 'label ' => esc_html__ ( 'Logged-in user status ' , 'plausible-analytics ' ),
196
+ 'docs ' => 'https://plausible.io/wordpress-analytics-plugin#how-to-track-logged-in-user-status ' ,
197
+ 'slug ' => 'enhanced_measurements ' ,
198
+ 'type ' => 'checkbox ' ,
199
+ 'value ' => 'user-logged-in ' ,
200
+ 'caps ' => [ self ::CAP_PROPS ],
201
+ ],
202
+ 'search ' => [
203
+ 'label ' => esc_html__ ( 'Search queries ' , 'plausible-analytics ' ),
204
+ 'docs ' => 'https://plausible.io/wordpress-analytics-plugin#how-to-enable-site-search-tracking ' ,
205
+ 'slug ' => 'enhanced_measurements ' ,
206
+ 'type ' => 'checkbox ' ,
207
+ 'value ' => 'search ' ,
208
+ 'caps ' => [ self ::CAP_GOALS ],
209
+ ],
210
+ 'tagged-events ' => [
211
+ 'label ' => esc_html__ ( 'Custom events ' , 'plausible-analytics ' ),
212
+ 'docs ' => 'https://plausible.io/wordpress-analytics-plugin#how-to-setup-custom-events-to-track-goal-conversions ' ,
213
+ 'slug ' => 'enhanced_measurements ' ,
214
+ 'type ' => 'checkbox ' ,
215
+ 'value ' => 'tagged-events ' ,
216
+ 'caps ' => [ self ::CAP_GOALS ],
217
+ ],
210
218
'hash ' => [
211
219
'label ' => esc_html__ ( 'Hash-based routing ' , 'plausible-analytics ' ),
212
220
'docs ' => 'https://plausible.io/wordpress-analytics-plugin#how-to-enable-hash-based-url-tracking ' ,
@@ -434,7 +442,7 @@ public function __construct() {
434
442
if ( ! empty ( $ settings [ 'self_hosted_domain ' ] ) ) {
435
443
$ fields = $ this ->fields [ 'general ' ][ 1 ][ 'fields ' ];
436
444
437
- array_splice ( $ fields , 6 , 0 , self ::OPTION_NOT_AVAILABLE_IN_CE_HOOK );
445
+ array_splice ( $ fields , 5 , 0 , self ::OPTION_NOT_AVAILABLE_IN_CE_HOOK );
438
446
439
447
$ this ->fields [ 'general ' ][ 1 ][ 'fields ' ] = $ fields ;
440
448
}
0 commit comments