Tracking Different Forms
-
I am running Facebook ad to get mailing list sign ups. I am using the following code to track conversion. However, my contact form is also using Contact Form 7. That makes my Facebook ads reporting for mailing list sign ups not accurate. How can I solve this?
I need the eventlistener to not fire if the form is the contact form. I only have 3 contact forms site wide but the mailing list sign up appears in a lot of places, especially the footer.
<script> document.addEventListener( 'wpcf7mailsent', function( event ) { fbq('track', 'Lead'); }, false ); </script>
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Tracking Different Forms’ is closed to new replies.