Viewing 11 replies - 1 through 11 (of 11 total)
  • It can also be caused by a server-side warning or error. See Contact Form 7 Email Issues – there is a link there that covers JavaScript Conflicts.

    I’d recommend you use Postman SMTP Mailer/Email Log which includes excellent email debugging.??

    Thread Starter databell96

    (@databell96)

    The form does work. It is not an issue of whether or not the forms are being received. They are. It’s an issue of the person filling out the form receiving the message that the form was sent. SMTP has nothing to do with it.

    @databell96 – In this case I’m suggesting you install Postman SMTP Mailer/Email Log temporarily to use it’s excellent email debugging to see if you get a server-side warning or error when you submit your form.

    If you have the skill to check for server-side warning or error messages without using Postman SMTP Mailer you can of course ignore my suggestion.

    Thread Starter databell96

    (@databell96)

    Again, you’re not understanding the issue. The form us rent. I receive the results in an email successfully. SMTP is not the problem. It is something in CF7 where when the user submits a form, no confirmation appears on the page where the form is.

    @danabell96 Are you by chance having the form also trigger a google analytics event on submission? If so be sure you are using the correct syntax for that as it will cause some problems in the javascript. IE: if you are using the ga( variant your site’s analytics is expecting you to be using the gaq( variation of the submission code.

    Thread Starter databell96

    (@databell96)

    Yes, I am in fact, Aaron. I should have mentioned that previously. They might be it. Let me look at that and thanks.

    Almost certain that will be your issue, if you are not using the Universal version of the analytics code you will want to use the gaq version of the event code.

    My guess is that you are using the ‘ga(event…. ‘ code and your analytics is the older version. Easiest way to test is to remove the code from the form and test it.

    Easiest way to find out what Google analytics code version you have is to look for either:

    analytics.js – Universal ( uses the ga(….) event)
    ga.js – Classic ( uses the _gaq.push(….) event)

    Thread Starter databell96

    (@databell96)

    So I am using the on_sent_ok: “ga(‘send’, ‘event’, ‘Contact Form 1’, ‘sent’);” in CF7 (as Aaron had mentioned), but my GA code in my footer.php also is ga and not gaq so my code is:

    <script>
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
    
      ga('create', 'UA-XXXXXXX-1', 'auto');
      ga('send', 'pageview');
    
    </script>
    Thread Starter databell96

    (@databell96)

    OK, I found the problem. It’s not the code I just posted. It’s this code which the client wanted to track as well as standard GA (not I used xxx’s to cover up some characters):

    <!-- Google Code for Confirmation -Contact Us Conversion Page -->
    <script type="text/javascript">
    /* <![CDATA[ */
    var google_conversion_id = xxxxxxxxx;
    var google_conversion_language = "en";
    var google_conversion_format = "3";
    var google_conversion_color = "ffffff";
    var google_conversion_label = "xxxxxxxxxxxxxxxxxxx";
    var google_remarketing_only = false;
    /* ]]> */
    </script>
    <script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
    </script>
    <noscript>
    <div style="display:inline;">
    <img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/xxxxxxxxx/?label=ajjqCM_Irl4Q6OrR1gM&guid=ON&script=0"/>
    </div>
    </noscript>

    So that conversion code there should go on the thank you page or be displayed only after the person converts through the contact form. But after you took that part out the form worked correct?

    Thread Starter databell96

    (@databell96)

    Correct. It did. I think they wanted it there to track the click-thru’s from the submit button.

    And of course, CF7 tells you there’s no need to do a Thank You page.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘No confirmation message after submitting form’ is closed to new replies.