title: How can I track Google Adwords conversions in my react application?
body: <p>On my react PWA I want to track conversions in Google Adwords after, for example, sending form data. I already use the react-ga module to track pageviews which uses a UA-xxxxxx number. Now I have an Adwords number AW-xxxxxx and I can't seem to find a working example with that.
  Which react module can I use to send those Events to my AW-xxxxxx number? </p>
  
  <p>I already took a look at really small and seemingly incomplete Adwords modules for react, but they do not include Event tracking or don't take AW-xxxxx numbers, only GTM-xxxxx.</p>
  
  <p>This is the code I need to implement:</p>
  
  <pre><code>&lt;script async src="https://www.googletagmanager.com/gtag/js?id=AW-xxxxx"&gt;&lt;/script&gt;
  &lt;script&gt;
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag('js', new Date());
  
    gtag('config', 'AW-xxxxxx');
  &lt;/script&gt;
  </code></pre>
  
  <p>And for the Event: </p>
  
  <pre><code>&lt;script&gt;
    gtag('event', 'conversion', {'send_to': 'AW-xxxxx/XXXXXX'});
  &lt;/script&gt;
  </code></pre>