is_connected(); $awb_rt_settings = get_option( 'awbseo_settings', [] ); $serp_key_configured = ! empty( $awb_rt_settings['serp_api_key'] ?? '' ); $has_rank_source = $gsc_connected || $serp_key_configured; $awb_rt_regions = AWBSEO_Rank_Tracker::regions(); ?>

📈

📊 ' . esc_html__( 'Settings', 'adworksbid-seo' ) . '' ); ?>
📊 ' . esc_html__( 'Settings', 'adworksbid-seo' ) . '' ); ?>

' . esc_html__( 'Settings', 'adworksbid-seo' ) . '' ); ?>

$config ) : $history = AWBSEO_Rank_Tracker::get_history( $kw, 30 ); $latest = $history ? end( $history ) : null; $pos = $latest ? (int) $latest->position : '-'; // If no history yet and a rank data source is available, fetch // live and store so subsequent page loads use the cached // table value. Previously this only fired when GSC was // connected, so a site relying solely on the Rank Tracker // API key never got this same-page backfill. if ( '-' === $pos && $has_rank_source ) { $live_pos = AWBSEO_Rank_Tracker::fetch_position( $kw ); if ( $live_pos !== null ) { $pos = $live_pos; // Rebuild history so the sparkline picks it up too. $history = AWBSEO_Rank_Tracker::get_history( $kw, 30 ); } } ?>
' . esc_html( parse_url( $config['url'], PHP_URL_PATH ) ) . '' : '-'; ?> # 1 ) : ?>

🏆

is_connected() ? $gsc->get_quick_wins() : []; if ( $wins ) : ?>
#
is_connected() ) : ?>
📊 ' . esc_html__( 'Settings', 'adworksbid-seo' ) . '' ); ?>

Already tracked'); var $table = $('#awb-keywords-table'); if ($table.length) { $('html,body').animate({ scrollTop: $table.offset().top - 60 }, 400); location.reload(); } } else { $btn.prop('disabled', false).html('+Add to Tracked Keywords'); alert(res.data || 'Could not add keyword.'); } }); }); }); AWBJS; wp_add_inline_script( 'awbseo-admin', $awb_rt_js ); ?>