In this article
Short answer
RaftLabs rebuilt an Irish utility company's loyalty platform from WordPress PHP to Sanity headless CMS and Gatsby, eliminating plugin issues, slow page loads, and the bottleneck stopping the marketing updating content independently. Projected: 3x faster page loads, 40% higher engagement, and 60% less content update time. All content updates in real time without a development ticket. Delivered in 12 weeks.
The ask
The loyalty platform worked. The problem was everything that touching it required.
Built on WordPress PHP, the platform had accumulated years of plugin dependencies. Every update risked a compatibility conflict. Slow page load times had become a standing complaint. When the marketing team wanted to update a reward or run a campaign, they raised a ticket and waited for a developer to make the change.
A loyalty program that cannot be updated quickly is a loyalty program that loses relevance. The company needed the platform rebuilt on a foundation where content updates were the marketing team's job, not an engineering task.
The developer dependency turns a two-hour change into a two-week ticket. A campaign that should adapt to customer behaviour in real time launches when the buyer has already left. The rebuild was about who gets to act, not just how fast the pages load.

The engagement
- Client
- An Irish utility company's customer loyalty platform
- Problem
- WordPress with years of plugin dependencies: slow pages, compatibility conflicts, and every content update stuck in a developer ticket queue
- What we built
- A rebuild on Sanity headless CMS and Gatsby: the marketing team publishes rewards and campaigns directly, pages generate statically, no plugin conflicts
- Platform
- Web app
- Delivery
- 12 weeks, migrated from live WordPress without disrupting the active program
- Status
- Live. Performance and engagement figures below are pre-launch projections, stated as such
- Working together
- Remote team, India and Ireland · weekly progress call · async in writing between calls
What changed
- WordPress platform accumulated plugin dependencies that created recurring compatibility conflicts
- Page load times were slow, frustrating customers and reducing engagement before they reached the rewards
- Every content update (a new reward, a seasonal promotion, a campaign banner) required raising a developer ticket
- No reliable way to push content changes quickly during active campaigns
- UI felt outdated and did not match the modern brand the company had built in other channels
- Technical debt made each change slower and riskier than it should have been
- Sanity headless CMS gives the marketing team a clean interface for updating rewards, promotions, and content in real time
- Gatsby static site generation produces pages that load significantly faster than the old WordPress setup
- No developer involvement required for content changes: the marketing team operates independently
- Seasonal campaigns and new rewards go live without a ticket queue
- Modern responsive design matches the utility company's current brand standards across all devices
- Architecture is built to extend with new features without accumulating the technical debt that slowed the old platform
What we had to solve
Migrating content from WordPress without disrupting an active loyalty program
The platform was live and being used by customers throughout the rebuild. Content (rewards, member tiers, campaign history) had to be mapped from WordPress's database structure into Sanity's schema without data loss or downtime. Every field in the old system had to find a clean equivalent in the new one, and the cutover had to happen without customers seeing an incomplete or broken reward catalog.
Designing a Sanity schema the marketing team could actually use
A headless CMS is only useful if non-technical users can operate it confidently. We had to design the Sanity content schema so that the marketing team could create a new reward, update campaign details, and change seasonal content without accidentally breaking a page layout or needing to understand JSON. That meant structured document types with validation rules, clear field labels, and previews, not just an empty content editor that exposes too much of the system's internals.
What the rebuild delivered
The one result on this page that is project-recorded. What the rebuild was expected to produce is listed separately below, labelled as projection.
| Result | What changed | Period or context | Evidence and limitation |
|---|---|---|---|
| What shipped | A live loyalty platform on Sanity and Gatsby in 12 weeks | Content migrated from WordPress without disrupting the active program, schema designed for non-technical marketers | Project-recorded |
What was projected before launch, not measured
These three figures were estimates made before launch. They were never measured afterwards, so they sit outside the results above and are not outcomes.
| Result | What changed | Period or context | Evidence and limitation |
|---|---|---|---|
| Page speed (projection) | 3x faster page loads, projected | Gatsby static generation replacing WordPress PHP with plugin overhead | Pre-launch projection. No post-launch measurements were available for this review |
| Engagement (projection) | 40% increase, projected | Faster pages and a modern interface were expected to bring customers back to the rewards catalog | Pre-launch projection. No post-launch measurements were available for this review |
| Content velocity (projection) | 60% reduction in content update time, anticipated | The marketing team publishing directly in Sanity instead of raising developer tickets | Pre-launch projection. The workflow change itself, marketer-owned publishing, is project-recorded |
What we built
The rebuild separates the content management layer from the presentation layer entirely. The marketing team works in Sanity; customers see a fast, statically generated site built by Gatsby. The four parts below are where that split changed the daily work.


Marketers publish rewards and campaigns without raising a ticket
The Sanity schema is structured around the objects the marketing team actually manages: rewards, member tiers, campaigns, and promotional banners. Each document type has validation rules and a live preview so editors can see how their content will appear before publishing. A non-technical marketer can create a new reward, set its point cost and expiry date, and publish it to the live site without raising a ticket.

Customer pages load immediately, no database query on each request
Gatsby builds every page at deploy time from the content in Sanity. The result is pre-rendered HTML that loads immediately, with no database query on each page request. The rewards catalog, membership dashboard, and campaign pages all load significantly faster than the previous WordPress setup, without any infrastructure scaling required.

Content publishes to the live site in minutes, no deployment step for the team
When a marketer publishes a change in Sanity, a Vercel build trigger fires automatically. Gatsby rebuilds the affected pages and the updated content is live in minutes. The marketing team never has to think about deployments, and there is no manual step between publishing content and customers seeing it.

