I have found a method to get Google Analytics track contact form result as an objective:
- I ve set an objective in GA for the URL "/enquiries-bookings/successfully-sent"
- Then in Contact Form 7 settings page, I have added this at te end of the message for "# Sender's message was sent successfully":
<script type="text/javascript">_gaq.push(['_trackPageview', '/enquiries-bookings/successfully-sent']);</script>
And that simulates loading the above page, that counts as a goal under Google Analytics
However, now I want to do a A/B testing using Google Website Optimized and I am not sure this method will work, or I should need a real "thank you" page to be tracked.
Is it possible to add some kind of redirect javascript function the same way, redirecting to another page?
Any experience welcome!