$name, 'type' => $type, 'match' => $match ); update_option( 'footloom_goals', $goals ); } } elseif ( 'delete_goal' === $action ) { unset( $goals[ absint( $_POST['goal_index'] ?? -1 ) ] ); $goals = array_values( $goals ); update_option( 'footloom_goals', $goals ); } elseif ( 'save_tracking' === $action ) { update_option( 'footloom_exclude_admins', empty( $_POST['exclude_admins'] ) ? 0 : 1 ); // Turning countries on downloads the database in the background. Turning them off removes it. $geo = empty( $_POST['geo'] ) ? 0 : 1; if ( $geo && ! Geo::enabled() ) { wp_schedule_single_event( time(), 'footloom_geo_update' ); } elseif ( ! $geo && Geo::enabled() ) { wp_clear_scheduled_hook( 'footloom_geo_update' ); wp_delete_file( Geo::file() ); } update_option( 'footloom_geo', $geo ); } elseif ( 'save_retention' === $action ) { $days = 'delete' === sanitize_key( wp_unslash( $_POST['retention_mode'] ?? '' ) ) ? absint( $_POST['retention_days'] ?? 0 ) : 0; update_option( 'footloom_retention_days', $days ); } echo '
Settings saved.
A goal is a page or an event you want visitors to reach. The dashboard shows how many visitors completed each goal and the conversion rate.
| Name | Type | Match | |
|---|---|---|---|
|