Facebook tracking pixel
-
I’m trying to use facebook tracking pixel for contact events.
I’ve this in my header:
<!-- Facebook Pixel Code --> <script> !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n; n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window, document,'script','https://connect.facebook.net/en_US/fbevents.js'); fbq('init', '273771023073210'); // Insert your pixel ID here. fbq('track', 'PageView'); </script> <noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=273771023073210&ev=PageView&noscript=1" /></noscript> <!-- DO NOT MODIFY --> <!-- End Facebook Pixel Code -->
Then I’ve this in my additional settings:
on_sent_ok:"fbq(‘track’, ‘Lead’);"
per this guide: https://plankton.com.au/facebook/tracking-facebook-leads-wordpress-contact-form/
It doesn’t seem to work. Is there a WPC7 guide to using the fb tracking pixel?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Facebook tracking pixel’ is closed to new replies.