UPDATE!

We have simplified the pixel setup. Now all you need to do is add your Pixel ID and the appropriate conversion events will be installed in your funnel.

WARNING! If you put your pixel ID in the field below do not include any code related to your Facebook pixel in the Body and Header section below that. This will cause reporting errors and could send inaccurate data to Facebook.

To get the Pixel ID simply login to Facebook ads manager, go to the Pixel section and copy and paste the Pixel number. 

See below images for more details.


To test if your pixel is working correctly please download the Facebook Pixel Helper

https://developers.facebook.com/docs/facebook-pixel/pixel-helper

https://chrome.google.com/webstore/detail/facebook-pixel-helper/fdgfkebogiimcoedlicjlajpkdmockpc?hl=en (Chrome Plugin)

NOTE: If you are using an ad-blocker or other software that blocks javascript the pixel will not load correctly in your browser and you will receive an error.


-------
OLD/ MANUAL SETUP (PLEASE IGNORE IF YOU HAVE USED THE METHOD ABOVE)

In this article I will tell you how to integrate the Facebook pixel with AMZPromoter.

If you don't already have a Facebook ad account please head over to https://www.facebook.com/business/help/200000840044554 to set one up.

In the Facebook Advert Manager head over to the Pixel tab which is found under the Assets column.

From there press View Pixel code and a window like this should pop up that looks like this: 

Copy all that code and paste it into Landing Page Scripts box in the Tracking/Analytics section found in the AMZPromoter Campaign wizard.

To track coupon conversions/claims you must also install some event code on the coupon claim page.

To do this go back to Facebook and scroll down to Install Event Code.

Copy the original base pixel code (the same as above) and paste it into the Coupon Page Scripts on AMZPromoter.

Now you must also add the event code so Facebook can track conversions. 

To do this copy the code fbq('track', 'Lead'); and put it directly under fbq('track', 'PageView');

So the Landing Page Scripts box will look like this (just add your pixel ID):

<!-- 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', '
ADD_YOUR_PIXEL_ID_HERE', {
em: 'insert_email_variable,'
});
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
src="
https://www.facebook.com/tr?id=122965121518047&ev=PageView&noscript=1"
/></noscript>
<!-- DO NOT MODIFY -->
<!-- End Facebook Pixel Code -->

And the Coupons Page Scripts box will look like this:

<!-- 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', '
ADD_YOUR_PIXEL_ID_HERE', {
em: 'insert_email_variable,'
});
fbq('track', 'PageView');
fbq('track', 'Lead');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=122965121518047&ev=PageView&noscript=1"
/></noscript>
<!-- DO NOT MODIFY -->
<!-- End Facebook Pixel Code -->

That's it!

Now whenever someone visits your landing page and claims a coupon Facebook will get this data which will help them optimize their campaigns. 

Make sure when you are running ads you are using the Website Conversion campaign objective optimized for the Lead event which will ensure Facebook will display your ads to users most likely to claim your offer.

Did this answer your question?