All Case Studies
Travel Agency & Tourism
Website Migration to Next.js, Flights API Integration & GA4 Lead Tracking

How Moving From WordPress to Next.js Took Trip Agency's Lighthouse Score From 38 to 96

Trip Agency's old WordPress site was slow and bulky. We rebuilt it from scratch via travel website development with native flight API integration, dynamic call tracking, and full analytics & reporting. Mobile Lighthouse rose from 38 to 96, and leads climbed 50% on the same budget.
Client: Trip Agency
Timeframe: 90 Days
Region: United Kingdom & Europe
Led by: Jeffrey Mathew
Key ROI Benchmark
90 Days
+58 pts

Lighthouse Performance Score (Mobile)

Baseline: 38 → Achieved: 96
Largest Contentful Paint (LCP)-76.4%Now 1.7 s
Total Leads / Month+50%Now 180
Leads Attributed to Source in GA4:95% (+55 pts)
Verified Outcome

Headline Performance Shifts

Lighthouse Performance Score (Mobile)
Baseline:38
Achieved:96
Net Change+58 pts
Largest Contentful Paint (LCP)
Baseline:7.2 s
Achieved:1.7 s
Net Change-76.4%
Total Leads / Month
Baseline:120
Achieved:180
Net Change+50%
Leads Attributed to Source in GA4
Baseline:40%
Achieved:95%
Net Change+55 pts
01 / Problem Statement
Audit Phase

The Challenge

Trip Agency was running on an aging, monolithic WordPress site burdened by 35+ active plugins. Mobile pages loaded at an excruciating 7.2 seconds, flight search took users off-site, and marketing spend was completely blind to which traffic sources generated actual phone bookings.
Pre-Takeover Baseline MetricsQ1 Snapshot
Lighthouse Performance (Mobile)38 / 100
Largest Contentful Paint7.2 seconds
Total Page Weight4.8 MB
Critical Bottleneck:
Bloated plugin stylesheets, unoptimized theme JavaScript, and synchronous database queries choked mobile devices, triggering high bounce rates that undermined their managed cloud hosting efficiency.
02 / Commercial Impact
Cost of Inaction

Why It Mattered

In travel, speed is an absolute conversion feature. Deploying high-performance web design services and edge architecture ensures travelers comparing flights stay on site and book rather than leaving for competitors.
Financial Implications & Math
On the same 20,000 monthly sessions, lifting visitor-to-lead conversion from 0.6% to 0.9% adds 60 qualified leads a month (720 additional bookings a year) while driving cost per lead down from $83.33 to $55.56 on flat marketing spend.
VERDICTPatching plugins on an outdated WordPress architecture was futile. The entire platform foundation had to be rebuilt on modern edge infrastructure.
Root Cause Analysis

The Diagnosis & Strategy Formulation

Diagnostic Hypothesis
"Speed is a conversion feature, not a technical nicety. When a page takes several seconds to show anything useful, the money spent bringing visitors to it is already wasted."
JM
Jeffrey MathewFounder & Principal Growth Engineer, Teckgeekz

Identified Account Bottlenecks

Audit findings uncovering where budget was leaking prior to campaign intervention.

1

Heavy Monolithic WordPress Stack

Accumulated plugin bloat, render-blocking scripts, and lack of modern asset minification ballooned page payloads to 4.8 MB.
2

High-Friction Flight Search

Flight inquiries relied on third-party iframe redirects with zero native booking speed, resulting in immediate visitor drop-off.
3

Unmeasured Call Attribution

Over 50% of travel bookings came via phone calls, but phone numbers were hardcoded with zero dynamic number insertion or analytics tracking.
4

Broken Conversion Signals in GA4

Inquiry forms lacked standardized generate_lead event firing, leaving paid campaign algorithms blind to genuine commercial conversions.
The Blueprint

Execution & Strategy

How we transformed the client's commercial yield through sequential technical and strategic interventions.

01Platform Migration

Migrated From WordPress to Next.js App Router

Replaced the monolithic PHP/WordPress backend with a statically generated Next.js frontend deployed on edge CDN, elevating mobile Lighthouse from 38 to 96.

02Design & UX

Full UI/UX Redesign & Asset Optimization

Engineered a lean, conversion-focused interface utilizing Next.js Image Optimization, modern CSS, and sub-100ms client hydration. Total page weight shrank from 4.8 MB to 1.1 MB.

03API Integration

Native Flights API Integration

Built direct serverless API endpoints connecting to global flight inventory (GDS/Amadeus), allowing travelers to query real-time airfares without leaving the page.

04Call Tracking

Dynamic Call Tracking & DNI Implementation

Deployed Dynamic Number Insertion (DNI) across all landing pages to track inbound phone calls and pass UTM caller parameters back to Google Ads and GA4.

05GA4 & Analytics

