Hi,
I have contact form in my website sidebar. http://goads.hr/internet-marketing-konzalting/
Form is placed inside widget, and its the same for all pages…here is the code.
[av_contact (Email address hidden if logged out) ' title='Send us mail' button='Submit' on_send='' sent='Your message has been sent!' link='manually,http://' subject='' autorespond='' captcha='' form_align='' color='']
[av_contact_field label='Name' type='text' options='' multi_select='' check='is_empty' width=''][/av_contact_field]
[/av_contact]
How can I add the following code into my Submit button to track form sub missions:
onClick=”ga(‘send’, ‘event’, { eventCategory: ‘Kontakt’, eventAction: ‘Upit ‘, eventLabel: ‘Kontakt forma’});”
Hey goads!
Please take a look at the following, which will help you understand the process
let us know if you have more questions
Best regards,
Basilis
My website stopped working after I have implemented this.
This is the error:
Parse error: syntax error, unexpected ‘ga’ (T_STRING) in /home/goadshr/public_html/wp-content/themes/enfold/functions.php on line 59