thank you, i've committed an error, i meant google adwords conversions, sorry and thank you for the answer.
I also need to know how to make Google ADWORDS conversion tracking work with Contact Form 7.
What I need are step-by-step instructions:
1. where do I put the conversion tracking code provided by Google Adwords? This is 20 lines of code.
Can I somehow put this into the on_sent_ok field? If not, how to do it?
I've read that page but I think it was written before Google Analytics started using their asynchronus code.
Does the code to set this up change if I'm using asynchronus analytics code on my site?
So nothing about on_sent_ok ?
I would like to know solution for this also!
on_sent_ok:"_gaq.push(['_trackPageview', '/mysite/thank-you.html']);" did not work.
Is it with or without on_sent_ok: ?
Can we enter more than one line of Java after the on_sent_ok tag?
For example, setting up one conversion with Ad Words requires entering the following Java into the 'thank you' page:
<!-- Google Code for Availability Enquiry Conversion Page -->
/* <![CDATA[ */
var google_conversion_id = 1066013591;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "AwLUCPGitAIQl6eo_AM";
var google_conversion_value = 0;
/* ]]> */
<img height="1" width="1" style="border-style:none;" alt="" src="http://www.googleadservices.com/pagead/conversion/1066013591/?label=AwLUCPGitAIQl6eo_AM&guid=ON&script=0"/>
How can I enter all this code into Conactform7?
hi, will it work to use commerce code, if we create an .html with the commerce code? i mean that all the code posted by puddy127 would be put into some file like "/mysite/thank-you.html" and while using the query "_gaq.push(['_trackPageview', '/mysite/thank-you.html']);" the wanted commerce form will be run?
I found this post to help me: http://hubshout.com/?Setting-up-conversion-tracking-when-using-Contact-Form-7&AID=364
You don't need to do that.
If what you want is a redirect, just using:
on_sent_ok: "location = 'http://example.com/';"
(as explained here)
If what you need is just tracking of conversions for Analytics, use this.
And if what you need is tracking AdWords conversions, set up the conversion variables as globals with a "<script>" tag in the conversion page, and call the conversion code from on_sent_ok (e.g., using jQuery)
In the body/header of your conversion page:
And in the bottom part of Contact Form 7 settings:
on_sent_ok: $jQuery.getScript( "http://www.googleadservices.com/pagead/conversion.js" );
I think this should work.
This topic has been closed to new replies.