Google Ads script breaks contact form

When I apply the google Ads conversion tracking tag to my contact form ID the contact form stops submitting emails. Instead, when you select submit it jumps to the top of the page as is clicking an empty button.

Here is my code (I have added myurl.com instead of website as to not make it public. Custom code is also currently commented out on the main site, but can be uncommented in the footer custom code text input:

    function gtag_report_conversion(url){
        var callback = function () {
            if (typeof(url) != 'undefined') {
                window.location = url;
            }
        };
        gtag('event', 'conversion', {
                'send_to': 'AW-612230034/2ZaVCOvb_twBEJLH96MC',
                'event_callback': callback
        });
        return false;
    }

document.getElementById("formwrapper").onsubmit = function(){
    gtag_report_conversion("https://www.myurl.com/");
};

Here is my site Read-Only: [LINK][1]
([how to share your site Read-Only link][2])

https://preview.webflow.com/preview/manhattan-digital?utm_medium=preview_link&utm_source=dashboard&utm_content=manhattan-digital&preview=ca2ad69c36f5e42b0eec1689a2d1e0e3&mode=preview

Anyone got any ideas on this one?

Change gtag_report_conversion(“https://www.myurl.com/”); to gtag_report_conversion();

Remove the URL and you’ll be just fine…