Support » Plugin: Contact Form 7 » No message “Your message was sent successfully” when using “Your message was sen

  • Hello,

    My contact form was working perfectly. I’ve just added on_sent_ok: “pageTracker._trackPageview(“/submitform/thank-you.php”);”
    into Additional settings because I want to track submission sin Google Analytics. Now when I tested it and click on the submit button I will not receieve “Your message was sent successfully” message! Mail arrives anyway! Why? I want people to see this message. Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I’m having the exact same issue. Adding the code in the additional settings box is messing it up and not showing the green box after form submission.

    Removing the code fixes it. I hope there’s a fix for this or I’m gonna have to use another contact form plugin. (Which I don’t want to do)

    phrabe, not sure if you read this article:

    But at the bottom it says:

    One important caution: when testing, pay attention to whether the form successfully issues the appropriate AJAX feedback message upon submission. I have seen instances where a form is submitted, and the resulting email is sent/delivered, but no AJAX message is issued, and likewise the Javascript action hook is not activated, resulting in a failed goal capture. I’ve resolved this by clearing out extraneous Javascript that was undoubtedly causing conflicts preventing successful display of the AJAX feedback message and the action hook necessary to register a completed goal. Very frustrating.

    Anyone know how to fix this?

    Fixed this.

    In the OP’s example he has:

    on_sent_ok: “pageTracker._trackPageview(“/submitform/thank-you.php”);”

    This needs to be instead:

    onSentOk: “pageTracker._trackPageview(“/submitform/thank-you.php”);”

    The javascript function name got changed after one of the updates. After changing on_sent_ok to onSentOk, everything’s working fine again.

    Hi! Excuse me but where do you find the file that you must edit?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘No message “Your message was sent successfully” when using “Your message was sen’ is closed to new replies.