Just one guy's opinion, but I think the most effective way for you to add this is by investing some time into learning how to work in Google Tag Manager. You can add the tag manager code to your website and from there you can setup your Google, Facebook, and other tracking pixels and events.
Measure School is a great resource and they have a lot of free step-by-step tutorials on how to DIY this on Youtube.