Facebook events pixel on Wix forms submit button in a lightbox

Hello everyone,

I have a registration form in lightbox and I want to track whenever someone fills the form and clicks on the button using FB pixel.
I have installed the base pixel using the marketing integrations method available via dashboard. In order to track this button, how do I start?
I have checked these resources available,

  1. https://www.wix.com/corvid/reference/wix-window/trackevent

  2. Should I add the code mentioned here in the OnReady function? If yes, then the sample code does not mention anything about the button name/identifier. Will it fire when the lightbox is opened or only when the button is clicked ?

  3. Quite a few people are asking how to actually implement it.

  4. https://www.wix.com/corvid/forum/community-discussion/facebook-pixel-event-firing-on-button-link-click

  5. Again, I do not understand how it is identifying which button is clicked here.
    Also, none of them are for buttons in the WIX forms .
    Any help would be appreciated. Thank you.