How to Track Contact Form 7 Submission for Facebook Ads

Thanks! Share it with your friends!

You disliked this video. Thanks for the feedback!

Added by VideoK
40 Views
This video tutorial will share about the steps to configure event firing from Google Tag Manager to Facebook Ads. The advantage of using this method is no need additional work by your web developer/webmaster. This is because everything can apply using Google Tag Manager.

=======================================================================

【The Custom HTML code to paste at Google Tag Manger】

**Please add the "Angle Bracket" for the script below. YouTube not me allow to add.**
script type="javascript"

var wpcf7Elm = document.querySelector('.wpcf7');
wpcf7Elm.addEventListener( 'wpcf7mailsent', function(event) {
dataLayer.push({'event' : 'formSubmitted'});
fbq ('track','CompleteRegistration');
}, false );

**Please add the "Angle Bracket" for the script below. YouTube not me allow to add.**
/script

=======================================================================

Apart from the 'CompleteRegistration' above for Facebook Event Tracking, actually you can fire the Google Analytics Event Tracking as well.

Using the code from above, whatever successful form submitted, Google Tag Manager will fire this event 'formSubmitted' as well. Hence, you can apply the Google Analytics Event Tracking simultaneously with Facebook custom event code as well.

################################################################

More info about "Tracking Form Submissions with Google Analytics": https://contactform7.com/tracking-form-submissions-with-google-analytics/

Are you a developer? Then this article from Contact Form 7 "DOM Event" might help you: https://contactform7.com/dom-events/
Category
Tutorials

Post your comment

Sign in or sign up to post comments.

Comments

Be the first to comment