Jump to content

How to put Facebook Script for custom audience pixel


redmeteoric

Recommended Posts

I have problem installing Facebook pixel code to prestashop. I tried with HTMLbox and Contenctbox modules, but it gave me error massage when i save it.

The massage was : 403 Forbidden Access to this resource on the server is denied! 

 

The code below is provided for example only. If you decide to use it make sure to change the Pixel ID 1234567890 to the Pixel ID from your own account. Otherwise it won't work.

 

 

<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', "1234567890"]);
})();
window._fbq = window._fbq || [];
window._fbq.push(["track", "PixelInitialized", {}]);
</script>
<noscript><img height="1" width="1" border="0" alt="" style="display:none" src="https://www.facebook.com/tr?id=1234567890&ev=NoScript" /></noscript>

 

Referrence about this pixel: https://developers.facebook.com/docs/ads-for-websites/website-custom-audiences/getting-started#install-the-pixel

 

Please help anyone...?

 

Link to comment
Share on other sites

  • 9 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...