Support » Plugin: Contact Form 7 » Green success message suddently stopped showing. Other error messages show.

  • The form has been working fine at

    but we just started getting a lot of spam. I added a recaptcha but there was still too much spam, so today I replaced the recaptcha with a quiz and honeypot.

    Now the green Success message doesn’t show, even though the message still is sent. Strangely, the yellow validation messages will still show if they are triggered by a failed quiz or missing required field. It’s just the Success message that doesn’t show, so the user gets no confirmation.

    I have tried removing the quiz and the honeypot shortcodes and disabling the Contact Form 7 Honeypot plugin and deleting the cache, but the success message is still absent. It was all working fine until I added the quiz and honeypot. Any ideas why this is happening?

Viewing 6 replies - 1 through 6 (of 6 total)
  • @jpeirce , you have a js error on your website
    _gaq.push(['_trackPageview', '/Contact-Success-Thanks/']);
    I believe you’ve moved from legacy Google Analytics to new one (Universal) and forgot to migrate your events tracking hooks (you should move to ga('send', 'event' etc.)

    Yes, you are right on. I recently changed to universal tracking. Can you be more specific though about the code I need to enter in the Additional Settings box? I have tried all of the following, but the green success message still does not appear:

    old code that worked before switch to universal tracking:
    on_sent_ok: “_gaq.push([‘_trackPageview’, ‘/Contact-Success-Thanks/’]);”

    new attempts that don’t work:
    on_sent_ok: “_gaTracker(‘send’, ‘event’, ‘Contact Form’, ‘Submitted’);”
    on_sent_ok: “ga(‘send’, ‘pageview’, ‘/Contact-Success-Thanks/’);”
    on_sent_ok: “ga(‘send’, ‘event’, ‘Contact Form’, ‘Submitted’);”

    FYI: When submitting the form the page produces the following error messages:

    Uncaught ReferenceError: _gaTracker is not defined
    Uncaught ReferenceError: ga is not defined

    by your code, you should use


    , not


    one underscore is missing. Good luck

    I had tried with both one underscore and two beforehand. I just tried adding back the extra underscore and it still doesn’t work. I have confirmed that I have universal tracking implemented. I am using:

    “__gaTracker(‘send’, ‘event’, ‘Contact Form’, ‘Submit’);”
    and I get an “Uncaught SyntaxError: Invalid or unexpected token”

    (If I use: on_sent_ok: “ga(‘send’, ‘event’, ‘Contact Form’, ‘Submit’);” I get: Uncaught ReferenceError: ga is not defined)

    I am using the MonsterInsights plugin to insert the Analytics tracking code into my site. The tracking code inserted is:

    <!– This site uses the Google Analytics by MonsterInsights plugin v5.5.2 – Universal enabled – –>
    <script type=”text/javascript”>
    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

    __gaTracker(‘create’, ‘UA-766614-2’, ‘auto’);
    __gaTracker(‘set’, ‘forceSSL’, true);
    __gaTracker(‘require’, ‘displayfeatures’);

    <!– / Google Analytics by MonsterInsights –>

    I hope that helps. Not sure what else to try.

    Hi, everyone!
    I have the same problem and I SOLVED it!

    I find out from where it appears in my case. The problem appears after installation of the plugin, which is place the GA tracking into footer (I did that to avoid the warning message in Google PageSpeed Insights → Leverage browser caching).

    So the Theme integrated GA process was placing the tracking code this way:

    gaq.push([‘_setAccount’, ‘UA-32193872’]); _gaq.push([‘_trackPageview’]); _gaq.push([‘_trackEvent’]); – In this case CF dode should be this way on_sent_ok: “_gaq.push([‘_trackPageview’, ‘Contact_Success_Thanks’]);”

    The plugin (which is placing code to the footer) place the GA code this way:

    ga(‘create’, ‘UA-32193872’, ‘auto’);ga(‘send’, ‘pageview’); – In this case CF code shuld be this way on_sent_ok: “ga(‘send’, ‘pageview’, ‘Contact_Success_Thanks’);”

    So this difference was causing the problem!

    I switch back to the Theme integrated GA way of placing the code in the pages – after that, the form starts working correctly, as it was. Why I switch back, it because of many changes which I should do with the tracking codes all over the site. In the case of using the plugin (which place the code to the footer) I need to change all tracking codes to the new one – it’s a lot of work because it so many actions is tracked on the site.

    It’s better to switch to GTA =))) Will do this in future.

    So, I hope that my investigation will help someone. ))

    *This issue (Google PageSpeed Insights → Leverage browser caching) I solved by the different method. If someone looking for this method ask for it – I will share the information.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Green success message suddently stopped showing. Other error messages show.’ is closed to new replies.