Facebook pixel and CAPI setup.
How to setup CAPI properly for tracking meta ads data and send accurate date to meta ads?
Here is an example of setting up google tag manager - https://wpmanageninja.com/how-to-configure-google-analytics-fluentcart-wordpress/
You should be able to follow a similar setup for Facebook and CAPI