Hello i put the code below to the head of the contact page to track form submition
<!-- Event snippet for Υποβολή φόρμας δυνητικού πελάτη conversion page
In your html page, add the snippet and call gtag_report_conversion when someone clicks on the chosen link or button. -->
<script>
function gtag_report_conversion(url) {
var callback = function () {
if (typeof(url) != 'undefined') {
window.location = url;
}
};
gtag('event', 'conversion', {
'send_to': 'my id/my id',
'event_callback': callback
});
return false;
}
</script>
Now i want to ask you how can i call gtag_report_conversion when someone clicks the submit button?