Support » Plugin: Contact Form 7 » Js Error. Messages after sending not shown

  • Hello,

    i use contacform 7. But the messages after sending the form are not shown, because of an js error.

    Uncaught SyntaxError: Invalid or unexpected token
    at String.<anonymous> (scripts.js:135)
    at Function.each (jquery-1.9.1.min.js:3)
    at Object.$.wpcf7AjaxSuccess (scripts.js:135)
    at Object.t.success (jquery.form.min.js:11)
    at c (jquery-1.9.1.min.js:3)
    at Object.fireWith [as resolveWith] (jquery-1.9.1.min.js:3)
    at k (jquery-1.9.1.min.js:5)
    at XMLHttpRequest.r (jquery-1.9.1.min.js:5)

    You have an idea what is wrong there?

    i look forward to hear from you.

    best regards

    Chris

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Can I see the site?

    I had the same issue.

    It seemed to be related to the on_sent_ok event. Mine was set to:
    on_sent_ok: “ga(‘send’, ‘event’, ‘Formular’, ‘Send’); fbq(‘track’, ‘Lead’);”

    Some how I had set the Google Analytics function incorrectly. We use Monster Insigths for GA and the function name here is __gaTracker.

    All is okay after changing the on sent event to this:
    on_sent_ok: “__gaTracker(‘send’, ‘event’, ‘Formular’, ‘Send’); fbq(‘track’, ‘Lead’);”

    So check you on_sent_ok event.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Js Error. Messages after sending not shown’ is closed to new replies.