When I use the Optimizely preview and test out the custom goals the custom goals work. See the image below. I have the experiment running but I am not seeing the custom goals being register for the iframe.

Re: Tracking Custom Goal iframes

1. For some reason it appears that jQuery is not defined on the page. I recommend viewing the JavaScript settings on your dashboard, clicking the option to load trimmed version, saving, and then clicking the full version again and re-saving. This should force the snippet to update and load the jQuery as expected. (see attached screenshot below)

3. You could also add your custom event code directly to your site's HTML so that the code is triggered on the success event of the form submission on the iframed modal. This would avoid the URL targeting issue you're running into in #2 above.

Can you let me know if the above changes do the trick for you? If you're still running into issues getting the jQuery to properly load, we can open up a support ticket for you.