How To Setup Conversion Value For Facebook Pixel

I am trying to setup our facebook pixel to accurately track the order values. Is it possible to input a dynamic variable for the "value" that represents the order value?

fbq('track', 'Purchase', {value: '0.00', currency:'USD'});

Currently we have the generic facebook tracking pixel in the on all pages. Would I add the additional code above on the order landing page only or would we amend it to the generic tracking pixel that is included in the head already?

Here is what I found for a shopify website - http://www.ppcwins.com/new-facebook-pixel-shopify-how-to-setup-conversion-tracking/

For order confirmation page you can use My changes module and the following file:

design/themes/YOUR_THEME/templates/addons/my_changes/hooks/checkout/order_confirmation.post.tpl

Please use the following code to replace 0.00 value with the order total:

fbq('track', 'Purchase', {
    value: '{$order_info.total}', currency:'USD'
});

Very nice, thank you!