title: Contact Form 7 - Event Snippet not working for Google Ads Conversion Tracking
body: <p>I am stuck with probably some small error in code which is not allowing conversions to be tracked on Google Ads. Please see the following code and help me where I am wrong. I want to track conversions on every click made on &quot;send&quot; button on my contact form 7. Please read the event snippet since I cannot really make sense out of it and want some help.</p>
  <ol>
  <li><p>I have already installed GTAG for Google Analytics on my site (which works perfect). I pasted the following under the GTAG.</p>
  <p>gtag('config', 'AW-********');</p>
  </li>
  <li><p>The event snippet is where I am confused and do not know how to proceed. Please help.</p>
  </li>
  </ol>
  
  <pre><code>&lt;script&gt;
  &lt;button onclick= &quot;gtag_report_conversion(**what do i put here**)&gt; Send &lt;/button&gt; {
    var callback = function () {
      if (typeof(url) != 'undefined') {
        window.location = url;
      }
    };
    gtag('event', 'conversion', {
        'send_to': 'AW-***************',
        'event_callback': callback
    });
    return false;
  }
  &lt;/script&gt;
  </code></pre>