Members manage their account from any device without UI degradation
The rebuilt platform uses a clean, mobile-first design that reflects the utility company's current brand standards. Customers can browse rewards, check their point balance, and manage their membership from any device without the UI degradation that characterised the old WordPress theme.
The lesson
The CMS is a staffing decision
The technical question was WordPress or headless. The real question was who gets to change the website. The CMS is a staffing decision: the architecture had to put the controls in the hands of the people who own the loyalty program. Loyalty campaigns are inherently time-sensitive, and a reward that launches after the moment has passed is a reward that never mattered.
There is a trap here worth naming. A business hears that headless is the future, spends six months and a large bill, and ends up with a fast website the marketing team still cannot edit without calling a developer. The schema work, validation rules, field labels, and previews are what make the independence real. Without them, headless is just a faster way to wait on engineering.
How it runs
- Sanity
- The main requirement was giving the marketing team control of the content without developer involvement. Sanity stores each reward, campaign and banner as its own tidy record, checks entries against simple rules so a mistake is caught before it publishes, and shows a preview of the page before it goes live. Non-technical users can update content confidently, and new content types can be added as the program grows.
- Gatsby
- A loyalty platform with thousands of registered customers needed the rewards catalog and member dashboard to load fast. Gatsby builds every page in advance, so when a customer visits, the finished page is handed to them instead of being assembled on the spot. Pages stay quick even at busy times, and the slow on-the-spot assembly that held back the WordPress platform is gone.
- Vercel
- Content updates in Sanity trigger an automatic rebuild and deploy via Vercel. This means the marketing team publishes a change and it is live on the site within minutes, with no manual deployment step and no server configuration to manage.
Where this applies
A fit for loyalty programs marketing needs to run itself, not for a site whose content barely changes
This story fits a loyalty or content-heavy program where promotions are time-sensitive and the marketing team is stuck behind a developer queue. Utilities, retail, hospitality and financial services programs all share that shape. The win is not the faster pages. It is the marketing team publishing on its own schedule.
It is the wrong reference if your content changes twice a year. Speed alone rarely justifies a migration. And headless on its own does not create independence: without the schema design, validation and previews, you get a faster website the team still cannot edit. If the editing problem is the problem, budget for the schema work, not just the platform swap.
Frequently asked questions
Straight answers to what buyers ask before they scope. Still stuck? .
The program stayed live throughout. Every content type in the old WordPress database (rewards, member tiers, campaign history) was mapped to a clean equivalent in the new schema before the move. The cutover was planned so customers never saw a half-moved catalog. The risk in a migration like this is not the new platform. It is a field landing in the wrong place, or content going live incomplete.
On the old setup, every time a customer opened a page, the server had to fetch the content and assemble that page on the spot. Plugins made the assembly slower and sometimes clashed with each other. That slowness is built into how the old platform works; it is not a setting someone got wrong, so tuning settings could not fix it. Building every page in advance, so the finished page is ready before anyone visits, removes the cause instead of patching around it.
Yes, and the reason is the schema, not the tool. The content types match how the marketing team already thinks: reward records with point costs, campaign objects with start and end dates, banners with image and copy fields. Validation rules catch mistakes before they publish, and a preview shows the page before it goes live. With that structure in place, a marketer can publish a new reward or campaign in minutes, with no technical knowledge and no ticket.
For a platform of this scope (live content migration, Sanity schema design, Gatsby frontend build, and Vercel deployment pipeline) 12 weeks is the typical timeline with a focused team. The most time-consuming part is usually the content mapping: understanding all the content types in the old system and designing the right Sanity schema to replace them cleanly.
Yes. The architecture (Sanity for content management, Gatsby or Next.js for the front end, Vercel for deployment) applies to any loyalty program where the marketing team needs content independence and the platform needs performance at scale. We have used it for retail, hospitality, and financial services programs. The specific schema design changes by industry, but the approach transfers.
Only one result on this page is project-recorded: the rebuilt platform itself, live in 12 weeks. The three headline figures (3x faster page loads, 40% higher engagement, 60% less content update time) were estimates made before launch. They were never measured afterwards. That is why they sit in their own block below the results, labelled as projections. Treat them as what the rebuild was expected to produce, not what it proved.
There is a weekly progress call with the people building the product. Work arrives in milestones: a working slice you can click through and review, with working software every two weeks. Between calls, updates and decisions move in writing, so your team can respond in its own working hours and every decision stays written down. Calls are for decisions, with the material shared before the call. The person who owns a piece of work reports on it directly.
More work like this

AI phone agents automate global feedback loops through voice interviews
Text surveys only reached people comfortable filling out forms. We built a voice platform that calls anyone with a phone, runs the interview, and has the findings ready when the last call ends.

Musgrave receipt scanning software case study for SuperValu and Centra
Musgrave's SuperValu and Centra receipt campaign recorded 1,062 users and 1,610 receipt submissions over four weeks. Validation accuracy moved from about 80% to near 99% after we simplified how the AI matched receipts to stores.

Brux ships a dental marketing SaaS: AI smile previews, GoHighLevel sync, and self-serve onboarding built for 1K-office scale
Brux Smile Makeover is a dental marketing SaaS where patients upload a selfie and get a lifelike AI smile preview in seconds. We built the AI pipeline, GoHighLevel two-way CRM sync, Stripe billing, and self-serve QR flyer onboarding built for 1K-office scale.
