/**
  * Handle the post requests in the admin form of the GA plugin
  *
  * @param Yoast_GA_Dashboards $dashboards
  */
 private function handle_ga_post_request($dashboards)
 {
     if (!function_exists('wp_verify_nonce')) {
         require_once ABSPATH . 'wp-includes/pluggable.php';
     }
     if (isset($_POST['ga-form-settings']) && wp_verify_nonce($_POST['yoast_ga_nonce'], 'save_settings')) {
         if (!isset($_POST['ignore_users'])) {
             $_POST['ignore_users'] = array();
         }
         $dashboards_disabled = Yoast_GA_Settings::get_instance()->dashboards_disabled();
         if ($dashboards_disabled == false && isset($_POST['dashboards_disabled']) || $this->ga_profile_changed($_POST)) {
             $dashboards->reset_dashboards_data();
         }
         // Post submitted and verified with our nonce
         $this->save_settings($_POST);
     }
 }