WordPress.org

Ready to get started?Download WordPress

Forums

Custom Contact Forms
Track form submission on submit click using Google Analytics (3 posts)

  1. article89
    Member
    Posted 1 year ago #

    By using google analytics. I'm trying to track the number of times the form submit button is clicked.

    If this is the code I need to use, where do I insert it?

    onClick="_gaq.push(['_trackEvent', 'Form', 'SubmitClick']);"

    If it's not the code, what is the right code and where do I insert it?

    Thanks in advance!

    http://wordpress.org/extend/plugins/custom-contact-forms/

  2. i3v
    Member
    Posted 1 year ago #

    Contact form 7 seem to enable such a feature:
    http://contactform7.com/tracking-form-submissions-with-google-analytics/

    Though, I, myself, can't see any effect, there's 0 google analytics goals.. Maybe I'm doing something wrong.

  3. article89
    Member
    Posted 1 year ago #

    Hey i3v, thanks for the response. I've been looking for an answer for very long now. If I knew PHP in depth I'd probably be able to make it work. I found a similar solution to the one you suggested but the problem is that I don't have a page where the user lands after submitting a form nor do I have change in the URL to make it trackable. It all happens in the same page.

    But thanks again.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic