Tracking Facebook Pixel Conversions

By using this code below and replacing the tracking number you can track conversions (facebook leads) from paid facebook ads: 

Place this code within the custom JS section of your overlay as shown here in step 3.

function ju_callback(t,email){
!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','//connect.facebook.net/en_US/fbevents.js');
fbq('init', 'REPLACEWITHYOURFACEBOOKVALUE');
fbq('track', "PageView");
fbq('track', 'Lead');
}
Have more questions? Submit a request

6 Comments

  • 0
    Avatar
    Dan Knowlson

    Is this specifc code for Justuno?

  • 0
    Avatar
    Jenna Fortunato

    Hi Dan!

    Yes and no, we used the facebook pixel tracking code provided by Facebook here and wrapped it in a ju_callback function so the tracking code would fire when a customer engages with Justuno! 

  • 0
    Avatar
    Dan Knowlson

    Oki doki. So if I have the FB pixel installed in my Shopify store, then I don't need to install this as it will essentially be a duplicate?

  • 0
    Avatar
    Jenna Fortunato

    Hi Dan,

    If you would like the code to work for Justuno, you would need to install this code in the custom code section of our platform. 

  • 0
    Avatar
    Dan Knowlson

    Thnks Jenna. If I install it as per these instructions, will that mean I have 2 Facebook pixels fire on my site?

  • 0
    Avatar
    Yuno

    Dan, 

    Installing Facebook Pixel in Justuno will only trigger the fire if a user submits an email and came from Facebook. 

Please sign in to leave a comment.