<!doctype html>
<html lang="en">
  <head>
    <!-- Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      // Configuration will be handled by React app with environment variable
      const gaMeasurementId = 'G-XXXXXXXXXX'; // Replace with your actual GA4 Measurement ID
      if (gaMeasurementId && gaMeasurementId !== 'G-XXXXXXXXXX') {
        gtag('config', gaMeasurementId, {
          send_page_view: false // Page views will be tracked by React Router
        });
      }
    </script>

    <script async src="https://assets.endorsely.com/endorsely.js" data-endorsely="6ead0675-98f1-4f89-8d0a-4ff6bda2ebe2"></script>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
    setTimeout(function() {
        $('a[href^="https://buy.stripe.com/"]').each(function(){
            const oldBuyUrl = $(this).attr("href");
            const referralId = window.endorsely_referral;
            if (!oldBuyUrl.includes("client_reference_id")) {
                const newBuyUrl = oldBuyUrl + "?client_reference_id=" + referralId;
                $(this).attr("href", newBuyUrl);
            }
        });
        $("[pricing-table-id]").each(function(){
            $(this).attr("client-reference-id", window.endorsely_referral);
        });
        $("[buy-button-id]").each(function(){
            $(this).attr("client-reference-id", window.endorsely_referral);
        });
    }, 2000);
});
</script>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/png" href="/transparent_blue_kingdom_counsel_favicon-logo.png" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="description" content="The Kingdom Counsel - Find qualified Christian therapists, counselors, and mental health professionals near you. Compassionate, expert support for your mental health and healing journey." />
<meta name="keywords" content="Christian therapy, Christian therapists, Christian counselors, Christian counselling, faith-based counseling, faith-based counselling, therapy, secular counselling, UK Christian therapists, US Christian therapists, Australian Christian therapists, Canadian Christian therapists, New Zealand Christian therapists, online Christian therapy, Christian mental health support, therapy for Christians, Christian counseling services, personalized Christian therapy" />
    
    <!-- Preload critical resources -->
    <link rel="preload" href="/assets/main-BjUjTtBE.tsx" as="script" crossorigin>
    
    <!-- Preconnect to external domains -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link rel="preconnect" href="https://images.pexels.com">
    <link rel="dns-prefetch" href="https://assets.endorsely.com">
    
    <!-- Preload Google Fonts -->
    <link rel="preload" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" as="style" onload="this.onload=null;this.rel='stylesheet'">
    <noscript><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"></noscript>
    
    <!-- Prefetch likely next pages -->
    <link rel="prefetch" href="/find-therapist">
    <link rel="prefetch" href="/featured-therapists">
    <link rel="prefetch" href="/about">
    
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
    <title>The Kingdom Counsel | Find Qualified Christian Therapists, Counselors & Mental Health Professionals</title>
    <script type="module" crossorigin src="/assets/js/index-CWa0491v.js"></script>
    <link rel="modulepreload" crossorigin href="/assets/js/vendor-CRSuqoI3.js">
    <link rel="modulepreload" crossorigin href="/assets/js/ui-BS042saS.js">
    <link rel="modulepreload" crossorigin href="/assets/js/supabase-DPpw2ruC.js">
    <link rel="modulepreload" crossorigin href="/assets/js/forms-B3Ry6vZ8.js">
    <link rel="modulepreload" crossorigin href="/assets/js/query-DjioajzS.js">
    <link rel="stylesheet" crossorigin href="/assets/css/index-BASHODV4.css">
  <link rel="manifest" href="/manifest.webmanifest"><script id="vite-plugin-pwa:register-sw" src="/registerSW.js"></script></head>
  <body>
    <div id="root"></div>
  </body>
</html>