pmmlm57
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] Tracking Adwords conversion using Contact Form 7After adding the following code in Additional Settings of the Contact 7 plugin:
on_sent_ok: “pageTracker._trackPageview(‘/www.mysite.com/form-thank-you.html’);”
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 ( https://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.
Issue resolved!
Forum: Plugins
In reply to: [Contact Form 7] Tracking Adwords conversion using Contact Form 7I get the same error as Cristiano as stated above. I add
on_sent_ok: “pageTracker._trackPageview(‘/mysite/thank-you.html’);”in additional settings and after the form is submitted I no longer see the “Your message was sent successfully. Thanks.” message.
I am using WordPress version 3.3.1 and Contact Form 7 version 3.0.2.1.
After 48 hours I still have not seen my virtual page listed in Google Analytics.
I also disabled all other plugins except for Contact Form 7. It appears there is a bug with this version of contact form 7 and wordpress.
It appears this plugin may be dead because the author is not responding to bug reports.