Struggling with Google Ads button tracking resources

Hi there everyone! I hope you are all well.

I stumbled upon this topic as I already did my research in Webflow forum on how to track button click. I already followed @cyberdave tutorial on this, but not sure whether it is working as I can’t see any conversion when I view it on my google ads dashboard.

So here’s an example :

The button that I would like to track, is an embedded widget javascript that I hosted in Webflow. Following @cyberdave tutorial, I have replaced the class in the code with the button ID.

$("#mcx_orderId").click(function() {gtag_report_conversion()});

and here’s the full code of it :

$( document ).ready(function() { 

function gtag_report_conversion(url) { 

var callback = function () { 

if (typeof(url) !== 'undefined') { window.location = url; } }; 

gtag('event', 'conversion', { 'send_to': 'AW-844125202/PR3zCLKvsMABEJKowZID', 'event_callback': callback }); return false;

}

$("#mcx_orderId").click(function() {gtag_report_conversion()});
});

i also have replace the ≠ with !== as when i tried to run the code in chrome console, in return with syntax error. here’s an example of the original code of @cyberdave and mine ( if (typeof(url) ≠ ‘undefined’) ) with ( if (typeof(url) !== ‘undefined’) )

here’s also the site that im trying to track with my google ads.

Please do let me know if my question above was not clear or doesnt make sense to you guys.

Thank you !!