You are here

Facebook - Ecommerce Events

Container Reference: 
Tag Type: 
Custom HTML
Tag Description: 
This is the Ecommerce part of the Facebook Pixel which sends to facebook what product has been viewed with productDetail, added to cart, in checkout, or ordered.
	<script>
  // Assuming that the Top Part of the facebook tag is still fired with the PageView Tag :)
fbq('track', {{facebookEcommerceEvent}}, {   
        content_type: 'product',
        value: {{facebookValue}},
        currency: {{currencyCode}},
    	contents: {{facebookEcommerceProducts}}
    });    

</script>

<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id={{facebookAccountId}}&ev={{facebookEcommerceEvent}}&noscript=1&amp;cd[value]={{facebookValue}}&amp;cd[currency]={{currencyCode}}"
/></noscript>