Realworks meetpixeldocumentatie
Facebook advertenties – RW – Pixel documentatie
The Facebook pixel container snippet is a small piece of JavaScript that you paste into some pages on your website. The Facebook pixel container needs to be implemented on all the seperate object pages of the website.
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 tag. Replace the example variables (content_category, content_name, content_ids, etc) with actual content from the listing. In this case, a ‘content_ids’ needs to be the Realworks object ID, which usually consists of 2 letters and 5-6 digits. Example: AW12345. If the value does not specifically exists, for example if the object pricing is “on request”, then no value needs to be given for that specific object.
<!-- 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 -->