Home / Portfolio / The British Hair Clinic
Case study

Tracking leads for The British Hair Clinic after Meta restricted the domain

ClientThe British Hair Clinic
ProblemData sharing restrictions
StackGTM web + server, Meta CAPI
OutcomeLead event via CAPI, EMQ 9.3/10

The problem

The client’s Meta Pixel showed a “Data sharing restrictions applied” warning. Meta had blocked the domain, put it in health and wellness categories, and rejected the review. That is why the tracking was not working.

The data sharing restrictions warning in the Meta dataset.
Before: The data sharing restrictions warning in the Meta dataset.
The domain categories with the review rejected.
Before: The domain categories with the review rejected.

Two custom events were set up, but they were not working. The client had tried with two freelancers, and neither could fix it. Because of this, the ads could not be optimized for Lead conversions.

Before: custom events barely recorded (PageViewed and SignUp with 1 event).
Before: Before: custom events barely recorded (PageViewed and SignUp with 1 event).

What I built

I did the entire setup with Google Tag Manager. I set up the Meta Pixel and the Meta Conversions API for PageView events, and sent the Lead event from the Conversions API only, because the website domain is blocked by Meta in the browser.

Web container tags

A form listener tag, the browser Meta Pixel PageView, and the two server-side data tags (Lead and PageView).
Web container: A form listener tag, the browser Meta Pixel PageView, and the two server-side data tags (Lead and PageView).

Trigger

The Lead Form Submit custom event trigger, with a reload guard.
Trigger: The Lead Form Submit custom event trigger, with a reload guard.

Variables to raise Event Match Quality

User parameters (name, email, phone, city, fbc, fbp, event ID) to increase the match quality score.
Variables: User parameters (name, email, phone, city, fbc, fbp, event ID) to increase the match quality score.

Server container tag

One Conversions API tag works for both events, PageView and Lead.

The Facebook Conversion API tag in the server container.
Server container: The Facebook Conversion API tag in the server container.

The result

PageView and Lead events are recorded properly in Meta Test Events, and in the Events Manager overview. The browser and server PageView events are deduplicated, and the Lead event arrives from the server through the Conversions API, with an Event Match Quality of 9.3/10.

Test Events: PageView from browser and server (deduplicated) and the server Lead event.
Test events: Test Events: PageView from browser and server (deduplicated) and the server Lead event.
The dataset overview with the Lead event active through the Conversions API.
Overview: The dataset overview with the Lead event active through the Conversions API.

Client account names and domains are blurred for privacy.