Magento – Add Facebook’s Custom Audience Pixel Code into Magento

ecommerce-trackingmagento-1.9

I need to add a Custom Audience Pixel Code for Facebook into my Magento site. The instructions say to paste this inbetween the tags, which is simple with basic websites but a lot more complex with Magento.

Any idea where to add this?

Best Answer

It depends upon what do you want to achieve, there are several ways you can do it in Magento. Either you can create a custom module or copy paste the given pixel tracking code in head.phtml or footer.phtml. Both these methods will install your custom audience pixel tracking on your Magento site.

If you chose latter, just make sure you add this in your custom theme instead of base theme because base theme will be overwritten with your next Magento upgrade.

But bear in mind that custom facebook audience pixel tracking does come with standard and custom events which is far more work than adding pixel tracking code in head or footer section of your Magento site. For more information regarding these events use the following link

https://developers.facebook.com/docs/ads-for-websites/tag-api

And if you are interested in implementing all the events, the below module can help you achieve this on your Magento store -:

http://www.scommerce-mage.co.uk/magento-facebook-conversion-audience-tracking.html

Hope it helps

Cheers S

Related Topic