Case 05 · Health and aesthetics · United States

U.S. med spa: online booking inside its own site, with 100% of appointments attributed to the campaign that generated them

We built a WordPress plugin for a U.S. med spa that reproduces its booking platform's flow inside its own site and saves each appointment with the campaign that generated it.

Reception and waiting area with an armchair, plants and a wooden counter
Health and aesthetics · illustrative image, not the client’s
Client
Aesthetic clinic (med spa) · Confidential
Industry
Health and aesthetics
Country
United States
Timeline
Closed project · 2026
Capabilities
Software developmentWeb platforms
Published
June 18, 2026

Measured results

Result 01100%of bookings attributed
Each appointment stores the campaign, ad or search that generated it.
Result 020external redirects
The entire booking flow happens on the client's domain.
Result 0310 stepsof the booking flow rebuilt
Services, provider, calendar, time slots and confirmation.
Result 0430 daysof source persistence
First-party cookie to attribute even if the booking happens days later.
Problem
The "Book" button sent the customer to another domain (its booking platform). Leaving the site lost the campaign parameters and Google Analytics recorded appointments with no source: no way to know which channel produced them.
What we did
A WordPress plugin that rebuilds the 10-step booking flow inside the site, using the booking platform's API only as a data source, and saves each appointment with its full attribution.
Result
100% of bookings are recorded with their channel, with no redirects and with the data on the client's domain. Ad spend decisions are now based on evidence.

A U.S. med spa invested in Google, Instagram and local SEO, but its booking system lived on another domain and broke all measurement. We built a WordPress plugin that reproduces the entire booking flow on its site and saves each appointment with its source.

The client

A med spa in the United States that invests consistently in Google search campaigns, Instagram and local SEO to fill its schedule. Its website runs on WordPress; its bookings run on a specialized platform for the industry. For confidentiality, we don't publish its name or domain.

The problem

The business had a critical measurement problem. When the visitor clicked "Book," they left the clinic's site for the booking platform's domain. That redirect broke the attribution chain: campaign parameters were lost and Google Analytics recorded conversions with no source. The result was that there was no way to know which marketing channel was actually producing appointments, and budget was allocated by gut feel, not evidence.

The sentence that summed up the diagnosis: they weren't losing bookings; they were losing the evidence of what produced them.

What we built

We designed a custom WordPress plugin that rebuilds the booking platform's full ten-step flow inside the site itself (services, provider, calendar, time slots, details and confirmation) and uses its API only as a data source. The customer never leaves the domain, so attribution is preserved end to end.

The main components were a React booking widget, a WordPress middle layer that talks to the platform's GraphQL API, a 30-day first-party cookie to capture the source even if the booking happens days later, an appointment database with full attribution, a webhook handler with auditing and retries, email notifications and an admin dashboard for credentials, branding, templates and export.

Security by design: API credentials are stored encrypted and only on the server; tokens are signed server-side and no secret ever reaches the browser; there are no third-party redirects and sensitive fields are excluded from logs.

  • React booking widget. A 10-step flow (services, provider, calendar, time slots, details and confirmation) integrated with the site's design.
  • Secure API layer. A dedicated WordPress endpoint talks to the booking system's GraphQL API; credentials are stored encrypted on the server and never reach the browser.
  • Source capture with a 30-day cookie. Campaign parameters are saved at first landing and travel with the booking even if the customer returns days later.
  • Booking database. Each appointment is saved with source, service and value, with CSV export.
  • Webhooks with retries and auditing. Events from the booking platform are processed with logging and automatic retry.
  • Notifications. Emails to the business and the customer, with editable templates.
  • Admin dashboard. Credentials, branding, templates and lead export from WordPress.

What was measured

100% of bookings are recorded with their source channel, the booking journey happens entirely on the client's domain, and the business has its own database with every appointment, its service, its value and the campaign that generated it, exportable to CSV. With that, investment decisions on Google and Instagram are now made with data in a market as competitive as aesthetics.

BeforeAfter
Source of each bookingLost on leaving the siteRecorded for 100% of appointments
Booking experienceRedirect to another domainFull flow inside the site
Customer and appointment dataOn the external platformAlso in the business's own database, exportable

What you can apply in your business

They weren't losing bookings: they were losing the evidence of what produced them

Without attribution, every ad dollar is a bet. The measurement problem was really an investment-decision problem.

When the platform forces you off your site, the answer can be to bring the platform onto your site

Using the API as a data source and building the experience in-house gave the business back control of its measurement and its data.

Security is designed in from the start

Server-side credentials, signed tokens and zero sensitive data in logs: what makes a custom integration reliable over the long term.

9 cases

More documented case studies

No.Client / projectIndustry · countryMeasured result

Next step

Let’s talk about your project

Request a proposal

Tell us what you sell and to whom. Within one business day we reply in writing: whether your site needs a rebuild or just optimization, how competitive your market is and what results are realistic. If we are not the right fit, we will tell you that too.