<?php
// Enhanced security headers
// Session for CSRF token
ini_set('session.cookie_samesite', 'Lax');
ini_set('session.cookie_httponly', '1');
ini_set('session.cookie_secure', '1');
session_start();

if (!isset($_SESSION['csrf_token'])) {
    $_SESSION['csrf_token'] = bin2hex(random_bytes(32));
}
header('Strict-Transport-Security: max-age=31536000; includeSubDomains');
header('Content-Security-Policy: default-src \'self\'; script-src \'self\' \'unsafe-inline\' https://cdnjs.cloudflare.com https://www.googletagmanager.com https://www.google-analytics.com https://www.clarity.ms https://www.google.com https://www.gstatic.com; style-src \'self\' \'unsafe-inline\' https://fonts.googleapis.com; font-src \'self\' https://fonts.gstatic.com; img-src \'self\' data: https://www.google-analytics.com; connect-src \'self\' https://www.google-analytics.com https://analytics.google.com https://region1.google-analytics.com https://www.google.com; frame-src https://www.google.com;');

// SEO and performance optimizations
$page_title = "Data Analytics Consultancy London | UK Data Services";
$page_description = "Expert data analytics consultancy in London. We help you leverage business intelligence and data science to drive growth. Contact our London-based team today.";
$canonical_url = "https://ukdataservices.co.uk/data-analytics-consultancy-london";
$keywords = "data analytics consultancy london, analytics consultant london, business intelligence london, data science services london, data analytics services london";
$author = "UK Data Services";
$og_image = "https://ukdataservices.co.uk/assets/images/og/data-analytics-consultancy.png";
$twitter_card_image = "https://ukdataservices.co.uk/assets/images/og/data-analytics-consultancy.png";
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?php echo htmlspecialchars($page_title); ?></title>
    <meta name="description" content="<?php echo htmlspecialchars($page_description); ?>">
    <meta name="keywords" content="<?php echo htmlspecialchars($keywords); ?>">
    <meta name="author" content="<?php echo htmlspecialchars($author); ?>">
    <meta name="robots" content="index, follow">
    <link rel="canonical" href="<?php echo htmlspecialchars($canonical_url); ?>">
    
    <!-- Open Graph / Social Media -->
    <meta property="og:type" content="website">
    <meta property="og:url" content="<?php echo htmlspecialchars($canonical_url); ?>">
    <meta property="og:title" content="<?php echo htmlspecialchars($page_title); ?>">
    <meta property="og:description" content="<?php echo htmlspecialchars($page_description); ?>">
    <meta property="og:image" content="<?php echo htmlspecialchars($og_image); ?>">
    
    <!-- Twitter Card -->
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:title" content="<?php echo htmlspecialchars($page_title); ?>">
    <meta name="twitter:description" content="<?php echo htmlspecialchars($page_description); ?>">
    <meta name="twitter:image" content="<?php echo htmlspecialchars($twitter_card_image); ?>">
    
    <!-- Favicon -->
    <link rel="icon" type="image/svg+xml" href="/assets/images/favicon.svg">
    <link rel="apple-touch-icon" sizes="180x180" href="/assets/images/apple-touch-icon.svg">
    
    <!-- Styles -->
    <link rel="stylesheet" href="/assets/css/main.min.css?v=1.1.4">
    
    <!-- Schema -->
    <script type="application/ld+json">
    {
        "@context": "https://schema.org",
        "@type": "Service",
        "serviceType": "Data Analytics Consultancy",
        "provider": {
            "@type": "Organization",
            "name": "UK Data Services",
            "url": "https://ukdataservices.co.uk/"
        },
        "areaServed": {
            "@type": "City",
            "name": "London"
        },
        "name": "Data Analytics Consultancy London",
        "description": "<?php echo htmlspecialchars($page_description); ?>"
    }
    </script>
</head>
<body>

<?php include($_SERVER['DOCUMENT_ROOT'] . '/includes/nav.php'); ?>

<main>
    <section class="hero">
        <div class="container">
            <h1>Data Analytics Consultancy Services in London</h1>
            <p class="subtitle">Turn your data into your most valuable asset. Our London-based analytics consultants provide expert guidance in business intelligence, data science, and strategy to drive measurable growth.</p>
            <a href="/contact" class="btn btn-primary">Get Your Free Consultation</a>
        </div>
    </section>

    <section class="services-overview">
        <div class="container">
            <h2>Your End-to-End Analytics Partner</h2>
            <p>We are more than just an analysis company; we are a full-service data partner. From sourcing unique datasets through <a href="/web-scraping-services">web scraping</a> to delivering actionable insights, we cover your entire data journey.</p>
            <div class="grid-3">
                <div class="card">
                    <h3>Business Intelligence (BI)</h3>
                    <p>We transform complex data into clear, interactive dashboards (Power BI, Tableau). Track KPIs, uncover trends, and empower your team to make data-driven decisions.</p>
                </div>
                <div class="card">
                    <h3>Data Science & Machine Learning</h3>
                    <p>Go beyond historical analysis. Our data scientists build predictive models to forecast sales, identify churn risk, and optimize pricing for a competitive edge.</p>
                </div>
                <div class="card">
                    <h3>Data Strategy & Governance</h3>
                    <p>A solid foundation is key. Our analytics consultants help you build robust data pipelines, ensure data quality, and establish a governance framework for long-term success.</p>
                </div>
            </div>
        </div>
    </section>

    <section class="why-us">
        <div class="container">
            <h2>Why Choose UK Data Services as Your London Analytics Firm?</h2>
            <ul>
                <li><strong>London-Based Experts:</strong> Get local support from a team that understands the London and UK market dynamics.</li>
                <li><strong>Commercial Focus:</strong> We are not academics. Our solutions are designed to deliver tangible ROI and solve real-world business problems.</li>
                <li><strong>Unique Data Sourcing:</strong> Unlike other consultancies, we can gather the exact data you need, giving you an unparalleled market view.</li>
                <li><strong>Transparent & Collaborative:</strong> We work as an extension of your team, providing clear communication and flexible engagement models.</li>
            </ul>
        </div>
    </section>

    <section class="cta-banner">
        <div class="container">
            <h2>Ready to Unlock Your Data's Potential?</h2>
            <p>Talk to one of our London-based analytics consultants today. We'll discuss your challenges and outline a clear, no-obligation plan to help you achieve your goals.</p>
            <a href="/contact" class="btn btn-secondary">Schedule a Call</a>
        </div>
    </section>
</main>

<?php include($_SERVER['DOCUMENT_ROOT'] . '/includes/footer.php'); ?>

<script src="/assets/js/main.min.js?v=1.1.1"></script>

</body>
</html>