I have some trouble with a track event (Google analytics) that i want on the contact form button.
I’m currently in local whithout an analytics code in my page ( the Google Analytics <script>) but i want to integrate the tracks events before the page is online.
I followed the instruction thant i found here : http://www.kriesi.at/support/topic/adding-event-tracking-to-choices-contact-form/
But the code not compiling / interpreted. It brake the whole code…
I copy pasted :
$this->output .= ‘<input type=”submit” onClick=”_gaq.push(['_trackEvent', 'Contact', 'Form Submission', 'Contact Page Form',, false]);” value=”‘.$this->form_params['submit'].’” class=”button” />’;
on line 193 in class-form-generator.php
Thanks a lot for your help
use ” and not ‘
onClick=”_gaq.push(["_trackEvent","contact", "demande infos", "formulaire de contact"]);”
The topic ‘Trouble with adding track event on a contact form’ is closed to new replies.