WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
No message “Your message was sent successfully” when using “Your message was sen (5 posts)

  1. phrabe
    Member
    Posted 3 years ago #

    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.

  2. darkhorse20
    Member
    Posted 3 years ago #

    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)

  3. darkhorse20
    Member
    Posted 3 years ago #

    phrabe, not sure if you read this article: http://www.bobzien.com/2010/10/22/google-analytics-goals-with-contact-form-7-the-right-way/

    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?

  4. darkhorse20
    Member
    Posted 3 years ago #

    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.

  5. deadlylegion
    Member
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic