After adding the following code in Additional Settings of the Contact 7 plugin:
When a form was submitted - the form request was properly emailed to the form recipients however the success message was not being displayed and no record of the page was loged by Google Analytics.
I next set my Firefox browser to use a HTTP Proxy using port 8080. I next started up Paros ( http://www.parosproxy.org/ [^] ) to capture the HTTP Requests and Responses between the Browser and Google.
I next submitted the form and there was no communication with Google.
I next did a view source on the form page and I noticed that pageTracker was not being used. I next noticed that we are using a Google Analytics plugin named: Google Analytics for WordPress. With GA there are two different API methods that are permitted: asynchronous and synchronous. This plugin uses asynchronous calls. This call is not compatible with page Tracker. After more research I changed Additional Settings to the following:
on_sent_ok: "_gaq.push(['_trackPageview', '/form-thank-you.html']);"
After saving this change to the Contact 7 Form. I tested the form again with Paros. This time I saw the AJAX form submission Success message. I also saw the response that was sent to Google.
I checked Google after 24hrs and it did properly register the pageview.