WordPress Facebook Tracking Code for Contact Form 7

Use This for Facebook Pixel Lead Event for your Contact Form 7 Plugins. Just Insert Code in the Footer of the Website and You are all set.

A little snippet for Contact Form 7 for firing a lead event for the Facebook Pixel. Use this whenever you want to track leads from your Facebook Pixel. Add this to the footer of the website. 

<script>
document.addEventListener( 'wpcf7mailsent', function( event ) {
fbq(‘track’, ‘Lead’);
}, false );
</script>