Remember me

Google ads Event Snipet with click on submit button

10 months 1 week 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?

10 months 1 week ago #2

  • Viacheslav's Avatar
  • Viacheslav
  • Posts: 28858
Hello,
Thank you for contacting us

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

Regards,
Vyacheslav, Balbooa.com

10 months 1 week 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 ?

10 months 1 week ago #4

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

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