WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
[resolved] Not shown "Message was sent OK" if tracking form submission (12 posts)

  1. xtel.cz
    Member
    Posted 1 year ago #

    My form is perfectly working, but when I use Tracking Form Submissions with Google Analytics exactly as on http://contactform7.com/tracking-form-submissions-with-google-analytics/ after submission there is no "Your message was sent successfully. Thanks." within green box.

    Testing page http://www.securiwiz.com/sample-page/

    Validation and error messages are shown.
    Any advice how to solve this?
    Thanks, BR, Petr

    http://wordpress.org/extend/plugins/contact-form-7/

  2. surftrip
    Member
    Posted 1 year ago #

    I have the EXACT same problem. For goggle analytics implementation, I'm using "ultimate Google Analytics" plugin

  3. xtel.cz
    Member
    Posted 1 year ago #

    Found the cause of the problem:

    With standard Google Analytics asynchronous code it works fine.
    Not working with 'new' GA Universal Analytics code.

  4. liken22
    Member
    Posted 1 year ago #

    Does somebody found how to fix this, I think we will need a new code to place in "Additional Settings".

    It seems that the _gaq.push will not work anymore with the new code since gaq is not there.

  5. xtel.cz
    Member
    Posted 11 months ago #

  6. scuzzu
    Member
    Posted 7 months ago #

    xtel, your link goes to the same post

  7. Sjourney
    Member
    Posted 7 months ago #

    So this problem is still not solved

  8. xtel.cz
    Member
    Posted 7 months ago #

    For Universal Analytics use
    on_sent_ok: "ga('send', 'event', 'Contact Form', 'sent');"

  9. Sjourney
    Member
    Posted 6 months ago #

    @xtel.cz
    The initial problem that you reported still persists for me:
    after submission there is no "Your message was sent successfully. Thanks." within green box.
    It works for you?

  10. makapa
    Member
    Posted 3 months ago #

    Has someone found a solution?

  11. thegreyspot
    Member
    Posted 2 months ago #

    This is what I did to have a temporary fix until the developer fixes the real issue.

    Goto: wp-content/plugins/contact-form-7/includes/js/scripts.js

    And find:

    if (data.onSentOk)
          $.each(data.onSentOk, function(i, n) { eval(n) });

    And replace it with:

    if (data.onSentOk){
    	$.each(data.onSentOk, function(i, n) { try{eval(n);}catch(e){if(e instanceof SyntaxError)console.log(e.message);} });
    }

    Haven't done much testing, but there you go

  12. zgall1
    Member
    Posted 1 month ago #

    thegreyspot - I tried your code but no luck. I still don't get a confirmation message. I have two contact forms on my page. I doubt it's related but thought it was worth mentioning.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic