How to fire pixel when you click a button on Convertri pages?

Clicking this button will open new window with Convertricks page. It will also fire facebook pixel with 'InitiateCheckout' event for USD100. You can use this method to track clicks to your buy or add to cart buttons. Scroll down for script...

The script...

<script type="text/javascript">

var pixelButton = document.getElementById('ConvertriButtonID');

pixelButton.addEventListener( 'click', function() { 

  fbq('track', 'InitiateCheckout', {

    value: 100,

    currency: 'USD',

  });

}, false );

</script>

The method...

1. First add your Facebook Pixel to your page, usually under Page Properties > Custom Scripts > Head

2. Then copy script on right side and add to Page Properties > Custom Scripts > Body

3. Finally change ConvertriButtonID with ID of your Convertri button. 

How to get your button ID? Click on button > Element Properties > General Properties > Element ID  (at extreme bottom)

4. Publish page, click the button and monitor!

TIP 1: Install Facebook Pixel Helper Chrome plugin to capture and track events.

TIP 2: Replace blue content with your conversion event which you want to track. Get it from your Facebook Business Manager. It is available under "Setup of Pixel". Learn more here...

See it in action...