title: Adwords Conversion Tracking in PHP Form
body: <p>I have a html page with contact form. If someone fills the form, they see the "Thanks" message on the same page. HTML code for the page is</p>
  
  <pre><code>&lt;form id="contact" method="post" action="demo"&gt;
  
                                      &lt;div class="row-fluid"&gt;
                                          &lt;div class="span6"&gt;
                                              &lt;input type="text" required placeholder="First Name" name="Firstname" /&gt;
                                          &lt;/div&gt;
                                          &lt;div class="span6"&gt;
                                              &lt;input type="text" required placeholder="Last Name" name="Lastname" /&gt;
                                          &lt;/div&gt;
                                      &lt;/div&gt;
                                      &lt;div class="row-fluid"&gt;
                                          &lt;div class="span6"&gt;
                                              &lt;input type="email" required placeholder=" * Email" name="Email" /&gt;
                                          &lt;/div&gt;
                                          &lt;div class="span6"&gt;
                                              &lt;input type="text" required placeholder="Country" name="Country" /&gt;
                                          &lt;/div&gt;
                                      &lt;/div&gt;  
  
                                      &lt;div class="row-fluid"&gt;
                                          &lt;div class="span6"&gt;
                                              &lt;textarea name="comment" required placeholder="comment" size="100%"&gt;&lt;/textarea&gt;
                                          &lt;/div&gt;
  
                                      &lt;/div&gt;
                                      &lt;div class="row4"&gt;
                                          &lt;input type="submit" data-loading-text="Loading..." class="btn button animated bounceIn" value="request information"&gt;
                                      &lt;/div&gt;      
  
                                  &lt;/form&gt; 
  </code></pre>
  
  <p>and the php code is</p>
  
  <pre><code>if ($Email=="") {
      echo "&lt;div class='alert alert-error'&gt;
              &lt;a class='close' data-dismiss='alert'&gt;×&lt;/a&gt;
              &lt;strong&gt;Warning!&lt;/strong&gt; Please enter your email.
          &lt;/div&gt;
  
      ";
  }   
  elseif ($firstName=="" or $lastName=="" or $country=="") {
      echo "&lt;div class='alert alert-error'&gt;
              &lt;a class='close' data-dismiss='alert'&gt;×&lt;/a&gt;
              &lt;strong&gt;Warning!&lt;/strong&gt; Please fill all the fields.
          &lt;/div&gt;";
  }   
  else{
      mail($to, $subject, $msg, "From: $_REQUEST[Email]");
      echo "&lt;div class='alert alert-success'&gt;
              &lt;a class='close' data-dismiss='alert'&gt;×&lt;/a&gt;
              &lt;strong&gt;Thank you for your message!&lt;/strong&gt;
  
          &lt;/div&gt;
  
      ";  
  }
  </code></pre>
  
  <p>Now I would like to integrate Google Adwords conversion code with the contact form. Could someone please assist me on this? Here is my conversion code:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  /* &lt;![CDATA[ */
  var google_conversion_id = 955016975;
  var google_conversion_language = "en";
  var google_conversion_format = "3";
  var google_conversion_color = "ffffff";
  var google_conversion_label = "_3SsCJzniVwQj86xxwM";
  var google_remarketing_only = false;
  /* ]]&gt; */
  &lt;/script&gt;
  &lt;script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js"&gt;
  &lt;/script&gt;
  &lt;noscript&gt;
  &lt;div style="display:inline;"&gt;
  &lt;img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/955016975/?label=_3SsCJzniVwQj86xxwM&amp;amp;guid=ON&amp;amp;script=0"/&gt;
  &lt;/div&gt;
  &lt;/noscript&gt;
  </code></pre>