Tracking leads for The British Hair Clinic after Meta restricted the domain
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.


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.

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

Trigger

Variables to raise Event Match Quality

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

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.


Client account names and domains are blurred for privacy.