How to install your Facebook Pixel Code when you have a WordPress Site with the Divi Theme.
1. Copy and paste your base Pixel Code into a text editor. Make sure that your Pixel ID is in the place of [Insert PIXEL ID# Here] in the code below. You can add more events to track from here by adding a new line and pasting them before </script>.
<!-- 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', '[Insert PIXEL ID# Here]'); fbq('track', 'PageView'); </script> <noscript> <img height="1" width="1" src="https://www.facebook.com/tr?id=[Insert PIXEL ID# Here]&ev=PageView &noscript=1"/> </noscript> <!-- End Facebook Pixel Code -->
2. Log into your website. When at the dashboard Hover over the Divi button in the left side bar.
3. Click on ‘Theme Options’ on the menu that opens up.
4. Click on the ‘Integration’ button.
5. Copy your code from the text editor and paste it into the box next to “Add code to the <head> of your blog”. Then click ‘Save Changes’.
6. Now you can head to your Facebook Ads Manager and click on Pixels in the top menu. It may take some time to update but it will show as active.