Is it possible to use this script with FB Pixel integration?

Hi everyone,

Would it be possible to have a sole cookie consent popup for both GDPR tasks?

I’m using the script found here: Cookie warning script
which works great for Google analytics. I wonder if somehow possible to use the same triggers within the script for both Pixel and Analytics.