Support » Plugin: Contact Form 7 » Not shown "Message was sent OK" if tracking form submission

Viewing 11 replies - 1 through 11 (of 11 total)
  • I have the EXACT same problem. For goggle analytics implementation, I’m using “ultimate Google Analytics” plugin

    Found the cause of the problem:

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

    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.



    xtel, your link goes to the same post

    So this problem is still not solved

    For Universal Analytics use
    on_sent_ok: “ga(‘send’, ‘event’, ‘Contact Form’, ‘sent’);”
    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?

    Has someone found a solution?

    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

    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.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Not shown "Message was sent OK" if tracking form submission’ is closed to new replies.