add_action('wp_ajax_process_hvac_survey', 'flavor_handle_hvac_survey'); add_action('wp_ajax_nopriv_process_hvac_survey', 'flavor_handle_hvac_survey'); function flavor_handle_hvac_survey() { $email = isset($_POST['email']) ? sanitize_email($_POST['email']) : ''; $phone = isset($_POST['phone']) ? sanitize_text_field($_POST['phone']) : ''; $service = isset($_POST['service_need']) ? sanitize_text_field($_POST['service_need']) : ''; $visitor_id = isset($_POST['visitor_id']) ? sanitize_text_field($_POST['visitor_id']) : ''; // Send Server-to-Server conversion to UTS // This perfectly bypasses adblockers because it's coming from PHP server IP! wp_remote_post('https://analytics.getsolarmax.com/track', [ 'body' => json_encode([ 'event_name' => 'LeadFormSubmitted', 'event_category' => 'Lead', 'lead_email' => $email, 'lead_phone' => $phone, 'lead_form_id' => 'hvac_survey_form', 'ip_address' => isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : '', 'user_agent' => isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : '', 'visitor_id' => $visitor_id, 'event_data' => [ 'service_need' => $service, 'page_title' => isset($_POST['page_title']) ? sanitize_text_field($_POST['page_title']) : '', 'source' => 'server_side_php' ] ]), 'headers' => ['Content-Type' => 'application/json'], 'timeout' => 5, 'blocking' => false // don't hold up the request ]); wp_send_json_success(); } Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-content/themes/velocity/functions.php:847) in /var/www/html/wp-includes/feed-rss2-comments.php on line 8 Comments on: Largo’s Best: 24/7 Heating Repair Services in Florida https://velocityairconditioning.com/carrier-heating-system-tune-up-largo/ Wed, 28 Jan 2026 23:31:40 +0000 hourly 1 https://wordpress.org/?v=6.9.4