Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #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 : 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

    #243000

    solution :

    use ” and not ‘

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

    #243142

    Hey!

    Glad you figured it out. :)

    Cheers!
    Ismael

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.