• Resolved kcweb

    (@kcweb)


    How do I put a custom onClick event on the submit button within Contact Form 7?

    My goal is to be able to track the number of times our form is submitted via Google Analytics. I have the onClick Event Tracking code from Google. We are already calling the Analytics code in our header, so the function knows what to reference.

    The form is submitted using AJAX–hence why I am trying to track the onClick and not just a form submission “thank you” page.

    Here is the page in reference:

    https://www.kcwebspecialists.com/contact-us/

    http://wordpress.org/extend/plugins/contact-form-7/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Adding EventTracker code to Submit Button’ is closed to new replies.