Standardized GA4 Event & Attribution Tracking

Implemented closed-loop GA4 tracking using generate_lead standards across forms, click-to-call, and flight lookups. Attributed leads climbed from 40% to 95%.

Comparative Analysis

Results & Comparative Impact

Metric EvaluatedBaseline (90 Days Before)With Teckgeekz (90 Days)Net Impact
Lighthouse Performance Score (Mobile)3896+152.6% (+58 pts)
First Contentful Paint (FCP)4.1 s1.0 s−75.6% (−3.1 s)
Largest Contentful Paint (LCP)7.2 s1.7 s−76.4% (−5.5 s)
Total Blocking Time (TBT)900 ms60 ms−93.3% (−840 ms)
Cumulative Layout Shift (CLS)0.310.02−93.5% (−0.29)
Speed Index6.9 s1.9 s−72.5% (−5.0 s)
Total Page Weight4.8 MB1.1 MB−77.1% (−3.7 MB)
Visitor-to-Lead Conversion Rate0.6%0.9%+50% (+0.3 pts)
Total Inbound Leads / Month120180+50% (+60 Leads)
Leads Attributed to Source in GA440%95%+137.5% (+55 pts)

Month-by-Month Performance Progression

Chronological Ramp-up
Tracking PeriodMonthly SpendInbound LeadsCost Per Lead (CPL)Yield (Leads / $100)
Baseline Month 1$10,000114$87.7211.40
Baseline Month 2$10,000120$83.3312.00
Baseline Month 3$10,000126$79.3712.60
Teckgeekz Month 1Intervention$10,000150$66.6715.00
Teckgeekz Month 2Intervention$10,000166$60.2416.60
Teckgeekz Month 3Intervention$10,000180$55.5618.00
Measurement Framework

Methodology & Attribution Notes

Audit Grade: Institutional
ROI DEFINITION

Lead-Efficiency Model

Mobile Lighthouse performance and Core Web Vitals before and after migration, evaluated alongside inbound lead yield per $1,000 of marketing budget. In the tracking table, Spend represents monthly marketing spend (maintained flat at $10,000), Leads represent total verified inquiries (online forms, phone calls, and direct flight searches), CPL is cost per lead, and Yield is leads generated per $1,000 invested.
Attribution Standard

Evaluated strictly as leads per $100 ad spend to prevent revenue/pricing distortions.

DATA INTEGRITY

Direct Cross-Reconciliation

Performance metrics audited via Google Lighthouse v12 and PageSpeed Insights field data across 10 core booking routes. Lead and attribution metrics reconciled via GA4 server-side events, CallRail DNI logs, and CRM reservation entries.
Verification Status
All figures cross-audited against server-side logs and CRM pipelines.
Applied Formulas & Mathematical Proofs
Lead Yield
(Leads ÷ Spend) × 1,000

Inbound leads generated per $1,000 of marketing expenditure.

Visitor-to-Lead Rate
(Leads ÷ Sessions) × 100

Percentage of unique website visitors converting into active travel leads.

Cost Per Lead (CPL)
Spend ÷ Leads

Effective acquisition cost per qualified inquiry across all channels.

Performance Gain %
((New Score − Old Score) ÷ Old Score) × 100

Relative speed and efficiency gain achieved following platform migration.

★★★★★

"Migrating from WordPress to Next.js with Teckgeekz was the best commercial decision we made this year. Our mobile Lighthouse jumped to 96, our pages load instantly, and we saw a 50% increase in inbound leads on the exact same ad spend."

DianneIT and Marketing Head, Trip Agency

Key Executive Takeaways

Speed is a primary conversion feature. A faster mobile site turns identical traffic volume into 50% more inquiries.
When the foundation is slow, migrating to Next.js on the edge beats endlessly debugging WordPress plugins.
Measure Core Web Vitals on mobile first: cutting LCP from 7.2s to 1.7s eliminated bounce-rate drop-offs.
Track every lead at the source: integrating call tracking with GA4 lifted lead attribution from 40% to 95%.

Tech Stack & Tools Deployed

Production infrastructure & analytics platforms leveraged in this project

5 Platforms
01Next.js 15 & React
02Google Lighthouse & PageSpeed Insights
03Google Analytics 4 (GA4)
04Amadeus / GDS Flight API Gateway
05CallRail Dynamic Number Insertion (DNI)
JM
Strategy & Technical LeadVerified Case Author

Jeffrey Mathew

Founder & Principal Growth Engineer. Directing performance infrastructure, PPC engineering, and enterprise AI implementations at Teckgeekz since 2011.

Ready to engineer your
own success story?

Our team of digital strategists and AI engineers are ready to build your next-generation growth engine.

Start a Conversation

Ready to Elevate Your Business?

Fill out the form below and let's discuss how Teckgeekz can help you reach your goals.

WhatsApp