Okay so mine is working.
1. You must have all of the required schema data in each product page (read the instructions) did this already
2. You will need to install the pixel in your common/html_header.php did this
3. Then IF you are tracking conversions you will need to add the pixel in a new folder ???????????????????????
checkout_success/html_header.php and you will need to pull the query for the subtotal (minimum) to populate
4. Then add some items to your catalog
5. Bump up your sharing of the added and additional products, maybe even promote a few to get it to fires (weeks here)
6. Keep checking your Facebook products screen in the add products button to see when the pixel has fired enough to be used for updates
Here is an example from checkout_success/html_header.php
Code:
<!-- 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', 'XXXXXXXXXXXX');
fbq('track', 'PageView');
fbq('track', 'Purchase', {currency: "USD", value: <?php echo $order_summary['order_subtotal'];?>});
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=XXXXXXXXXXXX&ev=PageView&noscript=1"
/></noscript>
<!-- End Facebook Pixel Code -->
I am pulling the query with a helper file.... this part will be custom to your own setup with regard to schema etc and where or how it's pulled.
~Melanie
Bookmarks