Ready to get started?Download WordPress


Contact Form 7
Contact form 7 not working when using Google Analytics goal (9 posts)

  1. ninostar78
    Posted 1 year ago #


    I've noticed that contact form 7 is not working correctly when using Google Analytics goal tracking code (adding code below in additional settings field).

    The problem is that email is sent, but there isn't any message displayed to user, about message being sent successfully. So users keep on sending same messages all over again, as they think message wasn't sent out.

    Is this error and can I do something to fix this?

    on_sent_ok: "pageTracker._trackPageview('/contact/sent');"


    Kind regards


  2. Nathan Byloff
    Posted 1 year ago #

    I am having the exact same issue; it used to work but no longer does. Did you find a fix for this?

    I followed these instructions. I don't even get page loads showing up in GA.


    on_sent_ok: "pageTracker._trackPageview('/contact-us/thank-you');"

  3. ninostar78
    Posted 1 year ago #


    No, I didn't manage to fix this and I also didn't find anyone who could help me with this.

    To get some quick fix for getting GA record all submitted contact forms, I've created /thank-you page with some message on it for visitors. I was able to configure that directly from GA.

    I hope somebody will look at this from contact form 7, as I believe it's plugin error.

    Kind regards

  4. Murtaza Frosh
    Posted 10 months ago #

    I'm having the same problem.

  5. convertable
    Posted 8 months ago #

    If you guys are still having the same problem, I suggest checking out our plugin Convertable. It automatically tracks the source of each lead and you can also add your own Google Analytics/AdWords conversion tracking codes. http://wordpress.org/plugins/convertable-contact-form-builder-analytics-and-lead-management-dashboard/

  6. Andrew Laws
    Posted 7 months ago #

    Just to add my name to the list, I'm also struggling with this. My code runs thus:

    on_sent_ok: "_gaq.push(['_trackPageview', '/goals/NordsonPartsEnquiry']);"

    I tried adding an additional alert but that didn't work either:

    on_sent_ok: "alert('Your message has been sent, we will respond soon.');"

  7. mllibre
    Posted 7 months ago #

    I'm having the same problem too.

  8. lycanrai
    Posted 3 months ago #

    Did anyone find a solution to this? I'm stuck with the same problem...

  9. esmi
    Forum Moderator
    Posted 3 months ago #

    @lycanrai: If you require assistance then, as per the Forum Welcome, please post your own topic instead of tagging onto someone else's topic.

    This topic references an old version of WordPress.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic