Facebook Custom Audience Pixel installation
-
Hi there,
how can I install Facebook Custom Audience Pixel into the head of my site? Below are the instructions from FB but I cannot find a way to enter the code:
Copy the code below and paste it between the <head> and </head> in your website code. Then you can set up rules to track specific actions people take across your website. To confirm installation, please use the Pixel Helper. Learn more in the Help Center .
Code is below.
Thanks,
Dmitry
<script>(function() {
var _fbq = window._fbq || (window._fbq = []);
if (!_fbq.loaded) {
var fbds = document.createElement(‘script’);
fbds.async = true;
fbds.src = ‘//connect.facebook.net/en_US/fbds.js’;
var s = document.getElementsByTagName(‘script’)[0];
s.parentNode.insertBefore(fbds, s);
_fbq.loaded = true;
}
_fbq.push([‘addPixelId’, ‘1603769773194187’]);
})();
window._fbq = window._fbq || [];
window._fbq.push([‘track’, ‘PixelInitialized’, {}]);
</script>
<noscript><img height=”1″ width=”1″ alt=”” style=”display:none” src=”https://www.facebook.com/tr?id=1603769773194187&ev=PixelInitialized” /></noscript>The blog I need help with is: (visible only to logged in users)
-
Hi there,
We wordpress.com bloggers cannot post JavaScript and have it operate for security reasons.
https://en.support.wordpress.com/code/
- The topic ‘Facebook Custom Audience Pixel installation’ is closed to new replies.