-
Notifications
You must be signed in to change notification settings - Fork 368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add usage tracking for settings #2799
Conversation
@@ -322,7 +322,6 @@ public function clear_fields() { | |||
* Enqueue the scripts for the form. | |||
*/ | |||
public function enqueue_scripts() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this actually called from somewhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh looks like I had the warning about this because it's called in the Applications add-on's form (WP_Job_Manager_Applications_Apply
) that extends this class. Since this is a generic base class used all around I'd keep the method even if we don't use it now in core.
@@ -285,6 +312,7 @@ protected function init_settings() { | |||
'type' => 'text', | |||
'placeholder' => __( 'e.g. USD', 'wp-job-manager' ), | |||
'attributes' => [], | |||
'track' => 'bool', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
text?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixing these in 20d4d78
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Fixes #2797
Changes Proposed in this Pull Request
track
key in the settings configTesting Instructions
job_manager_usage_tracking_send_usage_data
wpjm_stats_log
event in Tracks Live View. Username can be used to filter, it's the full site URL (Likehttp://paper.local
)settings_
fields are included