google analytics event on the contact form

2 replies·opened May 26, 2016
K
karnowskiMay 26, 2016

hello there ... i need to put this code :

onClick="ga('send', 'event', 'Anmeldung', 'Klick', 'Nachricht senden');"

from google analytics event tracking to the submit button of the contact form ... where do i have to put that ? and how?

thanks allready for anwser

S
SemiColonWebSTAFFMay 27, 2016

Hello,

Please find the following code on the Page:

<button class="button button-3d nomargin" type="submit" id="template-contactform-submit" name="template-contactform-submit" value="submit">Send Message</button>

and replace it with:

<button class="button button-3d nomargin" type="submit" id="template-contactform-submit" name="template-contactform-submit" value="submit" onClick="ga('send', 'event', 'Anmeldung', 'Klick', 'Nachricht senden');">Send Message</button>

This should definitely work fine. Let us know if we can help you with anything else or if you find any further issues.

K
karnowskiJul 14, 2016

perfekt thanks

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard