I want to avoid creating a new "thank you page" on contact form, but need to track adwords conversions for my client. I have gleaned a certain amount of information from this thread http://wordpress.org/support/topic/plugin-contact-form-7-contact-form7-google-adwords-conversion-code/page/2?replies=31 but it doesn't quite meet my needs.
I see that I will have to pop a bit of extra code in the additional settings on contact form 7,, i.e. on_sent_ok: "Tracking();"
And then set up a function Tracking(); in header.php which executes the tracking code once the conversion has taken place. The example in the thread above looks nothing like my Google adwords tracking code, and I am not sure how one would alter it to make mine execute. Here is the tracking code I have:
/* <![CDATA[ */
var google_conversion_id = 1036632694;
var google_conversion_language = "en";
var google_conversion_format = "2";
var google_conversion_color = "ffffff";
var google_conversion_label = "dqsJCKTCjggQ9oSn7gM"; var google_conversion_value = 0; var google_remarketing_only = false;
/* ]]> */
<img height="1" width="1" style="border-style:none;" alt=""
I would be grateful for any advice! Thank you.