Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #242580

    Hi everybody,

    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 : (Purchase code hidden if logged out) -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


    solution :

    use ” and not ‘

    onClick=”_gaq.push([“_trackEvent”,”contact”, “demande infos”, “formulaire de contact”]);”



    Glad you figured it out. :)


Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Trouble with adding track event on a contact form’ is closed to new replies.