Hello everybody,
I want to track an event to my Google Analytics when an e-mail is sent from a Contact Form 7 form, but ONLY if a checkbox has been checked within the contact form.
How is this possible?
I tried with following code, but it didn't really work (the ID of the checkbox is #tam):
on_sent_ok: "if ($('#tam').is(':checked')){_gaq.push(['_trackEvent', 'Nyhedsbrev', 'Kontaktformular tilmelding'])}"
Do you have any ideas? Thanks in advance!