@@ -151,14 +151,6 @@ public function __construct() {
151151 'value ' => '404 ' ,
152152 'caps ' => [ self ::CAP_GOALS ],
153153 ],
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- ],
162154 'file-downloads ' => [
163155 'label ' => esc_html__ ( 'File downloads ' , 'plausible-analytics ' ),
164156 'docs ' => 'https://plausible.io/wordpress-analytics-plugin#how-to-track-file-downloads ' ,
@@ -167,21 +159,21 @@ public function __construct() {
167159 'value ' => 'file-downloads ' ,
168160 'caps ' => [ self ::CAP_GOALS ],
169161 ],
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 ' ,
173165 'slug ' => 'enhanced_measurements ' ,
174166 'type ' => 'checkbox ' ,
175- 'value ' => 'search ' ,
167+ 'value ' => 'outbound-links ' ,
176168 'caps ' => [ self ::CAP_GOALS ],
177169 ],
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 ' ,
181173 'slug ' => 'enhanced_measurements ' ,
182174 'type ' => 'checkbox ' ,
183- 'value ' => 'tagged-events ' ,
184- 'caps ' => [ self ::CAP_GOALS ],
175+ 'value ' => 'pageview-props ' ,
176+ 'caps ' => [ self ::CAP_PROPS ],
185177 ],
186178 'revenue ' => [
187179 'label ' => esc_html__ ( 'Ecommerce revenue ' , 'plausible-analytics ' ),
@@ -191,14 +183,6 @@ public function __construct() {
191183 'value ' => 'revenue ' ,
192184 'caps ' => [ self ::CAP_GOALS , self ::CAP_FUNNELS , self ::CAP_PROPS , self ::CAP_REVENUE ],
193185 ],
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- ],
202186 'form-completions ' => [
203187 'label ' => esc_html__ ( 'Form completions ' , 'plausible-analytics ' ),
204188 'docs ' => 'https://plausible.io/wordpress-analytics-plugin#how-to-track-form-completions ' ,
@@ -207,6 +191,30 @@ public function __construct() {
207191 'value ' => 'form-completions ' ,
208192 'caps ' => [ self ::CAP_GOALS ],
209193 ],
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+ ],
210218 'hash ' => [
211219 'label ' => esc_html__ ( 'Hash-based routing ' , 'plausible-analytics ' ),
212220 'docs ' => 'https://plausible.io/wordpress-analytics-plugin#how-to-enable-hash-based-url-tracking ' ,
@@ -434,7 +442,7 @@ public function __construct() {
434442 if ( ! empty ( $ settings [ 'self_hosted_domain ' ] ) ) {
435443 $ fields = $ this ->fields [ 'general ' ][ 1 ][ 'fields ' ];
436444
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 );
438446
439447 $ this ->fields [ 'general ' ][ 1 ][ 'fields ' ] = $ fields ;
440448 }
0 commit comments