Track Forminator Submissions through Google Analytics and Facebook Pixel

Need help configuring forminator to track form submissions on Google Analytics and Facebook Pixel though this patch: https://gist.github.com/wpmudev-sls/5fc34beaee5a34947cda67ccc6a56bff

Tried following instructions on here but unable to do so, https://wordpress.org/support/topic/forminator-and-events-to-track-in-google-analytics/