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 -

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


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

fbq('track', 'Purchase', {
    value: '{$}', currency:'USD'

Very nice, thank you!