As part of the original Facebook Pixel, Facebook gives their advertisers the option to add additional "events" to the pixel. 


Have a look here to see what "events" are. 


Since our PowerPixel is essentially the same as your Facebook Pixel along with an extra data layer (you can read more about this here), you can include custom events into the PowerPixel as well.


Please note: This guide is for advanced users only. We do not recommend setting this up if you're not sure what you're doing.


First off, here's an example of a standard PowerPixel code:


 

<!-- ConnectRetarget PowerPixel -->
<script>
var CRConfig = {
    'pixel_id':'PzVik09vk0xij6Kk5G4jNvDaKTdY25sPXTMhc64UaLUgNJycN8BzWZwzvPO3PGf/u8asL3R4kj2v8reuXPzaSQQTLHpejtef9JLh6l5lVzjctJGLwfGmuzNY5iBfwJmL|qFGnPC 0HwjNJ9 VkM9OlonMxNhSohutGdrFhSXmMTM=',
    'init_fb':false,
    'fb_pixel_id':'323756101117134'
};
</script>
<script src='//connectio.s3.amazonaws.com/connect-retarget.js'></script>
<noscript><img height='1' width='1' style='display:none' src='https://www.facebook.com/tr?id=323756101117134&ev=PageView&noscript=1' /></noscript>
<!-- End ConnectRetarget PowerPixel -->

 

In order to add your own custom events to the PowerPixel (things like "Purchase" etc), you'll need to add the following code AFTER the PowerPixel.

 

<script>
   <!-- Facebook's custom events would be added here ->
</script>

 

So, let's say you want to add a Purchase event to your PowerPixel. That would mean you'd add the following code AFTER the PowerPixel:

 

<script>
    fbq('track', 'Purchase', {value: '17.00', currency: 'USD'});
</script>

 

Altogether, the code would look like this:


 

<!-- ConnectRetarget PowerPixel -->
<script>
var CRConfig = {
    'pixel_id':'PzVik09vk0xij6Kk5G4jNvDaKTdY25sPXTMhc64UaLUgNJycN8BzWZwzvPO3PGf/u8asL3R4kj2v8reuXPzaSQQTLHpejtef9JLh6l5lVzjctJGLwfGmuzNY5iBfwJmL|qFGnPC 0HwjNJ9 VkM9OlonMxNhSohutGdrFhSXmMTM=',
    'init_fb':false,
    'fb_pixel_id':'323756101117134'
};
</script>
<script src='//connectio.s3.amazonaws.com/connect-retarget.js'></script>
<noscript><img height='1' width='1' style='display:none' src='https://www.facebook.com/tr?id=323756101117134&ev=PageView&noscript=1' /></noscript>
<!-- End ConnectRetarget PowerPixel -->

<script>
    fbq('track', 'Purchase', {value: '17.00', currency: 'USD'});
</script>

 

It's really important that you add the custom events to the bottom of the PowerPixel. If you would do it the other way around (first the custom events, then the PowerPixel) it would not work.