Mon. - Fri. 9 am - 5 pm Ask a Question
Remember me

Google ads Event Snipet with click on submit button

2 weeks 7 hours ago #1

  • ELEFTHERIOS's Avatar
  • ELEFTHERIOS
  • Posts: 2
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?

2 weeks 7 hours ago #2

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 25504
Hello,
Thank you for contacting us

More details in the documentation
www.balbooa.com/joomla-forms-documentati...joomla-forms-builder

Regards,
Vyacheslav, Balbooa.com

2 weeks 7 hours ago #3

  • ELEFTHERIOS's Avatar
  • ELEFTHERIOS
  • Posts: 2
Thx for the imidiate answer but because i' m new to all that

Do i have to change something in this code ?

gtag('event', <action>, {
'event_category': <category>,
'event_label': <label>,
'value': <value>

And for my example what do i have to change ?

2 weeks 6 hours ago #4

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 25504
www.balbooa.com/joomla-forms-documentati...joomla-forms-builder

Best Regards,
Vyacheslav, Balbooa Support Team
Powered by Kunena Forum