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:
- The topic ‘Adding EventTracker code to Submit Button’ is closed to new replies.