How to set up Google Analytics Goal for ajax form submissions
I have a contact form that is submitted via ajax and upon a successful submission, a thank you/success message is displayed. Additionally, I've set up a goal (Goal Completion URL) in my Google Analytics account for visits to a thank you page. This page does not exist. Any thoughts/suggestions on how I can set up tracking successful form submissions via this method? You can use virtual pageviews. For each step of the process, add a call to _gaq.push(['_trackPageview', '/ajax-contactForm/PAGE-or-STEP-NAME.html']); This will register as a pageview and can be used as a step in the goal. See