Title: Google Conversion Tracking Code
Last modified: August 20, 2016

---

# Google Conversion Tracking Code

 *  [bigmassa](https://wordpress.org/support/users/bigmassa/)
 * (@bigmassa)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/google-conversion-tracking-code/)
 * Contact Form 7 is a great form and works perfect on my site!
 * Now I’m struggling in adding the Google AdWords Conversion Snippet to the form.
   I think this would be a great enhancement as many user don’t sell products on
   the page but count the “getting in touch” by using the contact form as a successfull
   conversion of the marketing campain (as they sell services as I do).
 * It would be great to either add the code snippet directly to the “Send” button
   or to the “successfull confirmation page”. As I don’t have any products I sell
   on the page, the conversion should be tracked everytime a user fills out and 
   sends the form.
 * Google Snipped Example:
    <script type=”text/javascript”> /* <![CDATA[ */ var 
   google_conversion_id = 123456789; var google_conversion_language = “en”;
 *  var google_conversion_format = “2”;
 *  var google_conversion_color = “ffffff”;
 *  var google_conversion_label = “AAAAAAAAAAAAAAAAAAA”;
 *  var google_conversion_value = 0;
    /* ]]> */ </script> <script type=”text/javascript”
   src=”[http://www.googleadservices.com/pagead/conversion.js”&gt](http://www.googleadservices.com/pagead/conversion.js”&gt);/
   script>
 *  <noscript>
    <div style=”display:inline;”>
 *  <img height=”1″ width=”1″ style=”border-style:none;” alt=””
    src=”[http://www.googleadservices.com/pagead/conversion/123456789/](http://www.googleadservices.com/pagead/conversion/123456789/)?
   label=AAAAAAAAAAAAAAAAAAA&guid=ON&script=0″/> </div> </noscript>
 * Any idea where I could add this snippet into your code? I would really appreciate
   any help.
 * Thanks!
 * [http://wordpress.org/extend/plugins/contact-form-7/](http://wordpress.org/extend/plugins/contact-form-7/)

Viewing 1 replies (of 1 total)

 *  [WorksIQ](https://wordpress.org/support/users/worksiq/)
 * (@worksiq)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/google-conversion-tracking-code/#post-3503070)
 * I just trying this myself on [http://www.worksiq.com/contact-us/](http://www.worksiq.com/contact-us/)
 * I think one solution is to create a thank you page in WordPress e.g. [http://www.yourdomain.com/thank-you/](http://www.yourdomain.com/thank-you/)
   and paste the Google Adwords conversion snippet into that page.
 * Next have Contact Form 7 redirect to that page after your form has been submitted.
   You can do this by editing the form and pasting the following into the Additional
   Settings box:
 * on_sent_ok: “location = ‘[http://www.yourdomain.com/thank-you/&#8217](http://www.yourdomain.com/thank-you/&#8217);;”
 * I hope that helps.

Viewing 1 replies (of 1 total)

The topic ‘Google Conversion Tracking Code’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

## Tags

 * [adwords](https://wordpress.org/support/topic-tag/adwords/)
 * [snippet](https://wordpress.org/support/topic-tag/snippet/)

 * 1 reply
 * 2 participants
 * Last reply from: [WorksIQ](https://wordpress.org/support/users/worksiq/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/google-conversion-tracking-code/#post-3503070)
 * Status: not a support question