Contact Form 7 + Facebook Pixel — a practical guide to Contact Form 7 Facebook Pixel with clear examples you can reuse in real projects.
Contact Form 7 Tutorial Series (67/100). Prefer one article? Read the complete Contact Form 7 tutorial.
Short description
Fire `fbq('track', 'Lead')` inside `wpcf7mailsent` and match Pixel ID setup.
Pixel sketch
document.addEventListener('wpcf7mailsent', function () {
if (typeof fbq === 'function') {
fbq('track', 'Lead');
}
});