Volgen

Facebook advertenties - RW - Pixel documentatie

The Facebook pixel container snippet is a small piece of JavaScript that you paste into the pages on your website. 

The Facebook pixel container needs to be implemented on all the seperate object pages of your website.

1. Correct implementation for basic code snippet

To implement the Facebook pixel container, copy the code snippet provided from below. Paste this snippet into your website template page just before the </head> tag. Replace the example variables (content_category, content_name, content_ids, etc) with actual content from the listing.

<!-- 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', '437915379934515');
fbq('track', 'PageView');
fbq('track', 'ViewContent', {
content_type: 'product',
content_category: 'Listing > Sale', //'or rent'
content_name: '%listing.formattedAddress%', //e.g. Burgwal 8b, 2611GJ Delft, Zuid-Holland
content_ids: ['%listing.uuid%'], //format as string or string[], e.g 3664920 or ZR11191
value: '%listing.value%', //listing value, e.g. 570000
currency: 'EUR'
});
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id=437915379934515&ev=PageView&noscript=1"
/></noscript>
<!-- End Facebook Pixel Code -->

 

Note: Please take a look here for more information: https://developers.facebook.com/docs/facebook-pixel/using-the-pixel

 

Was dit artikel nuttig?
Aantal gebruikers dat dit nuttig vond: 0 van 0
Hebt u meer vragen? Een aanvraag indienen

Opmerkingen