Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
!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', '0123456789876543');
fbq('track', 'Purchase', {value: '5.00', currency:'EUR'});

(The init value should relate to the Facebook Pixel ID)

DMP Pixel

Besides populating a 3rd party pixel you can also send and store a custom attribute for this user in the DMP. As an example you can decide to add the label "male" in case a user visits a given webpage relevant to men. The latter should be specified within the Segment or Conversion configuration. Based on the principles as documented in the Trigger External Pixels entry you can use the following template:

...